STACKS
As of +30 days +90 days +1 year
claude-code-lighter-and-faster
8 within valid-until
0 past it, not rechecked

How to make Claude Code lighter and faster (context, cache, subagents, tools)

What really cuts usage and context in Claude Code: measuring with /usage, CLAUDE.md, MCP versus CLI, trimming tool output, subagents, plugins and the cache.

Measure first: on a subscription plan /usage shows what share of usage goes to skills, subagents, plugins and each MCP server c1. Optimising without it is guesswork.

The largest cost is usually the Claude Code harness itself, not the task. In the TokenSave measurement on a simple task the subagent was the most expensive route: +578% input tokens c2. Installed plugins cost tokens even when none was used c3. A subagent pays off on a large, noisy task, not on a small one.

Standing context: Anthropic's documentation recommends a CLAUDE.md under 200 lines c4 and CLI tools (gh, aws) over MCP servers, because a CLI adds no tool listing c5. Long tool results are better trimmed by a hook that returns only the errors than read as whole logs c6.

Cache: after a pause longer than the cache lifetime, the first message reprocesses the whole context c7. Compaction can be steered with a # Compact instructions section in CLAUDE.md, which says what to keep c8.

Claims

In our words

In the source's words

c1checked on 18 Nov 2026valid until 18 Dec 2026

On a plan, /usage shows the share of usage that goes to skills, subagents, plugins and MCP servers.

recent usage attributed to skills, subagents, plugins, and individual MCP servers, each shown as a percentage of the total.

code.claude.com · T1

c2checked on 18 Nov 2026valid until 18 Dec 2026

A subagent is the most expensive way to do a small task: +578% input tokens.

A subagent is the most expensive way to do a small task: 534,125 input tokens (+578%)

doi.org · T2

c3checked on 18 Nov 2026valid until 18 Dec 2026

Installed plugins cost tokens even when they are not used.

Installed plugins cost tokens even when unused.

doi.org · T2

c4checked on 18 Nov 2026valid until 18 Dec 2026

Anthropic recommends keeping CLAUDE.md under 200 lines.

Aim to keep CLAUDE.md under 200 lines by including only essentials

code.claude.com · T1

c5checked on 18 Nov 2026valid until 18 Dec 2026

CLI tools are more context-efficient than MCP servers.

are still more context-efficient than MCP servers because they don’t add any per-tool listing.

code.claude.com · T1

c6checked on 18 Nov 2026valid until 18 Dec 2026

A hook can cut a long log down to its errors alone, from tens of thousands of tokens to hundreds.

Instead of Claude reading a 10,000-line log file to find errors, a hook can grep for `ERROR` and return only matching lines, reducing context from tens of thousands of tokens to hundreds.

code.claude.com · T1

c7checked on 18 Nov 2026valid until 18 Dec 2026

The first message after a pause longer than the cache lifetime reprocesses the whole context.

misses the cache and reprocesses your full context

code.claude.com · T1

c8checked on 18 Nov 2026valid until 18 Dec 2026

A Compact instructions section in CLAUDE.md tells compaction what to keep.

When you are using compact, please focus on test output and code changes

code.claude.com · T1

This card

Last checked on 18 Nov 2026. As data: JSON, Markdown. A claim's permanent address is its number: stacks.jakubdudek.com/claude-code-lighter-and-faster/c1.