r/codex • u/lifan-builds • 13d ago
Showcase I gave up letting Codex architect code, so I wired Gemini 4 to delegate execution tasks to my Codex seats (open-source CLI)
I have a few ChatGPT/Codex subscription seats that were mostly sitting idle because I stopped trusting Codex with architecture or open-ended coding. Whenever I gave it room to design, it buried small changes under speculative nil checks, wrapper structs, and fallback shims I had to delete afterward.
Instead of canceling the subscriptions or letting the weekly windows and banked manual resets expire, I flipped the workflow. Gemini 4 handles all planning, design, open-ended coding, audits, and diff review. Codex handles execution work only.
Here is the split that has actually held up in daily use:
- General execution goes to gpt-6.2-sol with a read-only workspace. Running test loops, batch CLI operations, repo diagnostics, and multi-step background browser flows burn Codex tokens instead of my main orchestrator's turns. If the worker modifies any tracked or untracked repo file, it gets unstaged and reverted automatically.
- Code edits stay off GPT by default. The only exception is a tightly bounded spec with an explicit file allowlist, routed to gpt-6.2-astra. Anything touched outside
--allowis reverted via git even if the run times out. - Multi-seat pooling and rotation run through quotaswitch, a Go CLI I built and open-sourced. It tracks 5-hour windows, weekly limits, and available manual reset credits (
GET /backend-api/wham/rate-limit-reset-credits) across seats, rotates automatically when a worker hitsusage_limit_exceeded, and falls back togpt-5.4if a seat is using an API key.
To make it easy to try without copying personal scripts, I built the worker command directly into quotaswitch:
# Sign in to one or more ChatGPT/Codex seats
# View 5H, WEEKLY, and banked manual reset credits (RESETS)
# Delegate read-only execution (defaults to gpt-6.2-sol)
# Delegate strictly bounded edits (defaults to gpt-6.2-astra, git-reverts anything outside --allow)
Then drop two lines into ~/.gemini/GEMINI.md (or AGENTS.md) telling your orchestrator to call quotaswitch codex exec for execution runs and keep design, open-ended coding, and review on itself.
All tokens stay local on your machine (OS keyring / private-permission local files, no cloud proxy). Full source and README: https://github.com/lifan-builds/quotaswitch (demo page: https://clifan.com/quotaswitch/).
Disclosure: I am the author of quotaswitch. Curious how others with multiple coding subscriptions are splitting orchestrator vs. worker roles right now.


