Codex 监工
Uses the local Git repository to generate diffs for review and to create isolated detached worktrees for parallel Codex tasks, with cleanup/merge after validation.
Dispatches coding tasks to a local OpenAI Codex CLI/Desktop through the codex app-server protocol, configures model/effort/sandbox settings, streams task logs and replies, collects diffs, and sends follow-up corrections.
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-whip-codex(Codex 监工)
让发散的 Gemini 帮你给严谨的 Codex 写任务书、抽鞭子验收。
一个写给 Antigravity(反重力) + OpenAI Codex 双修玩家的轻量级原生插件小玩具。
100% AI 生成声明:本仓库所有代码、UI 样式、测试脚本与文档均 100% 由 AI 生成(不含任何手工编写代码)——从第一行代理代码到多轮交叉 Code Review、自查修 Bug、再到功能迭代,全部由 Antigravity(Gemini)指挥 Codex(GPT)在真实对话中协作完成。本项目定位为个人开源玩具,按 MIT 协议原样提供,欢迎自取魔改。
为什么要做这个小玩具?
平时同时用 Gemini 和 GPT/Codex 写代码时,有一个非常明显的体感反差:
GPT / Codex:工程落地非常严谨、审代码挑刺极狠,但有时防御心过重、偏保守,面对模糊需求容易收着干;
Gemini(Antigravity 主控):视野开阔、思维更发散,擅长快速梳理全局上下文、把模糊想法拆解成结构清晰的开发任务书。
于是干脆做了这个反重力原生插件,让两者优势互补:
核心玩法:你在 Antigravity 里随口点名让 Codex 干活 → Gemini 帮你读上下文、写清楚结构化任务书并派给本地官方 Codex → Codex 干完后由 Gemini 独立查
git diff跑测试,不满意就顺着同一线程「抽鞭子」打回返工(带 2~3 轮止损上限)。零日常打扰:不塞常驻
rules/AGENTS.md,也不挂hooks.json拖慢平时对话;你不提 Codex 时它完全隐身,插件管理页还自带一键总开关。主从过程全透明:侧边栏不仅能看 Codex 的实时日志、最终回复和
git diff,还能切到 「派活指令」Tab 查看任务指令。每个任务保留最近 20 条指令,每条最多保存 32,000 个字符。
Related MCP server: antigravity-plugin-codex
顺手附带的免费赠品(彩蛋功能)
本来只想做个“Gemini 帮 Codex 写提示词”的顺手小工具,结果写着写着顺手把这些协作能力也塞进去了,当作买一送多的赠品:
极简浅色侧边监控台(MCP App):温润浅色 + 去线留白设计,支持在侧边栏实时切换账号下动态拉取的 Codex 模型、思考强度(
low/medium/high/xhigh/max/ultra)与最高权限沙箱锁(只读审查/工作区可写/完全权限),支持运行中一键急停。事件触发式完成唤醒:内置
scripts/wait-job.mjs,通过fs.watch监听本地完成信号,并每 5 秒补查一次信号文件。长任务可在 MCP 调用返回后继续后台运行。上下文隔离 + 按需查轨迹:Codex 内部几十次工具调用默认不会倒灌进主对话上下文;需要排查黑箱过程时,主 Agent 可按需调用
codex_trace分页抽查命令、退出码与补丁记录。并行多开 + Git Worktree 隔离:支持同时派发多个不同角色的 Codex 并行干活,写代码任务可开启
worktree: true自动分配独立 detached git worktree 避免互相踩踏,验收合并后再清理。按会话划分的「协作黑板」Tab:每个 Antigravity 对话拥有单独的黑板文件,子代理的
board-mcp.mjs工具按启动时传入的session_id和角色名读写。黑板支持置顶契约、多 Agent 异步留言以及在侧边栏直接留言。
前置要求
Google Antigravity(支持本地自定义插件与 MCP Apps 侧边栏);
Node.js ≥ 20(需在
PATH中可用);新版 OpenAI Codex CLI 或 Codex Desktop(需支持官方原生
codex app-server --stdio协议,例如 Codex CLI ≥0.171或已安装的 Windows Codex Desktop,并已完成本机账号登录)。可通过环境变量
CODEX_BINARY_PATH指定 Codex 可执行文件。Windows 下插件会尝试探测 Codex Desktop 内置的codex.exe,再回退到 Codex CLI。macOS 和 Linux 默认从PATH查找codex。
Git(克隆仓库、获取 Git Diff 和使用 worktree 时需要)。
快速安装(3 步上手)
把仓库克隆到 ~/.gemini/config/plugins/ 下,文件夹名随你取,比如 agy-whip-codex、codex-overseer 或 codex-whip。下面用 agy-whip-codex 举例,想改名就换掉第一行路径末尾的文件夹名。Antigravity 会按安装目录名自动分配 MCP 命名空间,主 Agent 按 open_codex_monitor、codex_dispatch、codex_whip 等工具名就能找到它们。
Windows (PowerShell)
$pluginDir = Join-Path $HOME '.gemini\config\plugins\agy-whip-codex'
git clone https://github.com/kingrichsound/agy-whip-codex.git "$pluginDir"
Set-Location -LiteralPath $pluginDir
npm.cmd ci --no-audit --no-fund
npm.cmd run build:uimacOS / Linux
plugin_dir="$HOME/.gemini/config/plugins/agy-whip-codex"
git clone https://github.com/kingrichsound/agy-whip-codex.git "$plugin_dir"
cd "$plugin_dir"
npm ci --no-audit --no-fund
npm run build:ui安装完成后无需重启,Antigravity 会自动发现该插件:
在 Customizations / 插件管理页 找到 Codex 监工 即可一键开启或关闭;
在右侧辅助栏点击
+→ Codex 监工(或左侧导航栏的 Codex 监工)即可打开侧边监控与设置面板。
怎么用?
平时不提 Codex 时,主 Agent 会照常直接干活,零额外开销。需要 Codex 出马时,在对话里直接自然语言点名即可(或输入技能名 /codex-overseer):
让 Gemini 拆需求并派给 Codex 写代码:
「让 codex 实现 xxx 功能,完成后你帮我审查 git diff 并跑测试验收」
双模型交叉只读 Review:
「让 codex 只读 review 一下刚才改的这几个文件,找找潜在 bug 和边界问题」
临时切换档位:
「这次用
xhigh强度让 codex 排查一下这个并发问题」并行多开 + 黑板协同(赠品玩法):
「并行派两个 codex 分别负责后端接口和前端页面,先在黑板置顶接口契约,开 worktree 各自开发」
在侧边栏面板中,你还可以:
调整默认子代理模型、思考强度与沙箱上限(保存后下一单立即生效,连上引擎后自动拉取你当前 Codex 账号真实可用的模型目录);
点开任意任务切换查看 实时事件 / 派活指令 / Codex 回复 / Git Diff;
在任务底部直接输入批注,点 「发回对话抽鞭子」 让主 Agent 接着原线程要求 Codex 返工。
项目结构
./
├── plugin.json # Antigravity 插件清单与快捷提示词
├── mcp_config.json # 注册本地 MCP Proxy Server
├── package.json # Node.js 依赖与构建命令
├── package-lock.json # 锁定 npm 依赖版本
├── assets/
│ ├── logo.svg # 插件图标
│ └── mascot.png # README 吉祥物
├── src/
│ ├── server.mjs # MCP Proxy(对接官方 codex app-server、异步信号、worktree、会话隔离)
│ ├── board-store.mjs # 多进程并发安全的会话级黑板存储
│ └── ui/
│ ├── index.html # 浅色去线留白侧边栏模板
│ └── app.ts # MCP App 前端交互与实时监控逻辑
├── scripts/
│ ├── build-ui.mjs # esbuild 单文件打包 + ESM 语法校验
│ ├── board-mcp.mjs # 注入给每个 Codex 线程的会话锁定版黑板 MCP
│ └── wait-job.mjs # 基于 fs.watch 的单/多任务事件触发等待器
└── skills/
└── codex-overseer/
└── SKILL.md # 按需加载的监工抽鞭子 SOP隐私与已知边界
本地数据存储:任务历史(含指令和回复)、默认设置、信号文件、黑板记录与临时 worktree 保存在 Antigravity 分配的
${PLUGIN_DATA}本地目录。模型请求和账号鉴权由本机的 Codex 处理,插件通过 stdio 把任务指令交给 Codex,并复用其登录状态。已知小边界:Antigravity 在用户手动点击
+重开侧边栏或切换对话重载面板时不会自动透传当前会话 ID。为严格防止不同对话的任务与黑板混用,插件不会盲猜最近会话,而是提供一个轻量的会话选择器供手动点选;在对话内首次派活时则会自动绑定当前会话。
License
本项目采用 MIT 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
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
Open-source workspace where AI agents do the work and humans set direction. Apache 2.0.
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables multiple AI coding CLIs (Claude Code, Gemini/Antigravity, Codex, and OpenCode) to collaborate as a coordinated team by routing cross-agent prompts, sharing messages and review tickets, tracking tasks on a shared store, and isolating each agent in its own Git worktree with turn-budget safeguards—all inspectable and steerable from a local web dashboard.MIT
- AlicenseBqualityCmaintenanceEnables a local Codex chat to ask a second opinion, review staged, unstaged, or revision-based diffs, and delegate coding tasks to the Antigravity CLI running in isolated or disposable workspaces. Supports starting, polling, retrieving, and cancelling tasks with returned answers, diffs, changed-file lists, exit codes, and time/output limits, while never auto-applying returned patches.81MIT
- AlicenseNot gradedqualityCmaintenanceEnables local coding agents to track sessions, exchange isolated collaboration messages, and optionally delegate coding work to Codex with Git worktree isolation and task management.MIT
- AlicenseNot gradedqualityBmaintenanceEnables local multi-agent Codex collaboration through a SQLite task graph, atomic task claiming and leases, isolated Git worktrees, append-only events and messages, and a local web Kanban board.MIT