No. 153 Hand work across models
Dispatch backend work with codex-worker
Hand a real block of backend or data work to local Codex. Claude sets the interface and runs the tests after it comes back.
- Claude Code
- Codex
- Cursor
- Hand work across models
译 ## Dispatch - Hand a real block of backend, algorithm, data-processing, or performance work (not a one-or-two-line patch) to the local Codex (GPT-6.1 Sol). You set the interface and the acceptance checks. Do the frontend, visuals, copy, breakdown, and acceptance yourself. - Dispatch with `codex-worker <worktree> "task"`. Append with `codex-worker --resume <session id> <worktree> "addition"`. Run it in the background. The session id is at the end of the output. - It can only write the worktree and the temporary directory. It cannot commit and it cannot reach the network. You install dependencies, run networked tests, and commit or push. It only sees the task and the worktree, so the interface, the acceptance checks, and the similar places that must change go into the task. - After Codex returns, you read the diff and run the tests yourself. The pre-merge review is also GPT, so this step is the cross-check from another model. A PR that contains code Codex wrote is mixed-source. Do not deliver it with `--agent`.
When to use
Use this dispatch text when a checkout calculation does not touch the page. It is not the same passage as the dispatch section in the later long post.
The task text names a pure function in src/pricing.js, says a missing price is skipped, and gives node --test as the command.
When not to use
Do not dispatch a one-or-two-line patch, or a change that has to negotiate the interface with the page, under this section.
How to run it
Claude Code
Put it in the dispatch section of CLAUDE.md. The command name codex-worker is his local script. If the repo does not have it, do not pretend it does.
Codex
The dispatched side receives only the task and the worktree. Write the interface and the checks in the task, not in a chat it cannot read.
Cursor
Cursor does not run codex-worker. Do not put this section in .cursor/rules. When needed, say in chat which block is left for another model.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Hand work across models
来源:数字生命卡兹克 · https://x.com/Khazix0918/status/2121602766976237610 · 2026-12-02