Reference
Errors
How arteffect reports failures, and every reason code.
Every CLI command and MCP tool reports a failure the same way: what went wrong, a stable reason an agent can branch on, and next, the ways out, likeliest first.
CLI
Errors go to stderr. A person sees the message, then each way out as a command:
$ arteffect show plan
error: No exhibit with id plan
next:
arteffect ls plan to find exhibits whose id or name matches "plan"
arteffect ls to list every exhibit
With --json, stdout stays empty and stderr gets one JSON line:
{"status":"error","reason":"exhibit_not_found","message":"No exhibit with id plan","next":[{"command":"arteffect ls plan","argv":["arteffect","ls","plan"],"when":"to find exhibits whose id or name matches \"plan\"","tool":{"name":"exhibit_list","arguments":{"query":"plan"}}}]}
Each entry in next has command (as you’d type it), argv (the same, already split), when (when it’s the right way out) and, where an MCP tool does the same, tool ({name, arguments}).
Exit codes
| Code | Meaning |
|---|---|
| 0 | It worked |
| 1 | It ran and failed, including feedback wait running out of time and check finding problems |
| 2 | Misuse: an unknown command or missing or bad arguments |
| 130 | Stopped with Ctrl-C |
arteffect hook ... commands follow their agent’s hook protocol instead (for example, hook wake exits 2 to wake Claude Code).
MCP tools
A failed tool call returns isError: true. Its text is the message followed by the ways out, and its structuredContent is the same {status, reason, message, next} object. A version_conflict also carries conflict: true and latest, the exhibit as it is now.
Reasons
These codes are stable: new ones may be added, but none is renamed or reused.
| Reason | Exit | When | First way out |
|---|---|---|---|
exhibit_not_found |
1 | No exhibit has that id | arteffect ls <id> / exhibit_list |
version_not_found |
1 | The version isn’t one of the exhibit’s | arteffect log <id> / exhibit_history |
thread_not_found |
1 | The exhibit has no comment thread with that id | arteffect feedback list --id <id> --status all / exhibit_feedback_list |
version_conflict |
1 | The exhibit changed since the version you edited | arteffect show <id> / exhibit_read, then apply your edits to the latest |
already_exists |
1 | An exhibit with that id is already there | arteffect ls |
not_in_repo |
1 | The command needs a git repository and isn’t in one | |
timeout |
1 | Waiting ran out, e.g. feedback wait with no new comment |
arteffect feedback wait to keep waiting (with --after, the next step carries the cursor reached) |
unknown_command |
2 | No such command | The closest command, then arteffect --help |
invalid_arguments |
2 | A required argument is missing or a flag’s value is wrong | arteffect --help |
plan_not_found |
1 | No open plan of new artboards has that frame, thread or id | arteffect board show <id> / exhibit_board with action: "show" |
plan_stopped |
1 | A person stopped the plan: stop drafting and end your turn | |
failed |
1 | Anything else; the message says what |