Codebase improvementAudit to reviewed branch
Agent workflow
improve-codex
I built an agent skill that audits a codebase, writes the plans, and gives each one to a guarded Codex executor in its own git worktree.
- 01Audit the codebase
- 02Scrutinize the plans
- 03Execute in worktrees
- 04Review every diff
I wanted the useful parts of an agent workflow separated properly: one model understands the codebase and writes the plan, Codex handles the implementation, and independent reviewers try to break the result.
Each plan runs in an isolated git worktree with browser tooling removed, constrained resources, focused verification, and explicit review gates. The skill never merges or pushes the result. Approved branches wait for a human decision.