Case study · AI-assisted development
The AI workflow I designed
A shared workflow for Claude Code and Codex to hand off work, verify changes and review them independently.
01 · Summary
Two tools, one rulebook and one task record
I designed this workflow so Claude Code and Codex can hand off work, verify changes and review them independently against the same plan. Decisions that require judgment come back to me.
This portfolio's records include 10 rounds of dual independent review. When the homepage rebuild reached its two-round limit, I decided how to handle the remaining findings.
02 · Problem & constraints
Long rules made it hard to pick up the next step
The early process had stage gates and several parallel fast routes. Entry instructions conflicted, agents struggled to read all the rules, and I often had to tell them to continue to the next stage.
One tool gets no automatic notification when the other runs out of quota. An agent could report completion or review without a matching run record. The handoff needed the current state, the next step and the evidence behind both.
03 · My role
I maintain the workflow and use it on my projects
I write the rules, set permission boundaries, approve plans and decide on merges, deployments and business trade-offs. Agents draft, implement, test and review in separate roles.
04 · Architecture & critical path
Why can a change be delivered?
Demo change CHG-012 starts with approved acceptance criteria. The implementer attaches fresh checks to the diff. Two independent reviewers assess the same evidence. A change sent back for revision needs fresh checks before another review.
演示改动 CHG-012 从已批准的验收标准开始。实现者提交 diff 和刚跑过的验证结果,两位独立审查者核对同一份证据。改动被退回时,要重新验证后才进入下一轮审查。
Demo change · CHG-012
CHG-012 go into the delivery report.
审查通过。 最新验证覆盖约定的验收标准,两位审查者通过。CHG-012 的结果和证据进入交付报告。
CHG-012 return to the writer. The revised change needs fresh evidence before review resumes. At the two-round limit, any unresolved findings go back to me.
退回修改。 CHG-012 的问题交回实现者。修改后要补上新证据才能再审。达到两轮上限时,剩余问题交回给我决定。
- The owner approves the acceptance criteria for
CHG-012.负责人批准CHG-012的验收标准。 - The implementer builds and verifies, then gives the diff and fresh evidence to the reviewers.实现者实现并验证,再把 diff 和新证据交给审查者。
- Two independent reviewers check the change in parallel.两位独立审查者并行核对改动与证据。
- A pass yields a delivery report.通过时提交交付报告。
- A return sends findings to the implementer, who revises and verifies again. The owner decides at the round limit.退回时,实现者按意见修改并重新验证;达到轮数上限时交给负责人决定。
The workflow has three stages. Align by rechecking the premise and approving a plan. Execute with one writer who records the evidence. Deliver by checking each criterion and running independent review for medium and large tasks.
- Handoff record
- The record holds the current writer, next step, progress with evidence and the fix and review rounds already used.
- Review packet
- Both reviewers receive the original request, criteria, diff and verification evidence. The packet excludes the author's conclusion.
- Review launch record
- Review starts outside the author's session and is backed by a launch record and a returned verdict.
Pick a question to highlight the line that answers it. Copy still copies only the record.选一个问题,回答它的那一行会亮起。“复制”仍然只复制记录本身。 Current writer names who may change the work now: the implementer.Current writer 写明现在由谁修改:实现者(implementer)。 Evidence is what the reviewers check: the diff and verification for the approved criteria.Evidence 是审查者核对的依据:diff 和针对已批准验收标准的验证结果。 Next step says what unblocks review: address the findings and attach fresh checks.Next step 写明怎样才能再审:按意见修改,并附上新的验证。
Change: CHG-012
Current writer: implementer
Evidence: diff and verification for the approved criteria
Review rounds used: 1 of 2
Next step: address findings, attach fresh checks
05 · Technical choices & trade-offs
Rules guide the work and run records show progress
-
Pair short rules with automated checks
Hooks flag risky actions and prompt a handoff after the second context compaction. Configuration changes are checked against the code or runtime output that consumes the setting.
Trade-off Hooks are a safety net. Permission still comes from the user.
取舍 hooks 用于兜底,权限仍由用户授予。
-
Continue after approval until an agreed stop
Once the plan is approved, the writer continues until an agreed stop, such as a permission boundary, a changed requirement, repeated lack of progress or a spent budget.
Trade-off The acceptance criteria have to be checkable from the start.
取舍 验收标准从一开始就要能检查。
-
Run two independent reviews per round, for up to two rounds
Two reviewers examine the same packet in parallel and return separate verdicts. At the limit, I decide what happens to any remaining findings.
Trade-off Each round consumes quota for two reviews.
取舍 每轮要花两份审查额度。
-
Change the setup when a mistake repeats
Start with a pointer to the right entry point, then consider an automated check and add a written rule last.
When Only when the same kind of mistake happens a second time.
时机 同类错误第二次出现时才做。
06 · In practice
I decided how to finish the homepage rebuild at the review limit
The homepage rebuild had 12 checkable criteria and two fix rounds per batch. Reviewers raised 10 consolidated findings in the first homepage review. Five remained in the second. At the review limit I chose to fix the remaining findings and have the coordinator verify the result.
07 · Results & verification
The records show what was reviewed, handed off and tested
In three trials, an agent reported a review that had no matching launch in the logs. The workflow now starts reviews outside the author's session and records the launch and verdict as evidence.
| Check | Result | Source |
|---|---|---|
| Dual independent review | 10 rounds · 20 reports | Portfolio task and review records |
| Core rulebook | One version · about 1,000 lines | Core rulebook line count |
| Core rulebook commits | 71 · 30 Oct–18 Nov 2026 | Core rulebook Git history |
| Hook pattern tests | 66/66 cases passed Measured | Local test · 20 Nov 2026 |
08 · Limits & next steps
Rework and quota savings remain unmeasured
The command guard was tested on sample commands. Its effect in live sessions has yet to be measured. The current-writer field depends on sessions following the handoff convention. There is no comparison yet for rework or quota savings.

