New Tool Radar

AI Agents & Automation

How to Check the Claude Code Startup Warning When Subagent Descriptions Get Too Long

Read the Claude Code startup warning about subagent description tokens and trim descriptions so the router stays fast.

Schematic diagram with three steps: Count your subagents, Read the warning, then Trim the descriptions.

When the combined descriptions of your subagents, except the built-in ones, exceed 15,000 tokens, Claude Code shows a warning at startup with the total token count. The fix is to trim the description fields and move detail into each subagent system prompt, which only loads when that subagent runs.

Before you start

You need a Claude Code project with several custom subagents. Count them first: a handful of long descriptions can reach the limit faster than you expect.

Read the warning at startup

Start Claude Code and read the startup warning, which gives the total token count of your custom subagent descriptions. Note which subagents have the longest descriptions: they are usually the ones carrying instructions that belong in the system prompt.

Trim the descriptions and move detail into the prompts

Shorten each description to the routing decision only: what the subagent does and when to use it. Move the how-to detail into the body of the file, which becomes the system prompt and only loads when the subagent runs. Restart and check the warning is gone.

Worked example: Description lengths for a fictional team

Maple Dev is a fictional development team with four subagents. The table shows the trim.

Subagent Description tokens before After trim
reviewer 6000 400
explorer 5000 300
planner 4000 350
writer 3000 300
Total 18000 1350

Expected result (UNTESTED): after trimming, the total falls from 18000 to 1350 tokens and the startup warning disappears. We checked the Claude Code subagents documentation, which describes the 15000-token warning and the trim fix, but we did not run Claude Code on this machine.

Limits

The 15000-token warning counts descriptions only, not system prompts, so moving text into the prompt is a real fix, not a trick. A trimmed description can still route wrongly if it is too vague, so test routing after the trim.

Sources

See all