codex-supervisor-mcp 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.en.md +21 -21
  2. package/README.md +21 -21
  3. package/package.json +3 -2
package/README.en.md CHANGED
@@ -8,15 +8,17 @@ English | [中文](README.md)
8
8
  [![CI](https://github.com/zriyox/codex-supervisor-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/zriyox/codex-supervisor-mcp/actions/workflows/ci.yml)
9
9
  [![node](https://img.shields.io/badge/node-%3E%3D22.13.0-339933.svg)](package.json)
10
10
 
11
- **codex-supervisor-mcp** is a Codex MCP server: let one main thread (Claude Code, Codex, or any MCP client) run several Codex CLI workers at once. One Git worktree per worker, every state change on disk, and a web board to watch the batch.
11
+ Website [codex-supervisor.zriyo.com](https://codex-supervisor.zriyo.com) · for models [llms.txt](https://codex-supervisor.zriyo.com/llms.txt)
12
12
 
13
- ![Demo: one Claude Code main thread dispatches three Codex workers into separate worktrees, waits, and merges the result](https://raw.githubusercontent.com/zriyox/codex-supervisor-mcp/main/assets/demo.gif)
13
+ Point several agents at one repository and they overwrite each other, nobody can say who changed what, and the main thread's context fills up with worker output.
14
+
15
+ **codex-supervisor-mcp** is a Codex MCP server that takes dispatch and bookkeeping out of the model's context and puts them on disk: one main thread (Claude Code, Codex, or any MCP client) runs several Codex CLI workers at once, one Git worktree per worker, state in SQLite, a web board on top.
14
16
 
15
- *30 seconds, recorded live: the main thread calls `create_codex_worker` three times, the workers run in parallel in their own worktrees, the main thread collects three diffs and makes one commit.*
17
+ ![Demo: one Claude Code main thread dispatches three Codex workers into separate worktrees, waits, and merges the result](https://raw.githubusercontent.com/zriyox/codex-supervisor-mcp/main/assets/demo.gif)
16
18
 
17
- ## What it is
19
+ *30 seconds, recorded live: `create_codex_worker` ×3, three workers in their own worktrees in parallel, the main thread collects three diffs and makes one commit.*
18
20
 
19
- Point several agents at one repository and they overwrite each other, and nobody can say who changed what. This MCP takes dispatch and bookkeeping out of the model's context and puts them on disk:
21
+ ## What it solves
20
22
 
21
23
  | Problem | What it does |
22
24
  |---|---|
@@ -28,7 +30,7 @@ Point several agents at one repository and they overwrite each other, and nobody
28
30
  | "Failed" and "process gone" look alike | The state machine keeps `failed` and `lost` apart |
29
31
  | No view of where a batch is | `codex-supervisor-web`, a board that shows every worker by session |
30
32
 
31
- Workers run `codex exec`; `model` is passed through. The main thread stays on Claude for judgement, workers can run DeepSeek or any model Codex has a provider for, and the bills stay separate.
33
+ Workers run `codex exec` with `model` passed through: the main thread stays on Claude, workers can run DeepSeek or any model Codex has a provider for, and the bills stay separate.
32
34
 
33
35
  ## Five minutes to a running batch
34
36
 
@@ -40,14 +42,14 @@ Prerequisites: Node.js 22.13.0 or newer, `codex` on `PATH`. macOS, Linux and Win
40
42
  npm install -g codex-supervisor-mcp
41
43
  ```
42
44
 
43
- `postinstall` copies the skill into `~/.claude/skills/`, `~/.agents/skills/` and `~/.codex/skills/` and registers the MCP with `claude mcp add -s user` and `codex mcp add`. If `claude mcp list` does not show it (`npx`, `--ignore-scripts` and pnpm skip `postinstall`), add it by hand:
45
+ `postinstall` installs the skill and registers the MCP. If `claude mcp list` does not show it (`npx`, pnpm and `--ignore-scripts` skip `postinstall`), add it by hand:
44
46
 
45
47
  ```bash
46
48
  claude mcp add -s user codex-supervisor -- npx -y codex-supervisor-mcp
47
49
  codex mcp add codex-supervisor -- npx -y codex-supervisor-mcp
48
50
  ```
49
51
 
50
- Restart Claude Code / Codex. Updates take care of themselves from here; see "Updating".
52
+ Restart Claude Code / Codex. Updates take care of themselves from here; see "Updating". For the skill alone: `npx skills add zriyox/codex-supervisor-mcp`.
51
53
 
52
54
  ### 2. Dispatch a batch
53
55
 
@@ -73,13 +75,11 @@ codex-supervisor-web
73
75
  npx -p codex-supervisor-mcp codex-supervisor-web
74
76
  ```
75
77
 
76
- Open `http://127.0.0.1:7877`. State directory: `SUPERVISOR_HOME` if set, else the one configured in the nearest `.mcp.json` above the current directory, else `~/.codex-supervisor`. `SUPERVISOR_WEB_PORT` changes the port; a taken port is reported. The board never dispatches or cancels.
78
+ Open `http://127.0.0.1:7877`. The state directory is `SUPERVISOR_HOME`, else the nearest `.mcp.json`, else `~/.codex-supervisor`; `SUPERVISOR_WEB_PORT` changes the port. The board only shows; it never dispatches or cancels.
77
79
 
78
80
  ## How I use it
79
81
 
80
- This MCP does not care who the main thread is: Claude Code, Codex, Cursor, anything that speaks MCP can dispatch, and workers use whatever model Codex has a provider for. What follows is my way, not the only way.
81
-
82
- I run two Claude Code sessions, one for documents and one for dispatch. A session that writes the design and watches the workers fills its context in two hours.
82
+ Anything that speaks MCP can be the main thread; this is just my way. I run two Claude Code sessions, one for documents and one for dispatch: a session that writes the design and watches the workers fills its context in two hours.
83
83
 
84
84
  | Who | Where | Does what |
85
85
  |---|---|---|
@@ -88,7 +88,7 @@ I run two Claude Code sessions, one for documents and one for dispatch. A sessio
88
88
  | Main-brain session | A worktree of the code repository | Read the brief, dispatch Codex workers, check every worker's diff, write results back into the brief, report to me. Writes no business code |
89
89
  | Codex workers | Their own worktrees | One worker per step, one commit per step, build and verify on a remote machine. No push, no merge |
90
90
 
91
- One block of text passes between the two sessions: the planning session writes it, I paste it into the main-brain session and hand it over with `/goal`. Its shape is fixed:
91
+ One block of text passes between the two sessions, pasted into the main-brain session and handed over with `/goal`. Its shape is fixed:
92
92
 
93
93
  ```text
94
94
  [Role] You are the main brain: read docs and code, dispatch workers, check results, update docs, report to me. You write no business code.
@@ -121,9 +121,7 @@ resume_codex_worker when it must change something, one follow-up, amended in
121
121
  land_codex_worker checked, then landed on the integration branch
122
122
  ```
123
123
 
124
- The last block was 25 steps. The main-brain session ran it end to end with nothing in its context but the brief and each worker's report. The tokens the workers burn are not on the main brain's bill.
125
-
126
- "One worker per step, one commit per step, checked before the next" came from trying it the other way. When a step is wrong, one `resume_codex_worker` asks for `--amend` into the same commit, the main brain checks again, then lands. A worker that did three steps cannot be fixed this way: when step 5 is wrong, steps 6 and 7 are already on top.
124
+ The last block was 25 steps; the main-brain session ran it end to end with nothing in its context but the brief and each worker's report. One worker per step came from trying it the other way: when a step is wrong, one `resume_codex_worker` asks for `--amend` into the same commit and the main brain checks again before landing; a worker that did three steps cannot be fixed that way, since steps 6 and 7 already sit on top of a wrong step 5.
127
125
 
128
126
  ## What the board shows
129
127
 
@@ -202,7 +200,7 @@ A terminal state lands in two steps: `turn.completed` sets `completed`, the proc
202
200
  | `data/update-check.json`, `auto-update.json` | Update check and background update records |
203
201
  | `worktrees/<taskId>/` | The worker's Git worktree |
204
202
 
205
- `changed_files` is the worktree's real diff (`git status` plus `git diff <base_commit> HEAD`), so edits made through the shell and commits the worker made itself are both visible. Git reads run with `core.quotePath=false`, so non-ASCII file names come back as written. Databases from older versions migrate on first open.
203
+ `changed_files` is the worktree's real diff, so shell edits and the worker's own commits are both visible. Non-ASCII file names come back as written. Databases from older versions migrate on first open.
206
204
 
207
205
  ## Environment variables
208
206
 
@@ -237,11 +235,9 @@ GUI clients (Claude Desktop, Cursor, Windsurf) do not run `postinstall`: add thi
237
235
 
238
236
  ## Updating
239
237
 
240
- Nothing to do by hand. The server asks the registry in the background at start (then every six hours); when a newer version is published it starts a detached process that runs `npm i -g` into the same global path. The running session is untouched; the next session starts on the new version. Progress lands in `data/auto-update.json` and in `update.auto_update` on tool results. Only a copy that `npm i -g` installed is touched; a git checkout, an `npm link` or an `npx` copy is left alone, and each version is attempted once.
241
-
242
- The skill takes care of itself too: every server start copies the bundled skill into whichever skill directories exist, backing up a differing file as `SKILL.md.bak-<timestamp>`. A session that already loaded the skill sees the new text after loading it again.
238
+ Nothing to do by hand. At start the server asks the registry in the background; a newer version is installed by a detached `npm i -g` into the same global path, the running session is untouched and the next session starts on it. Only a copy that `npm i -g` installed is touched; a git checkout or an `npx` copy is left alone. The skill does the same: every start copies it into the existing skill directories, backing up an edited file as `SKILL.md.bak-<timestamp>`.
243
239
 
244
- Where the global directory needs sudo the install fails, the `update` field says why, and `npm install -g codex-supervisor-mcp@latest` by hand still works. Versions up to 0.6.1 only notify; upgrade by hand once and it is automatic from then on. Switching Node versions breaks the registered absolute path: `claude mcp remove -s user codex-supervisor` and `codex mcp remove codex-supervisor` first, then install. To run the setup again: `codex-supervisor-setup` (`--skill-only` / `--mcp-only` / `--dry-run`).
240
+ When the install fails (a global directory that needs sudo) the `update` field says why and `npm install -g codex-supervisor-mcp@latest` by hand still works. Versions up to 0.6.1 only notify; upgrade by hand once and it is automatic from then on. A Node version switch breaks the registered path: `claude mcp remove -s user codex-supervisor`, `codex mcp remove codex-supervisor`, reinstall. To run the setup again: `codex-supervisor-setup` (`--skill-only` / `--mcp-only` / `--dry-run`).
245
241
 
246
242
  Uninstall:
247
243
 
@@ -304,6 +300,10 @@ npm run web:build # bundle to web/dist, runs before npm publish
304
300
 
305
301
  CI runs Ubuntu / macOS / Windows, plus a Node 22.13.0 job that pins the `engines` floor.
306
302
 
303
+ ## Contributing
304
+
305
+ See [CONTRIBUTING.en.md](CONTRIBUTING.en.md). Security issues go through the [private advisory form](https://github.com/zriyox/codex-supervisor-mcp/security/advisories/new); see [SECURITY.md](SECURITY.md).
306
+
307
307
  ## License
308
308
 
309
309
  MIT
package/README.md CHANGED
@@ -8,15 +8,17 @@
8
8
  [![CI](https://github.com/zriyox/codex-supervisor-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/zriyox/codex-supervisor-mcp/actions/workflows/ci.yml)
9
9
  [![node](https://img.shields.io/badge/node-%3E%3D22.13.0-339933.svg)](package.json)
10
10
 
11
- **codex-supervisor-mcp** 是一个 Codex MCP server:让一个主线程(Claude Code、Codex,或任何 MCP 客户端)同时指挥多个 Codex CLI worker 干活。一个 worker 一个 Git worktree,状态全部落盘,附一个网页看板盯进度。
11
+ 官网 [codex-supervisor.zriyo.com](https://codex-supervisor.zriyo.com) · 给模型读的 [llms.txt](https://codex-supervisor.zriyo.com/llms.txt)
12
12
 
13
- ![演示:一个 Claude Code 主线程同时派 3 个 Codex worker,各自独立 worktree,并行跑完后合并提交](https://raw.githubusercontent.com/zriyox/codex-supervisor-mcp/main/assets/demo.gif)
13
+ 让几个 agent 同时改一个仓库,结果是互相覆盖、没人说得清谁改了什么,主线程的上下文还被 worker 的输出塞满。
14
+
15
+ **codex-supervisor-mcp** 是一个 Codex MCP server,把「派单」和「记账」从模型上下文里拿出来放到磁盘上:一个主线程(Claude Code、Codex 或任何 MCP 客户端)同时指挥多个 Codex CLI worker,一个 worker 一个 Git worktree,状态落盘到 SQLite,附一个网页看板。
14
16
 
15
- *30 秒演示(真跑):主线程 `create_codex_worker` ×3,三个 worker 在各自 worktree 里并行干活,主线程收 3 份 diff 合成一次 commit。*
17
+ ![演示:一个 Claude Code 主线程同时派 3 个 Codex worker,各自独立 worktree,并行跑完后合并提交](https://raw.githubusercontent.com/zriyox/codex-supervisor-mcp/main/assets/demo.gif)
16
18
 
17
- ## 它是什么
19
+ *30 秒真跑:`create_codex_worker` ×3,三个 worker 各自 worktree 并行,主线程收 3 份 diff 合成一次 commit。*
18
20
 
19
- 直接让几个 agent 同时改一个仓库,结果是互相覆盖,没人说得清谁改了什么。这个 MCP 把「派单」和「记账」从模型上下文里拿出来,放到磁盘上:
21
+ ## 解决什么
20
22
 
21
23
  | 问题 | 做法 |
22
24
  |---|---|
@@ -28,7 +30,7 @@
28
30
  | 分不清「跑失败」和「进程没了」 | 状态机把 `failed` 和 `lost` 分开 |
29
31
  | 看不见一批活现在到哪了 | `codex-supervisor-web` 开一个看板,按 session 看每路 worker 在干什么 |
30
32
 
31
- worker 跑的是 `codex exec`,`model` 参数原样透传。主线程留在 Claude 上做判断,worker 可以挂 DeepSeek 或任何 Codex 配了 provider 的模型,账单分开算。
33
+ worker 跑的是 `codex exec`,`model` 透传:主线程留在 Claude,worker 可以挂 DeepSeek 或任何 Codex 配了 provider 的模型,账单分开算。
32
34
 
33
35
  ## 五分钟跑起来
34
36
 
@@ -40,14 +42,14 @@ worker 跑的是 `codex exec`,`model` 参数原样透传。主线程留在 Cla
40
42
  npm install -g codex-supervisor-mcp
41
43
  ```
42
44
 
43
- `postinstall` 会把 skill 装进 `~/.claude/skills/`、`~/.agents/skills/`、`~/.codex/skills/`,并用 `claude mcp add -s user` 和 `codex mcp add` 注册 MCP。`claude mcp list` 里没看到(`npx`、`--ignore-scripts`、pnpm 不跑 `postinstall`)就手动补:
45
+ `postinstall` 装 skill、注册 MCP。`claude mcp list` 里没看到(`npx`、pnpm、`--ignore-scripts` 不跑 `postinstall`)就手动补:
44
46
 
45
47
  ```bash
46
48
  claude mcp add -s user codex-supervisor -- npx -y codex-supervisor-mcp
47
49
  codex mcp add codex-supervisor -- npx -y codex-supervisor-mcp
48
50
  ```
49
51
 
50
- 重启 Claude Code / Codex。以后不用再手动更,见「更新」。
52
+ 重启 Claude Code / Codex。以后不用再手动更,见「更新」。只要 skill 不要 MCP:`npx skills add zriyox/codex-supervisor-mcp`。
51
53
 
52
54
  ### 2. 派第一批活
53
55
 
@@ -73,13 +75,11 @@ codex-supervisor-web
73
75
  npx -p codex-supervisor-mcp codex-supervisor-web
74
76
  ```
75
77
 
76
- 打开 `http://127.0.0.1:7877`。状态目录:有 `SUPERVISOR_HOME` 用它,没有就从当前目录往上找 `.mcp.json` 里的配置,再没有用 `~/.codex-supervisor`。端口用 `SUPERVISOR_WEB_PORT` 改,被占了会直接说。看板不派单也不取消。
78
+ 打开 `http://127.0.0.1:7877`。状态目录按 `SUPERVISOR_HOME`、最近的 `.mcp.json`、`~/.codex-supervisor` 的顺序找;端口用 `SUPERVISOR_WEB_PORT` 改。看板只看,不派单不取消。
77
79
 
78
80
  ## 我自己怎么用
79
81
 
80
- 这个 MCP 不挑主线程:Claude Code、Codex、Cursor,能连 MCP 的都能派活;worker 用什么模型看你给 Codex 配了哪个 provider。下面是我的用法,不是唯一用法。
81
-
82
- 我开两个 Claude Code 会话,一个只管文档,一个只管派活。一个会话又写详设又盯 worker,上下文两小时就满。
82
+ 能连 MCP 的都能当主线程,这里只是我的用法。我开两个 Claude Code 会话,一个只管文档,一个只管派活:一个会话又写详设又盯 worker,上下文两小时就满。
83
83
 
84
84
  | 谁 | 开在哪 | 管什么 |
85
85
  |---|---|---|
@@ -88,7 +88,7 @@ npx -p codex-supervisor-mcp codex-supervisor-web
88
88
  | 主脑会话 | 代码仓的一个 worktree | 读任务书,派 Codex worker,核每路的 diff,把结果填回任务书,向我汇报。不写业务代码 |
89
89
  | Codex worker | 各自的 worktree | 一个 worker 做一步,一个提交,在远端机器上编译和验证。不 push,不合并 |
90
90
 
91
- 两个会话之间只传一段文字:规划会话写好,我粘进主脑会话,用 `/goal` 接上。结构固定:
91
+ 两个会话之间只传一段文字,粘进主脑会话用 `/goal` 接上。结构固定:
92
92
 
93
93
  ```text
94
94
  【角色】 你是主脑:读文档和代码,派 worker,核结果,更新文档,向我汇报。不写业务代码。
@@ -121,9 +121,7 @@ resume_codex_worker 要改就追一条,让它 amend 进原来那个提交
121
121
  land_codex_worker 核过了,落进集成分支
122
122
  ```
123
123
 
124
- 上一块活 25 步,主脑会话从头跑到尾,上下文里只有任务书和每路的汇报。worker 烧的 token 不进主脑的账。
125
-
126
- 「一个 worker 一步、一步一个提交、核过才进下一步」是试出来的。某一步不对,`resume_codex_worker` 追一条让它 `--amend` 进原来那个提交,主脑再核一次,过了才落。一个 worker 做三步就没法这么修:第 5 步错了,第 6、7 步已经叠在上面。
124
+ 上一块活 25 步,主脑会话从头跑到尾,上下文里只有任务书和每路的汇报。一个 worker 只做一步是试出来的:某一步不对,`resume_codex_worker` 追一条让它 `--amend` 进原来那个提交,再核一次才落;一个 worker 做三步,第 5 步错了,第 6、7 步已经叠在上面,没法这么修。
127
125
 
128
126
  ## 看板里有什么
129
127
 
@@ -202,7 +200,7 @@ land_codex_worker 核过了,落进集成分支
202
200
  | `data/update-check.json`、`auto-update.json` | 更新检查和后台更新的记录 |
203
201
  | `worktrees/<taskId>/` | 该 worker 的 Git worktree |
204
202
 
205
- `changed_files` 按 worktree 的真实 diff 算(`git status` 加 `git diff <base_commit> HEAD`),worker 用 shell 改文件、自己 commit 过都能看到。git 读操作都带 `core.quotePath=false`,中文文件名不会变成八进制转义。老版本的库第一次打开时自动迁移。
203
+ `changed_files` 按 worktree 的真实 diff 算,worker 用 shell 改的、自己 commit 过的都能看到。中文文件名原样返回。老版本的库第一次打开自动迁移。
206
204
 
207
205
  ## 环境变量
208
206
 
@@ -237,11 +235,9 @@ GUI 客户端(Claude Desktop、Cursor、Windsurf)不跑 `postinstall`,自
237
235
 
238
236
  ## 更新
239
237
 
240
- 不用手动更。server 启动时在后台问一次 registry(之后每 6 小时一次),有新版就起一个独立进程 `npm i -g` 到同一个全局路径。正在跑的会话不受影响,下一个新会话就是新版。过程记在 `data/auto-update.json`,工具返回的 `update.auto_update` 里也能看到。只对 `npm i -g` 装的那份生效,git 源码、`npm link`、`npx` 起的都不碰;同一个版本只试一次。
241
-
242
- skill 同样不用管:server 每次启动把自带的 skill 刷到已存在的那几个 skill 目录,内容不同先备份成 `SKILL.md.bak-<时间戳>`。已经加载了 skill 的会话要重新加载才看到新文本。
238
+ 不用手动更。server 启动时后台查一次 registry,有新版就起独立进程 `npm i -g` 到同一个全局路径;正在跑的会话不受影响,下一个新会话就是新版。只对 `npm i -g` 装的那份生效,git 源码和 `npx` 起的不碰。skill 也一样,每次启动刷到已有的 skill 目录,改过的先备份成 `SKILL.md.bak-<时间戳>`。
243
239
 
244
- 全局目录要 sudo 才能写的机器会装失败,`update` 字段里带原因,这时手动 `npm install -g codex-supervisor-mcp@latest`。0.6.1 及以前只提醒不自己装,手动升一次就进自动了。换了 Node 版本,注册的绝对路径失效,先 `claude mcp remove -s user codex-supervisor` 和 `codex mcp remove codex-supervisor` 再装。重跑安装:`codex-supervisor-setup`(`--skill-only` / `--mcp-only` / `--dry-run`)。
240
+ 装失败(全局目录要 sudo)时 `update` 字段带原因,手动 `npm install -g codex-supervisor-mcp@latest`。0.6.1 及以前只提醒不自动装,手动升一次就进自动了。换了 Node 版本注册的路径会失效,`claude mcp remove -s user codex-supervisor`、`codex mcp remove codex-supervisor` 后重装。重跑安装:`codex-supervisor-setup`(`--skill-only` / `--mcp-only` / `--dry-run`)。
245
241
 
246
242
  卸载:
247
243
 
@@ -304,6 +300,10 @@ npm run web:build # 打包到 web/dist,发 npm 前自动跑
304
300
 
305
301
  CI 跑 Ubuntu / macOS / Windows,另加一个 Node 22.13.0 的 job 卡 `engines` 下界。
306
302
 
303
+ ## 参与贡献
304
+
305
+ 看 [CONTRIBUTING.md](CONTRIBUTING.md)。安全问题走 [私密通道](https://github.com/zriyox/codex-supervisor-mcp/security/advisories/new),见 [SECURITY.md](SECURITY.md)。
306
+
307
307
  ## License
308
308
 
309
309
  MIT
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "codex-supervisor-mcp",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
+ "mcpName": "io.github.zriyox/codex-supervisor-mcp",
4
5
  "type": "module",
5
6
  "description": "MCP server that dispatches and supervises parallel Codex CLI workers, one isolated Git worktree each, with a persisted work state machine.",
7
+ "homepage": "https://codex-supervisor.zriyo.com",
6
8
  "license": "MIT",
7
9
  "repository": {
8
10
  "type": "git",
9
11
  "url": "git+https://github.com/zriyox/codex-supervisor-mcp.git"
10
12
  },
11
- "homepage": "https://github.com/zriyox/codex-supervisor-mcp#readme",
12
13
  "bugs": {
13
14
  "url": "https://github.com/zriyox/codex-supervisor-mcp/issues"
14
15
  },