AGY Leader
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.
AGY Leader
English | 简体中文
An Antigravity plugin and Model Context Protocol (MCP) server that routes coding and review tasks to local Codex and Claude Code CLIs in isolated Git worktrees.
AGY Leader lets Gemini in Antigravity act as your Chief of Staff and Commander—translating natural human intent into clear engineering specifications, dispatching work to local codex and claude CLIs over stdio MCP, and reporting results back in plain language. Instead of letting multiple execution agents overwrite the same working tree or forcing you to wrestle with rigid prompt phrasing, it leases separate Git worktrees for parallel tasks, audits every turn, and lets you inspect diffs before applying patches back to your main checkout.
The plugin also ships two built-in MCP Apps—AGY Leader · Monitor (global dashboard) and AGY Leader · Trace (conversation side pane)—so you can track active jobs, Project/Session history, four-stage timing, and changed files without leaving Antigravity.
Features
Multi-provider routing: Dispatch tasks to local Codex CLI or Claude Code CLI through a unified MCP toolset (
agent_ask,agent_run_task,agent_start_task).Isolated parallel Git worktrees: Run concurrent edits safely with
isolate_worktree: true, review patches viadiff, and run conflict-checkedapplyorcleanup.Built-in observability: Inspect live task execution, Project/Session history, success rates, and four-stage latency in AGY Leader · Monitor and AGY Leader · Trace.
Restricted Claude Code isolation: Supports
claude auth loginas well asANTHROPIC_API_KEY/ANTHROPIC_AUTH_TOKENand customANTHROPIC_BASE_URLgateways while keeping turns under--restricted --safe-mode.Optional Rust/WASM acceleration: Uses
crates/accel-wasmfor fast file fingerprinting, UTF-8 truncation, and NDJSON parsing, with an automatic TypeScript fallback.
Preview
Task delegation in Antigravity | AGY Leader · Monitor dashboard |
|
|
Related MCP server: agent-bridge
Project status
Current version:0.3.0 (plugin.json / package.json). Active development; suitable for local daily workflows with Antigravity, Codex CLI, and Claude Code CLI.
Table of contents
Quick start
1. Install dependencies, build UI, and run diagnostics
From the repository root:
bun install
bun run build
bun run doctorbun run doctor verifies the UI bundle, optional WASM module, and each provider's binary path and authentication status. Confirm that at least one provider reports healthy: true and the UI assets are built.
2. Install and enable the Antigravity plugin
bun run install:plugin --symlink && agy plugin enable agy-leader3. Verify in Antigravity
Open Customizations → Installed in Antigravity and confirm AGY Leader is enabled. You can then open AGY Leader · Monitor from the global Plugins sidebar or AGY Leader · Trace from a conversation's side pane.
Requirements
Dependency | Minimum | Recommended | Notes |
Bun |
| Latest | Runtime, package manager, and test runner |
Git |
| Latest | Required for isolated worktrees and patch audit |
Codex CLI | Authenticated | Latest | Optional if using Claude Code only |
Claude Code CLI |
| Latest | Optional if using Codex only |
Antigravity CLI ( | Installed | Latest | Required for |
Rust + |
| Latest | Optional; TypeScript fallback is used when absent |
Installation and configuration
Antigravity plugin installation
Development symlink mode (
bun run install:plugin --symlink): Creates~/.gemini/config/plugins/agy-leaderlinked to your checkout and generates an absolute-pathmcp_config.json(mode0600). Re-running refreshes links and preserves an existingmcpServers["agy-leader"].envobject.Standalone copy mode (
bun run install:plugin): Copies the plugin into~/.gemini/config/plugins/agy-leaderwithout symlinking the checkout.Custom config root: Pass
--config-dir <path>to target an isolated Antigravity configuration directory.
Standalone MCP server
To run the stdio MCP server directly from the checkout (or register it in another MCP host using the absolute path to src/index.ts):
bun run startEnvironment variables
Set these in the MCP server's env (for example in ~/.gemini/config/plugins/agy-leader/mcp_config.json):
Variable | Required | Default | Description |
| No |
| Explicit path to the Codex CLI binary |
| No |
| Explicit path to the Claude Code CLI binary |
| No | First ready provider | Default provider ID ( |
| No |
| Path to local trace history JSONL (legacy alias: |
| No |
| Directory for managed Git worktrees (legacy alias: |
Claude Code authentication and custom gateways
Claude Code works either via claude auth login or by setting ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN (and ANTHROPIC_BASE_URL for a custom gateway) in the MCP server env or in ~/.claude/settings.json (or $CLAUDE_CONFIG_DIR/settings.json):
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "<your-gateway-token>",
"ANTHROPIC_BASE_URL": "https://gateway.example.com",
"ANTHROPIC_MODEL": "sonnet",
"CLAUDE_CODE_EFFORT_LEVEL": "high"
}
}Nonblank MCP process env values take precedence over ~/.claude/settings.json. Turns always run with --restricted --safe-mode; project-level .claude/settings.json, hooks, permissions, and executable variables like PATH or NODE_OPTIONS are never imported from user settings. See Claude authentication and isolation for the full allowlist and apiKeyHelper behavior.
Usage
Typical workflow
Discover providers and models: Call
agent_list_providersto check readiness, andagent_list_modelsto inspect available models.Run a read-only query or isolated edit:
Use
agent_askfor synchronous, read-only questions or code reviews.Use
agent_start_taskwith an absolutecwd,prompt,provider(codexorclaude-code), andisolate_worktree: trueto run background edits in an isolated checkout.
Monitor, review, and apply:
Poll
agent_task_statuswith the returnedjob_id.Inspect the patch with
agent_manage_worktrees(action: "diff").Apply approved changes back to the original checkout with
action: "apply", or discard them withaction: "cleanup".
For session resumption, routing guidelines, and cleanup policies, see skills/agy-leader/SKILL.md and rules/AGENTS.md.
MCP tools
Tool | Purpose |
| List registered providers and their health/readiness |
| List available models for a provider |
| Run a synchronous read-only query |
| Run a synchronous task |
| Launch a background task (supports |
| Poll status, output, and audit metadata for a |
| Cancel a queued or running background job |
| List or inspect provider conversation threads |
| Inspect |
| Open AGY Leader · Trace in the conversation side pane |
| Open AGY Leader · Monitor in the global Plugins view |
Architecture and project structure
flowchart LR
AGY["Antigravity"] -->|MCP over stdio| Server["AGY Leader MCP server"]
Server --> Jobs["Task scheduler"]
Jobs --> Registry["Provider registry"]
Registry --> Codex["Codex CLI"]
Registry --> Claude["Claude Code CLI"]
Jobs --> Worktree["Git worktree & audit"]
Jobs --> Traces["Local trace store"]
Traces --> Apps["Trace pane & Monitor dashboard"].
├── src/
│ ├── index.ts # Stdio MCP entry point, --doctor flag, default registry
│ ├── mcp/ # MCP tool registration and request validation
│ ├── core/ # Job manager, worktree lifecycle, git audit, trace store, accelerator
│ └── providers/ # Codex and Claude Code CLI adapters
├── ui/ # MCP App sources and built HTML bundles (sidebar & dashboard)
├── crates/accel-wasm/ # Optional Rust/WASM accelerator crate
├── skills/agy-leader/ # /agy-leader skill instructions
├── rules/ # Default routing rules (AGENTS.md)
├── scripts/ # Build (build-ui, build-wasm) and plugin installer scripts
├── docs/ # Detailed architecture, lifecycle, and auth isolation docs
├── assets/ # Plugin logo and documentation screenshots
└── tests/ # Unit and mocked subprocess integration testsSee docs/architecture.md for provider protocol details, worktree lifecycle, trace storage limits, and instructions on adding a new provider.
Testing and development
Run the full verification suite from the repository root:
bun run build:ui
bun run typecheck
bun test
cargo fmt --check --manifest-path crates/accel-wasm/Cargo.toml
cargo test --locked --manifest-path crates/accel-wasm/Cargo.toml
cargo clippy --locked --manifest-path crates/accel-wasm/Cargo.toml --all-targets -- -D warnings
agy plugin validate --strict .Provider tests use local mocked subprocesses and do not require live provider credentials.
Troubleshooting
Provider reports unavailable: Run
bun run doctorand checkhealthyandmessage. If the binary is outside standardPATH(common in GUI hosts), setCODEX_BINorCLAUDE_BINin the installedmcp_config.json.Monitor or Trace panel fails to load: Rebuild the UI assets with
bun run build:uiand re-runbun run doctor.Duplicate or legacy plugin entries: The installer reports legacy entries during
bun run install:plugin; disable older entries under Customizations → Installed in Antigravity after verifying the new installation.
License
Released under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
Hosted coding agent: start, follow up on and stop tasks that can open GitHub pull requests.
Context, runtime and review for AI coding agents. One local install.
Your AI apps as one team: hand work to Codex or Claude Code on your Mac, with a shared logbook.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceTurns Claude Code into an engineering project manager by orchestrating feature development with isolated Git worktrees, structured task validation, and approval-gated integration.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables coordinating Claude Code and Codex across separate Git worktrees with shared issue ownership, file reservations, messages, and explicit handoffs.163 PyPI3MIT
- AlicenseAqualityCmaintenanceEnables Claude Code to run cursor-agent tasks in isolated git worktrees, manage asynchronous and parallel jobs, review diffs, and safely apply changes back to the repository.16MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code, Codex, and Cursor to delegate self-contained coding tasks to one another on the user's own subscriptions, with each task isolated in a git worktree and sandbox, usage tracked, budgets enforced, and results returned for review.35 npm3Apache 2.0

