Practical Guides · knowledge base from X

Codex + GPT-6 Luna for $20/month (with Jev as the "control plane")

Configuring Codex (ChatGPT Plus at $20/month) like an engineering organization: Luna for volume work, Jev for typed decisions, tests/compiler for facts, Sol only when the evidence calls for it. A hypothesis on task distribution and the "cost per completed task" metric.

✍️ Rahul · @sairahul1
🔗 Read the original on X · X Article · published 23 Sep 2026
📊 790 likes · 2,914 bookmarks · 1.2M views
Summary and adaptation in English; content and results belong to the author.

Part of the manual Automation with AI agents — the complete manual

Claimed result

  • Proposed setup: ChatGPT Plus at $20/month (Codex with GPT-6 Luna and Sol since September 22, 2026) + Jev (TypeSafe) at $0.042/M input tokens, output free.
  • API price comparison cited: Luna $0.10/M input; Sol $2.00/M input (20× more expensive).
  • Jev cost example: 10,000 decisions × 2,000 tokens of context = 20M tokens → $0.84 (84 cents).
  • Hypothesis (not measured results): over a month of "normal" development, ~81% of tasks wouldn't need anything above Luna Medium; Sol becomes the exception.
  • The metric that matters for the author: cost per successfully completed coding task, not tokens or benchmarks.

Proof: medium. Public architecture and prices; the 81% distribution is declared as a hypothesis to test, not as a result. The complete "Codex Personalization" block is an image in the original post (not in the plain text): here the operating logic is reconstructed from the textual steps.

The key idea

Most everyday coding work (a typo, a field, a test, a rename, a small endpoint, validation, SQL) does not require the strongest model. Those who always use Sol High waste money and subscription limits.

Instead you build an escalation ladder like in a real team: 1. Cheap workers (Luna at low/medium reasoning) for volume. 2. A decision specialist (Jev) that answers in typed form: RETRY / ESCALATE / COMPLETE + probability. 3. Deterministic verification (compiler, tests, typecheck, formatter, git diff) for facts. 4. An expensive senior (Sol High) only when the evidence calls for it.

Jev doesn't generate prose: State → Jev → typed decision + probability + confidence. Examples: RETRY confidence: 0.91, ESCALATE 0.87, COMPLETE 0.96.

Rule #1 (the most important): don't use AI when software already knows the answer. Don't ask Jev "does it compile?" → go build / typecheck. Don't ask "do the tests pass?" → go test / the suite. Don't ask "what changed?" → git diff. Jev handles uncertainty; software handles facts.

Step-by-step playbook

Step 1 — Base: Codex via ChatGPT Plus ($20/month)

  • A Plus subscription (not "$20 of API credits").
  • Since September 22, 2026 GPT-6 Sol and Luna are in Codex for Plus users.
  • Jev is the only external service; at realistic volumes it costs cents/month.

Step 2 — Access to Jev

  1. Go to typesafe.ai (early access / waitlist).
  2. Create an API key.
  3. Put it in an environment variable: TYPESAFE_API_KEY.
  4. Do not put the key in the Codex instructions, in AGENTS.md, or on GitHub. The instructions must reference the variable name, not the value.

Step 3 — What Jev decides (and what it doesn't)

It decides (the boundaries of the coding loop): - task classification (small / medium / difficult); - whether the implementation worked (in light of the evidence); - retry vs escalate; - whether the work is finished.

It doesn't decide: whether the code compiles, whether tests pass, whether the formatting is correct (that's software).

Typical state sent to Jev: test/build/lint outcome, unexpected files modified yes/no, relevant tests added yes/no → often COMPLETE confidence: 0.97 without calling Sol.

Step 4 — Configure Codex

Open Codex → Settings → Personalization and paste the routing instructions (in the post: a copy-paste block in an image). Logic to reconstruct in text: - default to Luna (scaled reasoning: none → max); - after every pass: deterministic verification; - to Jev only at decision boundaries (4–6 calls per task, not 40); - escalate to Sol High only if Jev asks for it with high confidence.

Step 5 — "Happy path" example

Prompt: "Add validation so users can't register with disposable email domains." 1. Jev classifies → MEDIUM confidence: 0.92 2. Codex → Luna Medium implements 3. Verification: go test ./... PASS, go vet PASS, go build PASS 4. Evidence to Jev (tests/build/lint PASS, no unexpected files, relevant tests yes) 5. Jev → COMPLETE 0.97 — no Sol, no extra review loop

Step 6 — When something goes wrong

Same task, auth tests failing: - 1st failure → Jev CONTINUE - 2nd failure + impact on authentication / session / registration → ESCALATE confidence: 0.89 - Only then does Sol High come in

Confidence policy (control system)

Examples of policies you can build: - COMPLETE + confidence > 0.95 + tests/build OK + diff in scope → close autonomously - COMPLETE but confidence 0.61 → don't trust it: force a review - ESCALATE probability > 0.85 → go straight to Sol High

Where NOT to use Jev

Not after every micro-action (read file → Jev, edit line → Jev…). Only at the boundaries: initial classification, after verification, retry/escalate, complete. 4–6 calls/task, not forty.

Task distribution hypothesis (to be measured)

The author intends to track for a month: completed tasks, lane per model, Jev decisions, failed verifications, confidence accuracy, Jev cost, times the Plus limits block him. The real question: how much real software does $20 build? Not whether $20 = infinite compute (Plus limits exist; huge repos + max reasoning burn through them).

Tools and costs

Item Cost Role
ChatGPT Plus + Codex $20/month Luna (volume) + Sol (escalation)
GPT-6 Luna (API ref.) $0.10/M input; context 1.05M tokens; reasoning none→max workhorse
GPT-6 Sol (API ref.) $2.00/M input (~20×) hard cases only
Jev (TypeSafe) $0.042/M input, output $0 typed decisions
10k decisions × 2k tokens ~$0.84 order of magnitude
Compiler/test/typecheck/formatter/git diff $0 (local/CI) facts

Limitations

  • The complete Codex config is an image in the post: without that image you can't copy the prompt 1:1.
  • The 81% distribution is a hypothesis, not data.
  • Plus has usage limits; "almost forever" ≠ unlimited.
  • Jev in early access / waitlist may block those who don't have a key yet.
  • It depends on OpenAI models (Luna/Sol) and on TypeSafe: vendor lock-in and possible price changes.
← More guides in “Automation with AI agents”