PulseAugur
EN
LIVE 07:09:20

Developer shrinks Claude.md file by 94% using skills and path-scoped rules

A developer significantly reduced the size of their CLAUDE.md file from 548KB to 34KB by strategically reorganizing its content. This was achieved by moving procedures into skills, conventions about code into path-scoped rules, and reference material into separate documentation files. The developer found that HTML comments are stripped before injection, costing no tokens, and that `@path` imports do not reduce context window usage. This optimization is crucial for subagents, as CLAUDE.md is loaded into each one. AI

IMPACT Optimizing configuration file size can improve AI agent startup times and reduce operational costs.

RANK_REASON The item describes a technical optimization for a specific AI product's configuration file, not a new release or significant industry event.

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Developer shrinks Claude.md file by 94% using skills and path-scoped rules

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Rulestack ·

    We cut our CLAUDE.md from 548KB to 34KB: what loads when, measured — and the commit gate that keeps it small

    <p>Our CLAUDE.md was 548KB. Every session — including every subagent — loaded all of it before doing any work. One measured headless run wrote about 150,000 tokens to cache before the actual task started, and the file itself was the dominant contributor.</p> <p>This week we cut i…