Codex Commander Panel
Provides orchestration of local OpenAI Codex CLI workers, including creating parallel sessions, selecting models and reasoning effort, running prompts and read-only reviews, isolating work in Git worktrees, and tracking token usage via the user's ChatGPT subscription.
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.
Codex Commander Panel
Antigravity 侧边栏多 Worker OpenAI Codex CLI 控制台 —— 让 Gemini 专注总指挥与前端审美,把后端重活、并发重构与只读审查无缝派发给本机 Codex CLI(直走 ChatGPT 订阅)。
核心特性
零额外 API 费用:直接调用本机
codexCLI,复用你的 ChatGPT 订阅登录状态(自动检测Logged in using ChatGPT)。多 Worker 并行与 Worktree 隔离:支持随时
+ 新建多开并行会话,Git 仓库下自动开启--worktree隔离,互不踩文件。后台 Detached 守护进程:长任务在独立守护进程中运行,刷新面板或重载 MCP 服务不会中断执行中的 Codex 任务。
一键只读对抗式审查:顶部「审查」按钮可直接以
codex exec review只读模式审查当前仓库未提交改动。产物预览与一键交接:
自动收集生成图片与变更文件,支持缩略图并发限流预览、全屏灯箱(含
TabFocus Trap 与Esc焦点恢复)、一键「存到项目」与原生标签页打开。侧边栏「交给 Gemini」按钮可一键将 Worker 摘要、Worktree 路径和产物路径发回主对话,由 Gemini 负责最终验收。
长期使用无负担:
持久化 Token 用量统计:独立账本按「今日 / 近 7 天 / 累计总计 / 按模型」记录输入、缓存命中、输出与轮次,删除或清空会话不丢历史账单。
日志自动轮转:单日志文件上限 2 MiB、最多保留 2 份归档,支持跨轮转无缝读取尾部日志。
旧会话自动清理:默认保留最近 20 条(7 天内)已完成会话,运行中会话绝不误删。
内置
codex-commanderSkill:配套 Gemini 总指挥 + Codex 并行调度脚本dispatch.mjs,支持结构化交卷报告(--structured)与实时同步到侧边栏面板。
Related MCP server: Pi Conductor
协作架构
flowchart LR
User["用户"] --> Gemini["Gemini 主对话 (总指挥 / 前端审美 / 验收官)"]
User --> Panel["Antigravity 侧边栏 / 辅助栏 UI (MCP App)"]
Gemini -- "dispatch.mjs" --> Runner["codex-runner.mjs (状态 / 账本 / 权限边界)"]
Panel -- "MCP Tools (stdio JSON-RPC)" --> Server["server/index.mjs"]
Server --> Runner
Runner -- "detached daemon" --> Codex["本机 Codex CLI (ChatGPT 订阅 / --worktree)"]
Codex -- "JSONL 事件流" --> Runner
Panel -- "交给 Gemini" --> Gemini快速安装(零构建即用)
仓库已包含预编译的 dist/app.html,克隆即可直接使用:
1. 前置条件
Node.js
>= 20.0.0已安装 OpenAI Codex CLI 并完成登录:
codex login status # 应输出类似:Logged in using ChatGPT
2. 安装到 Antigravity 插件目录
git clone https://github.com/beichenzhu834-lang/codex-commander-panel.git \
~/.gemini/config/plugins/codex-panel3. 安装运行时依赖(仅 1 个轻量依赖)
cd ~/.gemini/config/plugins/codex-panel
npm ci --omit=dev完成后重启或刷新 Antigravity 的 MCP 服务,即可在右侧辅助栏 + 菜单或左侧全局边栏看到 Codex 面板。
如果需要修改前端源码(
ui/app.ts、ui/styles.css),请安装完整依赖后重新构建:npm ci && npm run build
使用指南
1. 侧边栏直接使用
点击右上角
+ 新建开启独立 Worker,可在设置栏切换模型(自动读取~/.codex/models_cache.json与config.toml)、推理强度、工作目录和worktree开关。点击顶部
审查,对当前 Git 仓库未提交改动启动只读 Code Review。点击顶部
用量,查看今日 / 近 7 天 / 累计及按模型分布的 Token 统计与缓存命中率。任务完成后,可点击
Diff/日志排查改动,或点击交给 Gemini一键转交主对话验收。
2. 由 Gemini 自动编排(codex-commander Skill)
在主对话中直接让 Gemini 拆解任务并派发给 Codex,内置脚本会将实时状态同步到侧边栏:
node ~/.gemini/config/plugins/codex-panel/skills/codex-commander/scripts/dispatch.mjs \
--cwd "/path/to/your/project" \
--title "实现后端接口与测试" \
--model "gpt-6.2-sol" \
--effort "high" \
--worktree \
--structured \
--prompt "你的结构化任务指令"目录结构
codex-commander-panel/
├── plugin.json # Antigravity 插件清单
├── mcp_config.json # MCP Server 配置(自动挂载 ${PLUGIN_DATA})
├── assets/logo.svg # 插件图标
├── server/
│ ├── index.mjs # MCP stdio JSON-RPC 服务与工具路由
│ ├── codex-runner.mjs # Worker 调度、安全边界、日志轮转、用量账本
│ └── worker-daemon.mjs # 独立 detached 后台守护进程
├── ui/
│ ├── index.html # MCP App 入口模板
│ ├── app.ts # 面板交互逻辑(状态轮询、草稿隔离、灯箱 Focus Trap)
│ └── styles.css # 自适应宿主深/浅色主题样式
├── dist/app.html # 单文件内联构建产物(零构建即用)
├── scripts/
│ ├── build-ui.mjs # esbuild 单文件打包脚本
│ └── test.mjs # 回归测试套件(npm test)
└── skills/codex-commander/ # Gemini + Codex 协作 Skill 与 dispatch.mjs跨平台与安全说明
数据隔离与权限:所有运行态状态、日志与用量账本默认保存在
${PLUGIN_DATA}(目录0700、文件0600),不会污染插件源码目录。产物访问边界:预览与复制产物严格校验目标真实路径位于 Worker 的
cwd、worktreePath或会话生成目录内,拒绝符号链接逃逸;侧边栏严格禁止以danger-full-access启动或续聊。平台兼容:在 macOS 上大图预览会自动调用系统
/usr/bin/sips生成缩略图;在 Linux / Windows 上会自动回退为<= 600 KiB原图直出,核心调度与面板功能均可正常使用。
本地开发与测试
npm ci
npm run check # 语法检查
npm run build # 重新打包 dist/app.html
npm test # 运行全量隔离回归测试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
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Read and write shared BitsWeave context, projects, tasks, and work sessions through MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Grok Build to orchestrate the local Codex CLI for code reviews, adversarial reviews, task rescue, session transfer, and background job management through MCP tools.1Apache 2.0
- AlicenseAqualityCmaintenanceEnables Codex to orchestrate persistent Pi RPC workers over a local MCP server, spawning dev, explore and review agents in isolated git worktrees or in place. Codex can inspect status, activity, token/cost metrics and real diffs, then merge only the accepted work and clean up idle workers.13MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to run and manage parallel local Codex worker tasks, including submission, status polling, cancellation, deadlines, logs, and resumable session continuation, while delegating inference to a configured LAN model service.MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to orchestrate multiple Codex CLI tasks in parallel, each isolated in its own git worktree and guarded by layered security policies like command allowlists and path restrictions. It collects structured results with patches, logs, and evidence, and can also review development plans for completeness and parallelization gaps.9 npmMIT