HaiAI123

Curated Global AI Tools Directory

Industry update
Flat

Test measures how CLAUDE.md length inflates Claude Code context

12/04/2026 — 12/04, 20:18·1 sources (all)·1 reports (all)

Key takeaways

  • A tester placed 0, 100, 300, 600, and 1,200 lines of CLAUDE.md into five nearly empty repositories and ran Claude Code 2.1.335 with Sonnet 5…

Background & analysis

On 4 December 2026, DEV Community published a hands-on measurement of how the length of a CLAUDE.md file affects the starting context in Claude Code. The test was run by the author's AI agent sessions under a founder's direction, with the goal of turning a widely held assumption into a concrete number: everything written in CLAUDE.md is sent to the model with every request.

The setup used five copies of an almost empty repository, each containing a CLAUDE.md of a different length: none, 100, 300, 600 and 1,200 lines. The files were synthetic, made up of the kinds of rules a team might write, such as using pnpm instead of npm and treating pnpm-lock.yaml as the lockfile. Each configuration was run three times in Claude Code 2.1.335 (Sonnet 5.5) in non-interactive mode. The author then added together the new, cache-write and cache-read input tokens reported in the usage output to measure the starting context.

According to the report, a 600-line CLAUDE.md nearly doubled the starting context. The article does not give the specific token counts for each file length, nor does it describe the results at either end of the range, for the 0-line and 1,200-line cases. The account stops at the publication of this conclusion; the material contains no follow-up update and no independent verification from another source.

AI-generated from 1 reports · updated 1 day ago

Related AI tools

updream
24-hour heatHeat index 46 · peak 92 · 23h ago
24 hours agonow

Reports on this story headlines open the original

Yesterday
  1. A team measured what a CLAUDE.md file costs per request by running Claude Code 2.1.335 on Sonnet 5.5 across five near-empty repos with 0, 100, 300, 600 and 1,200-line instruction files, three runs each, summing new, cache-written and cache-read input tokens from the usage report. At 600 lines, the starting context nearly doubled.

    DEV Community · AIAI score 54

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →