implement-with-sol
implement-with-sol
Codex implements in a worktree; you keep planning, review, and synthesis. Ends with a PR ready for human review.
Steps
-
Worktree: create one with
git wt <branch> origin/<default-branch>and run everything from inside it. -
Spec file: save the task spec verbatim to a temp file (e.g.
gh issue view <n> --json title,body -q '"# " + .title + "\n\n" + .body' > /tmp/<slug>.md) so the prompt references a path instead of inlining it. -
Launch from the worktree, in the background:
codex exec --sandbox workspace-write "<prompt>"Global flags precede the subcommand: follow-ups are
codex exec --sandbox workspace-write resume --last "<prompt>"— flags placed afterresumefail. The model comes from~/.codex/config.toml; override with-m.The prompt names: the spec path with "follow every decision in it"; the existing code and test patterns to study; the definition of done (build, lint, and tests pass; required cases covered); the review instruction "when done, run the review-fix skill on the working tree with its Default Review Policy — supply no review brief"; "Do NOT commit — leave changes in the working tree"; and "print files changed and each verification command with its result".