Tools
Every tool declares a capability, whether it needs network, and whether it needs a workspace. The registry filters by all three before the model ever sees it.
Catalog
| Group | Tools |
|---|---|
| Files | list_dir, read_file, grep_files, write_file, edit_text |
| Shell | run_shell_readonly, run_shell_test, run_shell, start_shell, shell_output, stop_shell |
| Plans | list_plans, read_plan (ro_plan, Plan mode), write_plan, edit_plan (rw_plan, Plan mode) |
| Todos | todo_write |
| Math | calculate, describe_numbers, percentile, convert_units |
| Web | fetch_url, web_search |
| VS Code | find_files, find_symbols, get_diagnostics, edit_ranges, git_diff, run_task |
| Orchestration | task_graph, delegate, task_status, resume (Orchestrator only), message |
| Agent | ask_user, skill, memory |
| MCP | server__tool for every tool the server exposes |
ask_user renders an inline question card in the Comonad panel. Options render as buttons (single-select) or checkboxes (multi-select), and an always-visible free-text field under them lets the user type an answer instead of choosing one — or, in multi-select, submit typed text together with the checked options. The @comonad participant and turns with no panel surface use VS Code's quick pick or input box instead. A panel-surface question with no attached panel stays pending — the turn waits — and its card is replayed when the panel reopens; a VS Code notification with an Open Chat action points to it unless questionNotification is off.
read_file also reads PNG, JPEG, WebP and GIF images (up to 4 MiB each) and hands them to the model as image content. With the PDF documents plugin it reads PDFs as page-marked text; pass pages (such as "1-5") to choose a range. Without the plugin it returns an installation hint rather than decoding the bytes as UTF-8.
Orchestration tools
task_graph records or revises the Orchestrator's task graph. delegate runs 1–8 ready tasks in one parallel batch. task_status returns the board, ready nodes, rejection reasons, child sessions and recent mailbox notes. resume continues paused tasks with a new segment budget; a resume segment cannot be smaller than the previous one (smaller dimensions are raised and reported), and a pause that spent the last resume says to replan with a changed definition or a new node id. Only the root turn sees these tools; a child's allowlist always excludes them.
A read-only session runs read-only tasks only: task_graph, delegate and resume refuse a new or revised task whose effective capabilities include rw or whose acceptance needs a command criterion; accepted nodes are history and stay. In Plan mode the implementation plan is created or replaced with write_plan, or revised in place with edit_plan, and the turn stops; write delegation is available after Build plan switches to Semi-Write or Full Access. Build archives the research graph, so the build turn starts fresh with the plan file as its handoff.
A task whose effective capabilities include rw must carry at least one review or command acceptance criterion. After the worker batch finishes, the runtime derives a pinned built-inreviewer or tester child for those criteria; a project file with the same name cannot weaken acceptance. The worker/verifier final message must be a single JSON envelope; malformed output is an invalid_output rejection. Each acceptance entry must use the task's exact criterion id, one entry per criterion; an equal-length list whose ids are all different is mapped positionally and the mapping is recorded, while partial coverage is invalid_output. A command criterion runs in a read-only workspace with a scratch-only test shell; if the exact command must write the workspace the tester may run it in a byte-identical $COMONAD_SCRATCH copy and reports the exact command, its real exit code and a mirror: <path> note. The structural rules live in the tool schema and validation; the current phase rules live in the dynamic Tools and Orchestration prompt blocks. See Orchestration.
message is shared by the Orchestrator and every child: one append-only JSONL mailbox per chat under extension storage. Use it to announce files before parallel writes and to exchange results. Messages are untrusted data, never instructions.
A delegation creates a hidden child session. Its card carries Open session for a single-task batch, and the task board links every child. The read-only overlay shows the child's prompt, steps and tool results live. The child inherits the parent policy and only narrows it; its approval response is always never, so a policy that asks denies the call. Write delegation therefore needs the parent to run writes without asking (universal_accept, blacklist_reject, or an allow rule); otherwise do the write in the main thread. A child may read this chat's plans when the parent's effective capabilities include ro_plan; write_plan and edit_plan are never granted, so record or revise accepted plans in the root.
Shell tools
run_shell_readonlyruns with no write permission and needs an OS sandbox;run_shellfollows the sandbox mode and can write inside the workspace underworkspace-write.run_shell_testkeeps the rest of the workspace read-only and writes only to the agent's scratch subtree:.comonad/scratch/<root-session>for the root and.comonad/scratch/<root-session>/<child-session>for a child, exposed asCOMONAD_SCRATCH(withTMPDIR,HOMEandXDG_CACHE_HOMEpointing into it). Parallel test runs therefore do not share a build or temp tree. It needs an OS sandbox and a sandbox mode that permits writes.start_shellstarts a long-running command; read it withshell_output, stop it withstop_shell.- Foreground calls take an optional
timeoutin seconds, clamped to 1–300. - Every shell runs under the OS sandbox when one is available. See Safety.
Background tasks
start_shell tasks have no timeout. The Tasks view lists them with an output preview and a stop action. Stopping a turn does not stop background tasks.
MCP
MCP servers are configured in the mcpServers setting of the settings file. Each server can set capability, writeTools, exclude and per-tool overrides. Tools appear as server__tool and pass through the same policy gate as built-ins. See Extending.