JAY201368/codex-castor
Async MCP bridge for Gemini-led planning, local Codex execution, and review
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Codex Castor is a Python 3.9+ MCP bridge with no third-party Python dependencies. mcp/server.py accepts newline-delimited JSON-RPC 2.0 over stdio and handles each tool call in a worker thread. Gemini in Antigravity writes the implementation brief; the bridge launches codex exec or codex exec resume, records Codex's JSON event stream on disk, and returns the final report alongside Git status, diff statistics, telemetry, and artifact paths.
Background execution and wakeup belong to the Antigravity client, not to stdio itself. That division lets Gemini end its turn and return to review the diff and run checks when Codex finishes. The orchestrator skill and config/GEMINI.md define the handoff procedure; mcp/telemetry.py and the mcp/monitor.html MCP App handle persistent metrics and task inspection separately from that procedure.
Key Capabilities & Differentiators
Seven MCP tools cover dispatch, resume, feedback, status, cancellation, managed worktree cleanup, and monitoring. Dispatch accepts a brief inline or from a file and can create a separate Git worktree and branch for concurrent implementation. Resume sends review feedback to the existing Codex session. The final report schema fixes six fields: status, summary, changed files, commands run, test summary, and open issues.
Execution remains on Codex CLI, with options for a model, reasoning effort, Fast mode, and permission policy. Monitor and the analytics CLI combine per-round and cumulative time and token counts with rework counts, ratings, and verdicts; the exports include telemetry.jsonl, telemetry.csv, and report.md. Both analytics surfaces exclude failed tasks from aggregates, so use task-level failure details alongside the model-by-effort matrix when judging reliability.
Trade-offs & Limitations
Compared with running Codex CLI directly, Castor adds a repeatable spec-to-review loop, same-session rework, and consistent task records. Those benefits come with an Antigravity-specific skill, hook, and client configuration. Other MCP clients can receive progress and log notifications, but do not inherit Antigravity's automatic wakeup. The Monitor's periodic refresh is separate from the architect's workflow: it does not require Gemini to poll for completion.
Git worktrees separate branches and working copies; they are not a security boundary. Review Codex's permission policy before granting extra writable directories, and treat forced worktree cleanup as destructive: it can discard local changes and delete an unmerged branch. Local state can contain prompts, verbatim first replies, and execution events, so decide who can access those records and how long to retain them.
Hardware & Deployment Guide
Deployment is a local stdio integration, not a hosted service. It requires Python 3.9+, Git, a working Codex CLI with an account configured, and Antigravity for the bundled workflow. Use ./scripts/install.sh on macOS or Linux and py -3 scripts/install.py on Windows 11 x64; the Windows path uses native executables without WSL. Reload Antigravity, then run scripts/doctor.py with the appropriate Python launcher to verify the installation and the MCP handshake.
The installer manages files under the Gemini configuration directory and backs up hooks.json when changing it. Use --dry-run to preview changes; enable the optional CLI status line with --install-statusline. Release v1.2.0 added Fast mode support and the Antigravity composer widget. v1.3.0 added permission and approval configuration across the server and UI surfaces.
mcp/server.py uses newline-delimited JSON-RPC 2.0 over stdio and handles each call in a worker thread.Antigravity users who repeatedly delegate repository changes to Codex and want independent review, optional worktree separation, and a reviewable record of cost and outcomes.
You only need occasional direct Codex runs, require offline inference, or expect background wakeup to work unchanged across MCP clients.
Quick Start & Installation
git clone https://github.com/JAY201368/codex-castor.git && cd codex-castor && ./scripts/install.sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| codex-castor ★ | 64 | +58 | Python | MIT | Async MCP bridge for Gemini-led planning, local Codex execution, and review |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| agents | 43.2k | +221 | Python | MIT | One Markdown plugin catalog adapted to seven AI coding tools |
| agent-skills | 122.5k | +1.7k | JavaScript | MIT | A modular skill pack for consistent coding-agent workflows, from spec to release |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/JAY201368/codex-castor.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about codex-castor
What lets Gemini stop waiting while Codex runs?
codex_dispatch and codex_resume as background calls and wakes Gemini when the result arrives. The Python server runs Codex and writes its events to disk. A different MCP client can consume progress or log notifications, but it needs its own mechanism to resume the supervising agent.Does Castor require a GPU, and what determines host capacity?
Can a company self-host Castor under the MIT license?
When is Castor worth using instead of Codex CLI directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy