Stop Running Out of Tokens
Five habits that make your Claude Code usage last the day. This guide is for Claude Code, the Code tab in the Claude desktop app. It doesn't cover plain Claude chat, and the steps won't work there.
Every habit here has one aim. Claude reads less each time you send a message. The checklist is below, and the steps for each habit follow it.
The checklist
- 1
- Match the model to the job.
- 2
- Start fresh between tasks.
- 3
- Keep your rule book short.
- 4
- Use a command line tool before a connector.
- 5
- Keep tool output out of your chat.
Where to start
Start with habit 2. It costs nothing and needs no setup: save what matters, then start a new session. At the end of your next task, ask Claude to save what matters to a file, then start fresh.
- If you keep a long CLAUDE.md, do habit 3 next. If you use a lot of connectors, do habits 4 and 5.
Habit 1: Match the model to the job
- For
- anyone who leaves the biggest model on all day.
- Use a big model like Opus for judgment calls only. Lists, small edits and first drafts go to a smaller model like Sonnet.
- How to set it up
- 1
- Before you start, decide what the job is. A decision or a hard problem? A list, a small edit or a first draft?
- 2
- Choose the model that fits before you send your first message. Big model for the decision. Smaller model for the rest.
- 3
- Use the model picker in the row under the prompt box.
- 4
- To change models later, start a new session (habit 2) instead of switching part-way through.
- Why: each model keeps its own cache of your session. Claude's docs say switching models means the next request reads the whole conversation again with no cache hits, so the first message after a switch is slower and uses more.
- The catch
- a smaller model can miss things on hard work. If the answer looks thin, start a new session on the bigger model and carry over your saved file.
Habit 2: Start fresh between tasks
- For
- anyone who keeps one long session running for the whole week.
- A long session keeps growing, and Claude works from all of it on each message. So when a task is done, I save what matters to a file, then start a new session.
- How to set it up
- 1
- When the task is done, send Claude this:
Write what matters from this session into a file called notes.md in this folder: the decisions we made, the names and numbers we used, and the next step. Keep it short.
- 2
- Start a new session. Click + New in the sidebar, or press Cmd+N on a Mac or Ctrl+N on Windows.
- 3
- In the new session, send:
Read notes.md and pick up from the next step. Tell me what you plan to do before you start.
- Can't start over yet?
- Type `/compact`. It summarizes the session so far and frees up room.
- The catch
- anything you didn't save is gone once you start fresh. Save first.
Habit 3: Keep your rule book short
- For
- anyone whose CLAUDE.md has grown into a handbook.
- Your CLAUDE.md loads every time. Mine just points to the detail files, like an email with links. The long material lives in separate files that Claude opens only when the task needs them.
- If you don't have a CLAUDE.md, skip this habit. You don't need to open anything yourself. Claude does the reading and the moving.
- How to set it up
- 1
- Send Claude this, to see where you stand:
Read my CLAUDE.md. Tell me how long it is, and list its longest sections with a line each on what they cover. Don't change anything yet.
- 2
- If it says you have long sections, send this:
Move each long section of my CLAUDE.md into its own file in a folder called notes. In CLAUDE.md, leave one line for each that says where the file is and when to read it. Show me the change before you save anything.
- 3
- Read what Claude shows you. If it's right, tell Claude to save it.
- The catch
- if a rule has to apply every time, it stays in the short file. Tell Claude so in step 2.
Habit 4: Use a command line tool before a connector
- For
- anyone with several connectors turned on.
- If a command exists for the job, I use that first. Claude's docs say command line tools are more context-efficient than connectors, because they don't add a list of tools to your chat.
- A command line tool is a program you give a short command. GitHub is the clear case: the `gh` command does what the GitHub connector does.
- How to set it up
- 1
- Send Claude this:
List the connectors I have connected. For each one, say whether a command line tool or something lighter could do the same job, and which connectors look unused. Don't turn anything off. Use only what you can see in this session; don't search my files or history.
- 2
- Decide what to switch off. Click Customize in the sidebar, then open Connectors, and switch off any you don't use.
- 3
- For the ones you keep, ask Claude to use the command line tool where one exists. Claude's docs say Claude can run command line commands directly.
- The catch
- some tools have no command line version. Keep the connector for those.
Habit 5: Keep tool output out of your chat
- For
- anyone who uses connectors or long commands all day.
- Tool output is the raw answer a tool sends back. It lands in your chat and Claude reads it all. I use a plugin that holds the raw output to the side, so Claude only sees the part it needs. I haven't measured how much it saves.
- The plugin is called context-mode. It's made by mksglu.
- How to set it up
- 1
- Read its page on GitHub first: https://github.com/mksglu/context-mode. It's a plugin from a third party, and it runs code on your computer. Install it only if you're comfortable with that. Its licence is Elastic-2.0. The page has the details.
- 2
- Click Customize in the left sidebar, then open the Plugins tab.
- 3
- Click Add, then choose Add marketplace.
- 4
- Choose Add from a repository, and enter `mksglu/context-mode`.
- 5
- Find context-mode in the list and install it.
- The catch
- if your organization limits which marketplaces can be added, Claude refuses it. Ask your admin which sources are allowed. Plugins also aren't available in every setup, such as cloud sessions.
Limits
- I haven't measured how much any habit saves, so this guide doesn't promise a number.
- You need the biggest model for a hard problem. Habit 1 is about the easy jobs.
Idea first read in Sabrina Ramonov's newsletter post, "6 Ways I Cut My Claude Token Usage" (https://www.sabrina.dev/p/6-ways-i-cut-my-claude-token-usage). The five habits and the wording here are mine. context-mode is made by mksglu.
If you get stuck
Is it free?
Yes. You need a Claude account that can use Claude Code.
What do I need?
The Claude desktop app, with its Code tab.
Will it work in plain Claude chat?
No. The steps use the Code tab's own controls. This guide doesn't cover plain chat.
Is it safe to install the plugin?
It's made by someone else and runs code on your computer. The guide tells you to read its page on GitHub first. It's optional. The other four habits don't need it.
Keep going when you’re ready.
Pick another guide for the next problem you’re working on.
