# My ‘God mode’ Claude setup

> One Opus planner on extra high effort, a crew of Haiku agents that check their own work, Auto-Compact set early, and one shared memory for the whole crew. The full walkthrough, every file and prompt included.

By Jayson, Co-founder of HeyBrain.
Web version: https://heybrain.io/guide-center/claude-god-mode

## Notes for the agent reading this

- Walk the reader through the steps in order, one step at a time, and wait for them to finish each one.
- Ask before installing software, connecting an account, spending money or sending anything on their behalf.
- Prompts are in code blocks. Fill in anything in [square brackets] with the reader first.
- Step 5 needs a HeyBrain account (14-day free trial, card required): https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode

## What this is

If you came from my video, this is the walkthrough I promised. I call it God mode. It’s not an Anthropic feature, just my name for how I run Claude Code now: one Opus agent on extra high effort does the thinking, and a crew of cheaper Haiku agents does the work, checks it and reports back.

Below is every setting, file and prompt, in the order I set it up. The last piece is the shared memory, and that’s where HeyBrain comes in: every agent in the crew starts with the same knowledge of my Google Drive and Notion. HeyBrain has a [14-day free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode). Full disclosure: I co-founded it.

**What you’ll have at the end**
- An Opus planner on extra high effort that plans and delegates instead of doing everything itself
- A crew of three Haiku agents: one gathers, one builds, one checks
- Verification loops, so work gets checked before it reaches you
- Auto-Compact set to kick in early, and a simple folder structure for the whole thing
- Skills you improve after every run, and one shared memory for the crew

**Who it’s for:** People who already use Claude Code and want better results without paying top-model prices for every small job. You don’t need to write code, but you do need to be fine working in a terminal.

**Want the shared memory ready before you start?** HeyBrain is the memory in step 7. Connect your Google Drive and Notion once, and every agent you build reads the same context. 14-day free trial. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode)

## The setup at a glance

> **The idea in one line.** Pay the most expensive model to think, and let the cheaper models do the work.

## What you need

- [ ] Claude Code: It runs on paid Claude plans, or on an Anthropic API key. Install it with Anthropic’s [setup guide](https://code.claude.com/docs/en/setup).
- [ ] Access to Opus and Haiku: Which models you get, and how much, depends on your plan. Run `/model` in Claude Code to see yours.
- [ ] A project folder: One folder per crew. You’ll set it up in step 2.
- [ ] A HeyBrain account for step 7: 14-day free trial, card required.
- [ ] Your Google Drive or Notion: The docs your crew should know about.

## Step 1: Put Opus on extra high effort

The planner is your main Claude Code session. It’s the one you talk to, so it gets the strongest model and the most thinking. Start Claude Code in your project folder and run these two commands:

1. `/model opus` switches the session to Opus.
2. `/effort xhigh` sets effort to extra high. Run `/effort` on its own to get a slider instead, and `/effort status` to check the current level.

Effort is how much Claude thinks before it acts. Higher effort means deeper reasoning, and it also uses more of your limit, which is exactly why I give it to the planner. The crew runs on a cheaper model instead.

> There’s a level above extra high called `max`. In Claude Code it only lasts for the current session, and I don’t need it for planning. Extra high is the level I leave on.

**Using the Claude app too?**

The app has the same setting. Click the model name next to the send button, choose **Effort** and pick **Extra high**. The change applies from Claude’s next reply.
The crew in this guide runs in Claude Code, so the rest of the steps happen there.

## Step 2: Set up the folder

Everything the crew needs lives in one project folder. Claude Code already knows where to look for agents and skills, so the structure does half the work for you.

| Path | What goes in it |
| --- | --- |
| `CLAUDE.md` | The planner’s brief: the goal of this project, how you like work done and the crew rules from step 5 |
| `.claude/agents/` | One file per crew member: `researcher.md`, `builder.md`, `checker.md` |
| `.claude/skills/` | One folder per repeatable job, each with a `SKILL.md` |
| `plans/` | The planner writes each plan here before the crew starts |
| `outputs/` | Finished, checked work |

**Prompt: Set up the folder**

```text
Set up this folder for a planner and crew workflow. Create:

- CLAUDE.md with a short placeholder brief (I’ll fill it in with you next)
- .claude/agents/ (empty for now)
- .claude/skills/ (empty for now)
- plans/ and outputs/

Then interview me, one question at a time, to fill in CLAUDE.md: the goal of this project, who the work is for, what good looks like, and what you must never do without asking me. Keep it under one page.
```

**Your folder is ready. Give the crew something to know.** Start your HeyBrain trial now and connect your Drive and Notion, so the shared memory is waiting when you reach step 7. Claude Code, Cursor and Codex can all read the same brain. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode)

## Step 3: Set Auto-Compact to kick in early

When a session’s context fills up, Claude Code compacts it: it summarises the older conversation to free space. By default that happens late, close to the model’s limit. I’d rather it happen early, while the planner still has a clear head, at about 40% of the window for normal work and 60% for bigger tasks.

Claude Code sets this with the `/autocompact` command, using a size in tokens rather than a percentage. So first check how big your window is, then do the maths:

1. Run `/context`. It shows how full the session is and how big the window is.
2. Take 40% of that. On a 1M-token window, that’s `/autocompact 400k`.
3. For a bigger task, raise it to 60%: `/autocompact 600k` on the same window.
4. Run `/autocompact auto` any time to go back to the default.

> The smallest window `/autocompact` accepts is 100k tokens, and it can’t go above your model’s window. If your window is smaller, 40% may fall under that minimum. The percentage setting below is the other route; run `/context` afterwards to see where compaction lands.

**Prefer to set it as a percentage?**

Claude Code also reads an environment variable called `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`. Set it to `40` and compaction triggers at 40% of the auto-compact window. It can only make compaction happen earlier, never later, and it only applies in sessions that compact before the model’s context limit, which is the default on 1M-window models.
To keep it for this project, add it to `.claude/settings.json` under `env`, for example `"env": { "CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "40" }`, then restart Claude Code.

Two habits help as much as the setting. Use `/compact` with a note when you want to choose what survives, and `/clear` when you switch to unrelated work.

**Prompt: Compact with a note**

```text
/compact Keep the goal, the current plan in plans/, which crew tasks are done and which failed checks, and any decisions I made. Drop the rest.
```

## Step 4: Build the Haiku crew

Each crew member is a subagent: a short Markdown file in `.claude/agents/` with a name, a description of when to use it, the model and its instructions. The `model: haiku` line is the whole trick. The planner stays on Opus, and every task it hands to the crew runs on Haiku.

**Prompt: Example agent file: builder.md**

```text
---
name: builder
description: Does one clearly scoped task from the planner’s plan and reports back. Use proactively for execution work.
model: haiku
---

You are the builder on a small crew. The planner gives you one task, the files or sources to use, and a definition of done.

- Do only that task. If something is unclear or missing, stop and say what you need.
- Save your work where the task says.
- Finish with a short report: what you did, where it is, and anything you weren’t sure about.
```

Let the planner write all three for you:

**Prompt: Create the crew**

```text
Create three subagents in .claude/agents/, each with model: haiku and no tools line:

1. researcher: gathers the facts, files and sources a task needs and returns a short, sourced summary. It never writes the final output.
2. builder: does one clearly scoped task from the plan and reports what it did and where it saved it.
3. checker: tests a result against the task’s definition of done and returns PASS or FAIL, with the exact reasons for a FAIL.

Keep each description to one line that says when to use it. Show me the three files before you save them.
```

> Want a stronger worker for one job? Change that file’s `model` line to `sonnet`. The planner and the rest of the crew don’t change.

## Step 5: Add the verification loop

Cheap models are fast, and they miss things. The loop catches that before it reaches you: every task has a definition of done, the checker tests against it, and a failed check goes back to the builder with the reasons. Put the rules in `CLAUDE.md` so the planner follows them on every run.

**Prompt: Crew rules for CLAUDE.md**

```text
Add this section to CLAUDE.md:

## Crew rules
- You are the planner. Think, plan and delegate. Don’t do execution work yourself unless a task is too small to hand out.
- Every run has one clear goal. Write it at the top of a new plan in plans/ before anything else.
- Break the goal into small tasks. Each task names its agent, its inputs and a definition of done.
- Send research to researcher and execution to builder.
- Send every finished task to checker. On FAIL, send it back to builder with the checker’s reasons. After two failed tries, stop and ask me.
- When every task passes, review the whole result against the goal, save it to outputs/ and give me a short summary.
```

**Checked work is only as good as what the crew knows.** Your checker can only test against the context it has. HeyBrain gives every agent the same knowledge of your Drive and Notion. 14-day free trial, card required. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode)

## Step 6: Skills that get better every run

A skill is a folder in `.claude/skills/` with a `SKILL.md` that tells Claude how to do one job your way. Claude Code picks up edits to a skill during the session, so the simplest way to make skills better over time is to update them straight after a run, while the lessons are fresh.

**Prompt: Turn a job into a skill**

```text
I want a skill for [a job the crew does often]. Ask me how I do it today, step by step, what good looks like, and the mistakes to avoid.

Then save it as .claude/skills/[skill-name]/SKILL.md with a name, a one-line description of when to use it, and the steps.
```

**Prompt: After every run: improve the skill**

```text
Look back at this run. Which checker FAILs happened, what caused them, and what did I correct by hand? Suggest specific edits to the skills you used so those mistakes don’t happen again. Show me each change before you save it.
```

> I read every suggested edit before it goes in. A skill that changes without anyone looking can drift as easily as it improves.

## Step 7: Plug the crew into one shared memory

This is my addition to the setup. Without it, each agent only knows what the planner pastes into its task, and the planner only knows this folder. With it, every agent can look up my docs, decisions and projects for itself.

I use HeyBrain. It turns my Google Drive and Notion into one knowledge graph and connects it to Claude Code over MCP. When an agent needs something, it looks up the pieces that matter and pulls in only those, instead of re-reading everything. Subagents get the same tools as your main session unless you limit them, so one connection covers the planner and the whole crew.

![Claude Code reads from your HeyBrain over the HeyBrain MCP: your Google Drive and Notion in one knowledge graph.](https://heybrain.io/guide-center/jarvis/memory.webp)

1. Start your [14-day free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode) and create your workspace.
2. Connect **Google Drive**, **Notion** or both, so HeyBrain can build your knowledge graph.
3. In HeyBrain, open **HeyBrain MCP**, choose **Claude Code** and copy the command. It carries your own key, so keep it private.
4. Paste it into your terminal and run it. Then fully quit and reopen Claude Code.
5. Type **/mcp** in Claude Code. You should see HeyBrain in the list, marked as connected.

![The HeyBrain MCP page with Claude Code selected and its connect command ready to copy.](https://heybrain.io/guide-center/jarvis/heybrain-mcp-claude-code.webp)

![A terminal running the HeyBrain connect command, then Claude Code's /mcp list showing HeyBrain connected.](https://heybrain.io/guide-center/jarvis/claude-code-mcp.webp)

**Using the Claude app as well?**

In HeyBrain, open **HeyBrain MCP**, choose **Claude** and copy your connection URL. It’s unique to your workspace, so keep it private.
In Claude, open **Customize → Connectors**, choose **Add**, then **Add custom connector**. Name it HeyBrain, paste the URL, click **Continue**, then **Add**. Click **Connect**, sign in to HeyBrain and click **Allow**, then click **+** in a chat and switch HeyBrain on. On Team and Enterprise plans, an Owner adds custom connectors for the organization.

Then tell the planner to use it, and check the crew can see it:

**Prompt: Memory rule for CLAUDE.md**

```text
Add this to the Crew rules in CLAUDE.md:

- Before you plan, use HeyBrain to look up what my docs say about the goal. Name the documents you used in the plan.
- Tell each agent which HeyBrain documents matter for its task. Agents should look things up in HeyBrain instead of guessing.
```

**Prompt: Check the crew can see it**

```text
Ask the researcher to use HeyBrain to list the five most recent documents about [a project or client], with one decision or open question from each. Then tell me whether it found them.
```

> The crew reads from HeyBrain. To add something new, save it to Google Drive or Notion and HeyBrain picks it up from there.

**This is the line I added to the setup.** One shared memory means the planner, the researcher, the builder and the checker all work from the same facts. Connect HeyBrain once. 14-day free trial, card required. [Start your free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode)

## Step 8: Run it

Check the planner is on Opus and extra high effort, then start every run with the goal and let it work through the crew rules. This is the prompt I use:

**Prompt: Start a run**

```text
Goal: [one clear sentence, for example: a launch email and three social posts for our new pricing page].

Follow the Crew rules in CLAUDE.md. Look up the relevant context in HeyBrain first, write the plan in plans/ and show it to me before the crew starts. Use the skills in .claude/skills where they fit. When you’re done, give me the result, what the checker failed and why, and which skills you’d update.
```

After the run, use the skill update prompt from step 6. That’s the loop: plan, delegate, check, improve.

## Why it works (and where it doesn’t)

Every token Opus spends costs more than a token Haiku spends (see Anthropic’s [pricing page](https://platform.claude.com/docs/en/about-claude/pricing)). In a one-agent setup, Opus does everything: the thinking and the reading, searching and drafting. In this setup, Opus only plans and reviews, and the bulk of the work runs on the cheaper model.

This isn’t my invention. Anthropic built its Research feature as a lead agent that plans and hands pieces to subagents working in parallel, and wrote about it in its [engineering post on multi-agent research](https://www.anthropic.com/engineering/multi-agent-research-system). Claude Code’s own docs suggest routing simple subagent tasks to Haiku to control costs, and its `opusplan` mode uses Opus to plan and Sonnet to carry the plan out.

> **The honest part.** A crew uses more tokens overall than a single chat. In the same post, Anthropic says multi-agent systems use about 15 times more tokens than chats, and that they suit work valuable enough to justify that.
> What you save is the price of those tokens, because most of them run on Haiku. For a quick question, one chat is still cheaper. Save the crew for real work.

**One agent vs a planner and crew**

- One agent does everything: The most expensive model reads, searches and drafts every line, and nobody checks the work before you see it.
- A planner, a crew and one memory: Opus plans and reviews, Haiku does the work, a checker tests it, and every agent reads the same context from your Drive and Notion.

**Give your whole crew one memory.** Connect your Google Drive and Notion to HeyBrain once. Your planner and every agent it runs read the same, current context. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-god-mode)

## Questions people ask
**Is God mode an official Claude feature?**

No. It’s my name for this setup. Everything in it uses standard Claude Code features: models, effort, subagents, Auto-Compact and skills.

**Which Claude plan do I need?**

Claude Code runs on paid Claude plans, or on an Anthropic API key. Which models you can use, and how much, depends on your plan, so run `/model` to see what you have. HeyBrain has a 14-day free trial with a card required. See [pricing](https://heybrain.io/pricing).

**Can I use Sonnet for the crew instead of Haiku?**

Yes. Change the `model` line in an agent file to `sonnet`. It costs more per token than Haiku and handles harder tasks better, so I use it for the one job that needs it.

**What about agent teams?**

Claude Code also has agent teams, where several full sessions work together. They’re experimental and off by default. Subagents are simpler and are all this setup needs.

**Does HeyBrain work for the whole crew?**

Yes. Connect it once in Claude Code and every subagent without a tools line can use it. HeyBrain reads Google Drive and Notion today, and more sources are on the way.

**Is my data used to train models?**

No. HeyBrain doesn’t train any model on the content you connect.
