CLAUDE CODE JUST STOPPED MAKING ONE F*CKING TOOL CALL AT A TIME
New in Claude Code: Code Mode. Most people haven't turned it on yet.
Before: Claude runs npm test → reads all 2,184 lines of logs → thinks → runs the next tool → reads that whole output too.
8 tool calls. 8 turns. Every byte of output dumped straight into context.
Code Mode: Claude writes ONE JavaScript script.
Independent calls run in parallel.
One result feeds the next inside the script.
2,184 log lines get filtered down to the 2 tests that failed, before anything reaches the model.
Same bug. Same Opus 5.5. Same fix.
Classic burned 134k context. Code Mode: 5k.
You turn it on like this:
export CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1
The full tree
> Code Mode → Claude writes JS that calls its tools
> parallel: independent tool calls run at once
> chaining: results pass between calls inside the script
> filtering: logs and huge outputs get cut down in the script
> only the answer comes back into context
> works with your MCP servers too
> experimental · off by default · Claude Code v2.1.323+
Paste the tree + this prompt into Claude Code ↓
Code Mode is on. For this task, write one script instead of separate tool calls:
run the test suite, git log and a grep for the failing function in parallel,
keep only the FAIL lines from the test output,
read only the files those failures point to,
and return just the failures plus the relevant snippets.
Then fix the bug and re-run the tests the same way.
it's experimental, so update Claude Code first. save it, it'll come in handy.
HIT YOUR CLAUDE LIMIT BY 2PM? YOU'RE BURNING IT ON F*CKING GREP.
Your weekly limit isn't too small.
Opus 5.5 is doing jobs a model 10x cheaper could do.
Every search. Every file read. Every subagent. Every workflow agent.
By default most of them run on whatever your main model is. And your main model is Opus.
Here's the setup that fixed it for me. Same Opus. Limits last all week.
Opus 5.5 on xhigh plans and signs off. That's it.
Haiku 5.5 on low does every search. The built-in Explore secretly inherits Opus. Override it.
Sonnet 5.5 on medium does the edits.
Sonnet 5.5 on high reviews.
Workflow agents forced to Sonnet with one env var.
Opus only reads summaries. Raw agent output never touches it.
Every token Opus doesn't spend is limit you keep.
You launch it like this:
claude --model opus --effort xhigh
The full tree
> main session: Opus 5.5 · xhigh · plans + signs off only
> .claude/agents/Explore.md → haiku · effort low (same name overrides the built-in)
> .claude/agents/fixer.md → sonnet · effort medium
> .claude/agents/reviewer.md → sonnet · effort high
> settings.json → CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL=sonnet
> /tasks → check the real model of every running agent
> /usage → watch the limit stop draining
Paste the tree + this prompt into Claude Code ↓
Set up my Claude Code to stretch my usage limits:
Create .claude/agents/Explore.md (haiku, effort low, Read/Grep/Glob, summary under 200 words), fixer.md (sonnet, effort medium) and reviewer.md (sonnet, effort high).
In .claude/settings.json set CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL to sonnet.
Keep the main session on Opus at xhigh: plan, delegate, read summaries only, never read raw agent output.
Show me every file as a diff first.
bookmark this before your limit resets.
2
9
514
MY CLAUDE CODE SETUP V2: CHEAP AND IMPOSSIBLE TO F*CK UP
Part 1 cut the token bill. 20k of you saved it.
Part 2 fixes the scary part: Claude deleting stuff, reading your .env, and saying "Done ✅" with red tests.
Same rule: Opus 5.5 thinks, cheaper models work.
New rule: hooks enforce everything in code. Claude can't skip them.
Opus 5.5 on xhigh plans and signs off. Never touches a file.
Haiku 5.5 on low does every search.
Sonnet 5.5 on medium edits. Sonnet 5.5 on high reviews.
PreToolUse hook blocks rm -rf, force-push and .env reads before they run.
Stop hook won't let Claude finish while a single test is red.
Every feature runs in its own worktree, so 5 sessions never touch each other's files.
You launch it like this:
claude -w orders --model opus --effort xhigh
The full tree
> main session: Opus 5.5 · effort xhigh · plans + signs off
> .claude/agents/Explore.md → haiku · effort low (the built-in inherits Opus)
> .claude/agents/fixer.md → sonnet · effort medium
> .claude/agents/reviewer.md → sonnet · effort high
> PreToolUse → guard.sh · exit 2 blocks rm -rf, force-push, .env
> PostToolUse → tests after every Edit|Write
> Stop → tests.sh · exit 2 if anything's red
> claude -w <name> → own branch, own folder, own session
> /tasks shows the real model of every agent
Paste the tree + this prompt into Claude Code ↓
Upgrade my Claude Code setup to v2:
Keep agents: Explore (haiku, low), fixer (sonnet, medium), reviewer (sonnet, high). Main session on Opus at xhigh.
Add .claude/hooks/guard.sh as a PreToolUse hook on Bash|Read|Edit: exit 2 with a reason on rm -rf outside the repo, git push --force, or any .env access.
Add a PostToolUse hook that runs tests after Edit|Write, and a Stop hook that exits 2 if tests fail (exit 0 if stop_hook_active is true).
Add .claude/worktrees/ to .gitignore so I can run claude -w per feature.
Show me every file as a diff first.
part 1 is in my profile. bookmark both.
YOU'RE PAYING OPUS 5.5 PRICES FOR F*CKING GREP. HERE'S MY ENTIRE CLAUDE CODE SETUP.
I spent weeks testing every Claude Code feature so you don't have to.
This is the whole thing. One tree. Copy it.
The rule: Opus 5.5 thinks. Everything else is done by cheaper models.
Opus 5.5 on xhigh plans, orchestrates and signs off. It never touches a file.
Haiku 5.5 on low does every search. Your built-in Explore secretly runs on Opus. Mine doesn't.
Sonnet 5.5 on medium makes the edits.
Sonnet 5.5 on high reviews every diff and catches what the others missed.
Hooks run the tests after every edit. Claude can't skip them.
Opus never reads raw agent output. Only summaries come back.
1.3M tokens read by agents. Opus context stays tiny.
You launch it like this:
claude --model opus --effort xhigh
The full tree
> main session: Opus 5.5 · effort xhigh · plans + signs off
> .claude/agents/Explore.md → model: haiku · effort: low (overrides the built-in, which inherits Opus)
> .claude/agents/fixer.md → model: sonnet · effort: medium
> .claude/agents/reviewer.md → model: sonnet · effort: high
> settings.json → PostToolUse hook runs tests after every edit
> settings.json → CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL=sonnet so workflow agents don't inherit Opus
> /tasks and /workflows → check the real model of every agent
Paste the tree + this prompt into Claude Code ↓
Rebuild my Claude Code setup around this tree:
Create .claude/agents/Explore.md (haiku, effort low, Read/Grep/Glob, summary under 200 words), fixer.md (sonnet, effort medium, smallest patch, tests after each edit) and reviewer.md (sonnet, effort high, real bugs only).
In .claude/settings.json add a PostToolUse hook on Edit|Write that runs my tests, and set CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL to sonnet.
Main session stays on Opus at xhigh: plan, delegate, read summaries only, sign off.
Show me every file as a diff first.
bookmark this. you'll want it the next time you open Claude Code.
YOUR 16 WORKFLOW AGENTS ARE ALL RUNNING ON OPUS 5.5
You fired off a workflow. 16 agents fanned out. Felt efficient.
Now open /workflows and look at the model column.
Every workflow agent that the script doesn't assign a model to runs on your session model.
You're on Opus 5.5? That's 16 Opus agents migrating files a Sonnet could migrate in its sleep.
The fix is one env var.
CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL=sonnet
Every workflow agent moves to Sonnet 5.5.
Your main session stays on Opus 5.5 and only reads the final summary.
Your other subagents keep their own models.
Same 16 agents. Same result. They just stopped billing as Opus.
The full tree
> workflow agents with no model → inherit your session model
> CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL → one model for workflow agents only
> main session untouched: Opus 5.5 still plans and signs off
> your own subagents keep the model in their frontmatter
> need a cheap stage? ask Claude to put it on haiku when you describe the task
> /workflows shows each agent's model and tokens live
Paste the tree + this prompt into Claude Code ↓
5
21
1,186
YOUR GREP IS SECRETLY RUNNING ON OPUS 5.5
Check /tasks right now.
Claude Code's built-in Explore subagent, the one that searches your codebase, inherits your main model.
You run Opus 5.5 as your main session? Then every grep, every file read, every "find where we validate coupons" runs on Opus 5.5.
Your most expensive brain is reading 58 grep hits.
The fix is one file. 4 lines.
Name your own subagent Explore. Same name as the built-in, so yours wins.
Put it on Haiku 5.5. Same search, same answer, faster, and zero Opus tokens on search.
Edits stay on Sonnet 5.5. Opus stays the orchestrator.
You fix it like this:
.claude/agents/Explore.md
The full tree
> built-in Explore → inherits your main model, not Haiku
> .claude/agents/Explore.md with the same name overrides it
> model: haiku · effort: low · tools: Read, Grep, Glob
> CLAUDE_CODE_SUBAGENT_MODEL alone won't move the built-in Explore
> want EVERY subagent on Haiku? add CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1, but then your editors go to Haiku too
> /tasks shows the real model of every running subagent
Paste the tree + this prompt into Claude Code ↓
Create .claude/agents/Explore.md to override the built-in Explore subagent:
name: Explore
model: haiku
effort: low
tools: Read, Grep, Glob
Description: read-only codebase search. Returns file paths, line numbers and a summary under 200 words. Never edits.
Keep every subagent that edits code on sonnet. Keep the main session on opus.
Then run one search and show me /tasks so I can confirm Explore is on haiku.
Show me the file as a diff first.
save it, it'll come in handy.
STOP TYPING "USE A WORKFLOW" EVERY F*CKING TIME
You learned workflows. Now you're manually deciding for every task: one agent or a fleet of 16?
Let Opus 5.5 decide.
Claude Code has /effort ultracode.
Turn it on once. Then just type the task.
Typo in the README → Opus fixes it directly. No fleet, no waste.
Migrate 140 components to TypeScript → three workflows in a row: understand → change → verify.
Find the flaky tests → a loop workflow that reruns until 2 rounds in a row find nothing new.
Haiku 5.5 maps the code. Sonnet 5.5 changes it in isolated copies. Sonnet 5.5 verifies.
Opus picks the shape. You just type.
You turn it on like this:
/effort ultracode
The full tree
> /effort ultracode → automatic workflow orchestration for the session
> claude --effort ultracode starts with it on and sets effort to xhigh
> small task → handled directly
> big task → Opus writes a workflow script
> huge task → several workflows in a row: understand, change, verify
> /workflows shows every run live · press s to save one as a /command
> size guideline in /config caps how big Claude goes
> /effort ultracode off when you're back to routine work
Paste the tree + this prompt into Claude Code ↓
Ultracode is on for this session. Here's my queue:
1. [small fix]
2. [big migration across many files]
3. [hunt for something until nothing new turns up]
For each task, tell me in one line whether you'll handle it directly or with a workflow, and why.
For workflows: cheap model for reading, stronger model for edits, separate agents to verify.
Show me each plan before it runs.
it burns more tokens per task, so switch it off for routine stuff. save it, it'll come in handy.
STOP MAKING OPUS 5.5 BABYSIT YOUR F*CKING AGENTS
You spawn 16 subagents and every result floods back into Opus' context.
By agent #9 your orchestrator is drowning in grep output.
Claude Code has dynamic workflows.
Opus 5.5 writes the orchestration ONCE as a JavaScript workflow script. Then it steps aside.
The runtime runs the script, not the model.
16 agents fan out in parallel. Haiku 5.5 scans every route. Sonnet 5.5 patches. Sonnet 5.5 verifies.
Intermediate results live in script variables, not in Opus' context.
Opus reads one summary at the end and signs off.
1.7M tokens read by agents. Opus context: ~1k. Flat the whole run.
You launch it like this:
workflow: audit every API route for missing auth
The full tree
> say "workflow" in your prompt → Claude writes a workflow script instead of going turn by turn
> phase scan: parallel agents audit every file
> phase edit: patches only for real hits
> phase verify: every patch cross-checked before it counts
> the script decides what runs next, not the model
> up to 16 agents at once by default
> /workflows shows the live run · press s to save it as a /command you can rerun
> /deep-research is a built-in workflow to try first
Paste the tree + this prompt into Claude Code ↓
workflow: audit this repo for [your problem].
Write the orchestration as a workflow script with three phases.
scan: one cheap agent per file, structured output only (file, issue, severity).
edit: patch only confirmed issues, one agent per file.
verify: a separate agent re-checks every patch and runs the related tests.
Keep raw agent output in script variables. Only return me one final summary.
Show me the script before it runs.
it's a research preview, so update Claude Code first. save it, it'll come in handy.
STOP RUNNING EVERY AGENT AT F*CKING MAX EFFORT
You picked the right models. Opus orchestrates, Haiku searches, Sonnet edits.
Then every single one of them thinks at max effort.
Your Haiku is deep-reasoning about how to run grep.
Model is dial #1. Effort is dial #2. Claude Code lets you set both per agent.
Opus 5.5 on xhigh: plans, orchestrates, signs off. Never types.
Haiku 5.5 on low: greps and maps the codebase. Fast and cheap.
Sonnet 5.5 on medium: makes the edits.
Sonnet 5.5 on high: reviews the diff and catches the bug everyone else missed.
Same fix. Same 0 regressions. A fraction of the thinking tokens.
You set it like this:
effort: low
The full tree
> /effort xhigh on the main Opus 5.5 session
> .claude/agents/explorer.md → model: haiku · effort: low
> .claude/agents/fixer.md → model: sonnet · effort: medium
> .claude/agents/reviewer.md → model: sonnet · effort: high
> frontmatter effort overrides the session level for that agent
> CLAUDE_CODE_SUBAGENT_EFFORT sets a floor for every agent without one
> /tasks shows each agent's model + effort live
Paste the tree + this prompt into Claude Code ↓
Rebuild my .claude/agents/ around two dials:
explorer: model haiku, effort low, tools Read/Grep/Glob, returns a summary under 200 words.
fixer: model sonnet, effort medium, smallest patch that fixes the issue, runs tests after each edit.
reviewer: model sonnet, effort high, reviews every diff against its callers, reports real bugs only.
Keep the main session on Opus 5.5 at xhigh: plan, delegate, read summaries, sign off.
Show me every file as a diff first.
check /tasks after the first run to make sure each agent picked up its level.
save it, it'll come in handy.
CLAUDE OPENED 3 PRs WHILE YOU WERE F*CKING ASLEEP
You close your laptop at midnight. Claude Code doesn't stop.
Scheduled tasks run on Anthropic's cloud. Full Claude Code sessions, fresh clone of your repo, your connectors. Laptop closed, phone on silent, doesn't matter.
Last night:
00:50 a teammate opens a PR → Claude reviews it, finds a missing null check
02:00 nightly cron → 12 issues triaged, 2 bugs reproduced, 2 draft PRs
04:10 monitoring hits the API → checkout 500s → hotfix PR + incident note
You wake up, make coffee, review 3 PRs.
Nothing merges without you.
You set it up like this:
/schedule every night at 2am: triage new issues, draft fixes as PRs
The full tree
> /schedule → creates a cloud scheduled task from the CLI
> schedule trigger: cron, minimum every hour
> github trigger: fires on PR or issue events
> api trigger: HTTP POST from your monitoring, Slack, anything
> each run = full Claude Code cloud session on a fresh clone
> no approval prompts mid-run, so scope the prompt tight
> manage everything at claude.ai/code/routines or /schedule list
Paste the tree + this prompt into Claude Code ↓
Set up 3 scheduled tasks for this repo:
1. nightly-triage, every day at 2am: label new issues, close duplicates, reproduce bugs and open a draft PR for each one you can fix with a failing test first.
2. pr-reviewer, on every PR opened into main: review the diff, post comments only for real bugs, no style nits.
3. alert-fixer, triggered by API from monitoring: read the error, find the cause, open a hotfix PR with an incident note.
Never push to main. Draft PRs only.
Show me each task config before you save it.
add the GitHub and API triggers on the web after /schedule creates the cron one. save it, it'll come in handy.
STOP RUNNING OPUS 5.5 ON EVERY F*CKING KEYSTROKE
90% of a coding session is reading files, editing, running tests. Sonnet crushes that.
The other 10% is the hard call: the plan, the bug nobody understands, "are we actually done?"
That 10% is where you want Opus.
Claude Code has /advisor.
Sonnet 5.5 runs the whole session. Reads, edits, runs tests, talks to you.
Opus 5.5 sits on the bench as the advisor. No tools, no edits, costs nothing while idle.
When Sonnet hits something hard, it asks Opus, gets the answer and keeps driving.
In one session it called Opus 3 times:
> before planning: "ledger table first, keep old invoices read-only"
> stuck on a 1-cent test drift: "float math in proration.ts:57, use int cents"
> "am I done?": "not yet, downgrade webhook is missing"
Sonnet did the work. Opus made the calls.
You turn it on like this:
/advisor
The full tree
> /advisor → pick opus, sonnet or fable as the advisor
> main model stays sonnet and does 100% of the tool calls
> the main model decides when to ask, you don't babysit it
> advisor answers, never edits files
> best moments to ask: planning, weird failures, completion checks
> pin it in settings.json: "advisorModel": "opus"
Paste the tree + this prompt into Claude Code ↓
Set this project up for the advisor pattern:
Set "model": "sonnet" and "advisorModel": "opus" in .claude/settings.json.
Add to CLAUDE.md: consult the advisor before any plan that touches more than 3 files, after 2 failed attempts at the same bug, and before saying a task is done.
After every advisor answer, write one line in the chat: what it said and what you're changing because of it.
Show me every change as a diff first.
save it, it'll come in handy.
9
33
7,801
STOP PAYING OPUS 5.5 TO TYPE F*CKING BOILERPLATE
Opus is your most expensive brain. You have it writing import statements, test fixtures and CRUD routes.
Thinking is maybe 10% of the job. Typing is the other 90%. You're paying Opus prices for all of it.
Claude Code has a hidden model alias: opusplan.
Shift+tab into plan mode → Opus 5.5 thinks. Read-only, it maps the codebase and writes the plan.
You approve the plan → Claude Code switches to Sonnet 5.5 automatically.
Sonnet executes the plan step by step.
Opus only burns tokens while it's actually thinking.
You turn it on like this:
/model opusplan
The full tree
> /model opusplan routes by mode, not by task
> plan mode (shift+tab) → Opus 5.5, read-only, writes the plan
> nothing gets edited until you approve
> approve → auto-switch to Sonnet 5.5 for execution
> Explore subagent maps the codebase on Haiku
> pin exact models with ANTHROPIC_DEFAULT_OPUS_MODEL / ANTHROPIC_DEFAULT_SONNET_MODEL
> /status shows which model is live right now
Paste the tree + this prompt into Claude Code ↓
Set up this project for opusplan:
Set "model": "opusplan" in .claude/settings.json.
Add a section to CLAUDE.md: for any change over ~50 lines, start in plan mode, write a numbered plan with the files each step touches, and wait for my approval.
During execution, follow the plan one step at a time, run the tests after each step, and stop and tell me if a step needs a change to the plan.
Show me every change as a diff first.
run /status after you approve the plan to make sure it actually switched. save it, it'll come in handy.
STOP MERGING PRs AFTER ONE F*CKING AI REVIEW
One pass. One context. 40 comments like "consider renaming this variable" and the real bug ships anyway.
Claude Code has /ultrareview.
Your Opus 5.5 session packs up the PR and sends it to a cloud sandbox.
A fleet of reviewer agents hunts in parallel, each one on a different class of bug: auth, data, concurrency, edge cases, API contracts, migrations.
Then every candidate gets REPRODUCED against the real code.
Can't reproduce it? Dropped.
23 candidates in. 4 verified bugs out. 0 style nitpicks.
And your session stays free the whole time. You keep coding while the fleet works.
You launch it like this:
/ultrareview 1234
The full tree
> /ultrareview → reviews your branch, add a PR number to review a PR
> branch gets bundled into a remote cloud sandbox
> phase find: parallel reviewer agents, one bug class each
> phase verify: every finding reproduced against real code behavior
> phase report: only verified bugs, with file + line + why it breaks
> findings land in your session as a notification
> claude ultrareview 1234 in CI → exit 1 blocks the merge
Paste the tree + this prompt into Claude Code ↓
Set up ultrareview for this repo:
Add a CI step that runs claude ultrareview on every PR into main and fails the job if it exits non-zero.
Write a short REVIEW.md: run /review for small changes, /ultrareview before merging auth, payments and migrations.
When ultrareview findings come back, fix each one in its own commit and add a test that reproduces the bug first.
Show me every change as a diff first.
it bills as extra usage, so keep it for the PRs that can actually hurt. save it, it'll come in handy.
STOP BEING THE F*CKING MIDDLEMAN BETWEEN YOUR AGENTS
Subagents can't talk to each other. Everything goes through one main session, and you end up copy-pasting context between them like it's 2023.
Claude Code Agent Teams fix this.
Opus 5.5 becomes the team lead. It splits the job into a shared task list and never touches the code.
Sonnet 5.5 teammates build backend and frontend, each in its own context window.
A Haiku 5.5 teammate runs the e2e tests.
Teammates claim tasks, wait on dependencies and MESSAGE EACH OTHER DIRECTLY.
Frontend asks backend for the API shape. Tester finds a 500 and pings backend. Backend fixes it and says "re-run".
The lead just reads the results and signs off.
You turn it on like this:
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 claude
The full tree
> Opus 5.5 team lead plans, assigns, signs off
> shared task list: pending → in progress → done, with dependencies
> Sonnet 5.5 teammates build, each with its own context window
> Haiku 5.5 teammate tests and reports bugs straight to the owner
> teammates load your CLAUDE.md, MCP servers and skills
> direct messages between teammates, no lead in the middle
> lead opens the PR when the task list is empty
Paste the tree + this prompt into Claude Code ↓
Create an agent team for this feature: [describe it].
You are the lead. Don't write code yourself. Break the work into a shared task list with clear dependencies.
Spawn 3 teammates: backend and frontend on Sonnet 5.5, tester on Haiku 5.5.
Teammates should message each other directly for API contracts and bugs instead of going through you.
Tester runs the e2e suite after every finished task and reports failures to the task owner.
When every task is done, summarize the changes and open one PR.
Show me the task list before anyone starts.
it burns more tokens than one session, so save it for the big features. save it, it'll come in handy.
15
34
1,255
CLAUDE JUST NUKED 812 LINES OF YOUR CODE. DON'T F*CKING PANIC. PRESS ESC TWICE.
You asked for "a small refactor".
11 files later: app crashed, 29 tests red, and Claude says "Done! Refactor complete ✓"
Most people start a frantic git reset, or worse, try to fix it by hand.
Claude Code saves a checkpoint before every prompt you send. Automatically. You never had to do anything.
Esc Esc on an empty prompt (or /rewind) → pick the prompt where it went wrong → choose:
> Restore code and conversation: full time travel
> Restore code: undo the edits, keep what Claude learned
> Restore conversation: keep the code, rewind the chat
> Summarize from here: free up context without touching files
One keypress. 812 lines back. Tests green. Try again with a better prompt.
The full tree
> every prompt = automatic checkpoint
> Esc Esc or /rewind opens the menu
> each checkpoint shows which files changed (+/- lines)
> restore code, conversation, or both
> checkpoints survive closing and resuming the session
> tracks Claude's file edits, not bash side effects (rm, migrations), so still commit to git
Paste the tree + this prompt into Claude Code ↓
Before any big change in this repo:
1. Tell me which files you plan to touch and wait for my OK.
2. Change one file at a time and run the tests after each one.
3. If tests go red, stop and tell me which prompt to /rewind to instead of piling fixes on top.
4. Never run destructive bash commands (rm -rf, db migrations, force-push) without asking. Checkpoints can't undo those.
Show me every change as a diff first.
save it, it'll come in handy.
7
21
775
YOU'RE RUNNING 1 CLAUDE. THE GUY WHO SHIPPED 5 FEATURES TODAY RAN F*CKING 5.
One session. One task. You sit there watching it think.
Meanwhile someone opened 5 terminals and typed:
claude -w auth
claude -w payments
claude -w search
claude -w dark-mode
claude -w tests
That's it. One flag.
Every -w session gets its own git worktree: its own folder, its own branch, its own Claude. Same repo, so 5 agents can't overwrite each other's files.
Auth gets 2FA. Payments gets fixed. Search gets filters. Dark mode ships. Coverage goes up.
5 PRs by the time your single session finishes task #1.
The full tree
> claude -w <name> → new worktree in .claude/worktrees/<name>
> each worktree = own branch + own working folder
> one .git shared underneath, zero file collisions
> .worktreeinclude copies your .env and local configs into every worktree
> subagents can run isolated too: isolation: worktree in the frontmatter
> review, merge the PRs, clean up worktrees when done
Paste the tree + this prompt into Claude Code ↓
Set up this repo for parallel Claude Code sessions:
Add .claude/worktrees/ to .gitignore.
Create a .worktreeinclude listing the gitignored files every worktree needs (.env, local config).
Split my backlog into 5 independent tasks that don't touch the same files, and give me the exact claude -w <name> command plus a one-line task prompt for each.
Each session must run the tests and open its own PR when done.
Show me every file as a diff first.
save it, it'll come in handy.
STOP BEGGING CLAUDE IN CLAUDE.MD. F*CKING ENFORCE IT.
"Never touch .env" in a prompt is a suggestion.
A hook is a law.
Claude Code hooks are scripts that fire on every move Opus 5.5 makes. They run in code, so Claude can't forget them, skip them or talk its way past them.
PreToolUse fires before every tool call. Exit 2 = blocked, and the reason goes straight back to Claude.
PostToolUse fires after every edit. Prettier + tsc run instantly and errors get fed back.
The Stop hook is the one nobody sets up. Claude says "Done!" with 2 failing tests? Exit 2. Back to work.
No more "all fixed" while your build is on fire. No more cat .env. No more force-push to main at 3am.
You set it up like this:
/hooks
The full tree
> .claude/settings.json holds all 3 hooks
> PreToolUse → guard.sh blocks .env reads, force-push, rm -rf outside the repo
> PostToolUse → check.sh runs prettier + tsc after every Edit|Write
> Stop → tests.sh runs npm test, exit 2 if anything fails
> exit 0 = carry on · exit 2 = blocked + reason sent to Claude
> Opus 5.5 only gets to say "done" when the tests say so
Paste the tree + this prompt into Claude Code ↓
Set up hooks for this project in .claude/settings.json:
PreToolUse (matcher: Bash|Read|Edit) → .claude/hooks/guard.sh
Read the tool call JSON from stdin. Exit 2 with a clear reason on stderr if it reads or edits any .env file, runs git push --force, or runs rm -rf outside the project dir.
PostToolUse (matcher: Edit|Write) → .claude/hooks/check.sh
Run prettier on the edited file and tsc --noEmit. Print any errors to stderr.
Stop → .claude/hooks/tests.sh
Run my test command. If anything fails, exit 2 with the failing test names. If stop_hook_active is true, exit 0 so it never loops forever.
Make all scripts executable. Show me every file as a diff before writing it.
save it, it'll come in handy.
STOP BURNING OPUS ON F*CKING GREP
Opus 5.5 is your most expensive brain. Stop making it read 2,000-line files and 37 grep hits.
Claude Code subagents fix this.
Opus 5.5 plans the job, then hands off the dirty work.
Haiku 5.5 subagents search the codebase in their own context windows.
Sonnet 5.5 subagents patch and double-check.
A PostToolUse hook runs your tests after every edit.
Only short summaries come back to Opus. The raw sh*t never touches the main context.
You set it up like this:
/agents
The full tree
> Opus 5.5 main session plans + signs off
> .claude/agents/explorer.md → model: haiku · Read, Grep, Glob
> .claude/agents/fixer.md → model: sonnet · Read, Edit, Bash
> .claude/agents/checker.md → model: sonnet · cross-checks every patch
> settings.json → PostToolUse hook runs tests after each edit
> every subagent gets its own context window
> Opus reads summaries only, never raw output
Paste the tree + this prompt into Claude Code ↓
Set up my Claude Code project around this tree:
Create 3 subagents in .claude/agents/:
explorer (model: haiku, tools: Read, Grep, Glob) searches the codebase and returns a summary under 200 words.
fixer (model: sonnet, tools: Read, Edit, Bash) makes the smallest patch that fixes the issue.
checker (model: sonnet, tools: Read, Bash) reviews every patch against its callers and reports regressions.
Add a PostToolUse hook in .claude/settings.json that runs my test command after every Edit/Write.
Main session stays on Opus 5.5: plan, delegate, read summaries only, sign off.
Show me every file as a diff before writing it.
save it, it'll come in handy.
STOP LETTING OPUS DROWN IN RAW F*CKING AGENT NOISE
Claude Code just got an UltraReview mode that runs 16 agents without touching your context.
Opus 5.5 writes the workflow script once, then stays idle.
Haiku 5.5 swarms the scan phase at 340 tok/s.
Sonnet 5.5 handles edit and verify in isolated copies.
The script filters everything so Opus only sees verified findings.
Zero raw output. Zero false positives. Opus context stayed at 0.8k the whole time.
You launch it like this:
claude --review ultra --post
The full tree
> Opus 5.5 orchestrator writes workflow.js and stays idle mid-run
> phase scan: 16 parallel Haiku 5.5 agents audit every file
> phase edit: Sonnet 5.5 patches in isolated sandbox copies
> phase verify: Sonnet 5.5 cross-checks all changes
> script filters raw agent output before anything reaches Opus
> JEV fork layer routes decisions in 16ms
> final sign-off only on verified findings with zero regressions
Paste the tree + this prompt into Claude Code ↓
Rebuild my Claude Code setup around this tree:
Run UltraReview with claude --review ultra --post.
Opus 5.5 writes the workflow script then stays idle. It never reads raw agent output.
Spawn 16 parallel agents. Haiku 5.5 handles the scan phase. Sonnet 5.5 handles edit and verify in isolated copies.
The script must filter noise first and only pass verified findings to Opus.
Keep Opus context under 1k tokens. Require zero false positives and zero regressions before sign-off.
Show me every change as a diff first.
save it, it’ll come in handy.
STOP LETTING OPUS TOUCH ROUTINE F*CKING WORK
Claude Code just got a proper subagent tree.
Sonnet 5.5 runs the main session on high effort and synthesizes diffs.
Haiku 5.5 swarms the research on medium.
Opus 5.5 stays on call as reviewer and only wakes for three things.
Opus never writes code. It only advises. Sonnet applies it.
High volume AST and specs get absorbed in subagents so the main context stays clean.
You launch it like this:
CLAUDE_CODE_SUBAGENT_MODEL=haiku claude --model sonnet
The full tree
> Sonnet 5.5 high as main session coordinator
> Opus 5.5 code-reviewer on call (before plan locks / test fails twice / pre-commit audit)
> Haiku 5.5 parallel research swarm on medium
> worker on Sonnet medium in isolated worktree (edits + tests)
> explorer and researcher on Haiku medium (Read / Grep / Glob / WebFetch)
> Context shield absorbs high-volume AST so main stays clean
> Opus stands by idle until called, zero context pollution
Paste the tree + this prompt into Claude Code ↓
Rebuild my Claude Code setup around this tree:
Run the main session on Sonnet 5.5 with effort high.
Set CLAUDE_CODE_SUBAGENT_MODEL=haiku so research swarms on medium.
Enable Opus 5.5 as code-reviewer on call. It only triggers before plan locks, when a test fails twice, and on pre-commit audit.
Opus never writes code itself. Sonnet applies the advice.
Use isolated worktrees for edits and tests.
Absorb high-volume AST and specs in subagents so the main context stays clean.
Show me every change as a diff first.
save it, it’ll come in handy.


