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.

Done with Codex· Intermediate

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.