I let Claude Code write my backup scripts, and it caught the one folder I'd been forgetting for years
Files could've been lost if not for AI's second set of eyes.
Two coding agents, Claude Code and Codex, were used to manage personal repositories over a two-week period. The setup involved 152 task cards distributed across seven repositories. Initially, Claude Code handled planning and writing tasks, while Codex implemented the code and conducted tests. As the process evolved, several key factors contributed to increased efficiency and reliability.
1. Handoff in the repository: Instead of relying on chat conversations, handoffs were made through Markdown cards in the task branch. This approach provided a clear record of objectives, acceptance criteria, boundaries, authorization parameters, tests, and logs, ensuring that everyone involved could easily review and track progress.
2. Card size and round limits: To prevent overly complex tasks, cards were capped at 12 KB in size and allowed only two rounds of execution. If the task required more than two rounds, it was split or escalated to a human for review. This helped maintain manageable workloads and reduced the chances of errors due to environmental issues.
3. Cost analysis: The cost of executing tasks was measured by the number of tokens used by Claude Code and Codex. Claude Code, responsible for planning and reviewing tasks, had a significantly higher token volume compared to Codex, which focused on implementation. This ratio highlighted the importance of efficient planning and reviewing in reducing overall costs.
4. Audit and gate: Introducing a turn-end hook that audited the diff for budget overruns, unauthorized files, and other issues allowed for early detection of problems. When the audit failed, Codex was sent back within the same turn, providing an opportunity to correct the issue before escalating to a human reviewer. This helped minimize costly revisions and improved the overall reliability of the system.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.