code-dioxide
Uses the GitHub CLI to support the pull-request merge strategy when merge_strategy=pr.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
code-dioxide
code-dioxide (CO₂) is a local MCP server that runs delegated work as headless Claude Code
sessions. A caller (a Claude Code session or a person) sends one delegate_task. dioxide then
runs the whole feature loop as a Claude Code workflow script: plan, set up a git worktree,
implement, review, QA, optional deploy, and merge. If the run needs a human decision, it waits,
and the answer continues the same session and the same workflow run.
Task state is stored in SQLite. Every attempt (one launch of claude for a task) has its
output kept on disk, so a crash, a rate limit or a server restart resumes the work in a new
attempt instead of starting over. Everything that happened
can be read through the API without shell access to the host.
Status: alpha (0.1.0). The background service is macOS only.
code-dioxide is an independent project, not affiliated with or endorsed by Anthropic. It runs Claude Code, which you install and log in to yourself.
How it works
Lifecycle tasks. A task whose agent resolves to
lifecycle_agent(seeroles.yaml) runsworkflows/feature-lifecycle.jsin oneclaude -psession. The parent session only calls the Workflow tool. Each stage is an agent with a structured output schema, and agents never delegate to each other.Single tasks. Any other agent runs as
claude -p --agent <slug>with the task brief.Your config, not dioxide's. Permissions, models, effort, tools, skills, hooks, review focus and commit conventions come from your Claude Code settings, your agent files and the target repo's CLAUDE.md. The only permission dioxide adds is
--allowedTools Workflow.
Stages of the lifecycle workflow:
Stage | Role | What it does |
| planner | Steps, acceptance criteria, whether a deploy is needed. Skipped when a plan is pinned. |
| none | Runs |
| implementer | Commits the change and its tests on the task branch. |
| each of | Approves or returns findings; |
| qa | Gate green or red; |
| deployer | Only when the plan says a deploy is needed and a deployer role exists. |
| none | Runs |
Worktrees live outside the target repo, under <home>/worktrees/.
Related MCP server: codex-claude-bridge
Requirements
Python 3.12 or later.
Claude Code with the Workflow tool, logged in. Development and testing used Claude Code 2.1.328.
git.
ghonly formerge_strategy=pr.macOS for
dioxide service install(launchd). Linux is untested; usedioxide upthere.
Quick start
git clone https://github.com/quieromas-ai/code-dioxide.git
cd code-dioxide
python3.12 -m venv .venv
.venv/bin/pip install .
.venv/bin/dioxide init # home dir, example agents and roles, auth token
.venv/bin/dioxide service install # launchd user agent; or run `dioxide up` in the foreground
.venv/bin/dioxide status # is the server answering?
.venv/bin/dioxide register # prints the `claude mcp add` commanddioxide init creates the home ($DIOXIDE_HOME, default ~/.code-dioxide) with agents/,
data/ and logs/, copies the example agents and roles.yaml if they are missing, and writes
a random token to <home>/.env (mode 0600). It prints the token the server will use, masked (a
DIOXIDE_AUTH_TOKEN in the environment overrides the file). For a home other than the default,
the commands that follow need DIOXIDE_HOME=<home> set; init prints it in its hint.
dioxide register prints a command of this form. Run it to add the server to Claude Code. It
uses the user scope because the default (local) scope would make the server available in one
project directory only:
claude mcp add --scope user --transport http dioxide http://127.0.0.1:8500/mcp \
--header "Authorization: Bearer <token>"The printed command contains the real token. Do not paste it anywhere public.
Then, from a Claude Code session, delegate work:
delegate_task(agent="coordinator",
description="Add a --dry-run flag to the export command",
input_context={"project_dir": "<path to a git repo>"})In the example roles.yaml, lifecycle_agent is coordinator, so this runs the full lifecycle;
delegating to any other agent runs it as a single task.
Poll with check_task_status(task_id).
The MCP tools page lists every tool and how asks are answered.
Documentation
Topic | Page |
Commands ( | |
| |
| |
Credentials for the sessions dioxide starts | |
Guarantees, process policy, stall detection, known limits | |
Auth, loopback trust, redaction and kill limits | |
Logs, debug bundles, reading a task remotely | |
Read-only HTTP API for dashboards | |
Building dashboards (Grafana, custom pages) | |
Upgrading and rolling back |
Roadmap
Planned: Slack ask/continue, a cleanup hook with a cleaner agent, and custom workflows.
Contributing
Contributions are welcome. Please:
Open a Discussion before starting significant work so we can agree on the approach.
Follow the existing code style:
ruffandmypymust pass with no new errors.Add or update tests for any changed behaviour.
Keep PRs focused: one concern per PR.
See CONTRIBUTING.md for setup and SECURITY.md for reporting vulnerabilities.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted coding agent: start, follow up on and stop tasks that can open GitHub pull requests.
Autonomous AI developers on your own infrastructure: assign a task, get a pull request.
Task tracking built for coding agents. Work is leased, so two agents never take the same SubTask.
Task and sprint coordination for humans and AI agents, with scoped API keys and full audit trail.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables orchestrators to drive Claude Code as a structured software-engineering worker over HTTP, with tools to submit coding tasks, poll for normalized results, resume, review, and cancel jobs.-
- AlicenseNot gradedqualityBmaintenanceEnables delegating bounded tasks from Codex to Claude Code, including read-only reviews, isolated branch edits, long-running background work, and approval handling.MIT
- AlicenseNot gradedqualityCmaintenanceLets an agent delegate coding tasks and reviews to Claude Code, Codex or Grok Build CLIs running locally in isolated git worktrees, then poll an inbox for the status, question or final answer. Each caller sees only its own threads.7 npm1MIT
- AlicenseAqualityCmaintenanceEnables coding harnesses such as Claude Code, opencode, and Codex to hand tasks off to Perch AI as an autonomous worker and receive structured results with thread ids, model identity, and token usage. Supports asynchronous job tracking, thread continuation, and cancellation of long-running delegations.4MIT