CLI reference
Every command below links to its own page. Run harn <command> --help for the live flag list.
Coord layer
Section titled “Coord layer”harn agents: heartbeats, peers, claims, task focusharn council: convene a temporary group for multi-round deliberationharn journal: per-agent markdown journal that survives compactionharn decision: decision docket: file/resolve decisions instead of blocking on a humanharn work: durable objectives across workflow attempts, with proof-derived reconciliationharn governor: bounded specialist-team loops over durable-work dependency graphsharn checkpoint: durable continuity capsules that survive context compactionharn agents context: one-screen orientation snapshot (self, repo, peers)harn presence: read/set mobile vs office presence
Adapters + workflows
Section titled “Adapters + workflows”harn adapter: registered Claude/Codex/Cursor capabilities and offline conformance benchharn policy: validate host-enforced workflow policy documentsharn run: bounded, schema-gated multi-adapter workflow scriptsharn approval: inspect and resolve durable run-policy approvals
Files + code navigation
Section titled “Files + code navigation”harn grep: monorepo-aware code search with sensible default excludesharn outline: code outline via the TS AST (PHP/Python by regex)harn callers: find references to a symbol, classified by kindharn toc: markdown header outlineharn section: extract one markdown section by headerharn file-history: concise per-file git log with line impactharn config-get: read one value from a JSON/YAML config by dotted pathharn edit-batch: one find/replace across many files in a single call
Web ops
Section titled “Web ops”harn browse: Playwright-driven browser automation + visibility/layout checksharn browse-ai: accessibility-tree snapshots with element refsharn fetch: cookie-aware HTTP with a shared jarharn read: HTML → markdown via Readability + Turndownharn cookies: manage the shared cookie jar
Utilities
Section titled “Utilities”harn tokens: offline token counting (o200k_base)harn eml: Gmail .eml → clean chronological markdownharn env: runtime + tooling environment reportharn docs: markdown freshness, frontmatter, lint, sweep, and indexharn devtools: local Claude Code / Codex / Cursor status
Lifecycle
Section titled “Lifecycle”harn init: wire harnery into a projectharn deinit: unwire harnery from a projectharn web: standalone Next.js dashboardharn backup: restic-backed snapshotsharn sync: Google Drive-backed cross-machine syncharn doctor: runtime + dependency checkharn tunnel: IP-gated Cloudflare quick tunnel(s); run several at once with--nameharn completion: shell tab completion (bash/zsh/fish)