Run Codex with low-touch planning and port reservation
A commenter has Codex execute mostly on its own with human planning and review, including a portbroker that reserves and injects a port.
Done withCodex
- What they did
- The commenter describes a split workflow: ChatGPT handled planning, strategy, versioning discipline, and writing the next prompt, while Codex did the implementation, with outputs manually copied back and forth between the two in extended-thinking chats. In a similar setup, another commenter added a small tool called portbroker so an agent could reserve a free port, log it, and inject it into $PORT automatically, reducing manual environment handling during parallel runs.
- How it went
- They say this cut down prompt drift and made multi-agent or parallel local development more stable and predictable. The main drawback mentioned is that the handoff is still manual, with long threads causing slowdown and occasional need to start fresh sessions.
- Worth knowing
- The practical catch is the copy-paste loop between ChatGPT and Codex, plus needing to reset when threads get "sludge" from growing too long.
Try it yourself with Codex
I've written a plan for [task] in [repo path]: [paste or point to plan file]. Carry it out mostly on your own, and before starting any dev server or test that needs a network port, pick a free port, reserve it, and pass it in through [env var or config setting] so it doesn't clash with other running jobs. When done, summarize what you changed and which checks passed so I can review, and ask me before pushing or deleting anything.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: Reddit · Undated
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Hand off coding sessions between agent accounts at usage limits
A developer built an app that tracks usage across multiple Codex and Claude Code accounts and auto-hands-off conversations when one hits its limit.
Let coding agents update fraud detection rules via MCP
Kairos exposes an MCP server so a user's agent (Claude Code, Cursor, Codex) can maintain fraud decisioning logic as fraudsters change tactics, for fraud teams.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Restyle a pull request to match repo house style
A developer asked Claude to update a PR to the repo's house style, but it only rewrote comments to be lowercase and less useful, making no code changes.
Turn customer support tickets into investigated pull requests
Pylon connected its support tool to Devin so a detailed customer issue starts an investigation and possibly a PR, while engineers still review and merge.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.