Skip to content
Edith

Agent docs

Command referenceBeta

ed crew engine

Runs a command of the agents engine, the program that owns every agent's terminal and keeps it running after Edith quits. Everything after the options is passed to the engine unchanged. With --machine the command runs on that machine over SSH; the engine is copied there first when it is missing or out of date. With no arguments it opens the engine's terminal client.

Output
ed crew engine [--machine <machine>] [<engine arguments>...]

The same commands work without Edith: run ~/.edith/agents/bin/edith-agents on this Mac, or the same path on any machine where Edith started an agent (%USERPROFILE%\.edith\agents\bin\edith-agents.exe on Windows).

How output works

Commands print readable tables and short lines, on a terminal and through a pipe alike. Add --json to get the engine's reply as one JSON line: {"id": "cli:<method>", "result": {...}}. Scripts and agents that parse the output should always pass --json. api snapshot and api call always print JSON. status prints key: value lines unless you pass --json. workspace list, workspace create, tab create, pane get, pane split, pane process-info, agent list and agent get print the JSON line whenever stdout is not a terminal. ls is the readable agent table in every case.

Every command has its own help: edith-agents pane split --help. A command group with no subcommand, such as edith-agents pane, lists its commands and exits 2. edith-agents --help also prints the config, log and socket paths.

Text arguments are sent as written. In agent prompt w1:p1 -h the -h is the prompt, not a help request, and pane send-text --pane w1:p1 hello world sends both words. Every later word is text too, so pane run w1:p1 ls -la runs ls -la and agent prompt w1:p1 hello --help sends hello --help. Only a run of the command's own options at the very end stays as options, as in agent prompt w1:p1 "review" --wait --timeout 600000. Put -- before text that should never be read as options.

Global options go before the command:

Option What it does
--session NAME Use a named engine session ([A-Za-z0-9._-], at most 64 characters)
--home PATH Use this engine home folder instead of the default ~/.edith/agents
--remote SSH_TARGET Open the terminal client against an engine reached with ssh SSH_TARGET edith-agents bridge
--remote-keybindings local|server Whose keybindings apply in a remote client
--machine NAME Run an engine command on a saved SSH machine (see Saved machines)
--skill Print the guide that teaches a coding agent to drive the engine
--default-config Print the default config.json
-V, --version Print the version

Start an agent

Output
edith-agents run <agent> [PROMPT] [--cwd DIR] [--branch NAME] [--base REF]    [--model M] [--permission supervised|auto-edit|auto|full] [--plan]    [--name N] [--label L] [--workspace W] [--env K=V] [--detach] [--json] [-- ARGS]

run opens a new workspace in --cwd (or a new tab in --workspace), starts the agent there and attaches. --branch first creates a git worktree for that branch under ~/.edith/agents/worktrees/<repo>/<branch> and starts the agent inside it. --permission and --plan map onto each agent's own flags:

Mode Claude Code Codex
supervised --permission-mode manual --ask-for-approval on-request --sandbox read-only
auto-edit --permission-mode acceptEdits --ask-for-approval on-request --sandbox workspace-write
auto --permission-mode auto --ask-for-approval on-request --sandbox workspace-write
full --permission-mode bypassPermissions --dangerously-bypass-approvals-and-sandbox
--plan --permission-mode plan not mapped

--detach, --json or a stdout that is not a terminal print the result instead of attaching.

Agents

Command What it does
ls, agent list [--workspace W] Agents with their state
agent get <target> One agent; the target is a name, pane id, terminal id or label
agent start [NAME] --kind K --pane P [--timeout MS] [-- ARGS] Start an agent in a pane at its shell prompt; returns once it is ready
agent prompt <target> TEXT [--wait] [--until S,S] [--timeout MS] [--force] Type a prompt; --wait waits for the turn
agent wait <target> [--until idle,working,blocked,done,unknown] [--timeout MS] [--require-change] Wait for a state; without --until it matches idle, done or blocked, without --timeout it waits forever
agent read <target> [--source S] [--lines N] [--ansi] The agent's terminal text
agent send-keys <target> KEY... Keys such as esc, enter or ctrl+c
agent focus, agent rename <target> NAME|--clear Focus or rename
agent explain <target> [--json|--format text|json] [-v] Which detection rule decided the agent's state
agent explain --file PATH --agent LABEL The same for a captured screen, without a pane
agent view set --source S [--filter F] [--sort S], agent view clear Filter and sort the agent list for a client
agent attach <target> Attach this terminal

Agent states are working, blocked (waiting for an approval or a question), done (finished while you were looking elsewhere), idle and unknown.

Workspaces, tabs and panes

Command What it does
workspace list|create|get|focus|close [--group] Manage workspaces
workspace rename <id> LABEL... Every remaining word joins the label
workspace move <id> INDEX or --before <id> Reorder
workspace report-metadata <id> --source S [--token K=V] [--clear-token K] [--seq N] [--ttl-ms MS] Tokens shown on the workspace
tab list|create|get|focus|close|move, tab rename <id> LABEL... Manage tabs
pane list|get|current|close|layout|edges Inspect panes; pane current reports the pane the command runs in
pane split [P] [--direction right|down|left|up] [--ratio R] [--cwd D] [-- COMMAND] Split; left and up put the new pane first
pane focus [P] [--direction D], pane neighbor P --direction D Focus or find the pane in a direction
pane resize P --cols N --rows N or --direction D [--amount F] Set the PTY size, or move the split divider
pane move P --tab T [--split right|down] [--target-pane P] [--ratio R] Move into a tab
pane move P --new-tab [--workspace W] [--label L] or --new-workspace [--label L] [--tab-label L] Move into a new tab or workspace; destinations are exclusive
pane swap P --direction D or pane swap P OTHER Swap panes, across tabs too
pane zoom P [--on|--off|--toggle] Zoom
pane read P [--source visible|recent|recent-unwrapped|detection] [--lines N] [--ansi] [--raw] Print text
pane send-text P TEXT [--paste], pane send-keys P KEY..., pane send-input P --data B64 Type into a pane
pane run P COMMAND or pane run P -- ARGV... Run a command line in the pane's shell
pane wait-output P --match TEXT|--regex PATTERN [--source S] [--timeout MS] [--raw] Wait for output; existing output can match, no timeout waits forever
pane scroll P --lines N|--offset N|--to top|bottom, pane clear P Scroll or clear the screen model
pane input P|--current --right-click edith|pane Whether right-click reaches the program
pane process-info P, pane edit-scrollback P Processes in the pane, or open its scrollback in $EDITOR

Agent hooks report into panes. Each fills the pane from EDITH_AGENTS_PANE_ID when no pane is given:

Output
edith-agents pane report-agent --source S --agent A --state idle|working|blocked|unknown    [--message TEXT] [--seq N] [--agent-session-id ID] [--agent-session-path PATH] [-- RESUME_ARGV]edith-agents pane report-agent-session --source S --agent A [--agent-session-id ID]    [--session-start-source startup|resume|clear|compact|fork] [-- RESUME_ARGV]edith-agents pane release-agent [--source S] [--agent A] [--seq N]edith-agents pane report-metadata --source S [--title T] [--display-agent A]    [--state-label STATUS=TEXT] [--token K=V] [--clear-token K] [--clear-title] [--seq N] [--ttl-ms MS]

Terminals

Command What it does
attach <pane>, terminal attach <id> Attach this terminal. ctrl+] detaches; press it twice to send it. The process exits with the pane's exit code
... --takeover, --no-takeover, --observe, --exclusive, --no-replay Control, watch only, or release other clients
... --detach-key KEY, --no-detach-key, --cols N --rows N Detach key and a fixed size for scripts
terminal session control <target> [--takeover] [--cols N] [--rows N] A scripted control stream, 120x40 by default
terminal session observe <target> [--cols N] [--rows N] A read-only stream
terminal title set TITLE..., terminal title clear Set the attached client's window title
events [TYPE...] [--pane P] [--workspace W] [--tab T] [--thread T] [--since SEQ] Stream events as JSON lines; pane.* matches a prefix

Threads and approvals

Threads run structured agents such as Codex or Claude Code without a terminal.

Command What it does
thread list [--cwd .] [--provider P] [--status S] [--all] Threads, newest first
thread start PROJECT MESSAGE --provider P [--model M] [--effort E] [--option id=value] [--worktree BASE] [--branch B] [--plan] [--title T] [--generate-title] [--wait] [--json] Start a thread and print its id. PROJECT is a project id, a path inside a project's folder (the deepest project wins, and a path in another git worktree of that repository counts too) or any directory such as .; --branch needs --worktree; MESSAGE may be - to read stdin
thread send THREAD MESSAGE [--mode auto|steer|queue|restart] [--wait] Send a message; a busy thread queues it
thread start|send ... --output-schema FILE --wait --json Ask for a result matching a JSON Schema; the JSON reply then holds it as output
thread show THREAD [--messages N] [--wait] State and the latest messages
thread interrupt|stop|delete THREAD Control a thread
thread rename THREAD TITLE..., thread update THREAD [--title T] [--regenerate-title] [--branch B] [--provider P] [--model M] [--runtime-mode M] [--interaction-mode plan] [--tag T]... [--clear-tags] [--auto-settle follow|never] [--project ID] Change a thread; --option, --effort and --fast need --model
thread archive|unarchive|pin|unpin|settle|unsettle|visit|mark-unread THREAD, thread pin THREAD --before OTHER Sort threads in the inbox
thread snooze THREAD --for 2h|--until TIME, thread unsnooze THREAD Hide a thread until later
thread fork THREAD [--run R] [--title T] [--side-chat] Start a new thread from this conversation and print its id
thread rollback THREAD RUN [--restore-files] [--force] Rewind to before RUN; exits 1 when some files or the agent's history could not be rewound
thread compact THREAD, thread diff THREAD [--from-run R] [--to-run R] [--stat] Compact the context, or show the thread's changes
thread queue list|hold|resume THREAD, thread queue edit THREAD RUN [--text T|-] [--position N|--before RUN], thread queue rm|start THREAD RUN [--steer] Queued messages
thread search [--thread T] [--limit N] QUERY... Search messages; options go before the query
thread family|attempts|handoffs THREAD Forks and side chats, provider attempts per run, and context handoffs
thread delegate PARENT MESSAGE [--provider P] [--model M] [--worktree BASE] [--wake always|settled-only] Hand a task to a child thread that wakes the parent when it finishes; prints the child's id
thread children THREAD [--active], thread stop-child THREAD SUBAGENT Subagents and child threads a thread started, and stopping one
thread notify [--outcome completed|failed|cancelled|updated] [--source monitor] [--name N] [--wake] THREAD SUMMARY... Tell a thread that background work finished; --wake starts a turn when the thread is idle
thread share THREAD [--host H], thread shared THREAD, thread unshare THREAD A guest link one person opens in a browser to follow the thread and send messages you approve; the link holds its credential
thread goal set [--token-budget N] THREAD OBJECTIVE..., thread goal update THREAD [--status S] [--check TEXT], thread goal clear THREAD A goal the agent keeps working towards
thread sessions scan [--provider P] [--cwd .], thread sessions import [--provider P] [--session ID] [--project ID] Find sessions saved by agent CLIs and import them as threads
thread transcript THREAD [--format markdown|json] [--include-tools] [--output FILE] The whole conversation as Markdown or JSON
thread merge-back THREAD [--run R] [--into TARGET] Hand a fork's or side chat's result back to the thread it came from
thread notifications THREAD [--state pending|delivered|dismissed], thread notification accept|dismiss THREAD ID Notifications waiting to wake a thread, and delivering or dropping one
thread titles THREAD..., thread viewers [THREAD], thread item ITEM, thread scopes THREAD [--run R] Titles by id, who is looking at a thread, one timeline item, and the checkpoint scopes its runs recorded
thread delegation THREAD --acknowledge|--dispose [--wake always|settled_only] Settle a delegated child thread, or change when it wakes its parent
thread guest-message send|dismiss THREAD MESSAGE Pass on or drop a message a guest wrote on a shared thread
thread suggest THREAD, thread detach THREAD [--reason T] A suggested next prompt, and starting a fresh provider session on the next run
thread wait THREAD [--run R] [--timeout MS] [--until-output] [--until-settled] Wait for a run and print the reply; exits 1 on failure or timeout and 2 when the agent waits for an answer
thread output THREAD JSON|- Submit a run's structured output
thread worktree THREAD, thread handoff-worktree THREAD BRANCH [--base REF] [--prompt T] [--setup] The worktree a thread uses, and moving its work into a new one
thread pr-watch THREAD --repo OWNER/NAME --number N [--state S] [--checks-pending] [--until settled|merged] [--ended] Report a watched pull request's state to a thread
thread undo THREAD settle|snooze|unpin|archive [--pinned] [--pin-order N] [--snoozed-until T] Put a thread back the way it was
thread config get, thread config set KEY VALUE, thread config reload The threads settings
thread setup show|cancel THREAD, thread background-policy [--should-run host|opportunistic], thread keep-awake A worktree setup script's progress, whether background work may run, and whether the engine keeps the computer awake
thread prepared show|retry THREAD RUN, thread prepared release THREAD RUN [--cwd D] [--branch B] [--worktree D], thread prepared fail THREAD RUN MESSAGE, thread prepared progress THREAD RUN worktree|setup A run that waits for its worktree and setup script
approval secret request THREAD --label T [--reason T] [--url U] [--field NAME=LABEL]... [--file] Ask a person for a secret on the thread's behalf; a ! before LABEL shows that field as plain text
approval secret status ID, approval secret check REFERENCE, approval secret consume REFERENCE Whether it was answered, and reading the answer once (NAME=VALUE lines, or the value alone)
approval dismiss ID Dismiss a question without answering it
approval list [--thread T], approval respond ID accept|accept_for_session|accept_always|decline|cancel [--feedback T] [--answer Q=V] Pending approvals and questions

| project list\|create PATH\|show\|update\|delete | Projects that group threads, with default provider, model and tracked folders; add and remove are the same as create and delete | | project rename PROJECT TITLE... | Rename a project; PROJECT is its id or its folder, as it is for delete | | project match-repository KEY | The projects that track a repository, such as github.com/acme/shop | | project files list [DIR], project files find NAME [--kind file\|directory] [--images], project files grep TEXT [--regex] [--case-sensitive] [--whole-word], project files ignored | Browse and search a project's files from the current directory | | project files read PATH [--allow-missing], project files write PATH [--from FILE], project files browse PARTIAL, project files stat PATH... | Read and write a project file, complete a folder path, and show file details | | project new NAME, project from-thread THREAD, project scratch | A new empty project with a first commit, a project made from a thread's folder, and the scratch project's id | | project file ID, project approve-layout ID create\|remove COMMAND | A project's project file, and approving the worktree command it asks to run | | schedule list, schedule add TITLE --prompt TEXT --every 2h\|--at 09:30 [--weekdays 1,2]\|--once TIME | Run a prompt on a schedule; intervals are at least one minute | | schedule add TITLE --prompt TEXT --webhook [--signature-header H --signature-secret-file F] [--filter body.action=opened]... [--replay-key '{{headers.x-github-delivery}}'] | Run when the schedule's webhook path is called; filter paths start with body., headers. or query., and --filter-not, --filter-in, --filter-prefix and --filter-exists narrow it further. The prompt can use {{...}} placeholders | | schedule ... --worktree BASE | Run each time in a new worktree based on BASE | | schedule enable\|disable\|run\|delete ID | Control a schedule; run starts it now | | schedule rotate-webhook ID, schedule deliveries ID [--limit N] | A new webhook URL, and what recent deliveries did | | schedule deliver PATH [--body FILE\|-] [--header NAME:VALUE]... [--query Q] | Send a test request to a webhook schedule, as its route would; exits 1 unless it is accepted | | workflow register FILE\|-, workflow defs, workflow definition NAME, workflow unregister NAME | Workflow definitions: JSON with a name and steps (send, wait_turn, wait_signal, sleep, pr_watch, call) | | workflow start NAME\|--file PATH [--input JSON] [--key KEY] | Start a run and print it with its steps; starting again with the same --key returns the same run, even after the definition changes | | workflow list [--workflow NAME] [--status S], workflow show RUN | Runs, newest first, and one run's steps | | workflow signal VALUE --run RUN --wait NAME, workflow signal VALUE --workflow NAME --channel C [--ttl 2h] | Wake a waiting run or answer its question (VALUE is JSON, such as {"choice": "yes"}). A signal sent before a run waits for it is kept; --id makes a resend the same signal | | workflow questions [--kind K], workflow withdraw --run RUN --wait NAME [--reason T] | Questions runs are waiting on a person to answer, and ending one unanswered | | workflow cancel RUN [--reason T] | Cancel a running, waiting or paused run | | workflow store list [PREFIX], workflow store set KEY JSON, workflow store delete KEY | What workflows keep between runs | | workflow resume RUN | Retry a paused run's failed step now; a paused run also retries on its own | | workflow hooks [NAME] | Webhook paths and the next scheduled starts; a path holds its hook's secret, so share it only with the sender |

With --wait the command prints the agent's final reply. It exits 1 when the run fails and 2 when the agent is waiting for an answer.

Checkpoints and diffs

When an agent in a git repository starts working, and again when it stops, the engine records a checkpoint of the whole working tree, untracked files included. Checkpoints are commits stored under refs/edith/checkpoints/ in that repository. They never touch your index, your branches or your stash.

Command What it does
checkpoint list [--cwd DIR] [--pane P] [--thread T] [--limit N] Checkpoints for that repository
checkpoint create [LABEL] Take one now
checkpoint diff <id> [next|worktree|<id>] [--stat] [--ignore-whitespace] [--path P] Diff a checkpoint against the next one, the current files, or another checkpoint
checkpoint diff --thread T [--from-run R] [--to-run R] The diff of a thread's turns
checkpoint show <id> One checkpoint with its files
checkpoint restore <id> [--path P] [--force] [--yes] Put the files back. A safety checkpoint is taken first, so a restore can be undone
checkpoint delete <id>..., checkpoint prune [--keep N] Remove checkpoints and their refs

Restoring rewrites tracked files and removes untracked files that did not exist in the checkpoint. Ignored files are left alone.

Worktrees

Command What it does
worktree list [--cwd DIR] [--trust-repository] The repository's worktrees
worktree create [BRANCH] [--base REF] [--path P] [--start-from-origin] Add a worktree and open a workspace in it; without a branch the engine names one edith-<slug>
worktree open PATH or --branch NAME Open an existing worktree as a workspace
worktree remove <path> [--force] Close its workspace and remove the worktree. The branch is kept
worktree cleanup [--dry-run] [--merged] [--unchanged] [--after-days N] [--keep-when any_local_files|uncommitted_changes|tracked_changes] [--dir P] Remove worktrees the engine created that are merged, unchanged or old. Without rule flags the configured rules apply
worktree rename-branch [NAME] [--description T] [--only-if BRANCH] Rename the worktree's branch, or let the engine name it from a description
worktree setup-cancel ID, worktree clear-cache Stop a setup script, and remove cached pull request checkouts
worktree task-folder PATH, worktree add-repository PATH REPOSITORY [--start-from-origin], worktree restore PATH Task folders that hold one worktree per repository

--trust-repository lets git work in a repository another user owns.

Pull requests, issues and branches

These work on the repository in the current directory, or --cwd DIR. Pass --repo OWNER/NAME for another repository on the same host. A pull request command without a number uses the current branch's pull request.

Command What it does
pr list [--state open|closed|merged|all] [--involvement reviewing|authored] [--author A] [--label L] [--search T] Pull requests with their state and checks
pr show [N], pr checks [N], pr diff [N] [--name-only] One pull request, its checks (exits 1 when one fails) and its diff
pr comment [N] --body T|-, pr review [N] --approve|--request-changes [--body T] Comment or review; --head SHA refuses when the branch moved
pr merge [N] [--method merge|squash|rebase] [--auto|--disable-auto] [--delete-branch] Merge now or once the checks pass
pr watch [N] [--thread T|--pane P], pr unwatch [N] Tell a thread or pane when the pull request changes; inside a pane it tells that pane
pr logs [N] [--check NAME], pr rerun [N] [--check NAME] Failed check logs, and running them again
pr edit [N] [--title T] [--body T] [--add-label L] [--remove-label L] [--add-reviewer R] [--base B] [--draft|--ready] [--close|--reopen] [--update-branch merge|rebase] Change a pull request
issue edit N [--title T] [--body T] [--add-label L] [--remove-label L] [--add-assignee A] [--remove-assignee A] Change an issue
pr stack [N] [--details], pr summary N..., pr activity [N] The stack a pull request is in, several summaries at once, and its comments, reviews and commits
pr threads [N] [--all], pr reply REVIEW_THREAD --body T Open review threads and answering one
pr link|unlink THREAD --number N|--url URL, pr linked URL Link a pull request to an agent thread, and the threads linked to one
pr guide [N] [--generate] The pull request's review guide, or start writing one for the current head
pr checkout N|URL [--worktree [--path DIR]] [--focus] Switch to a pull request's branch, or open it in a new worktree
pr close|reopen|ready|draft [N] [--head SHA], pr action ACTION [N] [--method M] [--stack N] Change its state; ACTION also takes delete_branch, update_branch, enable_auto_merge, disable_auto_merge, revert, approve_workflows and merge. Exits 1 when the host refuses
pr breakdown [N], pr viewed [N], pr mark-viewed [--number N] PATH... [--unviewed] Changed files by kind, and which files you have looked at
pr labels [N] [--query T], pr reviewers [N] [--query T], pr filters labels|authors|references [--query T] Labels, reviewers and list filters to choose from
pr stats REF..., pr preview URL, pr resolve REFERENCE Line counts for several pull requests, a link preview, and finding one by number, URL or branch
pr react REACTION [--number N] [--comment ID] [--remove], pr resolve-thread REVIEW_THREAD [--unresolve], pr edit-comment ID --body T|- React, resolve a review thread, and change a comment
pr write-guides REF... Start review guides for several pull requests
pr routing [N], pr identity --host H The account and project a pull request's activity goes to, and the account the engine uses on a host
pr refresh-links [--thread T], pr views list|save|delete Refresh linked pull requests, and saved list views
issue templates, issue candidates [N] [--query T], issue threads N|--url URL, issue react N REACTION [--comment ID] [--remove] Issue templates, labels and assignees to pick from, threads linked to an issue, and reactions
issue link|unlink THREAD --number N|--url URL, issue links THREAD Link issues to an agent thread
issue list [--state open|closed|all] [--assignee A] [--label L] [--search T], issue show N Issues, and one issue with its comments
issue create --title T [--body T|-] [--label L] [--assignee A], issue comment N --body T Open or comment on an issue
issue close N [--reason completed|not_planned] [--comment T], issue reopen N Change an issue's state
source-control status Which version control tools and host CLIs are installed, and the account each is signed in with
source-control sign-in|sign-out PROVIDER [--host H] Sign in with a device code; --host is needed except for github, gitlab and bitbucket
source-control clone OWNER/NAME|URL [DIR] [--branch B] [--protocol ssh|https], source-control publish OWNER/NAME [--public] Clone a repository, or create one on the host from this directory and push
source-control parse-url URL, source-control lookup OWNER/NAME [--host H], source-control app-access OWNER/NAME --host H What a link points at, a repository's details, and whether the host app can reach it
source-control create-project NAME [--parent DIR] [--publish [--public] [--repo OWNER/NAME]] A new local repository with a first commit, published when asked
source-control star OWNER/NAME [--unstar], source-control fetch-media URL, source-control clone-cancel ID, source-control sign-in-cancel --host H --provider P Star a repository, download a linked image, and cancel a clone or sign-in
tracker list, tracker connect linear|jira --token-file FILE|- [--site URL --email A], tracker disconnect KIND, tracker bind KIND PROJECT [--scope KEY] Connect Linear or Jira; the token is read from a file or stdin
tracker issues KIND [--scope KEY] [--state S] [--involvement assigned] [--search T], tracker show KIND KEY Tracker issues and one issue with the states it can move to
tracker create KIND --title T [--body T|-], tracker comment KIND KEY --body T, tracker state KIND KEY STATE, tracker update KIND KEY [--title T] [--label L]... Change tracker issues
vcs status, vcs refs [--kind local|remote|all] [--search T] Branch, upstream, changed files and branches
vcs diff [--source working_tree|branch_range|commit] [--base REF] [--commit SHA] [--file PATH] [--ignore-whitespace] [--tracked-only] [--stat] The working tree, branch or commit diff
vcs file-contents PATH --source KIND [--change new|deleted|...] [--old-path P] [--base REF] [--head REF] A file before and after a change
vcs commits [--base REF], vcs repositories Commits this branch adds, and the repositories inside a folder
vcs scan-folders, vcs thread-folders [--project-root D] [--tracked D]... The folders a workspace holds, and the folders a thread can work in
vcs commit [-m T|--generate-message] [--path P]... [--push|--pr] [--feature-branch [NAME]] Commit, then push or open a pull request; the engine writes the message when none is given
vcs push [--pr] [--draft] [--title T] [--body T] [--base B] [--thread T] Push, and open a pull request
vcs push-hooks The push hooks a push runs and their digest; pass it with --approve-push-hooks DIGEST, or skip them with --no-push-hooks
vcs branch NAME [--base REF] [--switch], vcs switch NAME [--force], vcs fetch, vcs pull, vcs init [--kind git|jj] Branch work

Layouts

Command What it does
layout export [--tab T|--pane P] [--output FILE] Print a tab's split layout as JSON, with each pane's directory and command
layout apply FILE|- [--tab T|--tab-label L] [--workspace W] [--close-missing] [--no-focus] Rebuild that layout in a tab, or in a new tab when --tab is left out
layout ratio RATIO [--pane P|--tab T] [--path first,second] Resize a split; RATIO is the first side's share

Remote access

Other devices reach the engine over the network once remote_access.enabled is on in config.json.

Command What it does
remote status Whether it is on, where it listens, Tailscale addresses and every permission scope
remote pair [--label L] [--expires-in 10m] [--scope S]... [--one-time] Create a pairing code and link; without --scope the device gets the standard permissions
remote pairings, remote unpair PAIRING Unused pairing links, and revoking one
remote sessions, remote revoke SESSION Paired devices, and removing one's access along with its open connections
remote issue [--label L] [--scope S]... A bearer session token for a script
remote tailscale [--port N] [--off] Publish the engine on your tailnet with tailscale serve

Linked engines let threads here start and follow threads on another machine. Linking needs the linked_environments setting on both machines; the other machine creates the pairing with remote pair.

Command What it does
remote links list [--check], remote links names, thread environment Linked engines with their routes and status, their names, and this engine's own name
remote links add PAIRING_LINK|--code C --host H --port P [--link-back] [--relink], remote links add-many FILE|- Link to one engine, or to several from a JSON list (exits 1 when any fails)
remote links check|forget|link-back LINK Check a link (exits 1 unless reachable), forget it, or ask the other engine to link back
remote links launch LINK TEXT... [--thread T] [--project P] [--cwd D] [--provider P] [--model M] [--runtime-mode M] [--title T] Start a thread there, or message an existing one
remote links delegate LINK --thread T TASK... Hand a task from a thread here to the linked engine; it reports back to T
remote links thread|send|stop|wait LINK THREAD ... Read, message, stop or wait for a thread there
remote links follow LINK THREAD [--ttl-ms MS], remote links unfollow FOLLOW Follow a thread there live and read only (items arrive as thread.link_thread_event events), or stop following it
remote links connect LINK [--label L] Pair this device with the other machine in one step through a full access link
remote links answer LINK REQUEST --decision D [--feedback T] [--answers FILE] Answer an approval or question a thread there waits on
remote links tasks [--link L] [--thread T] [--open], remote links cancel-task TASK Tasks handed to linked engines, and cancelling one

Saved machines

The engine's own command line keeps a list of SSH machines in [[machines]] in tui.toml, next to config.json, and lists disabled ones in machines.json beside it. The terminal client shows their agents too, and --machine NAME sends one command to a machine's engine through ssh <target> edith-agents bridge. Edith's Machines extension keeps its own list; these commands are for using the engine without Edith.

Command What it does
machine list [--json] The saved machines with their SSH target, engine session and whether they are enabled
machine status [NAME] [--json] Check every machine, or one, without asking for a password: reachable, auth required, not installed, incompatible, error or disabled; exits 1 when any check fails
machine reconnect NAME Sign in to the machine in this terminal (password, passphrase or key prompt), keep that connection open for later commands, then check its engine
machine add SSH_TARGET [--label NAME] [--remote-session NAME] Check the machine's edith-agents, start its engine and save it. When edith-agents is missing or too old and the machine runs the same platform as this build, an interactive terminal offers to install this build there
machine rename NAME --label NEW Rename a machine
machine remove NAME Forget a machine; its remote engine and sessions keep running
machine enable NAME, machine disable NAME A disabled machine stays saved, but --machine refuses it until it is enabled again

The default name is the SSH host, plus /session when the session is not default. In a terminal, add asks which session to use when the machine runs more than one. SSH keys and passwords stay with OpenSSH.

--machine runs workspace, worktree, tab, pane, notification, agent (not agent attach or agent explain --file), ls, events, api snapshot, status server, plugin and server stop|reload-config|agent-manifests|reload-agent-manifests. It cannot be combined with --session or the other launch options, because the saved machine names its session. Without --cwd, worktree and checkpoint commands do not send this directory to the machine. Paths you pass are the machine's paths.

Output
edith-agents machine add dev@build.example --label buildedith-agents --machine build workspace listedith-agents --machine build agent list --json

Integrations, notifications and plugins

Command What it does
integration list, integration status [--outdated-only] Which agents have engine hooks installed
integration install|uninstall <agent> Install or remove the hooks that report an agent's state into its pane
notification show TITLE [--body T] [--position top-right] [--sound done|request|none] Show a notification in the attached client
plugin list|install|link|unlink|enable|disable|config-dir|log Manage plugins
plugin action list|invoke, plugin pane open|focus|close Run plugin actions and panes
plugin match-link URL, command list, command invoke ID [--pane P] The plugin that opens a link, and commands plugins registered

Running the engine yourself

Command What it does
server [--detach] Run the engine in the foreground, or detached from the terminal
server stop, server reload-config Stop it and every pane it owns, or reload config.json
server agent-manifests, server reload-agent-manifests Show or reload the agent detection rules
status [server|client] [--json] Client and server versions, protocol, socket, and whether a restart is needed because the engine binary changed
service install [--linger] [--env K=V] Start the engine at login with launchd on macOS, a systemd user unit on Linux or a windowless Task Scheduler task on Windows that starts again within a minute after it exits
service update [--allow-downgrade] [--yes] Reinstall the service when it was written by another version or needs repair; a newer installed service is kept unless you allow a downgrade
service status|restart|uninstall Service state with its log path, linger, enabled state, version drift and a repair hint; on Linux also memory protection and the OOM score
service protect [--undo] [--yes] On Linux with systemd, reserve memory for the engine and lower its OOM score through systemd drop-ins, optionally for sshd and tailscaled too. Asks for sudo; run it as yourself
session list|stop|delete|attach Named sessions
service env [list] [--names], service env set KEY=VALUE..., service env unset KEY... Edit service.env, the environment the engine and its panes start with. Values are literal; PATH and the engine's own variables are refused. Run service restart after a change
doctor [--fix|--dry-run] The threads database size and the space it can reclaim; asks before reclaiming on a terminal, --fix reclaims without asking
up [--yes] [--no-service] [--no-integrations] Set up this machine: install or update the login service, start the engine and offer the missing agent integrations
update --from PATH|URL [--sha256 HEX] [--handoff] Install a new edith-agents into ~/.edith/agents/bin after checking it runs; --handoff moves the running engine's panes to it
bridge [--no-autostart] Pipe stdin and stdout to the engine socket for remote clients
api snapshot, api call METHOD [JSON], api schema [--json] [--output PATH] The socket API
api wait EVENT [--field NAME=VALUE]... [--timeout MS] Wait for one event; the engine matches pane.agent_status_changed by pane_id and agent_status
server activity The background activity policy, client leases and host power state
policy show The installed policy and its fingerprint, and whether the running engine loaded it or needs a restart
policy check FILE|- What a policy file will lock and default, or what is wrong with it; exits 1 when it is not valid
policy allows --capability C|--provider P|--runtime-mode M Whether the policy in force allows something; exits 1 when not
policy templates [DIRECTORY] [--policy FILE] The Group Policy templates, plus a macOS configuration profile for FILE
provider list, provider status|models P [--refresh], provider login P [--method M], provider logout P Thread providers, their models, and signing in or out
provider limits P [--refresh], provider reset-limits P [--credit ID], provider update P Usage limits and when they reset, spending a reset credit, and updating the provider's CLI
provider sessions P [--cwd D], provider delete-session P SESSION, provider workspace P Sessions the provider's CLI saved, and its settings for a folder
provider tasks|stop-task THREAD [TASK], provider feedback THREAD [--reason T], provider inject THREAD --context T|--entries FILE A thread's background tasks, feedback to the provider, and earlier conversation for a new session
provider mcp status P, provider mcp reconnect|sign-in|enable|disable THREAD SERVER, provider mcp complete THREAD SERVER URL MCP servers and their sign-in
provider mcp tools THREAD SERVER, provider mcp call THREAD SERVER TOOL [--arguments JSON|@FILE|-], provider mcp read THREAD SERVER URI An MCP server's tools, calling one (exits 1 when the tool reports an error), and reading a resource
provider task-output THREAD TASK [--max-bytes N], provider subagent-history THREAD AGENT What a background task wrote, and the history of a subagent the provider started
secret provider list|add NAME [--account A] [--op-path P]|remove ID, secret check REFERENCE [--provider ID] Password managers secret references are read from, and checking one can be read without printing it
telemetry status, telemetry check traces|metrics|logs [--url U] Export state, and a test export (exits 1 unless accepted)
feedback list [--limit N], feedback submit --kind bug|confusing|missing|other SUBJECT [--details T|-] Feedback about the engine
triage [DESCRIPTION] [--agent claude|codex|agy] [--model M] Start an agent in a new workspace that reads the engine logs and explains a problem
textgen generate TASK --input FILE|- | --message T [--provider P] [--model M] [--no-fallback] Generate a commit message, pull request text, branch name, thread title or prompt suggestion
textgen generators, textgen models ID [--refresh] [--test] The configured text generators, and their models
guest redeem CREDENTIAL --name N, guest view --token-file FILE|-, guest send SHARE --token-file FILE|- TEXT Follow and message a thread someone shared with you
config check, config reset-keys, config path Validate the config files, or reset the terminal client's keybindings
completion bash|elvish|fish|powershell|zsh A shell completion script

A few socket methods have no command because they only make sense on a connection a client keeps open: auth.pair and auth.session (a remote client authenticating), client.viewport.set, popup.close, terminal.theme.set, events.unsubscribe, server.activity.report, server.host_power.report, thread.activity.report, thread.activity.remove and thread.host_power.report (state a terminal client or Edith reports while it is connected), pane.copy_motion, pane.copy_search, pane.selection.read, pane.link.resolve and pane.link.activate (copy mode and link clicks, which need the client's screen revision), terminal.attach (attach switches the connection to frames), server.ssh_agent.register (sent by bridge), server.schema (api schema builds the same document locally), ping (sent before every request) and secret.resolve (only the engine itself may read a secret). Use api call for them.

Settings live in ~/.edith/agents/config.json (or EDITH_AGENTS_CONFIG); run edith-agents --default-config to see every key with its default. Extra detection rules for an agent go in ~/.edith/agents/agent-detection/<agent>.json. Running the engine client inside one of its own panes is refused unless allow_nested is true.

Exit codes

Code Meaning
0 Success
1 The engine refused the request; {"error": {"code", "message"}} is on stderr
2 A wrong command line; nothing was sent
3 status server found no running engine
4 The engine is not running; stderr holds {"error": {"code": "server_not_running", "socket": ...}}

A client and server with different protocol versions fail with protocol_mismatch before any request is sent.

Where to go next