Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI and MCP Reference

Use artifactize for Verify and Review. Use artifactize-chat for Chat.

Most artifactize subcommands accept --repo PATH, --state-dir PATH, and --json before or after the subcommand:

  • monitor opens the desktop app by default; monitor --json prints its live catalog instead. review only opens the desktop app and rejects --json.
  • mcp uses --repo and --state-dir, takes --read-only and --confine, and always speaks JSON-RPC on stdout with diagnostics on stderr.
  • Current-directory built-in tools (artifactize tools <read|list|glob|grep|section|help|open> and standalone artifactize-tools) always run in the current directory with their own text or JSON output and do not use --repo, --state-dir, or --json.

SELECTOR is one of: positional ARTIFACT or ARTIFACT/EVAL, --eval ID, --evals CSV, --artifacts CSV, --evals-file PATH, --artifacts-file PATH, or --all (--evals-file and --artifacts-file accept a JSON array of strings or one qualified eval ID / Artifact name per line).

CLI command reference

CommandFlags & argumentsOutput & behaviorExit codes
verify SELECTOR--recursive, --force, --jobs N, --fingerprint-jobs N (default: available CPUs), --max-executions N, --wait | --watch, --request-key KEY, --comment TEXT, --reuse-only KINDS, --speculateSubmits or follows a Run; see Runs and Workflows.0 accepted, or Run outcome with --wait/--watch
status [SELECTOR] (default --all)--recursive, --force, --fingerprint-jobs N (default: available CPUs)Reports eval and Artifact states, predicted actions (execute, reuse, wait, blocked; see Runs and Workflows), and changed inputs when no reusable result matches (see Fingerprints and Reuse).0 satisfied, 1 obligations remain, 2 command/state error
config check—Validates .artifactize/ definitions statically without running project code.0 valid, 2 invalid
config graph [ARTIFACT]--impactPrints Artifacts, evals, cycle components, and input-to-consumer relations (--impact adds downstream consumers).0
config expand [ARTIFACT]—Prints what each Artifact’s binding (or one Artifact’s) expands to, macros and toolsets filled in, after the file and line it is bound at.0, 2 invalid
config symbols—Lists the global bindings: Artifacts, toolsets and profiles, and the macros’ signatures, each with where it is declared.0, 2 invalid
config migrate--repo PATHConverts older definitions into the .artf language.0
plugin add PATH--repo PATHInstalls a viewer plugin from a folder.0
plugin remove NAMESPACE--repo PATHRemoves a project-installed plugin by its namespace.0
plugin list--repo PATHLists the built-in and project-installed plugins.0
config rename OLD NEW—Renames Artifact OLD to NEW wherever the code names it: its binding, parts, slots and deps.0
run list--repo-only | --all, --limit N (50), --offset N (0)Lists saved Runs newest first for the current/--repo repository (--repo-only, the default) or across all repositories in the state (--all), with status, counts, and comment.0
run show RUN_ID--wait [--timeout-ms MS]Prints full saved Run JSON (origin, evidence, requests, usage, validation). --wait waits for an open Run (default 10-minute observation timeout; --timeout-ms requires --wait).0 (or Run outcome with --wait; 3 when --wait times out, leaving the Run running)
run watch RUN_ID—Streams JSON-line progress (update, eval_result, outcome) until settlement.Run outcome
run cancel RUN_ID—Records and acknowledges a cancellation request for an open Run (RUNNING or WAITING_HUMAN), keeping results already saved.0
request list--run RUN_IDLists saved requests with status and current claimant (in text output; JSON includes claim and summary).0
request show ID—Prints the saved request JSON (top-level request fields such as evalId, status, and result, plus claim, execution, definition, provenance, and summary).0
request logs ID--stream stdout|stderr|both (default both), [--tail N | --start N [--end N] | --end N] (default --tail 50), --search TEXTReads bounded runtime stdout/stderr capture (complete, partial, saved_audit, missing, or not_runtime for Agent/Human requests; --tail and --start/--end range queries are mutually exclusive).0
request claim ID--reviewer NAMEClaims a waiting Human request (default reviewer: $USER, then $LOGNAME on Unix or %USERNAME% on Windows).0
request unclaim ID--reviewer NAMEReleases a Human claim without submitting a verdict.0
request tool ID TOOL--reviewer NAMERuns a declared Human launch or output tool on a claimed request. A viewer tool instead tells you to open the Artifact in the desktop app (or returns a viewer descriptor with --json).0 (2 tool error)
request submit ID--verdict GREEN|RED, [--issue TEXT ... | --issues-file PATH], --reviewer NAMESettles the Human request: GREEN with no issues, or RED with at least one (--issue once for each, or a JSON array of strings in --issues-file).0 (also for RED)
session show REF--summaryPrints saved Agent review transcript (or token/turn/tool-call summary).0
session send REF MSG—Continues a saved Agent conversation with a follow-up question (verdict unchanged).0
tools check [EVAL]static: [EVAL | --eval ID] [--tool NAME] or [--artifact ID] [--audience agent|human] [--tool NAME]; execute: --execute --tool NAME (EVAL | --eval ID | --artifact ID --audience agent|human) [--args JSON] (--args is for Agent tools only)Validates tool declarations and executables statically (or runs one tool with --execute).0 ready/ok, 1 check/tool failed
tools <subcommand>read, list, glob, grep, section, help, openRuns a current-directory built-in tool (also available as artifactize-tools).0 ok, 1 tool error, 2 usage
cache list--historyLists latest (or all) cached reuse-key records.0
cache show KEY--historyPrints cached record JSON for 64-hex KEY.0 (4 missing)
cache rm KEY—Deletes local cache records for KEY.0
login / logoutopenai|anthropic|gemini|codex|claude-agentSaves/removes API keys (stdin) or signs in/out of Codex or Claude Code.0
providerlist, add NAME (--alias P | --api openai-responses|openai-chat|anthropic|gemini --url URL [--key]), remove NAMEManages custom providers that Agent evals and direct Chat models can use.0
models PROVIDERbuilt-in or custom provider nameLists available model IDs and display names from the provider.0
remotelogin URL [--share summary|full], status, push [--dry-run], logoutConfigures and syncs with a team review store (summary shares top-level executionPaths and omits the full execution object including execution.provenance.repoPath and execution.provenance.executionPaths; full includes execution).0 (1 not signed in on status)
serverrun [--listen IP:PORT], token add NAME --scopes SCOPES, token list, token revoke NAME [--purge], rm KEYRuns and administers the team review store.0
doctor--repo PATHChecks Verify readiness: state directory, schema, limits, credentials, remote store, desktop app, and latest release.0 ready, 1 hard error
limits--signoff-idle-grace SECONDSShows or sets limits in $STATE/limits.json (shared by Runs using that state directory).0
prune[--older-than DURATION], [--dry-run]Removes scratch output folders of finished GREEN/RED/ERROR/INCOMPLETE Runs that have no unsettled requests (omitting --older-than prunes all eligible finished Runs regardless of age; YELLOW and open Runs are skipped) and trims Agent sessions.0
monitor [PATH | --repo PATH | --all]--jsonOpens the desktop app in Verify. PATH or --repo PATH selects an initial branch or project folder; --all (the default) starts without a selection. With --json, prints a snapshot of the live catalog instead of opening the app: branches with their Runs, selected (or null), and unreadable.0
review [REQUEST_ID]--repo PATH | --all, --reviewer NAMEOpens Review on the newest waiting Human review or on REQUEST_ID directly, even outside the filter.0

run show and run_show report the source of a new Run in origin: {"kind":"cli"} or {"kind":"mcp"}. A Run submitted through the MCP plugin in Chat also has MCP origin.

State, cache, and limits.json

Verify state holds local Runs, cache entries, saved Agent review conversations, and team review store settings. It lives outside any repository: --state-dir PATH, else $ARTIFACTIZE_STATE_HOME, else $XDG_STATE_HOME/artifactize, else %LOCALAPPDATA%\artifactize on Windows or ~/.local/state/artifactize on Linux and macOS (the Microsoft Store package keeps an isolated package-private state). Chat conversations and saved provider credentials are kept separately from Verify state. Claude Code keeps its own sign-in.

Optional $STATE/limits.json configures bounds across all Runs sharing that state directory:

{
  "backends": { "codex": 4, "openai": 16 },
  "signoffIdleGraceSeconds": 120,
  "agentSessions": { "enabled": true }
}
SettingDefaultPurpose
backends.<name>unlimitedMax concurrent in-flight Agent reviews per backend across Runs sharing that state directory.
signoffIdleGraceSeconds120Idle grace in seconds before a Run with only unclaimed sign-offs ends YELLOW (see Sign-offs and the end of a Run).
agentSessions.enabledtrueSaves Agent review transcripts under $STATE/agent-sessions/.
agentSessions.maxBytes / targetBytes1073741824 / 805306368Size ceiling and trim target (in bytes) for automatic cleanup of $STATE/agent-sessions/.

MCP stdio server (artifactize mcp)

artifactize mcp is the only MCP entry point for Verify, including from Chat. It provides verification, inspection, and plugin tools over stdio. Each call resolves its project in this order:

  1. The call’s optional project argument, an absolute project folder.
  2. The server’s --repo PATH. Use it when registering a project-specific server that starts outside the project.
  3. The host’s first MCP root, which must be a local folder.
  4. If the host supplies no roots, the directory the server started in, except when it starts inside the plugin folder.

If the server cannot resolve a project, pass project on every call. For example, Codex starts the installed plugin’s server in the plugin folder without --repo. A Run keeps the project it started with even if the host later changes its roots.

Register the MCP server

The plugin registers the server automatically in Claude Code and Codex. To register it manually from your project directory:

claude mcp add --transport stdio --scope project artifactize -- artifactize mcp   # Claude Code
codex mcp add artifactize -- artifactize mcp                                      # Codex CLI

Limit what an agent can do

Two options narrow the server; both are off unless given:

  • --read-only registers only the inspection tools, the ones marked read-only. verify, run_cancel, status, plugin_add and plugin_remove are neither listed nor accepted, so no Run starts and no command the project declares runs.
  • --confine accepts a project argument only when it is the --repo folder or a folder inside it, after resolving links, and refuses any other with a message naming that folder. It needs --repo.

For example, a server that lets an agent read this project’s Runs and nothing else:

claude mcp add --transport stdio --scope project artifactize -- artifactize mcp --repo "$PWD" --read-only --confine

Verification and inspection tools

Use verify, run_show, and run_cancel to submit, read, and cancel Runs. The remaining tools inspect project and review state or manage project plugins. Every tool accepts project; inspection tools, including run_show, also accept an optional cursor for pagination:

ToolArgumentsPurpose
verifyscope ({"kind":"all"}, {"kind":"artifact","artifactId":"..."}, {"kind":"eval","evalId":"..."}, {"kind":"artifacts","artifactIds":[...]}, {"kind":"evals","evalIds":[...]}), optional request_key, comment, jobs, speculateSubmits a Run and returns its Run ID immediately, in a result or a Task.
run_showrun, optional seconds (0–40, default 0)Reads saved Run JSON, including requests and evidence. A positive seconds waits for a change or settlement, up to that bound, before reading.
run_cancelrunRequests cancellation of an open Run.
statusoptional scope (Selection object, default {"kind":"all"})Predicts current states and execute/reuse/wait/blocked actions.
config_checknoneStatic validation of .artifactize/ definitions.
config_expandoptional artifactWhat each Artifact’s binding (or one Artifact’s) expands to, with where it is bound, as config expand --json prints it.
config_symbolsnoneThe global bindings and macro signatures, as config symbols --json prints them.
plugin_listnoneLists the built-in and project-installed plugins in the paged CLI JSON format.
plugin_addpath (absolute folder)Installs a plugin. Returns its namespace and details with action: "added".
plugin_removenamespaceRemoves a project-installed plugin. Returns its namespace with action: "removed".
config_graphoptional scope (Selection object), impact (boolean, default false)Static graph of Artifacts, evals, cycles, and relations (impact: true includes downstream consumers).
request_logsid, optional stream ("stdout"|"stderr"|"both"), tail, start, end, searchReads bounded runtime output lines for request id.
run_listoptional limit (default 20), offset (default 0)Lists saved Runs for this project, newest first.
request_listoptional runLists saved requests for this project (or for run).
request_showidFull saved request JSON.
session_showreference, optional summary (boolean, default false)Reads a saved Agent review conversation (or summary).
tools_checkoptional eval, or artifact, audience ("agent"|"human"), toolStatic validation of declared review tools.
doctornoneChecks Verify readiness: local state, credentials, remote store, desktop app, and latest release.
modelsproviderLists model IDs for a built-in or custom provider.
remote_statusnoneChecks remote review store configuration and reachability.
cache_showkey, optional history (boolean, default false)Reads cached record(s) for a 64-hex reuse key.

To verify a project, call verify with {"scope":{"kind":"all"}}. Keep the returned run ID: submission is not a verdict, and the Run continues if the host disconnects. Retrying with the same request_key and arguments in the same project returns the same Run; the same key with different arguments is refused. Read the Run with run_show (for example {"run":"RUN_ID","seconds":30} while machine work can still run). Use request_show for a saved request’s result or request_logs for runtime output. Only run_cancel cancels the Run.

Hosts that declare the MCP Tasks extension (2026-07-28) get a Task from verify, with the Run ID in _meta["dev.artifactize/run"]. The Task becomes completed when the Run settles, whether the outcome is GREEN, RED, YELLOW, INCOMPLETE, or ERROR. The completed result carries run and outcome (explicit Run cancellation reports CANCELLED). failed means a JSON-RPC error; cancelled means the Task itself was cancelled. Cancelling the Task does not cancel the Run.

MCP never prompts for a Human sign-off; the Task never becomes input_required. On YELLOW, stop waiting and direct a person to Review. A completed Task previews waiting sign-offs in waiting_signoffs. To see all of them, or to check without a Task, find the DEFERRED or WAITING_HUMAN requests with run_show or request_list.

verify results carry the Run as a link, artifactize:run/RUN_ID. Any host of the same project reads it with resources/read, which returns the run_show JSON at once, without waiting; a Run too large for one response is read in pages with run_show. An unknown Run or any other URI is an invalid-params error.

Every tool declares a title and an outputSchema for its structured result; a result with isError carries {"code":...,"message":...} instead. The server hides managed credentials in results, errors, and logs. Inspection tools return CLI JSON in paged envelopes ({"encoding":"json","entries":[{"offset":0,"text":"..."}],"next_cursor":...}); concatenate entries[].text and pass next_cursor as cursor on the same call until next_cursor is null. See Hey Arti for declaration validation with config_check and Focus then sweep for how an agent combines verify, run_show, request_show, and request_logs across a verification loop.

MCP deliberately omits credential login/logout, Human claim/submit/unclaim, prune, cache rm, remote push, and session send so human authority and destructive maintenance stay with the person.

Chat CLI

artifactize-chat manages workspace conversations and ACP agents through artifactize-chat-daemon. Install both on the Chat host. For setup and examples, see Chat from the terminal. Options shared by all commands: --host ssh://[user@]host[:port] for remote Chat, --state-dir PATH for a separate local Chat state directory (not with --host), and --json for structured output and follow events as JSON lines.

For run and send, you can select an ACP coding agent with --agent AGENT or a direct model with --backend BACKEND --model MODEL [--effort EFFORT]. Without a target, run uses the workspace’s default if one is available, and send keeps the session’s current target.

artifactize-chat commandPurpose
ls [--worktree PATH] [--query TEXT]Lists sessions, optionally filtered by workspace or search.
run WORKSPACE MESSAGE [--detach]Creates a session and sends its first message. Prints the session ID and follows the turn unless detached.
attach SESSIONReplays the conversation and follows new activity until you detach.
send SESSION MESSAGESends a message; use attach to follow its turn.
logs SESSIONReads the saved conversation without following.
projectsLists the discovered projects and worktrees.
move SESSION WORKSPACEUses a different workspace for future turns, keeping the conversation.
remove SESSIONDeletes an idle session and its conversation.
stop SESSIONStops its turn and cancels its pending permission requests.
permission SESSION REQUEST OPTIONAnswers a pending permission request with one of the offered option IDs.
chat-agent list / chat-agent probe AGENT [--refresh]Lists available agent definitions or checks an agent’s availability and configuration.
chat-agent add AGENT COMMAND [--name NAME] [--arg ARG]... [--env NAME=VALUE]... / chat-agent remove AGENTRegisters or removes a custom ACP launcher.
chat-agent registry / chat-agent install DESCRIPTORLists registry entries or installs the exact agent described by a reviewed JSON descriptor.
chat-agent trust list / chat-agent trust check AGENT WORKSPACELists Workspace Trust records or checks whether a launcher is trusted in that workspace.
chat-agent trust grant WORKSPACE REQUIREMENT / chat-agent trust revoke AGENT SCOPEGrants trust using the reviewed requirement JSON file or revokes trust using a scope JSON file.
login antigravity / logout antigravitySigns in to or out of Antigravity on the Chat host.
models AGENTChecks an ACP agent’s available models and configuration options.
doctorShows Chat’s agent catalog and Workspace Trust records, without starting an agent.
plugins [--configure FILE]Lists configured Chat plugins or replaces the list from a JSON array. See Connect Chat to Verify.