# Four plugins for Claude Code’s token limit

> The four tools from the video, with the links, what each one really does, how to install it and what to watch out for.

By Jayson, Co-founder of HeyBrain.
Web version: https://heybrain.io/guide-center/claude-code-token-plugins

## 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-code-token-plugins

## What this is

If you came from my video, these are the four tools I promised, with the links and what each one really does. Claude Code is brilliant right up until it hits your usage limit halfway through a task. These four help from different sides: less code written, a backup when the limit runs out, less re-reading, and a better way of working.

Two are Claude Code plugins, one is a gateway you run on your own machine, and one is a memory you connect over MCP. That third one is HeyBrain. Full disclosure: I co-founded it, and it has a [14-day free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins). I checked each tool against its own repo, so where the video was short on detail or a caution, you’ll find it here.

**What you’ll have at the end**
- Ponytail installed, so Claude Code writes only the code the task needs
- OmniRoute set up safely, as a backup route for when your limit runs out
- Claude Code looking things up in your Google Drive and Notion through HeyBrain, instead of re-reading files
- AgentSkills guiding Claude Code from spec to ship
- The link to each tool, and what to watch out for with each

**Who it’s for:** Anyone who runs Claude Code on a paid plan and keeps hitting the limit mid-task. You’ll paste a few commands into Claude Code and a terminal. No coding beyond that.

**Want tool three ready before you start?** HeyBrain gives Claude Code your Google Drive and Notion as one knowledge graph, so it looks things up instead of re-reading them. 14-day free trial. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins)

## The four at a glance

| Tool | What it helps with | What it is |
| --- | --- | --- |
| **1. Ponytail** | Claude Code writing more code than the task needs | Free Claude Code plugin |
| **2. OmniRoute** | Getting stuck when your limit runs out | Free gateway you run on your computer |
| **3. HeyBrain** | Re-reading the same docs and files every session | MCP connection to your Drive and Notion |
| **4. AgentSkills** | Rework from building before planning | Free Claude Code plugin |

- [ ] Claude Code on a paid Claude plan: Keep it up to date, since plugins need a recent version.
- [ ] Node.js and npm: Only for OmniRoute, which installs from npm.
- [ ] A HeyBrain account for tool three: 14-day free trial, card required.
- [ ] Your Google Drive or Notion: The docs Claude Code should be able to look up.

## Step 1: Ponytail: write only what the task needs

[Ponytail](https://github.com/DietrichGebert/ponytail) is an open-source skill by Dietrich Gebert that tells Claude Code to write only what the task needs. Before it writes anything, it asks whether the code needs to exist at all, whether something already in your project or the standard library does the job, and only then writes the smallest version that works.

Less code written means fewer output tokens, and less code for you to review later. In the author’s own benchmark (39 tasks in Claude Code), it wrote 53% less code than the same agent without it. That’s the project’s number, not mine, so treat it as a guide. The README also says it never cuts validation, error handling, security or accessibility.

Install it inside Claude Code, one line at a time:

**Prompt: Install Ponytail**

```text
/plugin marketplace add DietrichGebert/ponytail
/plugin install ponytail@ponytail
```

- `/ponytail lite`, `/ponytail full`, `/ponytail ultra` or `/ponytail off` changes how hard it pushes.
- `/ponytail-review` reviews your current changes for bugs, security and anything it would cut.
- It also works in Codex, Cursor, Gemini CLI and other agents. The repo’s install guide has the steps for each.

> The README says to install it only from `DietrichGebert/ponytail` on GitHub or `@dietrichgebert/ponytail` on npm. Popular plugins attract copies, so check the name before you paste.

**Writing less is half of it.** Ponytail cuts what Claude Code writes. HeyBrain cuts what it reads: it looks up the parts of your Drive and Notion it needs instead of re-reading files. 14-day free trial. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins)

## Step 2: OmniRoute: a backup when your limit runs out

[OmniRoute](https://github.com/diegosouzapw/OmniRoute) is an open-source AI gateway you run on your own computer. You connect the AI providers you have accounts with, many of which have free tiers, and point Claude Code at OmniRoute instead of straight at Anthropic. When one provider hits its limit, OmniRoute moves your requests to the next one you’ve set up.

It isn’t free, unlimited Claude. Once it falls back, you’re working with a different model, and the quality changes with it. Each provider sets its own limits and terms, and you bring your own accounts.

> **Read this before you install it.** In September 2026 OmniRoute published a critical security advisory ([GHSA-hf57-cqmx-p4gr](https://github.com/diegosouzapw/OmniRoute/security/advisories/GHSA-hf57-cqmx-p4gr), CVE-2026-88062). In versions before 3.8.49, anyone who could reach the gateway could run code on the machine without logging in if login was switched off, or before a dashboard password had been set. GitHub’s advisory lists it as fixed in 3.8.49, but NVD’s entry still says no fixed version is available.
> So: install the latest version, set a dashboard password and keep login switched on, and keep it on your own machine. Never expose it to the internet.
> If you ran an older version that other people could reach, change the provider API keys you stored in it.
> Check each provider’s terms before you connect it. Some don’t allow their accounts to be used through a third-party gateway.

1. Install it with `npm install -g omniroute`, then run `omniroute` to start it.
2. Set an admin password straight away (`omniroute setup` walks you through it), then open the dashboard at `http://localhost:20128` and connect the providers you want to fall back to.
3. Connect Claude Code. `omniroute run claude` starts Claude Code through OmniRoute without changing your settings. Or run `omniroute setup-claude` to write a Claude Code profile for each model, and start one with `omniroute launch --profile <name>`.
4. Test it: in that session, ask Claude Code to say hello and check you get a reply.

> This is the most powerful tool of the four and the one that needs the most care. If the security side puts you off, skip it. The other three don’t depend on it.

**Switch tools without starting over.** OmniRoute switches the model. HeyBrain keeps your context: the same brain works in Claude Code, Cursor and Codex, so moving between them doesn’t mean explaining everything again. 14-day free trial. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins)

## Step 3: HeyBrain: stop re-reading the same files

This is the third tool from the video, and the one I built. A lot of what eats your limit is Claude Code reading things it has read before: the same docs and notes, pasted in or opened again every session.

[HeyBrain](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins) turns your Google Drive and Notion into one knowledge graph and connects it to Claude Code over MCP. When you ask something, Claude looks up the pieces that matter and pulls in only those, instead of re-reading everything. Because the brain sits outside Claude Code, the same one works in the Claude app, Cursor and Codex, so you can switch tools and keep your context. Your team reads the same brain too.

![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)

### Connect it to Claude Code

1. Start your [14-day free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins) and create your workspace.
2. Connect **Google Drive** or **Notion** 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 a 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 Cursor, Codex or the Claude app as well?**

Cursor and Codex are on the same **HeyBrain MCP** page. Choose the one you use and follow the steps it shows.
For the Claude app, choose **Claude** and copy your connection URL. It’s unique to your workspace, so keep it private. In Claude, open **Customize → Connectors**, click **+ Add**, then **Add custom connector**. Name it HeyBrain, paste the URL, follow the prompts and click **Add**. Sign in to HeyBrain and click **Allow**, then switch HeyBrain on under **+ → Connectors** in a new chat.

Then ask Claude Code to look things up before it opens files:

**Prompt: Look it up first**

```text
Before you open or re-read any files, use HeyBrain to find what we already know about [the feature, client or topic]. Pull in only the docs you need, name them, and then start the task.
```

**Prompt: Check what it knows**

```text
Use HeyBrain to tell me what you know about my business. List the five most recent documents, and one decision or open question from each.
```

> Claude reads from HeyBrain. It doesn’t save to it on its own: to add something new, put it in Google Drive or Notion and HeyBrain picks it up from there.

**The one tool of the four that knows your work.** Ponytail, OmniRoute and AgentSkills change how Claude Code works. HeyBrain gives it what you know: your Drive and Notion, kept current, in every session. 14-day free trial, card required. [Start your free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins)

## Step 4: AgentSkills: work like a senior engineer

[AgentSkills](https://github.com/addyosmani/agent-skills) is an open-source pack of engineering skills by Addy Osmani, a longtime Google engineering leader who now works on Claude Code at Anthropic. Each skill is a written workflow for one stage of the job: shaping the idea, planning, building, testing, reviewing and shipping.

You don’t have to call them. Skills switch on by themselves based on what you’re doing: design an API and the API skill kicks in, build a screen and the frontend one does. The README lists 25 skills plus a meta-skill that maps your work to the right one.

It won’t shrink your limit on its own. Where it helps is rework: a spec and a plan before you build means fewer rounds of Claude Code fixing its own work, and those rounds are where a lot of tokens go.

**Prompt: Install AgentSkills**

```text
/plugin marketplace add addyosmani/agent-skills
/plugin install agent-skills@addy-agent-skills
```

| Command | Stage |
| --- | --- |
| `/spec` | Write down what you’re building before you build it |
| `/plan` | Break the work into small tasks |
| `/build` | Build it one task at a time |
| `/test` | Test what was built |
| `/agent-skills:review` | Review the code (namespaced, because Claude Code has its own `/review`) |
| `/ship` | Get it ready to launch |

**Prompt: Try it on your next feature**

```text
I want to build [the feature, in a sentence or two]. Use the agent-skills workflow: write a short spec first, then a plan broken into small tasks. Wait for my OK before you build anything.
```

**Plan from your real docs.** Pair the spec and plan skills with HeyBrain, and Claude Code plans from your product docs in Drive and Notion instead of guessing. 14-day free trial. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins)

## The order I’d set them up in

1. **Ponytail and AgentSkills first.** Both are free and install inside Claude Code.
2. **HeyBrain next,** if you keep feeding Claude Code the same context, or you switch between Claude Code, Cursor and Codex.
3. **OmniRoute last, if at all.** Only once you’ve read the security note and you’re happy to run it on your own machine.

**Where your limit goes**

- Claude Code on its own: It writes more than the task needs, re-reads the same files every session, and reworks code it didn’t plan. Then it stops mid-task.
- With the four: It writes what the task needs, looks up your docs instead of re-reading them, plans before it builds, and you have a backup route when the limit hits.

**Stop paying tokens to re-read your docs.** Connect your Google Drive and Notion to HeyBrain once. Claude Code looks up what it needs instead of re-reading files. [Start free trial](https://heybrain.io/signup?lp=%2Fguide-center%2Fclaude-code-token-plugins)

## Questions people ask
**Are these official Claude Code plugins?**

No. Ponytail, OmniRoute and AgentSkills are open-source projects by independent developers, and HeyBrain is my company’s product. Install only from the repos linked here, and read what a plugin does before you add it.

**Is OmniRoute safe to use?**

It had a critical security flaw, which GitHub’s advisory lists as fixed in version 3.8.49. Use the latest version, keep login on with a password, and keep it on your own machine. If that’s more than you want to manage, skip it. The other three don’t need it.

**Do I need all four?**

No. Each one works on its own. Ponytail and AgentSkills are the easiest place to start.

**Does HeyBrain work with ChatGPT or Gemini?**

Today HeyBrain connects to the Claude app, Claude Code, Cursor and Codex, and the same brain works in all of them.

**What does it cost?**

Ponytail, OmniRoute and AgentSkills are free and open source. The providers you connect to OmniRoute set their own prices and limits. HeyBrain has a 14-day free trial with a card required, then a paid plan. See [pricing](https://heybrain.io/pricing).

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

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