SuperAPIAI Directory

rhizome-mcp

github.com · AI coding

Local-first task tracking and coordination for coding agents: durable issues, leases, checkpoints, decisions, dependency graphs and review workflows.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

rhizome-mcp is a tool that provides crash-safe task coordination for AI coding agents through MCP (Model Context Protocol). Its positioning is: when an autonomous coding agent terminates mid-task, the task can release itself.

Purpose

AI coding agents are concurrent, context-limited, and interruptible, and an ordinary TODO.md or a single chat context cannot cope with these failure modes. rhizome-mcp is designed around these scenarios and is suitable for situations where multiple agent sessions or multiple agent products work together on the same repository over the long term, requiring handoffs, parallel work, and recovery after crashes or context exhaustion. It simultaneously supports Claude Code, Codex, GitHub Copilot, VS Code, and other MCP-compatible clients, giving them a shared, persistent view of project work.

Main capabilities

  • Crash-safe task claiming: Issues are claimed atomically through renewable leases. in_progress never exists as a stored state; it is derived from active leases, so a disappearing agent will not permanently lock an issue. After a lease expires, the issue can be claimed again. At the database level, a partial unique index guarantees at most one active attempt per issue.
  • Contractual token-efficient design: Compact list projections (a page of 100 issues stays within 64 KB, enforced by integration tests), graph nodes that exclude free-text bodies at the SQL layer, fragment-only search, incremental sync via event IDs, and a bounded single-call working context package.
  • Persistent project memory: Checkpoints with next steps, supersedable decision records, append-only event history, and FTS5 full-text search across issues, comments, decisions, and notes. New sessions resume from the last checkpoint instead of re-deriving state.
  • Planning and dependency graph: blocks relationships with cycle checking, epics, claimable entry point highlighting, and atomic batch planning (up to 50 issues, 100 relationships, and 20 decisions in a single all-or-nothing transaction).
  • Review workflow: Review requests pin the exact issue version and event position; approving changed code is structurally impossible—stale requests can only be superseded and re-pinned.
  • Resource reservation: Files, directories, globs, or logical resources (ports, migration windows, deployment slots) can be reserved atomically at claim time; overlapping claims fail fast and indicate the holder and its lease expiration time.
  • Concurrency discipline: Optimistic versioning on changes, replayable idempotency keys, stable machine-actionable error codes.
  • Serverless human observability:rhizome-mcp board Print live leases, blockers, and the review queue, or write out a self-contained HTML snapshot; the CLI can read everything as tables, JSON, or Mermaid.

The repository itself tracks its own to-do items through the server it provides.

Usage

Installation methods include: trying it directly via npx (no need to install a separate binary or Go toolchain), configuring automatic registration of the MCP server and adding related skills; installing the VS Code extension from the Marketplace or Open VSX (the extension bundles platform binaries, automatically registers the MCP server, and provides the "Rhizome: Initialize Project" command); downloading and installing the release binary for the corresponding platform (by default verified and installed to ~/.local/bin); or using it through the official MCP Registry (io.github.Odrin/rhizome-mcp).

After initializing tracking in the repository, register the server with the MCP client.connect The command supports automatic setup for common clients (the four targets claude, codex, vscode, and json), and can use --print for a dry run; it discovers the project's actual root directory by walking upward from the current directory and uses --project-root fixed, so that the written configuration is valid when the client starts the server from any subdirectory. Stdio is the default transport, with protocol output to stdout and logs to stderr. The connected agent starts from open_project and uses the absolute repository root, retaining the returned project_ref and passing it to subsequent project-scoped calls.

For agents that support the open Agent Skills format, the rhizome-task-workflow skill can be installed using the npm-distributed skills CLI (project scope or, by appending --global to the command, global scope); this skill teaches agents how to select, claim, checkpoint, hand off, and complete Rhizome work.

The optional local HTTP transport is loopback-only, unauthenticated, with endpoints logged to stderr; the Streamable HTTP endpoint is http://127.0.0.1:<port>/mcp, and enforces strict Host/Origin validation and a 1 MiB external request body limit. If persistent audit attribution is needed, an explicit agent_session_handle can be created and passed to the relevant mutation tools.

init writes only one file into the repository (.agent-tracker.json); the SQLite database is located outside the repository in the platform application data directory, resolved via project_id; --data-root PATH can be used to specify the data root. The database is never committed to Git.

Technical implementation and limitations

Core constraints (by design): Go, SQLite (modernc.org/sqlite, pure Go, no CGO required), stdio as the primary transport, one database per project, no hosted or authenticated Web UI (including the loopback-only local status board), no authentication, minimal CLI. Deferred features are listed in docs/06.

The server exposes 44 tools covering the full lifecycle: project discovery, issue CRUD with tags and relations, archive/unarchive visibility transitions, planning and dependency graphs, batch plan validation/application, comments and decisions, claim/renew/checkpoint/complete work attempts with optional atomic resource reservations, work context assembly, review requests, full-text search, incremental changes, logical project export/import, and workflow policy management with gate evidence and diagnostics. The default serve advertises the complete full catalog, which can be narrowed via --profile agent|read-only|migration(or by setting RHIZOME_TOOL_PROFILE), or precisely advertise the required groups plus the always-on core pair (open_project, get_project) via --toolsets(or by setting RHIZOME_TOOLSETS) as comma-separated capability groups; these two flags are mutually exclusive. Profiles and toolsets are controls for the exposed surface and prompt size, not authorization boundaries.

Building and testing require no CGO and no external services; the integration tag runs real-process MCP smoke and workflow tests, and covers cross-process scenarios (concurrent claim and update version races, non-graceful process termination and restart, backup during server writes). CI runs go vet, all non-race unit and integration tests, and npm launcher tests on every push and pull request against main.

One design principle about stability is: an issue must never get permanently stuck in in_progress. The effective state is computed from the stored state plus whether an active lease attempt exists; if the agent disappears and the lease expires, the attempt becomes expired and the issue becomes available again when the stored state permits.

Regarding documentation, the modular files under docs/ are the canonical source, and SPEC.md is the index; human-facing guides are located in site/ and published via GitHub Pages; release history is in CHANGELOG. Full usage and version information can be obtained by running rhizome-mcp and rhizome-mcp version without arguments, respectively.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools