r/codex • • 3d 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:

  1. 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.
  2. 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 --allow is reverted via git even if the run times out.
  3. 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 hits usage_limit_exceeded, and falls back to gpt-5.4 if 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:

go install github.com/lifan-builds/quotaswitch/cmd/quotaswitch@latest

# Sign in to one or more ChatGPT/Codex seats
quotaswitch codex login --alias seat1
quotaswitch codex login --alias seat2 --no-activate

# View 5H, WEEKLY, and banked manual reset credits (RESETS)
quotaswitch codex list

# Delegate read-only execution (defaults to gpt-6.2-sol)
quotaswitch codex exec --json "Run go test ./... and return failing tests"

# Delegate strictly bounded edits (defaults to gpt-6.2-astra, git-reverts anything outside --allow)
quotaswitch codex exec --allow internal/foo.go --json "Implement ParseBar per spec"

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.

0 Upvotes

3 comments sorted by

•

u/dexterthebot 3d ago

You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**


Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.

Website: https://lightwarsar.com

iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951

Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.

Contact: contact@lightwarsar.com

1

u/Thistlemanizzle 2d ago

Gemini 4 - which model?

1

u/lifan-builds 2d ago

Mainly neon