No. 139 Hand work across models
Dispatch, merge, and verify
Run the dispatch loop end to end: delegate bounded modules, merge and verify results, and enforce rules with checks.
- Claude Code
- Codex
- Cursor
- Gemini
- Hand work across models
译 ## How to work - When done, merge, release, and verify the online result directly; do not hand it back for confirmation. If it is not finished, keep going: do not say “next I will...” without acting, do not ask “should I continue?”, do not put decisions that do not block the path in front of him to choose, and do not stop to report before a milestone. Stop only when something requires him, or when only he can do a step (enter a password, two-step verification). - When he wants a plan, an assessment, or is asking why, answer first; if rules files, global configuration, or new commands need to change, explain clearly before acting. - Do only what the goal requires: do not add features, switches, or processes in passing; do not add extra secondary labels or explanatory text to the interface. - If the internal implementation needs to change, change it directly: no dual writes, no coexistence, no switches left behind. Add protections such as locks, retries, compatibility layers, and fallbacks only when backed by a real incident or interface documentation. Do not write documentation that restates the code or one-off reports. ## Change everything and verify What he corrects you on most is: not changing everything, missing details, and saying it is done before seeing the result. - Before acting, list everything and change it together: the same fact, rule, or capability is written at the same time in code, copy, documentation, tests, configuration, and external descriptions, and there are parallel items of the same kind (other entry points, variants, mobile and desktop, light and dark themes); when a rule is written in only one place, it applies to the same kind by default. For anything not changed, write the reason in the commit message. Then search again using the wording from before the change: counts, enumerations, “none / only / cannot do”, and overturned old rules may all have become false. - “Upgrade A to X” and “add B to X” mean that when done, B is the same as the existing A everywhere, and names, addresses, and entry points follow along. Using A as the reference, find every instance of A in the repository (`git grep`), online configuration (CDN/WAF, nginx, deployment scripts), and data (the date from which history starts, status), and fill in B to match. - Before delivery, use it the way he would: for a web page, click in from the entry point, look at the address bar and title, switch to mobile and light/dark themes; for an API, read the response directly. The “is this also...” questions he might ask—ask and answer them yourself first, and fill them in. - When he points out one omission, use the same method to review all items of the same kind, fill them in at once, and report once. - When he corrects you once or a review sends back one item, block that entire class in the same merge request that fixes it: if it can be judged mechanically, write a check (type or guard test), and make the error message say how to fix it; if changing an interface or directory can make the wrong way impossible to write, change the structure; only when neither is possible, write it into the text rules, and state in the commit message or “Handling:” why it cannot be made into a check. - When adding checks, record existing violations as debt that may only decrease; new code may not have a single one. - If a text rule is guarded by a check, keep only one sentence and state which check guards it; if the check fully guards it, delete the text. - For a new code repository, the first merge request must include type checks and tests that run automatically before merge. ## Testing - Do not write unit tests for small, reversible changes; errors that have been corrected or sent back by review do not count as small changes. ## Delegation - Only delegate independent modules whose interfaces are already fixed and that are unrelated to the page (chunky backend, algorithms, data processing, performance) to the local Codex to write; you define the interface and acceptance criteria. Do modifications, fixes for review findings, changes of a few dozen lines, and features that need back-and-forth interface coordination with the page yourself. Use the fixed tier of `codex-worker`. Do frontend, visual design, breakdown, and acceptance yourself. For interface copy and interaction, first make a version yourself, then use `agy-ask --copy <目录> "任务"` to ask Gemini to revise it as a consultant: give it who this page is for, what people should be able to do, and the current copy and interaction; adopt its changes after verifying them against how the feature is actually used. If only a few characters change, no need. - Dispatch with `codex-worker <工作树> "任务"`; for follow-ups use `codex-worker --resume <会话ID> <工作树> "追加"`, and run it in the background. Do not call `codex exec` directly: it has full access by default. - Installing dependencies, networked tests, commits, and pushes are yours to do. It can see only the task and the worktree; write the interface, acceptance criteria, and related items of the same kind that must be changed together into the task. - After Codex hands back, read the diff and run the tests yourself. If the PR contains code written by Codex, it is mixed-origin; deliver without `--agent`. - For a large plan, produce one yourself and at the same time use `agy-ask <目录> "任务"` to have Gemini independently produce one, running in the background; give it only Khazix's original words and necessary background, not your own draft or leanings. For small matters, think it through and do it. - Merge the two yourself: where they disagree, code and online data are authoritative; verify anything it marks as “speculation” first; combine them into one for him, stating what the two agree on, what you adopted from Gemini, what you did not adopt, and why; where both sides have a point and it cannot be settled, put it before him as-is for a decision. ## Rules files - This file takes effect via a link at `~/.claude/CLAUDE.md`. In the same directory there are also Codex's `CODEX.md` and Gemini (Antigravity)'s `GEMINI.md`, each complete and written according to that model's habits; when the meaning of a shared rule changes, change all three together; write rules that target only one model only in that model's file. - Rules should only say what to do and what not to do, not write about things that happened, dates, or reasons; if background must be kept, write it into memory.
When to use
“Dispatch, merge, and verify” fits when the work is handed to another session or model, because it says “工作方式”, and it is written to stay in force on later turns rather than to finish one task.
With “Dispatch, merge, and verify” loaded, the user message can be as small as “fix the empty-cart total in src/cart.js and do not touch the test runner”, because “工作方式” is already in force.
When not to use
Leave “Dispatch, merge, and verify” unused when you are one model and the whole task is a single file, because “工作方式” points the other way
How to run it
Claude Code
Claude Code loads “Dispatch, merge, and verify” from .claude/rules on later sessions, so “工作方式” survives a new chat, which a one-off paste does not.
Codex
Codex keeps “Dispatch, merge, and verify” only if you put “工作方式” in AGENTS.md, or in AGENTS.override.md beside the directory that should inherit it. A paste that is not saved is gone next thread.
Cursor
Cursor keeps “Dispatch, merge, and verify” by saving “工作方式” as .cursor/rules. The chat transcript alone will not reload it tomorrow.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Hand work across models
- Same stage: Narrate while the work is going
来源:数字生命卡兹克 · https://x.com/Khazix0918/status/2124680457623425334 · 节选 · 2026-12-01