Skip to main content
Glama

CoAgent8 - Cooperating coding agents

CI npm next Status License

Node.js Platforms MCP Backends

TypeScript Coverage gate Conventional Commits

Documentation

CoAgent8 lets the coding agent you work with ask another one. It is an MCP server that puts Codex, Claude Code and Antigravity (agy, which runs Gemini and other models) behind the same seven tools: your agent requests a second opinion or an independent review of your Git changes, or delegates a code change, and gets the other agent's answer back in the chat. From 0.8.0 every agent runs on your computer with your account's rights, without a sandbox, once you agree; a consultation or review leaves the workspace as it found it, and a delegated change edits it. Every agent runs on your own installed and signed-in CLI.

Contents: Status | Quick start | Features | Tools | Skills | VS Code extension | Configuration | Known limitations | Reporting problems | Contributing

Status

0.8.0 is the current release (a preview for testers, following 0.6.0 and 0.7.0); 0.9.0 will be the first release candidate (rc.1 on 1.0.x). Every version below 1.0.0 is a preview, with the same version number on GitHub, npm and VS Code. On npm each release appears first as coagent8@next; latest follows once the version has proved stable.

0.8.0 brings full delegation: a coordinating agent hands complete tasks to cooperating agents that write, check and review (delegate by default, and review and consult with mode: "async", run as async tasks for up to 4 hours, 60 minutes by default, and wake Claude Code when they finish). Several delegated workers can run at once under one root budget in disjoint scopes of a work tree or in separate Git worktrees, with an optional server-owned loop that runs your checks and an independent review and returns failures to the worker, alongside the coagent8-coordinate skill. Every role runs on your computer through one runner after a one-time consent (no per-backend sandbox profiles), and turns receive disposable CoAgent8 paths so nothing in a turn writes your configuration. Reviews inspect large changes in parts, run your checks before the turn, and always pass the diff as a file; a stable runtime launcher means future updates need one restart and no CLI chat configuration update (installing 0.8.0 over 0.7.x migrates registrations once and may still ask Restart > Update > Restart one last time). These sit on top of consultations, model selection by price with approval for expensive models, continuable sessions with history, diagnostics, skills and the VS Code extension; see the roadmap for 0.9.0.

Related MCP server: codex-fusion-mcp

Quick start

You need Node.js 24 or later and at least one of these CLIs, installed and signed in:

CLI

Notes

Codex CLI

Also found inside the OpenAI VS Code extension

Claude Code

2.1.289 or later; subscription login or API key

Antigravity CLI (agy)

Also installed by the Google Antigravity VS Code extension (~/.gemini/bin)

VS Code

Install CoAgent8 (okidev.coagent8-mcp) from the VS Code Marketplace, or download coagent8-mcp-0.8.0.vsix from the GitHub release and run Extensions: Install from VSIX.... Then:

  1. The first start shows one notice with the CLIs it found, or an offer to set them up. CoAgent8: Manage Coding CLIs installs or signs in a CLI at any time.

  2. CoAgent8 is registered in your user MCP servers (mcp.json) and appears in MCP: List Servers; start it there, accept VS Code's trust prompt, and enable its tools in your chat.

  3. Ask your agent, for example: "Use CoAgent8 doctor with scope health", "Ask CoAgent8 for a second opinion on this plan" or "Have CoAgent8 review my uncommitted changes".

To use CoAgent8 also inside the CLIs' own chats, choose Add CoAgent8 to All CLI Chats (or Add CoAgent8 to Its Chat in one CLI's menu) in CoAgent8: Manage Coding CLIs.

Codex, Claude Code and Antigravity CLIs

One command registers CoAgent8 in the chats of the CLIs you choose and installs its skills:

npx -y coagent8@next setup --clients=codex,claude,agy

Setup installs the server to ~/.coagent8/runtime/ behind a stable launcher (~/.coagent8/runtime/current/index.cjs), so registrations do not depend on the npx cache or change on future updates, and keeps a private backup of every file it changes. status checks the CLIs. repair checks the registrations and updates the ones setup wrote and you did not change; an entry you edited is kept. runtime status|rollback|unpin|prune inspects, pins, or prunes runtime copies. cleanup shows what it would remove; run it again with the --apply=<token> it prints to remove the registrations and skills setup added. npm runs no script on uninstall, so run cleanup before npm uninstall -g coagent8.

Any other MCP host

Add a stdio server to the host's MCP configuration:

{
  "mcpServers": {
    "coagent8": {
      "command": "npx",
      "args": ["-y", "coagent8@next", "mcp"]
    }
  }
}

On Windows, a host that starts commands without a shell may need "command": "cmd" and "args": ["/c", "npx", "-y", "coagent8@next", "mcp"]. coagent8 mcp starts the server; run in a terminal without arguments, coagent8 shows help. Older entries without mcp keep working, because coagent8 and coagent8-mcp still start the server when a host pipes their standard input. coagent8@0.8.0 pins a version. Plain coagent8 (npm latest) is not a supported channel before 1.0.0.

A host with its own tool deadline can stop a long review early. For Codex, set tool_timeout_sec = 1800 in [mcp_servers.coagent8] (setup does this). Continue supports stdio MCP in Agent mode through the same definition, following Continue's MCP guide.

Features

  • One MCP server, three coding CLIs. Codex, Claude Code and Antigravity behind the same seven tools, for any stdio MCP host.

  • Your consent, your computer. From 0.8.0 agents run on the host with commands, file edits and the network, only after you agree once; containers or microVMs are planned (#215). CoAgent8 still verifies each CLI's tools and refuses a turn it cannot confirm.

  • Second opinion and independent review. consult answers a question; review checks Git changes and derives a READY or BLOCKED verdict itself instead of trusting the model's word.

  • You decide on expensive models. A model priced high or unknown runs only after you approve it in a form; the calling agent cannot approve it for you. A call can also set a strict price limit.

  • Sessions you can continue. A follow-up with the session handle keeps the other agent's context; history is paged and scoped to the workspace.

  • Quiet, bounded processes. No shell, no console windows, only processes CoAgent8 started, bounded buffers and one deadline for the whole call.

  • Self-diagnosing. doctor lists models, efforts and prices and checks installation, sign-in and quota; issue prepares a filled-in, sanitized bug report for you to review.

  • Skills and editor integration. One skill per function for each CLI's chat; the VS Code extension manages CLIs, skills and model approvals.

Backends and execution

From 0.8.0 every turn runs on your computer without a sandbox, after your one-time consent ("hostExecution": "accepted" in the configuration, or the form).

Backend

Execution

Codex

app-server with sandbox_mode="danger-full-access" and approval_policy="never"; the thread's access is verified, every inherited MCP server is disabled and verified per thread, server approval requests are rejected, interrupt via turn/interrupt

Claude Code (2.1.289+)

-p --restricted --tools Read,Glob,Grep,Edit,Write,Bash,WebFetch,WebSearch --permission-mode dontAsk, hooks disabled, strict empty MCP configuration; startup tools, MCP and permission mode verified before any content; native session resume and control interrupt. Background tasks are disabled for turns (CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1, with BASH_DEFAULT_TIMEOUT_MS=600000 and BASH_MAX_TIMEOUT_MS bounded by the remaining turn time, at least 10 minutes), and any wait after the answer is bounded by the turn deadline before stopping the owned process tree.

Antigravity (agy)

Headless --dangerously-skip-permissions --output-format stream-json, prompt on stdin, explicit model, native --conversation resume; on Windows runs with CoAgent8's own agy profile and starts only when it has no MCP servers or plugins, elsewhere inherits yours (see known limitations); recursion into CoAgent8 refused

Routing

  • backend: auto (default), codex, claude, agy or smart_quota. A model name alone also chooses its backend.

  • config.json can fix a default backend or select the smart_quota strategy, limited by allowedBackends.

  • auto uses the configured default backend when it is eligible. Otherwise it skips backends with an observed rate limit, prefers a CLI other than the one calling, and ranks the rest by measured quota headroom. A measurement older than 15 minutes counts as unmeasured; doctor with scope: "health" refreshes it.

  • A failed turn is never silently retried on another backend.

Models, prices and approval

  • A turn uses the call's model, then the session's model, then backends.<id>.defaultModel, then the CLI's own default. CoAgent8 itself names no model.

  • reasoning_effort: none, minimal, low, medium, high, xhigh or max, checked against the model's accepted efforts where the CLI lists them.

  • Prices come from OpenRouter's public model list (no key, no user data) or from coagent8_PRICES_URL. They decide whether to ask; they are not a bill.

  • Your rules in governance.models come first: deny never runs a model, ask asks before every turn, allow runs it without asking (deny wins over ask, ask over allow). Any other model asks when its price is unknown or approximate, at or above governance.askAbovePrice (default 20 USD per million output tokens), or at least governance.priceMultiplier (default 2) times the backend's default.

Review gate

  • Scopes: uncommitted (default), staged, a commit, a branch or a range, with optional review instructions. Git context is bounded (4 MiB per Git command, 3 MiB snapshot). From 0.8.0, a diff above 200,000 characters is reviewed in parts, each in its own session, then in one turn over all their findings; above 15 parts the review is refused and you narrow the scope.

  • From 0.8.0 the reviewing agent works in a temporary copy of exactly the reviewed state and is told to leave your work tree alone; nothing enforces that until containers come (#215). The copy is removed afterwards. When no copy can be made (Git filters such as LFS, submodules, or another review of the same work tree running), an uncommitted or staged review runs in your work tree with a warning, and a commit, branch or range review is refused.

  • From 0.8.0, the diff is not pasted into the reviewer's prompt: it reads the collected diff from a file CoAgent8 writes for it, and its review is READY only if it quotes the random mark at the end of that file.

  • From 0.8.0, checks, such as npm test, are run by CoAgent8 on the reviewed change before the turn, and a check that does not pass blocks the verdict. The checks run with your account and execute the code under review. A check runs only with your approval: list it in allowedChecks of the configuration, or approve it on the form.

  • The reviewing agent answers in a fixed format: snapshot, coverage, verdict, findings as [P1|P2|P3] file:line, and the checks it ran.

  • CoAgent8 derives the verdict: an incomplete answer, partial coverage, truncated input, another snapshot, a [P1] or [P2] finding, or a failed check makes it BLOCKED (reason); a workspace change during the turn is reported only when the snapshot or its completeness changed.

  • A review of unchanged code with the same scope, backend and model starts no new turn and returns the earlier verdict.

  • Staged, commit and range scopes are reviewed only when their files match the current workspace; otherwise review the uncommitted changes.

Sessions and history

  • Sessions belong to one workspace and one backend; a follow-up through session_handle keeps the session's model and effort.

  • session with action: "history" pages events with cursor and limit (up to 100 events and 240 KiB per page). Each event's sequence is its position in the stored log, so gaps where streaming deltas were combined do not mean lost events, and activePid identifies the CoAgent8 server process owning the active turn. MCP resources coagent8://sessions and coagent8://sessions/{id}/history show the connection's workspace only.

  • A session handle expires after two hours without use; a closed session reports that it is closed on a follow-up or cancel, while its history stays readable until deleted. The history archive is best effort: up to 10 MiB per session and 100 MiB in total, old archives removed after seven days. coagent8_HISTORY=off turns archive files off. Private reasoning and raw tool output are never archived or returned.

Safety and bounds

  • shell: false; prompts go through stdin, at most 4 MiB.

  • Cancellation and deadlines interrupt Codex and Claude Code through their own protocol, then stop only the process CoAgent8 started (Windows: its handle; POSIX: its process group). Nothing is selected by process ID or name.

  • Output is bounded: 512 KiB per backend stream, 1 MiB per answer.

  • timeout_ms (minimum 100 ms) covers Git, preparation, approval, the turn and teardown, with progress notifications. Synchronous calls (consult, review, and delegate with mode: "sync") default to 15 minutes and are capped at 30 minutes; asynchronous tasks (delegate by default, and review/consult with mode: "async") default to 60 minutes and are capped at 4 hours (14,400,000 ms), also bounded by the root's remaining running time (and continuation grace). Configurable in config.json under limits.

  • Answers and archives are redacted for credential formats; diagnostics also hide keyword values and home-directory paths. Errors carry a typed code such as CLI_NOT_FOUND, AUTH_REQUIRED, MODEL_UNAVAILABLE, RATE_LIMITED, TIMEOUT, POLICY_DENIED or PRICE_LIMIT.

Tools

Tool

Purpose

consult

A second opinion on a question, design, plan or bug; optional architecture, debugging or implementation analysis; synchronous by default, or mode: "async" for a task handle

review

An independent review of Git changes with a verdict CoAgent8 derives; large changes in parts, and checks CoAgent8 runs first (both 0.8.0); synchronous by default, or mode: "async" for a task handle whose result includes the verdict

delegate (0.8.0)

Another agent makes a code change in the workspace, asked to keep to the scope paths (changes outside them are reported, not prevented) and to run checks; with loop: true CoAgent8 runs the checks and an independent review and returns failures to the agent. The call returns once the agent runs, with a task handle and a wait command; mode: "sync" waits instead; the result adds the files CoAgent8 saw change in Git, with warnings for changes outside the scope, to files that already had uncommitted changes, and commits. Agents in a work tree must have disjoint scopes: an overlapping start is refused, and no scope or loop: true takes the whole work tree. root_handle puts agents under one budget; it never commits

doctor

Models, efforts, output prices, defaults and approval per backend; scope: "health" checks installation, versions, sign-in and quota; detail: "full" returns data

session

List the workspace's sessions (mine: true for your own), page a session's history (cursor and limit) or its messages only, read a delegation's task, or close a session

cancel

Stop the running turn of a session: interrupt where the CLI supports it, then end the CLI process. From 0.8.0, root_handle stops every delegated agent of a root instead

issue

Fill in the GitHub bug report form link with a sanitized report (detected CLI versions when include_doctor is true, the default) and return the report for review; it opens the browser only with open_browser: true, and the user submits it

A consultation can be as small as:

{
  "proposal": "Is this retry loop safe with concurrent writers? <code>",
  "backend": "codex"
}

context_files passes paths for the other agent to read, not file contents. Results are Markdown: the answer or a typed error, then the backend, model, duration and session_handle=<handle> (<state>). Pass that handle for a follow-up on the same topic; a call without it starts a fresh agent that rereads everything. review adds its verdict.

The deprecated analyze, debug and implement aliases and the run gateway still work but are not listed. Every client receives the same seven tools.

From 0.8.0, delegate needs a Git work tree and, on Windows, the job helper the package carries. Every backend runs on your computer without a sandbox or path limit (#211): the scope is an agreement the worker is told and the server checks afterwards, not a restriction. Antigravity can end its turn when it reads a file in another checkout, such as the main checkout of a Git worktree (observed with agy 1.4.12). CoAgent8 then retries once inside the workspace, and if that also fails, names the denied action. The agent reports each check as PASS, FAIL or NOT_RUN. With loop: true CoAgent8 runs the checks itself after the agent, with your account, then gets an independent review on a backend other than the agent's (and other than your client's CLI while one remains) and returns failures to the agent for up to two fix rounds; the checks need your approval as in reviews. Without the loop, run the checks yourself before accepting the change. On Windows a cancelled agent's child processes end with it; partial changes stay, so check git status after a cancel or timeout.

Agents can work side by side. Every asynchronous delegate belongs to a root and returns its root_handle; pass it to the next call to share the limits, which come from rootLimits in your configuration (maxCalls 64, maxConcurrent 8, maxChildren 16, maxDepth 3, maxMinutes 240, graceMinutes 60) and which a calling agent cannot raise. maxMinutes counts running time, while at least one task of the root runs; idle time between calls does not count. Past it, a new task is refused, but continuing a session of the root with session_handle may still run graceMinutes more to finish its task (0 turns this off). At a limit the call fails with ROOT_LIMIT, and the message says what to do next. A changed limit applies to new roots. parent_task records which task a new one follows from. session with action: root shows the use and the tasks; a finished agent does not make the work accepted. A scope is an agreement that the server checks at the start and observes at the end, not a sandbox: an agent can still reach another agent's paths (from 0.8.0 no backend is held to the scope), a path another agent held is marked as possibly changed by either, and a check an agent runs sees the half-finished work of the others. Roots belong to a CoAgent8 data directory: a client with another one does not see them.

Your agent is the coordinator: it starts the workers, follows them and reviews the result. The delegated coordinator (delegate with coordinate: true) of the 0.8.0 previews is removed (#212); a call that still passes coordinate is refused with this replacement.

Approving expensive models

The approval is a form CoAgent8 sends through MCP elicitation; your client must show it to you. Clients that cannot show MCP forms close or decline it without showing it: headless clients, Codex (0.160.1 and 0.164), the Antigravity chat and Claude Code 2.1.317 in VS Code did so when measured. CoAgent8 then says the client answered, not you. CoAgent8 never accepts an approval relayed by the calling agent, so there the turn fails with POLICY_DENIED. To use such a model anyway, allow it with CoAgent8: Manage Model Approvals in VS Code or in governance.models.allow, or call it from a client that shows MCP forms.

Choosing a model under a price limit

Pass the user's limit as output_price_below, in USD per million output tokens. It is strict: 5 means below 5. Without model, CoAgent8 chooses the backend's default if it qualifies, otherwise the most recently released qualifying model (then higher price, then catalog order; undated models rank last):

{
  "proposal": "Calculate 17 * 23. Reply only with the result.",
  "output_price_below": 5
}

Only an exact price from a list younger than seven days qualifies. If no model qualifies, the call fails with PRICE_LIMIT and each backend's reason instead of running another model; an explicit model over the limit is never replaced. The footer states the price, its list and date. A model within the limit may still need your approval.

Every result also shows the tokens the turn used, as the backend reported them, and what they cost at list price when every count and the model's exact price are known: Usage: 12,400 input (9,600 cached) - 900 output (300 reasoning) tokens - list price ~0.014 USD (openrouter 2026-10-19). Unknown counts are left out, never shown as zero. Cache writes are priced by how long they are kept; agy reports no cache counts, and a turn whose input reached a size the list prices differently (such as 272,000 tokens for some OpenAI models) shows counts only. A list price is not your bill: a subscription CLI may charge nothing per token.

To choose yourself, call doctor: it lists each backend's models with their accepted efforts, output price (~ approximate, ? unknown), default and approval tag (ask: <rule>, deny or allow). CoAgent8: Manage Model Approvals in VS Code and npx -y coagent8@next models (coagent8 models when installed globally) show the same list. Then name the model and an accepted effort:

{
  "proposal": "Calculate 17 * 23. Reply only with the result.",
  "model": "<model ID from doctor>",
  "reasoning_effort": "low",
  "output_price_below": 5
}

Skills

Setup and the VS Code extension install one skill per function into each CLI where CoAgent8 is registered. Codex lists them in /skills and runs them as $coagent8-review; Claude Code and the Antigravity CLI offer them as /coagent8-review commands.

Skill

Use it to

coagent8-consult

Ask another agent for a second opinion on a question, design, plan or bug

coagent8-review

Have another agent review Git changes and read the verdict

coagent8-doctor

See models, efforts and prices, apply a price limit, check backend health

coagent8-session

List, read, continue, cancel or close sessions

coagent8-issue

Report a CoAgent8 defect: a filled-in form link to review and open

coagent8-delegate (0.8.0)

Hand a defined code change to another agent, then check what it changed

coagent8-loop

Plan, get the plan reviewed, implement or delegate, run checks and get an independent review

coagent8-coordinate (0.8.0)

Coordinate across roles: your session leads, another implements and a third reviews

Client

Skill directory

Claude Code

~/.claude/skills/

Codex

~/.agents/skills/

Antigravity

~/.gemini/config/skills/

CoAgent8: Manage Skills in VS Code and npx -y coagent8@next skills (coagent8 skills when installed globally) in a terminal install, update, uninstall, enable or disable one or all skills per client. Your choices are kept, so repair does not bring back a skill you removed. Disabled skills move to ~/.coagent8/disabled-skills/<client>/. A skill you edited is never overwritten without your confirmation. Start a new chat to see changes. VS Code chat also reads ~/.claude/skills/ and ~/.agents/skills/, so with both Claude Code and Codex set up it lists each skill twice. In VS Code, Manage Skills also offers Update all and Reinstall all across clients (asking confirmation before overwriting skills changed outside CoAgent8), and an activation notice offers Update Skills once per catalog change when installed skills have updates.

npx -y coagent8@next skills status --clients=agy
npx -y coagent8@next skills install --clients=agy --skills=coagent8-review

Changes are shown as a preview first; repeat the command for one client with --apply=<token> to apply them.

Adopting coordinator roles in project rules

To make this workflow your project's default practice, copy a short role section into the project's AGENTS.md and link it to the coagent8-coordinate skill. CoAgent8's config.json has no per-role defaults (omitting backend follows the user's routing configuration, with fallback when a default is unavailable), so when a role must use a particular backend, name it in your project rules and have the coordinator pass backend explicitly on that call:

## Agent roles

Follow `coagent8-coordinate`:

- **Coordinator** (this session): pick the task, write a self-contained spec
  (quoted acceptance criteria, `scope`, out of scope with "stop and report",
  the pattern to follow, exact checks), pass `scope` on `delegate`, read the
  whole diff against `scope`, run checks and judge whether a `READY` change
  solves the task without overbuilding.
- **Implementer** (`delegate` with `backend: <implementer>`): edit code,
  tests and docs within `scope`; never commit, push or open PRs.
- **Reviewer** (`review` in a separate session with `backend: <reviewer>`;
  `consult` on the plan of a non-trivial change): critical areas (security,
  money, data, release) get an extra review.
- Commit, push, merge and publication stay with the user's authority. When a
  backend hits a quota limit, tell the user immediately instead of switching
  roles.

VS Code extension

Press F1 (or Ctrl+Shift+P, Cmd+Shift+P on macOS), type CoAgent8 and choose a command:

Command

What it does

CoAgent8: Manage Coding CLIs

Shows each CLI's state and chat entry. Installs a CLI (VS Code extension or official standalone), signs in, chooses the installation CoAgent8 uses, adds, updates or removes CoAgent8 in a CLI's chat, manages its skills, and removes what CoAgent8 installed

CoAgent8: Manage Model Approvals

Allows, asks for or denies individual models, sets each backend's default model (with effort where required), and sets the price rules for asking

CoAgent8: Manage Skills

Installs, updates, uninstalls, enables or disables skills per client

CoAgent8: Open Settings

Opens CoAgent8's backend, model, configuration path and Node.js settings

CoAgent8: Open Configuration (config.json)

Opens the configuration file (~/.coagent8/config.json unless coagent8.configPath or coagent8_CONFIG names another), creating it with defaults if missing, with completion and validation (a file in another location needs a $schema entry, which new files get)

CoAgent8: Reset Configuration (config.json)

Replaces the file with the defaults after a confirmation, keeping the previous one as config.json.backup

CoAgent8: Show MCP Servers

Opens MCP: List Servers, where VS Code starts, stops and restarts CoAgent8 and shows its output

The extension changes only what you choose, keeps private backups of the CLIs' configuration files, and removes only entries it wrote and that you did not change. When VS Code offers Restart Extensions after a first install, manual chat change, or one-time migration, use it; after migration, future extension updates need only VS Code's own restart, and new CLI chats load the updated runtime automatically (open chats keep the runtime they started with until reopened). VS Code restarts the CoAgent8 server by itself when its settings or bundle change. Settings you save in VS Code take precedence over config.json, except an empty model, which keeps the file's model; the CLIs and other hosts read only the file. CoAgent8: Manage Model Approvals updates a non-empty VS Code default model setting when one is set, or backends.<id>.defaultModel in config.json otherwise.

Uninstalling the extension removes what it added: its chat entries, skills, runtime copies and storage, including its sessions and history. Your shared ~/.coagent8/config.json, credentials and the CLIs stay.

Configuration

~/.coagent8/config.json is shared by every host, the CLI and the VS Code extension. Without the file the defaults apply. An unreadable or invalid file stops execution with POLICY_DENIED while doctor keeps working.

{
  "schemaVersion": 1,
  "defaultBackend": null,
  "routing": {
    "strategy": "fixed",
    "allowedBackends": ["codex", "claude", "agy"]
  },
  "backends": {
    "agy": { "executable": "vscode-extension", "defaultModel": "<model the first doctor recorded>" }
  },
  "governance": {
    "priceMultiplier": 2,
    "askAbovePrice": 20,
    "models": { "allow": [], "ask": [], "deny": [] }
  }
}

A backend's CLI is backends.<id>.executable when it is set (an absolute path, ~/..., or vscode-extension for the vendor extension's copy); a configured CLI that is missing fails instead of falling back. Without it, the CLI is found on PATH, then in the vendor's VS Code extension. The workspace comes from workspace_path, the client's roots, or the server's working directory.

Variable

Effect

coagent8_CONFIG

Configuration file path

coagent8_DIR

Storage root for sessions, history and caches (default ~/.coagent8)

coagent8_HISTORY

off turns archive files off

coagent8_PRICES_URL

Price list URL or local file instead of OpenRouter

coagent8_QUOTA_CACHE

Quota cache file

CODEX_PATH, CLAUDE_PATH, AGY_PATH

Backend executables; they override backends.<id>.executable

CODEX_HOME, CODEX_CONFIG_PATH, CLAUDE_CONFIG_DIR, GEMINI_CLI_HOME

Backend configuration locations; setup and cleanup support only the defaults

The architecture states every contract, bound and error.

Known limitations

  • Antigravity's own tools. On Windows agy runs with CoAgent8's own profile (~/.coagent8/agy-profile as USERPROFILE), so it offers none of your agy MCP servers and plugins, your agy settings.json does not apply, and commands in an agy turn see that folder as their user profile (git and bash keep HOME). An agy session from before this change cannot be continued; start a new one. On macOS and Linux agy still gives the other agent your agy MCP servers and plugins, which CoAgent8 cannot turn off; doctor lists them. Calls back into CoAgent8 are refused.

  • Antigravity readiness. agy may report not ready in a cached check and still run a turn; doctor with scope: "health" rechecks readiness.

  • Leftover agy processes on Windows. Cancelling or timing out an agy turn stops agy itself, but a process agy started outside it, such as one of its MCP servers, can keep running until it exits or the CoAgent8 server stops.

  • Parent crash on macOS and Linux. If the host dies unexpectedly, the processes CoAgent8 started are not cleaned up.

  • Default model price. A plain consult with no model and no price limit runs the backend's default model (still subject to your approval thresholds); pass output_price_below or a model to bound the price.

  • Approval forms. Clients that cannot show MCP forms cannot approve the one-time host execution consent, an expensive model (see approving expensive models), or the checks of review and delegate with loop: true. Claude Code 2.1.317 in VS Code and Codex 0.164 did not show the check form when measured, so set "hostExecution": "accepted" and list the exact commands in allowedChecks of config.json instead.

  • Host deadlines. A host can stop a synchronous tool call before CoAgent8's own deadline; a headless agy client stopped calls after 180 seconds. Use mode: "async" on consult or review (the default for delegate) to return a task handle immediately.

  • Sessions on disk. Every call keeps a session record, even with archives turned off, and the session handle arrives with the result.

  • Codex PowerShell on Windows. CoAgent8 leaves the Microsoft Store's PowerShell alias off Codex's PATH, so Codex uses Windows PowerShell 5.1 unless PowerShell 7 is installed another way (for example scoop install pwsh or the MSI).

  • Reviews of another tree. A staged, commit or range review whose files do not match the current workspace is refused rather than reviewed.

  • Updating from 0.7.x. Installing 0.8.0 over 0.7.x migrates existing CLI chat registrations once to the stable runtime launcher (~/.coagent8/runtime/current/index.cjs), so VS Code may still ask to restart after the update (Restart > Update > Restart) one last time. Future updates need only VS Code's own restart and no CLI chat configuration update.

Reporting problems

For suspected security vulnerabilities, follow the security policy and report privately. Do not include vulnerability details in public issues.

Ask your agent to run the issue tool: it prepares a sanitized report with your OS, Node and detected CLI versions (when include_doctor is true, the default; no readiness or quota) and a link that opens a new GitHub issue with it. Add the steps and what you expected, and check the text for private data before you submit it. You can also use the bug-report form directly: only "What happened" is required.

Building and contributing

Building from source needs Node.js 24.11+ or 26+:

npm ci
npm run build

The server is then node <checkout>/dist/index.cjs; npm pack produces the installable package. A checkout of develop is a development build, not a release. Restart a running MCP server after rebuilding.

Need

Document

How to contribute

Contributing

Security support and private reports

Security policy

Planned work and priorities

Issues, Roadmap

Contracts, limitations and design

Architecture

Contributor rules

AGENTS.md

Branches, pull requests and releases

Git workflow

Checks by scope

Quality gate

Release history

Changelog

Documentation site: this README, the project documents and the source API

oktawianwybieralski.github.io/coagent8

The npm package does not include docs/ or the contributor rules; these links work in the repository.

License

Copyright (c) 2026 Oktawian Wybieralski (oki.dev).

The project source, documentation and artwork in this checkout are licensed under the MIT License. See LICENSE for the terms and warranty disclaimer. Bundled dependencies retain their own licenses and notices in dist/THIRD_PARTY_NOTICES.txt.

0.6.1 is the first release under the MIT License. Copies of published 0.6.0 and the withdrawn npm version 1.0.0-beta.1 retain their GPL-3.0-only permissions. This change does not revoke any license previously granted for a distributed copy.

Trademarks. CoAgent8 and the CoAgent8 logo are trademarks of Oktawian Wybieralski (oki.dev). The copyright licenses under which CoAgent8 is or was distributed cover the software, documentation and artwork, including the logo files, and this notice does not limit them. They do not grant rights to use the name or logo as a trademark, for example to brand a modified version or another distribution, or to suggest endorsement. Accurate references to CoAgent8, such as naming it as the origin of a fork or describing compatibility, need no permission.

Created by Oktawian Wybieralski - GitHub repository

Available Tools

7 tools
cancelB

Stop the running turn: interrupt if possible, then end the CLI.

Inputs: root_handle, task_handle, session_handle, workspace_path.

consultB

Second opinion on a question, design, bug or plan. Sync by default; mode async returns a task_handle (read via wait_argv or session task).

Inputs: proposal (required), mode, model, backend, +9 more.

delegateA

Another agent edits code here, no commits; returns task_handle (mode async default) or waits (sync), plus files seen changing. Review it.

Inputs: task (required), loop, mode, model, +11 more.

doctorC

Models per backend: efforts, output prices, approval need; or backend health.

Inputs: scope, detail, backend.

issueA

Fills the bug report form link with a sanitized report for the user to review and submit. Be concise: reproduction steps, expected/actual behavior, impact, sanitized telemetry (tool/backend/model, CLI versions, errors, timing, scope/check evidence). Mark unknown facts; never invent them.

Inputs: title, context, open_browser, error_message, +1 more. Returns: body, title, opened, prompt, +2 more

reviewB

Independent review of Git changes with server Verdict: READY or BLOCKED. Sync by default; mode async returns a task_handle (wait_argv or session task).

Inputs: mode, model, scope, checks, +8 more.

sessionC

List, page history, close sessions; read a task or root.

Inputs: action (required), mine, limit, cursor, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 7 tools

    Disambiguation3/5

    consult, review, and delegate all spawn another agent's work and share the same sync/async + task_handle mechanics, so their boundaries (second opinion vs. git verdict vs. code-editing) are only separable by careful reading. The 'session' tool also bundles listing, paging history, closing sessions, and reading tasks/roots, making it a grab-bag whose individual operations are not addressable. Descriptions help somewhat but an agent can easily pick the wrong agent-spawning tool.

    Naming Consistency3/5

    All names are single lowercase words, so there is surface consistency, but they mix actions (cancel, consult, review, delegate) with nouns (session, issue, doctor) and there is no verb_noun pattern to infer behavior from. The overloaded 'session' tool's name gives no hint that it also closes sessions and reads tasks.

    Tool Count4/5

    Seven tools is a comfortable size for an agent-orchestration server, and each broad capability (consult, review, delegate, issue, doctor, cancel) earns its place. The count is slightly misleading since 'session' hides several distinct operations inside one tool.

    Completeness3/5

    Consultation, review, delegation, cancellation, issue filing, backend health, and session/task reading are all covered, so core lifecycle is present. However, results retrieval is described via an external 'wait_argv' that is not a listed tool, and there is no explicit status/list-tasks tool beyond 'session', leaving an ambiguous gap in how a caller polls pending async work.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      MCP server that bridges coding agents (Claude Code, Codex, Gemini CLI) via ACP for pair programming, enabling agents to consult each other as tools.
      4
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server enabling Claude to consult Codex (GPT-5.x) mid-task for second opinions, plan/diff review, brainstorming, and codebase exploration via structured debates and permission-controlled interactions.
      2
      MIT