| Flag | Description |
|---|---|
--config <path> |
Path to esperta-code.yml (default: ~/.esperta-code/esperta-code.yml) |
--json |
JSON output for E2E commands |
--out <path> |
Write E2E JSON output to a file |
--help, -h |
Show help |
esperta-code json
esperta-code thread start --project <name> --instruction <text>
esperta-code thread continue <thread-id> --instruction <text>
esperta-code thread create --project <name> --summary <text>
esperta-code thread list
esperta-code thread show <thread-id>
esperta-code job list
esperta-code job show <job-id>
esperta-code job logs <job-id>
esperta-code job retry <job-id>
esperta-code job cancel <job-id>
esperta-code job approve <job-id>
esperta-code worktree list
esperta-code worktree inspect <id>
esperta-code worktree prune
esperta-code event attach <thread-id> --type <type> --source <kind> --source-id <id>esperta-code json processes one request from stdin and prints one JSON response to stdout. This is the machine-facing interface for local agent clients.
Request shape:
{
"version": "v1",
"id": "req-123",
"client": {
"name": "esperta-base",
"cwd": "~/src/sa"
},
"action": "thread.start",
"input": {}
}Response shape:
{
"version": "v1",
"id": "req-123",
"action": "thread.start",
"ok": true,
"result": {}
}Supported actions:
| Action | Purpose |
|---|---|
capabilities |
Discover supported actions |
project.list |
List configured projects |
thread.start |
Create a thread and first job |
thread.continue |
Append a job to an existing thread |
thread.list, thread.get |
Inspect threads |
job.list, job.get |
Inspect jobs |
job.retry, job.cancel, job.approve |
Control job lifecycle |
worktree.list, worktree.get |
Inspect worktrees |
thread.event.attach |
Attach an external event |
Example:
echo '{"version":"v1","action":"capabilities"}' | esperta-code jsonSee Local Agents for the full contract and examples.
For thread start and thread continue, --instruction is required. --summary is optional; if omitted, Esperta Code derives one from the instruction.
esperta-code init
esperta-code start
esperta-code stop
esperta-code status
esperta-code config validate
esperta-code config show
esperta-code project list
esperta-code project add
esperta-code project remove <name>esperta-code run list
esperta-code run show <run-id>
esperta-code run retry <work-item-identifier>
esperta-code agent listThese commands are primarily for operators and for agents running inside an execution worktree.
esperta-code context history <project>
esperta-code context show <work-item-identifier>
esperta-code context read
esperta-code context write <message>esperta-code auth linear
esperta-code auth linear --client-id <id> --client-secret <secret>
esperta-code auth linear --callback-url https://my-host.com/auth/callback| Flag | Description |
|---|---|
--client-id <id> |
Linear OAuth app client ID |
--client-secret <secret> |
Linear OAuth app client secret |
--port <port> |
Callback server port, default 3421 |
--callback-url <url> |
Public callback URL for the OAuth redirect |
esperta-code e2e doctor
esperta-code e2e smoke
esperta-code e2e smoke --json --out /tmp/report.jsonHelper scripts:
bun run e2e:doctor
bun run e2e:smoke
bun run e2e:real