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.
- package/README.en.md +21 -21
- package/README.md +21 -21
- package/package.json +3 -2
package/README.en.md
CHANGED
|
@@ -8,15 +8,17 @@ English | [中文](README.md)
|
|
|
8
8
|
[](https://github.com/zriyox/codex-supervisor-mcp/actions/workflows/ci.yml)
|
|
9
9
|
[](package.json)
|
|
10
10
|
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
|
|
17
|
+

|
|
16
18
|
|
|
17
|
-
|
|
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
|
-
|
|
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
|
|
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`
|
|
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`.
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
-
|
|
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
|
[](https://github.com/zriyox/codex-supervisor-mcp/actions/workflows/ci.yml)
|
|
9
9
|
[](package.json)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
官网 [codex-supervisor.zriyo.com](https://codex-supervisor.zriyo.com) · 给模型读的 [llms.txt](https://codex-supervisor.zriyo.com/llms.txt)
|
|
12
12
|
|
|
13
|
-
|
|
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
|
-
|
|
17
|
+

|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
*30 秒真跑:`create_codex_worker` ×3,三个 worker 各自 worktree 并行,主线程收 3 份 diff 合成一次 commit。*
|
|
18
20
|
|
|
19
|
-
|
|
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`
|
|
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`
|
|
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
|
|
78
|
+
打开 `http://127.0.0.1:7877`。状态目录按 `SUPERVISOR_HOME`、最近的 `.mcp.json`、`~/.codex-supervisor` 的顺序找;端口用 `SUPERVISOR_WEB_PORT` 改。看板只看,不派单不取消。
|
|
77
79
|
|
|
78
80
|
## 我自己怎么用
|
|
79
81
|
|
|
80
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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.
|
|
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
|
},
|