Schedule bug work in separate git worktrees
A Codex routine can pull issues on a schedule, spin up isolated worktrees, and leave specs, tests, and review for a person.
- What they did
- A developer described a setup they built on their own servers with locally hosted n8n and Codex. Their automation checks an issue list, creates a separate git worktree for each selected task, and hands the work to a main orchestrator agent that splits implementation, refactors, tests, and documentation across sub-agents. The human stays involved for specifications, test decisions, and final review.
- How it went
- They did not share hard numbers, but said the routine takes over repetitive implementation work and leaves them mostly focused on specs, tests, and review. They also said extra critique happens before merge using agents based on OpenAI, Claude, Grok, and local models.
- Tips
- This kind of setup works best when the handoff points are clear: task selection, isolated branches, and a human approval step before merging or closing anything. The clearest detail they shared was triggering Codex from n8n with an execute node, so treat any missing workflow pieces as something you’ll need to design yourself.
Try it yourself with Codex
At [time or schedule], check my backlog in [GitHub Issues repository / Notion page] and choose up to [number] items tagged [label]. For each item, create a separate git worktree and work only in that branch. Use sub-tasks for implementation, refactoring, tests, and docs as needed, then leave a concise summary of changed files and test results. Pause and ask for my approval before any merge, branch deletion, issue closure, payment, or other irreversible action. I will handle the spec details and final review myself.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
1 more report of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Port a computer-use tool into another harness
They had Gemini rework Codex’s computer-use tool for Antigravity and finished the port in under 10 minutes.
Use Codex for clearly scoped multi-file refactors
A user had Codex handle defined refactors and admin work across network machines, then let it run on its own.
Use a long-running agent to chase a stubborn bug
A developer let Codex work overnight against a repeatable test, using debug prints and hypotheses to track down an unexplained bug.
Review a pull request with staged sub-agents
Use parallel checks and a validation pass to review a branch or PR before you decide what to fix.
Schedule recurring Codex checks for docs and tests
They set up three Codex automations to keep project docs current, refresh a daily tracker, and run source and API checks on a schedule.
Use coding agents to stress-test your docs
A CLI runs coding agents against doc-dependent tasks, spots where they fail, then rewrites the docs and repeats the eval.