CLI reference
heddle thread
Shippedheddle thread [OPTIONS] <COMMAND> Manage threads, the unit of work in Heddle. Threads collapse captures, retries, aborts, conflicts, and merges into one reviewable, recoverable record.
Output text (default)
A thread is the smallest unit of agent work that makes sense to review. It carries a name (e.g. task/biscuit-authz), an assigned agent, a delegator, an ordered list of captures, and, at the end, an integration.
Twenty subcommands sit under thread. The navigation trio is thread current (print the current thread name, read-only), thread cd (print a thread's on-disk path, read-only) and thread switch (attach the checkout to an existing thread ref). Note that thread switch takes a thread, not an arbitrary state — there is no top-level heddle switch, and ADR 0046 rules out adding one.
Markers live here too, under thread marker (list, create, delete, show): a marker is an immutable named reference to a state, where a thread is a mutable one. thread marker delete is the one destructive command in the CLI with no --force gate.
A thread is current when its base is the tip of its target and stale once the target has advanced past it. thread refresh replays it onto its target; heddle land will refresh-then-merge for you when the replay is clean, and fails closed when manual resolution is required.
See also
Subcommands
The thread family covers everything from starting a thread to cleaning one up. Each subcommand has its own page in v2; for now they're listed here with their one-line summaries.
thread createCreate a thread ref at the current statethread currentPrint the name of the current thread. Read-onlythread switchSwitch the current checkout to an existing thread refthread cdPrint the on-disk path for a thread. Read-onlythread listList threadsthread showShow one thread with actor and workflow contextthread capturesShow granular captures on a threadthread renameRename a thread refthread refreshRefresh a thread onto its target threadthread moveMove selected captured paths from one thread into anotherthread absorbAbsorb a child thread into its parent or another threadthread resolveGuide a blocked or stale thread toward its next clean statethread promoteMaterialize an existing thread ref at a chosen paththread dropDrop a thread and mark it abandonedthread approveRecord a merge approval for source → targetthread approvalsList approvals recorded for source → targetthread revoke-approvalRevoke a previously recorded approval by idthread check-mergeCheck whether source → target would merge under the repo's branch-protection policies. Read-onlythread cleanupSweep merged, stale auto-created, or abandoned threadsthread markerManage named state markers: list, create, delete, show. A marker is an immutable named reference to a state