ZeroGrok
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.
ZeroGrok
Cross-CLI Multi-Agent Orchestration, Sandboxed Execution & Visual Control Plane for Antigravity
English | 简体中文
What Is ZeroGrok?
ZeroGrok is an open-source Antigravity plugin (MCP Server + MCP App UI + PreInvocation Hook + optional native Rust daemon zerogrokd) that turns a single IDE session into a multi-agent engineering control plane.
Instead of locking you into one model or forcing you to babysit separate terminal tabs, ZeroGrok lets Antigravity route tasks to external coding agent CLIs—Codex (codex), Pi (pi), Cursor (cursor), OpenCode (opencode), and Antigravity (agy)—using each CLI's own subscription/quota, model settings, and enforced permission mode (chat, plan, ask, agent, full).
Agents can fan out in parallel (up to 5 concurrent instances per bot), collaborate peer-to-peer over a scoped local MCP bridge, run inside Copy-on-Write (clonefile) isolated sandboxes, pass deterministic 0-token contract gates, and recover mid-flight via bypass slot hot-swap—all visualized in an interactive live signal-graph cockpit.
Related MCP server: agy-baton / codex-baton
Core Innovations
Hybrid TypeScript MCP App + Native Rust
zerogrokdEngineWorks out of the box in pure Node.js (
>= 24) with zero native compilation required.When the Rust
zerogrokdbinary (engine/) is built, ZeroGrok automatically upgrades its execution plane to a Unix Domain Socket RPC daemon ([u32_be][UTF-8 JSON],0700dir /0600socket, SQLite WAL with zero foreign-key lock contention).
APFS Copy-on-Write (
clonefile(2)) Sandboxes + Serial 3-Way Merge QueueParallel writable (
agent/full) tasks no longer fight over the samecwdor corrupt files mid-edit.zerogrokdclones workspaces via APFSclonefile(2)into isolated temp sandboxes and commits changes back throughSerialMergeQueuewith symlink-escape checks, conflict patch output, and atomic rollback on error.
0-Token Deterministic
TaskContractGates & Zero-Orphan Process ReapingValidate worker outputs before merging without spending extra LLM tokens:
writeScopeGlobs,forbiddenPatterns,objectiveGates(command exit codes / file assertions), plus ablake3thrash-loop circuit breaker (trips after 3 identical tool failures).Native macOS
kqueue+proc_listchildpids+proc_bsdinfostart-time tracking guarantees0orphan grandchild processes on cancellation or timeout.
Bypass
TaskSlotHot-Swap & AutomaticfallbackBotIdsFailoverWhen a worker stalls, hits a limit, or fails,
hot_swap_slot(or automaticfallbackBotIdsrecovery) swaps only that slot (epoch N → epoch N+1) usingexpected_epochCAS fencing tokens,one_for_one/rest_for_onesupervision, and Saga compensation—without restarting upstream parent agents.
Summary-First Peer-to-Peer Bridge (
<= 8 KBHandoffs) + 16 MiB Line ScannerPermitted bots receive an ephemeral, bearer-authenticated local HTTP MCP bridge (
submit_handoff,peer_list,peer_call,peer_batch,peer_dispatch,peer_wait,peer_read) or$ZEROGROK_PEER_CLIfallback.peer_waittrims structured responses to<= 8 KBso child chatter never blows up the parent's context window (full logs remain on disk viapeer_read). Meanwhile,zerogrokd'sByteLineScannerhandles JSONL lines up to 16 MiB without dropping token/tool telemetry.
Interactive Precision Signal-Graph Cockpit & In-Place Hot Reload
Built-in MCP App UI (
ui://agent-bots/manager.html) with wheel-zoom, canvas pan, draggable DAG nodes, obstacle-avoiding Bezier edges, per-agent spotlight telemetry cards, conversation-scoped multi-project grouping (conv:<conversationId>), host Overview panel injection (OverviewCdpBridge), and zero-restart runtime + UI hot reload (bots_reload+bots_read_ui_chunk).
Architecture
flowchart LR
Host["Antigravity Host<br/>(PreInvocation Hook + Overview Panel + Chat)"] -->|stdio MCP + UI Resource| Mcp["ZeroGrok MCP Server<br/>(src/mcp/server.ts & runtime.ts)"]
Mcp --> Router["BotRouter & Store<br/>(Admission, Locking, Peer Bridge)"]
Router -->|Optional UDS RPC| Daemon["Native Rust zerogrokd (engine/)<br/>SQLite WAL · APFS CoW · 0-Token Gates<br/>SerialMergeQueue · kqueue Reaping"]
Router -->|Local HTTP MCP / $ZEROGROK_PEER_CLI| CLIs["External Agent CLIs<br/>codex · pi · cursor · opencode · antigravity"]
Daemon -->|Spawn & Isolate| CLIsHow ZeroGrok Compares to Existing Tools
Capability | Single-Vendor Subagents (e.g., Claude Code / Built-in Swarms) | Terminal Multiplexers (e.g., Claude Squad / tmux scripts) | Python Agent Frameworks (e.g., CrewAI / LangGraph) | ZeroGrok |
Cross-CLI / Cross-Vendor Routing | Locked to one vendor/CLI | Manual CLI switching in panes | API-centric; not IDE CLI-native | Native adapters for 5 CLIs ( |
Parallel Same-Repo Isolation | Shared | Git worktrees only | No workspace filesystem sandbox | APFS |
Verification & Guardrails | Prompt-based / LLM self-review | None built-in | Custom Python callbacks | 0-Token |
Mid-Flight Failure Recovery | Retry whole prompt or manual fix | Manual pane restart | Graph-level retry | Bypass |
Context Window Protection | Often dumps full child output | Manual copy-paste | Manual state pruning | Summary-first |
IDE Control Plane & Telemetry | Text logs in chat | Terminal text | Separate web server / none | Embedded MCP App Cockpit (zoom/pan/drag DAG, token/step telemetry, Overview widget, hot reload) |
Measured Benchmark Results
The numbers below are directly measured on macOS arm64 (APFS) by running the built-in self-verification suite (./engine/target/release/zerogrokd benchmark --workspace ., status: "ACCEPTED"):
Metric / Invariant | Measured Result | Baseline / What It Means |
UDS |
| vs. |
Event-push guardrail wakeup |
|
|
Rust binary spawn median |
| Sub-5ms daemon/helper startup |
Native Mach-O |
| ~ |
APFS |
|
|
Bypass Hot-Swap + |
| Atomic Saga compensation + epoch rollover + downstream reset |
Orphan grandchild processes |
| Verified via |
Large JSONL line telemetry (>64 KiB) |
|
|
SQLite foreign-key pragma |
| WAL mode with zero foreign-key lock contention |
Honest Boundary: Cloud LLM reasoning time (typically seconds to minutes per turn) is governed by your model provider and network. ZeroGrok accelerates the orchestration and control plane—eliminating polling dead-time, workspace write collisions, context bloat, orphan processes, and full-tree restarts.
Installation
Prerequisites
Node.js
>= 24.0.0Antigravity (
agyCLI) installed and available onPATHAt least one external agent CLI you want to orchestrate:
codex,pi,cursor-agent(Cursor CLI),opencode, oragyOptional (Recommended on macOS/Linux): Rust toolchain (
cargo) to compile the nativezerogrokdengine (engine/). Without Rust, ZeroGrok runs cleanly in pure-Node fallback mode.
Option A: Quick Install (Pure Node.js Mode)
git clone https://github.com/TinkCarlos/zerogrok.git
cd zerogrok
npm install
npm run install:pluginOption B: Full Install with Native Rust zerogrokd Engine (Recommended)
git clone https://github.com/TinkCarlos/zerogrok.git
cd zerogrok
npm install
npm run build:all
npm run install:pluginnpm run build:all compiles engine/target/release/zerogrokd, bundles the MCP server, hooks, and UI into dist/, and automatically stages dist/bin/zerogrokd so npm run install:plugin ships both together.
Verify Installation
npm run validate
agy plugin list --jsonYou should see "name": "zerogrok" with "enabled": true and "findings": []. Restart your Antigravity session (or run RefreshMcpServers) so the host picks up the newly installed plugin.
How to Use
1. Open the ZeroGrok Manager & Check CLI Health
Ask Antigravity:
"Open the ZeroGrok manager"(callsopen_bot_manager)Check the Health tab to verify which local CLIs (
codex,pi,cursor,opencode,antigravity) are installed and authenticated.
2. Create Your Agent Bots
In the Bots tab, click + New Bot to configure:
Agent CLI:
codex,pi,cursor,opencode, orantigravityPermission Mode:
Mode
Behavior
chatPure conversation; tools disabled where supported (
pi,opencode,codex, etc.)planRead-only codebase inspection and planning
askRead tools allowed; mutations gated/fail-closed (e.g.,
pi-ask-guard)agentStandard workspace read/write execution (uses CoW sandbox when
zerogrokdis active)fullFull autonomous execution with sandbox isolation and peer bridge
Routing Prompt: Natural-language rule telling Antigravity when to auto-delegate tasks to this bot (enforced via
rules/AGENTS.mdandPreInvocationhook).Allowed Peer IDs (
allowedPeerIds): Optional list of peer bot IDs this bot can invoke autonomously.Fallback Bot IDs (
fallbackBotIds): Ordered backup bots used for automatic slot hot-swap recovery on recoverable failures.
3. Dispatch, Collaborate & Monitor
Once bots are enabled, simply chat in Antigravity:
Single Delegation: "Ask the Codex backend bot to add rate-limiting middleware and run unit tests."
Parallel Fan-Out: "Dispatch up to 3 instances of the reviewer bot in parallel to audit
src/mcp/,src/adapters/, andsrc/ui/."Autonomous Peer Pipeline: "Have the lead architect bot implement the endpoint and automatically call the QA bot to verify it before reporting back."
In the Live cockpit tab:
Zoom / Pan / Drag: Scroll wheel zooms around cursor (
0.35x–2.5x), drag empty canvas to pan, double-click to reset, or drag any node to rearrange the signal graph.Hot-Swap (
Replace & Re-run): Swap a stalled or failed slot (hot_swap_slot) to a new bot or revised task mid-flight without killing parent runs.Stop (
Cancel): Cancel a single run tree (cancel_bot_run) or stop all active runs in a project ({ all: true, projectId }).Diagnostics & GC: Use the Health / Diagnostics panel (
bots_diagnose) to inspectzerogrokddaemon status, lock state, manifest drift, and garbage-collect stale auxiliary files.
Environment Variables (Optional)
Variable | Description | Default |
| Explicit path to | Auto-detected ( |
| Set to | Unset |
| Custom directory for APFS CoW sandboxes |
|
| Global concurrent run cap per data dir |
|
| Per-engine concurrent run cap (up to 5 per bot) |
|
MCP Tools Reference
Scope | Tools |
Model-Visible Tools |
|
App UI Management & Ops Tools |
|
Local Peer Bridge Tools (injected into child bots) |
|
Development & Testing
# Typecheck TypeScript
npm run typecheck
# Build Rust engine + TypeScript bundle + UI
npm run build:all
# Run Rust engine unit tests
cargo test --manifest-path engine/Cargo.toml --lib
# Run TypeScript unit tests
npm test
# Strict Antigravity plugin manifest check
npm run validateMore technical specs live in docs/:
License
MIT © 2026 TinkCarlos
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Run parallel coding agents: Git-worktree workspaces, agent sessions, automations, tasks.
Multiplayer task board and agent sandboxes: live previews, isolated databases and verification.
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
Command center for developers coordinating AI coding agents across projects.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables Codex or Claude Code to orchestrate persistent Antigravity CLI workers as independent implementers and testers within restricted workspace roots. It supports asynchronous task dispatch, progress polling, result inspection, follow-up messages, and cancellation with bounded, audited local event logging.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables asynchronous task delegation to local Antigravity and Codex CLI agents, with run IDs, status queries, waiting, cancellation, session resumption, and persistent background execution across client reconnects.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables coordinating local coding agents across Antigravity, DeepSeek Harness, Claude Code, and OpenCode with persistent tasks, live public events, file-change artifacts, session follow-ups, process-tree cancellation, and configurable execution permissions.MIT
- AlicenseCqualityBmaintenanceEnables Claude Code to act as a tech lead over headless Antigravity CLI sub-agents: spawning parallel workers in isolated git worktrees, running verify commands server-side with automatic fix loops, flagging stalls and loops, and merging results safely with conflict prediction. Workers return compact structured reports delivered once, and optional Orca IDE integration lets you watch logs and review diffs live.8MIT