@PaulSolt: https://x.com/PaulSolt/status/2073470146115490230

X AI KOLs Following News

Summary

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.

https://t.co/IasgZA0xCp
Original Article
View Cached Full Text

Cached at: 07/06/26, 02:09 PM

Codex Built 8 Features Overnight: My 5-Step PR Loop

This week, I woke up to 8 new features moving toward release in Super Easy Timer, including stopwatch, clock, pomodoro, and autocomplete. One Codex thread ran for 12 hours and 19 minutes. Part of that happened while I slept.

Those features are shipped on TestFlight. Testers are already using them while I wait on App Store approval.

How? I have one Codex thread that manages all my other threads.

The PR loop is simple:

  • Create task threads on worktrees

  • Worker threads complete tasks and create PRs

  • Code review happens on GitHub (Codex plugin)

  • The manager sends feedback to the worker threads

  • Repeat until the branch is merge-ready

→ Get my Codex Chief of Staff Prompt

I didn’t set this up blind. I first ran a proof of concept with four tasks. Once those worked, I picked out another set of tasks.

First proof post from that morning:

The Shift: Single Prompts → Loops

Credit where it started: @steipete pushed the idea of designing agent loops instead of writing one-off prompts.

Peter Steinberger @steipete·Jun 8Here’s your monthly reminder that you shouldn’t be prompting coding agents anymore.

You should be designing loops that prompt your agents.1.8K2.8K19K8.4M

Theo explained the pattern more clearly with examples on YouTube.

It didn’t sink in because I was traveling, so after seeing both @Dimillian and @emanueledpt post about it again. I was ready to give it a shot.

Use this article to jumpstart your own manager threads (Chief of Staff)

Step 1: Create a Manager Thread

Open one Codex thread with a single job: manage the other threads. It doesn’t own feature implementation. It owns coordination — scheduling work, watching PRs, reporting status.

I named mine Chief of Staff at first. That’s a mouthful, so now it’s just “Chief” (or “Manager”). Keep it short.

I knew from @Dimillian that this manager thread could become my inbox for bugs (I’m already doing that for sponsor requests). So it was a natural extension to lean on one to help manage, shape, and move the work along.

Thomas Ricouard@Dimillian·Jun 27It’s Saturday and we need to talk about workflow, I’ll just dump context on you and I hope you’ll learn some stuff and reply with some other stuff for me to learn.

I don’t think we’ll operate at the thread level for much longer.431434129K

Any time I had an issue come up, I used WisprFlow to dictate my issue and track my task using my simple-tasks skill from AppCreator.

My markdown plans live in the repository, so every worker thread has the context without me having to repeat it.

Step 2: Add a Heartbeat (Loop)

Tell your manager thread to create a heartbeat: every 5-10 minutes, check open PRs, code review feedback, and CI status.

The heartbeat is what makes this a loop instead of a longer prompt. Without it, everything dies the moment a worker finishes or stalls.

Step 3: Put /goal on Every Worker Thread

Make your manager run /goal on each worker so it pushes to merge-ready instead of stopping at “I’ve implemented the feature” with failing tests. This is the fix for agents who quit early.

My 12h19m run happened because goals kept the manager thread going with task threads. I didn’t have to keep asking to fix XYZ. One kick-off prompt and the work keeps on going.

Have worker threads use /goal

Have worker threads use /goal

Step 4: Route PR Feedback Back to Workers

Have your manager read code review comments as they land, assign fixes to the right worker, and re-test. This used to be my job, and it was annoying. I just want the work finished and tested.

Codex plugin was doing my code reviews, but you can use any plugin here. I just enabled the Cursor bug bot to do one PR pass on first open, so we’ll see how that helps ensure code quality.

Step 5: Gate Merges

Require tests to pass before anything is merge-ready. For UI facing changes, you’ll want to test them yourself. Right now, for Mac development, this is probably the slowest process.

I have both unit tests and slower UI tests, but these tests never seem to exercise all the weird windowing problems that can occur in a Mac app. I still find regressions, so manual testing is still key for me.

In the Codex environment, I have Command + R set to run my Makefile’s “make” target, which builds and runs the macOS app. All I need to do is go to the thread, and I can test the new work instantly.

Super Easy Timer: https://apps.apple.com/us/app/super-easy-timer/id1353137878?mt=12

Super Easy Timer: https://apps.apple.com/us/app/super-easy-timer/id1353137878?mt=12

For non-UI changes, I trust Codex to do a good job, so some of these get merged automatically.

What Broke?

My process isn’t entirely hands-free. On the same run:

  • Agents struggled with UI interactions

  • My SwiftUI/AppKit window logic was too brittle for them

  • One thread got stuck and unresponsive, so we spun up a replacement thread

  • Managers + Workers didn’t always follow my AGENTS.md rules

The loop moves work forward. It doesn’t replace taste.

Here Are 5 Things You Can Steal

  • One manager thread (mine’s named Chief) that owns coordination, not implementation

  • A heartbeat every 5-10 minutes: PRs, review feedback, CI

  • /goal on every worker so agents finish

  • PR feedback is routed back to workers on each heartbeat

  • Merges gated on CI + your own manual tests

I packaged the exact prompt I’m using, along with the self-learning prompts, so your agent can document and resolve issues as they work. Download the prompt below:

→ Get my Codex Chief of Staff Prompt

What have you pushed forward with an agent loop — a feature, a bug backlog, a release? Reply below.

Enjoy your next app!

P.S. Working on an iOS/macOS app? I do 1:1 App Strategy Sessions. Book a time and let’s talk about yours.

Similar Articles

@jxnlco: https://x.com/jxnlco/status/2057153744630890620

X AI KOLs Following

This tweet thread discusses best practices for using the Codex coding agent, focusing on durable threads, voice input, steering, queuing, and its expanding capabilities beyond code generation to full computer workflow automation.

Harness engineering: leveraging Codex in an agent-first world

OpenAI Blog

OpenAI describes an internal experiment building a production software product with zero manually-written code using Codex agents, achieving approximately 10x faster development with 1.5M lines of code written by AI in five months. The team learned that effective agent-driven development requires engineers to focus on systems design, scaffolding, and feedback loops rather than writing code directly.