About Claw Orchestrator
Claw Orchestrator is an MCP server published by Enderfga in the Agents category: run Claude Code, Codex, Antigravity, Grok Build and OpenCode behind one runtime, and a run only counts as done when checks it didn't write pass. Cross-engine fan-out, councils, session handoff, spend caps, MCP server, ACP agent. Conduid read 82 tools from its source: autoloop_chat, autoloop_list, autoloop_rebind_role, autoloop_reset_agent, autoloop_resume, autoloop_start and 76 more. It is published to npm as @enderfga/claw-orchestrator and starts with npx.
The repository has 631 stars and 107 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v8.0.3 (29 Nov 2026): workflow_cancel ends a run no process holds: one a shutdown suspended, or one left by a process that ended without stopping it. It follows v8.0.2 (29 Nov 2026), and the 5 most recent releases go back to v7.38.0 (28 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include agent-orchestration, agent-teams, claw, claw-orchestrator, cli and coding-agent.
Install
claude mcp add claw-orchestrator -- npx -y @enderfga/claw-orchestratornpx -y @enderfga/claw-orchestratorgit clone https://github.com/Enderfga/claw-orchestratorTools (82)
autoloop_chatSend a chat message to the Planner of a v2 autoloop run. Returns the Planner's natural-language reply. Blocking: resolves after the Planner finishes its turn.| Parameter | Type | Description |
|---|---|---|
| run_id * | string | Run id from autoloop_start |
| text * | string | User chat input |
autoloop_listList the v2 autoloop runs recorded on this machine, running and finished, newest first.autoloop_rebind_roleChange the engine, model or effort of one role (planner, coder or reviewer) of a running v2 autoloop run, without restarting the run. Applied before the role's next message, never during a turn. On the same engine the role keeps its conversation; on a new engine it starts a new one, which for the Planner needs force=true. Coder and Reviewer can be rebound once spawn_subagents has started them. Kept across a resume.| Parameter | Type | Description |
|---|---|---|
| agent * | string | |
| effort | string | Target effort level |
| engine | string | Target engine (custom and acp are not supported) |
| force | boolean | Required to move the Planner to another engine (starts a new Planner conversation) |
| model | string | Target model; omitted on a new engine means that engine's default |
| run_id * | string |
autoloop_reset_agentReset a single subagent (Coder or Reviewer) on a v2 run. Stops its persistent session; the next directive/review_request will re-prime from the system prompt + ledger artifacts. Use when an agent has drifted (repeated rejects, hallucinated context, token bloat). Planner reset requires force=true because it discards chat history with the user.| Parameter | Type | Description |
|---|---|---|
| agent * | string | |
| eager_restart | boolean | Start a fresh session immediately (default: lazy on next message) |
| force | boolean | Required to reset Planner (discards user chat context) |
| run_id * | string |
autoloop_resumeResume a v2 autoloop run. Ordinary and activity-lease pauses resume with no timeout fields. Live send-timeout pending: omitting timeout fields is a no-op (pending is not cleared); advancing it needs an explicit send_timeout_ms increase and the matching pending_dispatch_id. Cold resume: omission still follows manager reconstruction even when a pending dispatch was stored; pending_dispatch_id is required only when an increase and pending coexist; a cold timeout-only increase without pending remains supported. Optional *CustomEngineRef names resolve against CLAWO_CUSTOM_ENGINE_<REF> on the orchestrator host for cold custom-engine runs. run_id and optional pending/ref strings must be finite ASCII identifiers (see parameter schemas); invalid shapes fail before resume. Returns { ok, state }; a paused or terminated state is not completed project work.| Parameter | Type | Description |
|---|---|---|
| coderCustomEngineRef | string | Secret reference name for the Coder custom engine (CLAWO_CUSTOM_ENGINE_<REF>; 1–128 ASCII letters/digits/underscore/dot/colon/dash). Supply only when the stored run used engine "custom" for that role. |
| pending_dispatch_id | string | Optional exact pending dispatch id (1–128 ASCII letters/digits/underscore/dot/colon/dash). Required by the manager only when increasing the timeout while a pending dispatch exists (live or cold); omit for ordinary resume and for cold timeout-only increase without pending. |
| plannerCustomEngineRef | string | Secret reference name for the Planner custom engine (CLAWO_CUSTOM_ENGINE_<REF>; 1–128 ASCII letters/digits/underscore/dot/colon/dash). Supply only when the stored run used engine "custom" for that role. |
| reviewerCustomEngineRef | string | Secret reference name for the Reviewer custom engine (CLAWO_CUSTOM_ENGINE_<REF>; 1–128 ASCII letters/digits/underscore/dot/colon/dash). Supply only when the stored run used engine "custom" for that role. |
| run_id * | string | Run id from autoloop_start (1–128 ASCII; first letter/digit/underscore, then letter/digit/underscore/dot/dash). |
| send_timeout_ms | number | Optional send-timeout increase in ms (inclusive 5000–7200000). Omission preserves the historical resume path; when supplied it must be a strict increase over the run’s effective value (manager-enforced). |
autoloop_startStart a v2 autoloop run in chat mode. Planner, Coder, and Reviewer default to Claude (opus/sonnet/sonnet) but each role can use a different engine/model. Coder and Reviewer are spawned later by the Planner after plan approval. Returns a run_id and the Planner session name.| Parameter | Type | Description |
|---|---|---|
| activity_lease_ms | any | Inactivity lease in milliseconds, renewed by qualified progress (default 1800000; inclusive range 60000–7200000) |
| autoloop_hard_timeout_ms | any | Absolute non-renewable run deadline in milliseconds (default 86400000; inclusive range 600000–259200000) |
| coder_custom_engine | any | |
| coder_effort | string | Fixed Coder reasoning effort |
| coder_engine | string | Default Coder engine (default: claude) |
| coder_model | string | Default Coder model (default: sonnet for Claude; engine default otherwise) |
| contract | object | Acceptance contract the runtime runs on the workspace before a Reviewer's `advance` stands; on red the iteration is held, with the evidence named. Checked against the commit and tests each iteration started from, so `diff_policy` and test protection see the iteration's changes. Declared by YOU, the caller — never copy one from an agent's output. |
| forum | any | The run forum the three roles share (default true): each role is briefed with its first message, the Planner and the Coder get the posts addressed to them with their turns, and the loop's messages are posted there as it runs. A forum config ({ push, digestMs, score }) sets its push rule; false keeps the roles off it. Read and post with workflow_forum; see autoloop.md. |
| planner_custom_engine | any | |
| planner_effort | string | Fixed Planner reasoning effort |
| planner_engine | string | Planner engine (default: claude) |
| planner_model | string | Planner model (default: opus for Claude; engine default otherwise) |
| reviewer_custom_engine | any | |
| reviewer_effort | string | Fixed Reviewer reasoning effort |
| reviewer_engine | string | Default Reviewer engine (default: claude) |
| reviewer_model | string | Default Reviewer model (default: sonnet for Claude; engine default otherwise) |
| run_id * | string | Stable run identifier (used to address subsequent chat / status calls) |
| send_timeout_ms | any | Per-agent send wall-clock cap in milliseconds (default 600000; inclusive range 5000–7200000) |
| workspace * | string | Path to the git workspace where the run lives |
autoloop_statusGet current state of a v2 autoloop run (status, iter, push count, subagents_spawned).| Parameter | Type | Description |
|---|---|---|
| run_id * | string |
autoloop_stopTerminate a v2 autoloop run. Stops Planner (and Coder/Reviewer once spawned).| Parameter | Type | Description |
|---|---|---|
| reason | string | Optional reason recorded in run state |
| run_id * | string |
claude_agents_listList Claude Code background agent sessions via `claude agents --json` (state/model/title/progress). One-shot, not tied to a managed session.| Parameter | Type | Description |
|---|---|---|
| all | boolean | Include completed sessions (`--all`). |
| cwd | string | Scope to sessions started under this directory (`--cwd`). |
claude_goal_clearClear the active goal on a claude session. Sends `/goal clear`. Requires engine: "claude".| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name. |
| timeout | number | Timeout in ms (default 300000). |
claude_goal_setSet a goal condition on a claude session. Claude Code keeps working across turns until the condition is met, evaluating after each turn via Haiku. Sends `/goal <objective>`. Requires engine: "claude".| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name (must be a claude session). |
| objective * | string | The completion condition. Claude pursues this until satisfied, cleared, or session ends. |
| timeout | number | Timeout in ms for the resulting turn (default 300000). |
claude_goal_statusQuery the active goal on a claude session (objective, elapsed, turns, tokens). Sends bare `/goal` and returns the assistant reply. Requires engine: "claude".| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name. |
| timeout | number | Timeout in ms (default 300000). |
codex_forkBranch a codex-app thread into a new one (`thread/fork`); returns the forked thread id.| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name. |
codex_goal_setSet a long-horizon objective on a codex-app session (thread/goal/set). Codex then works turn after turn on its own until the goal leaves "active". Requires engine: "codex-app". ${GOAL_SHAPE}| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name (must be a codex-app session). |
| objective * | string | The objective text. Codex will pursue this across turns until achieved, paused, or cleared. |
| tokenBudget | number | Optional token budget; the goal stops as "budgetLimited" once it is spent. |
codex_interruptCancel the in-flight turn on a codex-app session (`turn/interrupt`).| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name. |
codex_modelsList models available to a codex-app session (`model/list`), incl. supported reasoning efforts.| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name. |
codex_resumeResume a previously recorded Codex thread by UUID/name, or pick the most recent with last=true. Spawns `codex exec resume` with --json so the output is parsed into structured fields. Independent of session manager state — useful for cross-process continuity.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Working directory to run codex in. |
| last | boolean | Resume the most recent recorded Codex session. |
| message * | string | Prompt to send after resuming. |
| model | string | Override model (e.g. gpt-5.5). |
| session_id | string | Codex thread UUID or name. Mutually exclusive with last. |
| timeout | number | Timeout in ms (default 300000). |
codex_reviewRun a non-interactive Codex code review (`codex exec review --json`). Pick at most one diff scope — uncommitted (working-tree changes), base (vs branch), or commit (vs SHA); passing two is an error. Returns the review text (the final message), the thread id and the review's token usage, which also reaches the run ledger.| Parameter | Type | Description |
|---|---|---|
| base | string | Review changes against this base branch. Mutually exclusive with uncommitted/commit. |
| commit | string | Review changes introduced by this commit SHA. Mutually exclusive with uncommitted/base. |
| cwd | string | Repository to review. Defaults to current cwd. |
| model | string | Override model. |
| prompt | string | Custom review instructions (optional). |
| timeout | number | Timeout in ms (default 600000). |
| title | string | Optional commit title shown in the review summary. |
| uncommitted | boolean | Review staged + unstaged + untracked changes. Mutually exclusive with base/commit. |
codex_rollbackDrop the last N turns from a codex-app thread (`thread/turns/list` + `thread/revert`). Changes the conversation history only, not files.| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name. |
| numTurns * | number | Number of turns to roll back (>=1). |
codex_steerAdd input to the in-flight turn on a codex-app session without restarting it (`turn/steer`). Falls back to a normal turn when idle.| Parameter | Type | Description |
|---|---|---|
| message * | string | Text to steer the turn with. |
| name * | string | Session name. |
codex_thread_listList Codex threads visible to a codex-app session (`thread/list`), with optional filters.| Parameter | Type | Description |
|---|---|---|
| archived | boolean | Include archived threads. |
| cursor | string | Pagination cursor (from a prior nextCursor). |
| cwd | string | Filter to threads under this directory. |
| limit | number | Max threads to return. |
| name * | string | Session name. |
| searchTerm | string | Filter threads by text. |
coding_agents_listList agent definitions from .claude/agents/| Parameter | Type | Description |
|---|---|---|
| cwd | string | Project directory |
coding_session_statusGet detailed status of a coding session: context %, tokens, cost and spend cap, turns, tool calls, retries, start time and last activity; the context breakdown when the engine gives one, and the last turns the engine started itself (engineTurns)| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name |
council_abortAbort a council running in this process, stopping all agent sessions and removing the worktrees it created. A council that is not running here is left alone and the call returns ok: false.| Parameter | Type | Description |
|---|---|---|
| id * | string | Council session ID |
council_acceptAccept and finalize council work. Cleans up all council scaffolding: removes worktrees, deletes council/* branches, removes plan.md and reviews/ directory. Only call after reviewing with council_review.| Parameter | Type | Description |
|---|---|---|
| id * | string | Council session ID |
council_injectSend the user's message to a council that has not finished. It is posted on the run's forum as the user, and every agent's next round prompt carries it under '## User Injection'; agents on the forum that are running now are also handed it mid-turn where their engine allows. Messages add up: a second inject does not replace the first. Works from any process; the result names the post.| Parameter | Type | Description |
|---|---|---|
| id * | string | Council session ID |
| message * | string | Message to inject |
council_rejectReject council work and provide feedback. Rewrites plan.md with rejection feedback and commits it. Does NOT delete any worktrees or branches — the council can be restarted to retry. Use this when the council output is incomplete or broken.| Parameter | Type | Description |
|---|---|---|
| feedback * | string | Detailed feedback explaining why the work is rejected and what needs to be fixed |
| id * | string | Council session ID |
council_reviewReview a completed council session. Returns a structured report of all changed files, branches, worktrees, plan.md status, review files, the reviews the agents posted on the run's forum (forumReviews), and agent summaries. Does not modify any state — purely informational. Use this before deciding to accept or reject.| Parameter | Type | Description |
|---|---|---|
| id * | string | Council session ID |
council_startStart a multi-agent council that collaborates on a task using git worktree isolation, round-based execution, and consensus voting. Each agent can use its own engine and model. The seats share the run's forum: each round report is posted there, and seats ask each other and post reviews on it. Runs in background; poll with council_status.| Parameter | Type | Description |
|---|---|---|
| agentTimeoutMs | number | Per-agent timeout in ms (default 1800000) |
| agents | array | Agent personas. Defaults to 3-agent team (Planner, Generator, Evaluator) if omitted. |
| defaultPermissionMode | string | Default permission mode for council agents (default: bypassPermissions) |
| forum | any | The seats' run forum (default on; false turns it off; or a forum config, see workflow.md). It is off, with a warning, when an agent name cannot be a forum name (letters, digits, '.', '_', '-'; not user or orchestrator). |
| maxBudgetUsd | number | Max API spend per agent (USD) |
| maxRounds | number | Max collaboration rounds (default 15) |
| maxTurnsPerAgent | number | Max tool turns per agent per round (default 50) |
| projectDir * | string | Working directory for the council project |
| task * | string | Task description for the council to work on |
council_statusGet the status of a running council session| Parameter | Type | Description |
|---|---|---|
| id * | string | Council session ID |
engine_capabilitiesWhat each engine can do and how: engine commands (text/rpc), quota, side questions, rewinds, compaction, structured output and plan per send (native, or clawo's fallback built from what every engine has), per-send model, live model and effort switches, images, native goal, mid-turn steering, resume and fork, read-only enforcement. For one engine, every engine, or a live session. Read from the engine wrappers themselves.| Parameter | Type | Description |
|---|---|---|
| engine | string | The engine (default: every engine) |
| name | string | A session: what its live session can do |
engine_quotaRead how much of an engine account's usage quota is left — each usage window with its used or remaining percentage and reset time. For one engine, for the engine of a session, or for every engine clawo can read a quota for. Read it before batch work on a subscription engine.| Parameter | Type | Description |
|---|---|---|
| engine | string | The engine (default: every engine with a reader) |
| name | string | A session: the quota of the account it runs under |
fanout_abortAbort a running fan-out by id (already-started agents finish; synthesis is skipped).| Parameter | Type | Description |
|---|---|---|
| id * | string | Fan-out id from fanout_start. |
fanout_startRun one task across N engine/model agents IN PARALLEL and collect their answers (optional synthesis): the way to have Claude Code, Codex, Antigravity and others review, analyse or compare the same thing at once. Each agent can have its own engine, model (the engine's own id, e.g. gpt-6.2-astra, gemini-4-neon-high), effort, cwd and sandboxMode. No rounds, votes, or worktrees — use council for isolated parallel edits; agents that can write and share a directory take turns (workspaceLock), read-only ones run at once. Runs in background; poll with fanout_status, whose results name each answer's file (outputFile) for reading long reports whole.| Parameter | Type | Description |
|---|---|---|
| agentTimeoutMs | number | Per-agent timeout in ms (default 1800000, 30 min). A turn that outlives it ends with timedOut: true and the text it had written so far. |
| agents * | array | Agent specs: { name, engine?, model?, effort?, prompt?, persona?, cwd?, baseUrl?, permissionMode?, sandboxMode?, customEngine?, acpAgent?, a2aAgent? }. cwd gives an agent its own working directory (absolute, or relative to projectDir); agents that all write code need one each, or they edit the same files. permissionMode uses each engine's own permission handling as in session_start; workers that must not write should set sandboxMode to read-only. sandboxMode uses the same values and per-engine behavior as session_start. |
| forum | any | A forum the agents share while they work: each posts findings (WIN/FAIL/ASK @name) and reads the others' — through the clawo forum command, or, in a read-only session, as blocks in its reply. true, or a forum config ({ push, digestMs, score }); see workflow.md. |
| maxBudgetUsd | number | Per-agent spend cap (USD). |
| maxTurnsPerAgent | number | Max agent loop turns (default 30). |
| projectDir * | string | Working directory the agents run in, unless an agent names its own cwd. |
| synthesisA2aAgent | any | With synthesisEngine "a2a": the A2A agent (a preset id or its URL) the synthesis pass talks to. |
| synthesisAcpAgent | any | With synthesisEngine "acp": the ACP agent preset the synthesis pass starts. |
| synthesisEngine | string | Engine for the synthesis pass (default claude). |
| synthesisModel | string | Model for the synthesis pass. |
| synthesize | boolean | Run a final synthesis pass over the successful results (>=2 needed). |
| task * | string | The shared task sent to every agent, after persona role instructions when supplied; a non-empty per-agent prompt replaces it. |
| workspaceLock | string | serialize (default): agents that can write and share a workspace (one git work tree, or one directory outside git) take turns, so they never edit the same files at once; read-only agents (sandboxMode read-only) and agents each in a directory of their own run in parallel. off: writable agents in one workspace run in parallel too, and may overwrite each other's edits. |
fanout_statusPoll a running or finished fan-out by id; returns per-agent results and any synthesis. Each result names outputFile, the answer written to the run directory (outputs/<agent>.md; synthesisFile for the synthesis), so a long report can be read whole.| Parameter | Type | Description |
|---|---|---|
| id * | string | Fan-out id from fanout_start. |
plugin_detailsShow a plugin's component inventory (commands, hooks, MCP servers, agents, skills) plus the per-session token cost of loading it. Wraps `claude plugin details <name>` (CLI 2.1.139+).| Parameter | Type | Description |
|---|---|---|
| name * | string | Plugin name (e.g. "superpowers" or "superpowers@claude-plugins-official"). |
project_purgeDelete Claude Code project state (transcripts, tasks, file history, config entry) via `claude project purge`. Defaults to dry-run for safety — pass dry_run=false to actually delete. Use all=true to purge every project.| Parameter | Type | Description |
|---|---|---|
| all | boolean | Purge state for every project. Mutually exclusive with path. |
| dry_run | boolean | List what would be deleted without deleting. Defaults to true for safety. |
| path | string | Project path to purge (resolved to absolute). Ignored when all=true. Defaults to the orchestrator process's working directory. |
session_asideAsk a session a side question: answered from its conversation's context without adding to the conversation. On an engine with no side questions of its own, a throwaway read-only session of the same engine and model answers it from the conversation record, and is stopped after.| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name |
| question * | string | The question |
| timeout | number | Timeout in ms (default 300000) |
session_commandList or run a session's engine commands — slash commands, skills, custom commands and engine RPCs (review, init, boost, …). `list` returns each command with whether it starts an agent turn; `run` runs one and returns its reply. A command that starts a turn waits for the message in flight; one that needs a person is refused. Fails on an engine whose sessions take no commands.| Parameter | Type | Description |
|---|---|---|
| action * | string | list the commands, or run one |
| args | string | `run`: its arguments, as one string |
| command | string | `run`: the command, with or without its '/', e.g. review |
| name * | string | Session name |
| timeout | number | `run`: timeout in ms (default 300000) |
session_compactCompact a session to reclaim context window space, after any message in flight. Returns when the compaction is done, with the token counts before and after where the engine reports them. On an engine that cannot compact, a turn summarizes the conversation and the next send starts a fresh conversation seeded with the summary (trigger 'fallback').| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name |
| summary | string | Optional summary for compaction |
session_deliver_inboxDeliver all unread inbox messages to a session in one turn, each in its own envelope; they count as read once the turn has started. Call this when a session finishes a task to process waiting messages. Fails, leaving them unread, when the turn cannot start (spend cap reached).| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name |
session_grepSearch the session's in-memory event history (its 100 most recent events) for a regex pattern, case-insensitive| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (default 50) |
| name * | string | Session name |
| pattern * | string | Regex pattern to search |
session_handoffContinue a session's conversation on another engine (or another model). Starts a new session on the target engine in the same working directory and carries the conversation into it as text, so the new agent picks up where the old one left off. The source session keeps running untouched — stop it yourself if you are done with it. Pass `message` to send the next instruction immediately; otherwise the history travels with whatever you send next via session_send.| Parameter | Type | Description |
|---|---|---|
| a2aAgent | any | |
| acpAgent | any | |
| customEngine | any | |
| engine * | string | Engine for the new session. May be the same engine with a different model. |
| maxChars | number | Upper bound on the carried history, in characters (default 240000, minimum 4000). When the conversation is longer, the opening request and the newest turns are kept and the turns between them are left out. |
| message | string | Send this as the first message now and return the reply (default: wait for session_send) |
| model | string | Model for the new session (default: the engine default) |
| name * | string | The session to hand off from |
| newName | string | Name for the new session (default: `<name>-<engine>`) |
session_inboxRead the messages sent to a session (the newest 200), unread only by default. Reading does not mark them read; a message counts as read once it was handed to the session.| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name |
| unreadOnly | boolean | Only unread messages (default true) |
session_listList the active coding sessions, and the persisted ones that a session_start under the same name resumessession_rewindRewind a session's conversation: drop its last N turns, or go back to a message, after any message in flight. `files: true` also restores the files those turns changed, where the engine can. On codex-app it is thread/revert (as codex_rollback): the conversation only. Fails on an engine that cannot rewind.| Parameter | Type | Description |
|---|---|---|
| files | boolean | Restore the files the dropped turns changed, too |
| messageId | string | The engine's id of the message to go back to (instead of turns) |
| name * | string | Session name |
| turns | number | Turns to drop from the end |
session_sendSend a message to a persistent coding session and get the response| Parameter | Type | Description |
|---|---|---|
| effort | string | Effort for this message. claude, codex, codex-app, agy, grok, cursor and opencode pass it to the engine for this turn (claude sets it in place and puts the session effort back after the turn); an acp agent sets its thought level for the turn (the nearest it offers; not passed to an agent with none); a persistent custom engine prefixes the message with `ultrathink` for high and max; an a2a agent is sent it in clawo's session extension, and one without the extension refuses the message. Other engines ignore it. |
| images | array | Images to attach to this message: absolute paths of PNG, JPEG, GIF or WebP files of at most 20 MB, under the session directory, an addDir entry, or the temp directory. Taken by claude, codex, codex-app, grok, opencode and cursor; another engine refuses the message. |
| message * | string | Message to send |
| model | string | The model for this message only; the session's own model is unchanged. Refused before the turn on an engine that cannot take a model per send (use session_switch_model there). |
| name * | string | Session name |
| plan | boolean | Ask for a plan only, for this turn. claude, codex-app, agy, grok, cursor, opencode and an acp agent with a plan mode run the turn in their plan mode and return to the session mode after it; an a2a agent whose card declares clawo's session extension is sent plan in it. Every other engine gets a plan-only instruction in front of the message, the permission mode unchanged: codex, custom engines, an acp agent with no plan mode, an a2a agent without the extension (on codex and custom engines, start with sandboxMode read-only to enforce it). |
| stream | boolean | Also return the text chunks, in the order they arrived, as result.chunks[] (default false). The turn reaches the caller as it runs regardless of this flag: as MCP progress notifications when the call carries a progressToken, as partial results on a host that takes them. |
| timeout | number | Timeout in ms (default 300000) |
session_send_toSend a cross-session message from one session to another, recorded on the session forum. An idle target gets it as a new turn; a busy Claude Code or codex-app target gets it in the turn in flight; any other target keeps it in its inbox until session_deliver_inbox. The target can answer with a <new-forum-post> block in its reply, which comes back to the sender the same way (a busy sender gets it mid-turn, an idle one in its inbox). Use "*" to send to every other session. Sessions that a council, autoloop or workflow run started are refused: reach them with workflow_forum post on their run.| Parameter | Type | Description |
|---|---|---|
| from * | string | Sender session name |
| message * | string | Message text |
| summary | string | Short preview (5-10 words) |
| to * | string | Target session name, or "*" for broadcast |
session_startStart a persistent coding session on any engine; without `engine`, the configured default (Claude Code out of the box). Engines: claude for the Claude Code CLI, codex for the OpenAI Codex CLI, agy for the Google Antigravity CLI, grok for the xAI Grok Build CLI, opencode for the sst/opencode CLI, acp for any Agent Client Protocol agent (Kimi Code, dsh, OpenCode, Claude Code via an ACP adapter), or custom for any user-configured coding agent CLI.session_stopStop a persistent coding session and remove it from the resume registry, so a later session_start under the same name begins a new conversation| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name |
session_switch_modelSwitch the model for a running session immediately, keeping the conversation. In place where the engine can (live: true); otherwise the session process restarts with --resume so the new model takes effect on the next message (live: false).| Parameter | Type | Description |
|---|---|---|
| model * | string | New model (opus, sonnet, haiku, gpt-5.5, agy-pro, etc.) |
| name * | string | Session name |
session_update_toolsUpdate allowedTools or disallowedTools for a running session. Restarts the session process with --resume to apply the new tool constraints while preserving conversation history. Rejects if the session is currently busy. Without merge:true both lists are replaced, so a list you omit is cleared.| Parameter | Type | Description |
|---|---|---|
| allowedTools | array | New allowedTools list (replaces existing, or merges if merge:true) |
| disallowedTools | array | New disallowedTools list (replaces existing, or merges if merge:true) |
| merge | boolean | Merge with existing lists instead of replacing (default false) |
| name * | string | Session name |
| removeTools | array | Tools to remove from allowedTools/disallowedTools (applied after merge) |
sessions_overviewGet an aggregate overview of all active coding sessions — readiness, busy/paused state, cost, context usage, and last activity for each. Use this for a dashboard view across all sessions. For single-session detail, use coding_session_status instead.team_listList the other active sessions as this session's teammates, with engine, idle/busy/paused state and turn count. Works on every engine; enableAgentTeams is not required. Sessions that a council, autoloop or workflow run started belong to that run and are not listed.| Parameter | Type | Description |
|---|---|---|
| name * | string | Session name |
team_sendSend a message to another active session, as session_send_to does, with the summary "team message from <name>": an idle session gets it as a new turn, a busy Claude Code or codex-app session in the turn in flight, any other waits in its inbox.| Parameter | Type | Description |
|---|---|---|
| message * | string | Message to send |
| name * | string | Session name |
| teammate * | string | Teammate name |
ultraapp_add_fileReference a local example file by absolute path (under $HOME or /tmp; symlinks and dotfiles rejected). Use this to attach reference inputs the interview can extract metadata from. For binary uploads from a browser, use the dashboard.| Parameter | Type | Description |
|---|---|---|
| absolutePath * | string | Absolute path under $HOME or /tmp |
| runId * | string |
ultraapp_answerSubmit an answer to the current interview question. Either pick `value` (one of the option values from the latest question) or pass `freeform` text — both can be used together for "selected X with caveat".| Parameter | Type | Description |
|---|---|---|
| freeform | string | Optional free-form text answer |
| runId * | string | |
| value * | string | Selected option value (empty string for freeform-only) |
ultraapp_build_cancelCancel a queued or in-flight build. A queued build leaves the queue; an in-flight build's workflow run is cancelled, and the build stops at its next cancellation check.| Parameter | Type | Description |
|---|---|---|
| runId * | string |
ultraapp_build_startEnqueue a build for the run. Builds run serially. Watch ultraapp_status for transitions: queued → building → build-complete (or → deploying → done if a router is wired).| Parameter | Type | Description |
|---|---|---|
| runId * | string |
ultraapp_deleteDelete a run completely: stops the container, removes the image, deregisters the slug, and removes the on-disk run dir at ~/.claw-orchestrator/ultraapps/<runId>/. Irreversible.| Parameter | Type | Description |
|---|---|---|
| runId * | string |
ultraapp_feedbackSubmit a done-mode feedback message (after the run reaches `done`). The text is classified by Haiku into cosmetic / spec-delta / structural and routed: cosmetic runs the patcher (Opus diff + validate + auto-revert + version snapshot); spec-delta flips the run back to `interview` with a focused bootstrap; structural posts a "start fresh" suggestion. Before the run reaches `done`, the text is sent to the interview as a free-form answer instead.| Parameter | Type | Description |
|---|---|---|
| runId * | string | |
| text * | string | The user feedback (1+ chars) |
ultraapp_getGet the AppSpec, chat history, and state for one ultraapp run. Pass `runId` from ultraapp_list.| Parameter | Type | Description |
|---|---|---|
| runId * | string |
ultraapp_listList all ultraapp runs with title, mode (interview, queued, building, build-complete, deploying, done, failed, cancelled), and timestamps. Read-only — to start a new run, call ultraapp_new or open the Forge dashboard tab.ultraapp_newStart a new ultraapp run. Spawns the interview Claude Opus session; the first question lands on the SSE stream / next ultraapp_get call. Returns the runId.ultraapp_promote_versionMake a version the one serving the app. A version deployed before is swapped in (the live one is stopped, the target restarted, the router map updated); one never deployed, such as a patched version, is built and deployed first. Requires a router to be wired (see clawo serve).| Parameter | Type | Description |
|---|---|---|
| runId * | string | |
| version * | string | Target version like "v1", "v2" |
ultraapp_spec_editManually edit the AppSpec via a JSON Patch (RFC 6902). Use sparingly — the interview engine produces and updates the spec automatically. Useful to correct a slot before clicking build.| Parameter | Type | Description |
|---|---|---|
| patch * | array | RFC 6902 patch operations |
| runId * | string |
ultraapp_start_containerStart the deployed container for a run (e.g., after `ultraapp_stop_container` or after orchestrator restart with a stopped container). Re-registers the slug on the router.| Parameter | Type | Description |
|---|---|---|
| runId * | string |
ultraapp_statusGet the run state (mode, failure reason if any) for one ultraapp run. Cheap; no chat or spec data.| Parameter | Type | Description |
|---|---|---|
| runId * | string |
ultraapp_stop_containerStop the deployed container and deregister the slug from the router. URL returns 404 until ultraapp_start_container.| Parameter | Type | Description |
|---|---|---|
| runId * | string |
ultraplan_startStart an Ultraplan session: a dedicated Opus planning session that explores your project for up to 30 minutes and produces a detailed implementation plan. Runs in background. The planner is `planner` on the run's forum: it asks the user there (`ASK @user: …`) when something must be decided; ultraplan_status lists those as openAsks, and workflow_forum post answers one.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Project directory to explore |
| forum | any | The run's forum, on by default: the planner posts its questions for the user (ASK @user) and DONE: plan there, and a post to the run reaches a Claude or codex-app planner during its turn. false turns it off; an object is a forum config ({ push, digestMs }); see workflow.md. |
| model | string | Model to use (default: opus) |
| task * | string | What to plan — describe the feature, refactor, or problem |
| timeout | number | Timeout in ms (default: 1800000 = 30 min) |
ultraplan_statusGet the status of an Ultraplan session. Returns the plan text when completed, and on a run with a forum openAsks: the questions the planner has asked there that nobody has answered.| Parameter | Type | Description |
|---|---|---|
| id * | string | Ultraplan ID |
ultrareview_startStart an Ultrareview: 1-20 read-only reviewer agents (default 5) that review your codebase in parallel, each from a different angle (security, performance, logic, types, etc.), merged into one report by a read-only synthesis pass. Runs in background.| Parameter | Type | Description |
|---|---|---|
| agentCount | number | Number of reviewer agents (1-20, default 5) |
| cwd * | string | Project directory to review |
| engines | array | Engines to round-robin reviewers across (default ["claude"]). Every reviewer runs read-only (sandboxMode read-only), so custom, acp and a2a are not accepted. Reviewers fan out in parallel; per-agent failures are isolated. |
| focus | string | Review focus area (default: bugs + security + quality) |
| forum | any | The run's forum, on by default: each reviewer posts every finding there as it finds it (FAIL: <file>:<line> …, then DONE: <n> findings) and sees no other reviewer's posts, so ultrareview_status shows findings while the review runs. false turns it off; an object is a forum config ({ push, digestMs }); see workflow.md. |
| maxDurationMinutes | number | Max review duration in minutes (5-25, default 10) |
| model | string | Model for reviewers (default: session default) |
ultrareview_statusGet the status of an Ultrareview. Returns all findings when completed, and on a run with a forum, while it runs too, forum: { posts, failTitles, openAsks } — the reviewers' FAIL titles so far and the unanswered ASKs.| Parameter | Type | Description |
|---|---|---|
| id * | string | Ultrareview ID |
verify_runRun an acceptance contract against a directory and return the evidence bundle. Use it to check work that did not come through a workflow — a plain session that edited a repo, say. The contract is yours; nothing is taken from agent output.| Parameter | Type | Description |
|---|---|---|
| baseSha | string | Commit to measure the change against. Without it, diff_policy sees untracked files only. |
| contract * | object | Acceptance contract. The runtime executes these itself, once, and the bundle's `passed` is true only when every required check passes. Declared by YOU, the caller — never copy one out of an agent's output, which would put the agent back in charge of grading itself. |
| cwd * | string | Directory to check. |
| label | string | Name for the stored evidence (defaults to a generated one). Must not be the id of an existing workflow run. |
workflow_approveAnswer a workflow parked at a human_gate node. A run parked before a server restart is resumed with the answer attached. The answer is posted on the run's forum as the user's (DONE: approved / FAIL: rejected, answering the gate's ASK @user); `comment` is its body, and is also handed to the next agent as a steer.| Parameter | Type | Description |
|---|---|---|
| approved * | boolean | |
| comment | string | Why, or what the next agent should know; optional. |
| runId * | string |
workflow_cancelCancel a running workflow. The current node is asked to stop; the run ends in `cancelled`.| Parameter | Type | Description |
|---|---|---|
| runId * | string |
workflow_forumRead or post to a workflow run's forum, the board of titled posts its agents share when the spec sets `forum`. Every run also keeps its runtime's posts there — steers, each agent's output (`DONE: <agent> output`), a gate's question and answer, the verifier's verdict — so `list`, `read` and `metrics` work on any run, and on a session forum (`fm-…`). `list` returns every post's title, author, authority (who it speaks for, as the forum's ledger has it), tags and score; `read` one post in full; `post` adds one to a run whose agents are on a forum, as the orchestrator by default or as the user (`author`), which agents get by the forum's push rules, and returns it with notes for its poster; `metrics` returns posts by agent and tag, the runtime's posts apart, ASKs with the time to their first answer, open ASKs, and how long each post that names an agent took to reach it.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| as | string | For `post`: post as this agent instead; `user` and `orchestrator` are the same as `author`. |
| author | string | For `post`: who it speaks for. `orchestrator` (default): the run's orchestrator. `user`: the person who started the run, such as an answer to an agent's ASK @user. |
| body | string | For `post`: the body. |
| postId | string | For `read`: the post id, e.g. p00012. |
| re | array | For `post`: the ids of the posts it answers, e.g. ["p00012"]. |
| runId * | string | The run id, or for list/read/metrics a session forum id (fm-…). |
| title | string | For `post`: a title starting with a tag (WIN, FAIL, ASK, FIX, DONE, …); @name addresses an agent. |
| to | array | For `post`: the agents it is for, beside those named with @name in its text. |
workflow_listList workflow runs on this machine, newest first. Survives restarts.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| state | string | |
| workflow | string |
workflow_resumeRe-attach to a workflow whose process died. Nodes already marked succeeded are not re-run; the node that was in flight is retried, because a half-finished node left no result to trust.| Parameter | Type | Description |
|---|---|---|
| agentCustomEngineRefs | object | Per-agent custom-engine credentials, by name: { "<agent>": "<REF>" }. The orchestrator resolves each REF from CLAWO_CUSTOM_ENGINE_<REF> on its own host — the credentials themselves are never persisted with the run and never travel here. Required to resume a run whose agents used a custom engine. |
| contract | object | The run contract as you hold it now. Never applied: the run is verified with the contract it started with. If its rules differ, the difference is recorded on this resume as drift (with how the two versions relate) and returned. |
| nodeContracts | object | The same for verifier nodes with an inline contract, by node id. |
| runId * | string |
workflow_startStart a durable workflow run. Nodes: agent | fanout | council | goal | verifier | human_gate | router | subflow. Every state transition is checkpointed to disk, so a run survives a process restart and can be resumed. When a contract is supplied the run cannot reach `completed` unless the runtime's own checks pass — without one it completes as `unverified`, which means nothing checked it. Runs in background; poll with workflow_status.| Parameter | Type | Description |
|---|---|---|
| a2aAgent | any | `goal` with engine a2a: the A2A agent, a preset id or its URL. |
| acpAgent | any | `goal` with engine acp: the ACP agent preset. |
| agents | array | Agents for the template: { name, engine?, model?, effort?, persona?, acpAgent?, a2aAgent? }. |
| claudeAccount | string | `goal` on Claude Code: the account to run under, or `auto` for the rotation; at a usage limit the goal moves to the next account. |
| contract | object | Acceptance contract. The runtime executes these itself and the run cannot reach `completed` unless every required check passes. Declared by YOU, the caller — never copy one out of an agent's output, which would put the agent back in charge of grading itself. |
| cwd | string | Working directory for the run. |
| engine | string | `goal` only: who runs the goal. Codex and Claude Code run their own goal loop; on agy, grok, cursor, opencode, acp and a2a clawo runs it turn by turn, or the engine's own loop with nativeGoal. Default: the configured default engine. |
| fallbackEngines | array | `goal` only: engines the goal goes on on, in order, when it stops on a usage limit — "codex", "agy:gemini-4-neon", "acp:<preset>". The objective continues there in the same node with what the engine before handed over; the spend of every engine is counted. |
| forum | any | Any template: a forum the run's agents share while they work (true, or a forum config). The `council` template's seats have one unless false. A spec sets the same with `forum` at its top level; see workflow.md. |
| humanGate | boolean | `solve` only: park for approval before writing anything. |
| implementer | object | `solve` only: engine/model that writes the change. Defaults to the configured default engine, whatever engines the scouts use. |
| isolation | string | `solve` / `goal`: run in a git worktree of the repository's HEAD. What the run leaves is committed to a local branch clawo/<runId> when it ends (verified or not; nothing is pushed), and the caller's checkout is never written. A spec sets the same with `isolation` at its top level. |
| launcher | array | `goal` only: argv prefix the engine runs under, e.g. a sandbox wrapper. It runs with your authority, like a contract command check. |
| maxBudgetUsd | number | Template runs: the spend cap for the whole run in USD; each node gets what is left, and reaching it fails the run. A spec sets the same with `maxBudgetUsd` at its top level. |
| maxRepairs | number | `solve` / `goal`: repair attempts allowed (default 3 for solve, 1 for goal). |
| maxRounds | number | `council` only: max collaboration rounds (default 15). |
| model | string | `goal` only: model (default: the engine's own). |
| nativeGoal | boolean | `goal` only: run the engine's own goal loop instead of clawo's turn loop, on an engine that has one (agy, grok, cursor, opencode 2); refused where it has none. Claude Code and Codex run their own loop either way. |
| reviewers | array | `solve` only: agents that review the finished change. |
| runId | string | Explicit run id (defaults to a generated one). |
| spec | object | WorkflowSpec: { name, nodes[], cwd?, contract?, maxNodeVisits? }. See skills/references/workflow.md for the node shapes. |
| task | string | Task text, when using `template`. |
| template | string | Build a built-in workflow instead of supplying `spec`. `solve` = triage → implement → review → verify → repair-until-green. `goal` = a /goal on one Codex thread or Claude Code session (`task` is the objective) → verify → repair on the same thread. |
| tokenBudget | number | `goal` only: tokens the goal may spend. |
workflow_statusPoll a workflow run. Returns state, per-node status, and the outcome: `verified` (a contract passed), `refuted` (it failed), or `unverified` (nothing checked the work: none was declared, or a pass no longer stands, in which case `outcomeReason` says why).| Parameter | Type | Description |
|---|---|---|
| events | number | Also return the last N events from the run log. |
| runId * | string |
workflow_steerQueue a correction for a running workflow. The text goes in front of the next agent or goal node's prompt — corrections belong before the task, not after it — and a goal that is running gets it in its turn. It is also posted on the run's forum as the user's (`FIX: …`), so agents running on a run with a forum get it at once. Returns steered: false when the run is not live in this process.| Parameter | Type | Description |
|---|---|---|
| runId * | string | |
| text * | string |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 171 source files and found 2 calls to eval or shell execution, in src/kernel/exec.ts:88 and src/kernel/exec.ts:180. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEbin/delegate-mcp.ts:20, src/mcp-servers.ts:187, src/mcp-servers.ts:187
- Starts other programs
- 30 callssrc/autoloop/dispatcher.ts:2117, src/autoloop/dispatcher.ts:2137, src/autoloop/notify.ts:46
- Outbound network calls
- 10 callsbin/cli.ts:1197, bin/delegate-mcp.ts:48, bin/session-send-output.ts:86
- Writes or deletes files
- 151 callssrc/a2a/server.ts:385, src/a2a/server.ts:388, src/a2a/server.ts:429
- Lockfile
- package-lock.json
Pattern matches on the source text of 171 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.4K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README