Anthropic published Building agents: When to fold subagents into your main agent loop on October 22, 2026. It is about agents that companies build on the Claude Platform. One part of it says "once you exceed 30-50 tool definitions in the system prompt, tool choice tends to degrade". The same article also recommends loading tool definitions only when they are needed, and it names the /skill-doctor command as a way to see what each skill costs and how often it is used.
Some terms first. A tool is an action Claude can call, such as searching email. A tool definition is the text that tells Claude how to call it. The system prompt is the set of instructions that is loaded before a conversation starts. A skill is a set of instructions that Claude loads for one kind of task. Only a short description of each skill is loaded in every session; the full instructions are loaded when the skill is used. A plugin is an add-on package that can bring skills, tools and agents (helpers that Claude can hand a task to).
After reading the article, I asked Claude Code to check my two accounts for tools and skills that load into every session without being used.
Disclosure: Claude, Anthropic's AI model, ran this audit on my machine and wrote this post. I reviewed it before publishing.
How it was measured
Claude ran two built-in commands in a new session of each account.
-
/contextreports an estimate of how many tokens each part of the setup takes up. A token is a small piece of text, often part of a word. -
/skill-doctorlists the skills in a session, except the built-in ones. For each skill, it shows what its description costs, how often it was used and when it was last used.
Every token figure below is an estimate from those two reports.
What the audit found
Of 224 connected tools, 3 were loaded in full at the start. Claude Code already loads tool definitions only when they are needed, which the article calls deferred loading. Its documentation says "Only tool names and server instructions load at session start". In my main account, three tools were loaded in full and took about 670 tokens. The definitions of the other 221, about 172,000 tokens, were not loaded until Claude searched for them. A new session used about 30,000 tokens, which is 3% of the 1,000,000 tokens that the model can hold at once.
The waste was small.
- In my second account, three tool servers were reported as failed or as needing sign-in. A tool server is a program that provides a group of tools. One of them most likely failed because it read an access key from an environment variable that was not set.
- Two plugins did work that built-in skills already do. One added a code review skill, and the other added a code-simplifying agent.
- Some skills that are copied into Claude Code from claude.ai had never been used in Claude Code in that account: 7 in the main account and 12 in the second. That is 13 different skills, because 6 are on both lists.
In my main account, the biggest single file loaded at the start was not a tool or a skill. It was the memory index, the file that lists the notes Claude keeps about my project between sessions. It took about 8,300 tokens.
Before and after
The fixes switched off three groups of things: the three plugins that carried those servers, four other plugins that had not been used recently, and the 19 never-used entries for copied skills. Other never-used skills were left on. The fixes did not change the memory index.
Setting a skill to "off" in the skillOverrides setting switches off that one skill. This does not work for a skill that comes from a plugin. For those, the whole plugin has to be switched off.
| Skill descriptions loaded per session | Before | After |
|---|---|---|
| Main account | about 9,900 tokens (68 skills) | about 8,600 tokens (58 skills) |
| Second account | about 6,300 tokens (38 skills) | about 3,200 tokens (24 skills) |
In the second account, the number of servers reported as failed or as needing sign-in went from 3 to 0.
A new session used about 30,000 tokens before and 28,200 after in the main account. In the second account it used about 22,200 before and 21,700 after. These totals cannot be compared directly, because other things changed between the reports. A 95-tool server was missing from both later reports. The later report for the main account ran on a different model. In the second account, the line for built-in tools grew, and the audit did not find out why. The line for skill descriptions is the one that can be compared: the figure for every skill that stayed on was the same in both reports.
What the audit suggests
- The article's limit is about tool definitions in the system prompt. With deferred loading, 221 of my 224 definitions were not loaded at the start.
- The audit measured token cost only. It did not measure whether Claude picks the right tool, which is what the article's limit is about.
- The article's closing principle is "measure, change one thing at a time, and keep what holds up." This audit measured, but several things changed at once between its two reports, so only one line could be compared.
Top comments (4)
When full skill instructions are deferred until a skill is invoked, how do you ensure Claude Code still checks repository rules and existing modules before writing a parallel implementation on turn one?
Good question. In my setup, repository rules don't live in skills. They live in CLAUDE.md, and Claude Code loads CLAUDE.md in full at the start of every session, so those rules are there on turn one. Only a skill's full instructions wait until the skill is used; its short description is always loaded.
So the split I use: anything that must hold on turn one, like "look for an existing module before writing a new one", is a short line in CLAUDE.md. Long procedures go in skills. That is also why my root CLAUDE.md is short on purpose: every line in it is read by every session.
If a rule must never be skipped, a hook is the stronger option, because it runs every time instead of depending on the model to follow an instruction.
Thanks for the detail on keeping turn-one reuse rules in a short root CLAUDE.md while deferring long procedures to skills and enforcing non-negotiable rules with hooks, I'm building AI Lint as a compact 30-second pre-flight checklist (CHECKLIST.md) and doctrine pack (including AR-R2: Parallel Solutions) that loads at session start so the coding agent names the existing module it extends before writing new code: ai-lint.dosaygo.com/go/forum-20261...
Your own count is the case for where the reuse rule has to live. With 224 tools connected and 3 loaded in full, anything parked in a skill is absent on turn one, and turn one is when the agent decides to write a new module instead of extending yours. AI Lint's CHECKLIST.md is about thirty lines for that reason: it sits in the root CLAUDE.md, and the language doctrine and rejects it points to are read only for the language in hand. For a team that is the Company license: ai-lint.dosaygo.com/go/ft-20261129...