Session 5
Debug & ship with Git
Goal. Take a failing repo to a green, committed fix — debugging and version control in one flow.
- 1Describe the symptom or paste the error. Codex traces it through the repo, proposes a minimal fix, and runs the tests to confirm.
- 2Work in controlled checkpoints: Codex can remove dead code, modernize patterns, and run migrations step by step rather than all at once.
- 3It works with Git — it can open pull requests from its changes; you review the diff and merge.
You'll see. A failing test turned green by a small, reviewed change that Codex commits — not a sprawling rewrite.
Cost. Minimal, high-confidence changes mean fewer iterations and less usage than open-ended "fix it all" requests.
Takeaway. Point Codex at the failure, not the whole repo — it isolates the cause, fixes it in checkpoints, and opens a PR you review.