Skip to the guide
vibe coding English resource ← Aurelion Earth

AI worker rules, in one prompt

Let the expensive AI think and the cheap AI type, so your paid quota lasts. Pick what you have, connect it, copy one prompt.

1Which AI do you have?

Claude only works. Its cheaper models (Sonnet, Haiku) do the building and checking.

Codex only works. It plans with you first, then builds on low effort.

Claude designs and reviews. Codex builds and checks, so the work uses Codex quota instead of Claude's.

2Connect it once per computer

Claude

  1. Get a paid Claude plan (Pro or Max) at claude.ai.
  2. Install Claude Code. Easiest: the Claude desktop app, then open the Code tab. Or in a terminal: npm install -g @anthropic-ai/claude-code
  3. Sign in. Desktop app: you're signed in already. Terminal: run claude, then type /login.

Codex

  1. Get a ChatGPT plan that includes Codex (Plus or higher) at chatgpt.com.
  2. Install Codex. Install Node.js from nodejs.org, then in a terminal: npm install -g @openai/codex
  3. Sign in. Run codex login and choose Sign in with ChatGPT.

That's all. After the prompt below, Claude calls Codex by itself.

Add an advisor optional

The boss is your main chat (Opus): it thinks, decides and talks to you. The workers (Sonnet, Haiku or Codex) do the typing. The advisor is an outside consultant, a stronger model such as Fable. Before a big decision, the boss asks it "Am I doing this right?"

Type one of these in the Claude Code chat box:

  • /advisor fable: turn it on with Fable as the consultant.
  • /advisor off: turn it off.
  • /advisor: open a menu to pick the model, or choose "No advisor".
When to use it, and what it costs

The consultant reads the whole chat by itself, so nobody has to write a brief. Claude Code decides when to call it, often before starting a big job, when the same error keeps coming back, and before saying it's done. It helps less on small questions.

Watch the cost. Every call makes the consultant re-read the whole chat, and Fable costs more than Opus. So:

  • Use it for big decisions: before a big build, and before you merge.
  • Do big jobs in a fresh chat, so each call reads less.
  • Keep it off for everyday chats, and turn it on when the stakes are high.
  • If the consultant is the same model as the boss (Opus asking Opus), it only adds a second look. Use it rarely.

The consultant must be as strong as the boss or stronger. The feature is new: it needs a recent Claude Code, and Fable may ask you to agree to usage credits the first time. Details: Claude Code advisor docs.

3Copy, paste, done

Paste into Claude Code

Set up my AI worker rules for Claude Code. Do every step yourself and keep anything already in these files.

1. Create ~/.claude/WORKER_RULES.md with these rules:
   - Use the strongest model (Opus) only for design, plans, reviews and talking to me. Hand builds to a Sonnet helper and checks to a Haiku helper (Agent tool), so only short answers come back.
   - Before each build or check, write one line: "Worker plan: design = Opus · build = Sonnet · checks = Haiku".
   - Long chats: a chat is too long once it has been auto-summarised, after about 30 messages, when the topic changes, or after 3+ hours. Then finish the current step, write a 10-15 line note in handover/<topic>.md (goal, done, next step, files, open questions), open a new session from that note, and archive the old chat.
   - If you can't open a new session yourself, notice it without being asked and end every reply with: "This chat is long: open a new session and paste: Read <path> and continue." Keep doing it until I open one.
   - Ask me before anything that costs money, deletes things or sends messages to customers.
2. Add these two lines to ~/.claude/CLAUDE.md (create it if it's missing):
   # Must follow in every session
   @WORKER_RULES.md
3. In ~/.claude/settings.json, add "env": {"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"} so chats summarise themselves when half full instead of at about 95%.
4. Tell me what you changed. I'll test it by opening a new session and asking "What are your worker rules?"

Paste into Codex

Set up my AI worker rules for Codex. Do every step yourself and keep anything already in these files.

1. In ~/.codex/config.toml, set model_reasoning_effort = "low" (create the file if it's missing).
2. Add these rules to ~/.codex/AGENTS.md (create it if it's missing). Codex reads it in every session:
   - Use low effort by default. Switch to medium only for big builds that change many files, or to retry a build that failed its checks.
   - Before changing code, agree the plan with me in 3-5 short lines. Small tweaks wait for the next build.
   - After each build, run a check and give me a short report (under 25 lines). On a failure, read only the last ~20 log lines.
   - Long chats: a chat is too long after about 30 messages, when the topic changes, or after 3+ hours. Then write a 10-15 line note in handover/<topic>.md (goal, done, next step, files, open questions) and end every reply with: "This chat is long: open a new session and paste: Read <path> and continue."
   - Ask me before anything that costs money, deletes things or sends messages to customers.
3. Tell me what you changed. I'll test it by starting a new Codex session and asking "What are your worker rules?"

Paste into Claude Code

Set up my AI worker rules: Claude designs, Codex builds. Do every step yourself and keep anything already in these files.

1. Check that Codex works: run codex --version. If it's missing, run npm install -g @openai/codex, then ask me to run codex login once.
2. Create ~/.claude/WORKER_RULES.md with these rules:
   - Use Codex quota first. Every build, check, script or data job goes to Codex:
     codex exec --sandbox danger-full-access --skip-git-repo-check -C <folder> -c model_reasoning_effort="low" "<short brief>" < /dev/null > build.log 2>&1
     Low effort by default; medium for big builds that change many files, or a build that failed on low.
   - Claude quota is only for design, short briefs, reviews and talking to me. If Codex is out of quota, wait for the reset. If the job is urgent, use a Sonnet helper for builds or a Haiku helper for checks.
   - Before each build or check, write one line: "Worker plan: design = Claude · build = Codex low (big = medium) · checks = Codex low". If you edit code yourself, say why.
   - Codex reports stay short (under 25 lines). On a failure, read only the last ~20 log lines.
   - Long chats: a chat is too long once it has been auto-summarised, after about 30 messages, when the topic changes, or after 3+ hours. Then finish the current step, write a 10-15 line note in handover/<topic>.md (goal, done, next step, files, open questions), open a new session from that note, and archive the old chat.
   - If you can't open a new session yourself, notice it without being asked and end every reply with: "This chat is long: open a new session and paste: Read <path> and continue." Keep doing it until I open one.
   - Ask me before anything that costs money, deletes things or sends messages to customers.
3. Add these two lines to ~/.claude/CLAUDE.md (create it if it's missing):
   # Must follow in every session
   @WORKER_RULES.md
4. In ~/.claude/settings.json, add "env": {"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"} so chats summarise themselves when half full instead of at about 95%.
5. Tell me what you changed. I'll test it by opening a new session and asking "What are your worker rules?"

Test it: open a new session and ask "What are your worker rules?"

More, if you want it

Who does what
WorkerDoesNever does
Claude OpusDesign, short briefs, reviews, talking to youLong builds and checks
Codex, low effortBuilds, tests, checks, scripts, data jobsDesign choices
Codex, medium effortBig builds across many files, or a low build that failedDesign choices
Claude Sonnet / HaikuBuilds (Sonnet) or checks (Haiku), when Codex is out of quota or you only have ClaudeDesign choices
Advisor (Fable)A second opinion for the boss before a big decision. Sees the whole chat.Building, checking, small questions
Why long chats get a handover

A chat re-reads its whole history on every reply, so a long chat burns quota. The prompt makes the AI write a short note and move to a fresh session. With Claude, chats also summarise themselves at 50% full instead of about 95%.

Full rules (download)

The complete version, with the call order, a checklist for every job and how to measure your savings for a week.