@theo: I underestimated how cool this workflow is. Had Codex go through a bunch of stale PRs last night. Closed all the useles…
Summary
A developer describes using AI (Codex) to automatically clean up stale pull requests: close useless ones and revive outdated ones with build and review threads.
View Cached Full Text
Cached at: 06/19/26, 12:12 AM
I underestimated how cool this workflow is.
Had Codex go through a bunch of stale PRs last night. Closed all the useless ones, revived all the out of date ones.
Each “revived” pr got a thread to build it and a 2nd to review it. https://t.co/iAc8if4uyD
Peter Steinberger 🦞 (@steipete): Here’s a simple loop: Tell codex to maintain your repos, wake up every 5 minutes and direct work to threads. That makes it easy to parallelize+steer work as needed.
I use a orchestrator skill combined with my triage+autoreview+computer use skills, so some work can land
Similar Articles
@PaulSolt: https://x.com/PaulSolt/status/2073470146115490230
Paul Solt shares a detailed workflow for using Codex agents in a loop to autonomously build features overnight, including a manager thread, heartbeat, and automated PR review. The technique shifts from single prompts to designed agent loops, enabling continuous development with minimal human intervention.
@reach_vb: it still blows my mind that I can just delegate things to codex before sleeping and wake up to it still chugging along …
A user shares their experience using Codex to autonomously handle coding tasks across multiple codebases overnight, producing a PR.
@nickbaumann_: This has fundamentally changed how I use Codex - everything runs out of a single persistent thread (my "chief of staff"…
Codex can now automatically create, search, organize, pin threads, and spin up worktrees for parallel tasks, allowing users to delegate thread management to the AI itself, acting as a persistent chief of staff.
Codex for Engineering teams
OpenAI introduces Codex for Engineering teams, an AI tool that automates coding tasks from issue creation to code review, while keeping engineers in control.
We pointed our consensus loop at a fork of codex, now codex fixing codex, here's the public repo
A team demonstrates a consensus loop where multiple AI agents debate bug fixes in a fork of the codex CLI, automatically creating PRs when they converge. The public repository is available for scrutiny.