@PawelHuryn: 187,000 people have starred one CLAUDE.md file on GitHub. A CLAUDE.md loads on every turn. Every line is rent you pay o…
Summary
A Twitter thread by Paweł Huryn shares insights on writing effective CLAUDE.md files for Claude Code, emphasizing project-specific rules and avoiding unnecessary bloat.
View Cached Full Text
Cached at: 07/04/26, 08:42 AM
187,000 people have starred one CLAUDE.md file on GitHub.
A CLAUDE.md loads on every turn. Every line is rent you pay on every request.
So look at what most of that file asks for. Match the existing style. Do only what was asked. Don’t refactor code that works. Don’t assume a library exists. None of that is advice. It’s how Claude Code already behaves. Matching the existing style is even in its system prompt for Opus 4.8.
The rules worth the rent are specific to your project. Often earned from a mistake. Examples:
- Version bumps are user-initiated
- There are three kinds of tests, and it matters which is which: npm test, CI tests, npm run test:live (…)
- Don’t skip the tag/release (or the vsix asset) on a release push
- Sign GitHub comments (…) Written with an agent, reviewed by Paweł (…) Written by Paweł’s agent
A line copied from GitHub is a guess about a problem you might have. A line you wrote after the third time something broke is policy.
Everything else loads on demand. The main file stays short, and Claude reads database.md or security.md or cron.md only when the task needs them.
That’s the setup you can’t star.
Similar Articles
@akshay_pachaar: A single 𝗖𝗟𝗔𝗨𝗗𝗘.𝗺𝗱 file just hit 192k GitHub stars. (derived from Karpathy's coding rules) Andrej Karpathy obse…
A single CLAUDE.md file that provides structured behavioral guidelines for Claude Code, derived from Andrej Karpathy's observations on common LLM coding pitfalls, has gained 192k GitHub stars. It aims to prevent over-engineering, reduce wrong assumptions, and enforce simplicity in AI-generated code.
@humzaakhalid: KARPATHY JUST HANDED EVERY DEVELOPER THE EXACT FILE CLAUDE CODE NEEDED FROM DAY ONE. 65 lines. 110K stars. the cheat co…
Andrej Karpathy created CLAUDE.md, a 65-line configuration file that provides Claude Code with clear rules to avoid common pitfalls like silent assumptions and code bloat, drastically improving developer productivity.
@vincemask: Wow, I had no idea CLAUDE.md had so many tricks. I've been writing it all wrong.
The author reflects on common misconceptions about CLAUDE.md, pointing out that instead of piling on information, one should compress decision criteria, constrain execution boundaries, and consolidate high-frequency rules to improve the efficiency of code agents like Claude Code.
One-file config that makes Claude Code follow your project conventions — "God Mode CLAUDE.md"
A lean CLAUDE.md configuration file that enforces project conventions for Claude Code, with battle-tested rules to improve output quality without exceeding 200 lines.
@PrajwalTomar_: BRO this is CRAZY. Karpathy's 4 rules for Claude Code just got turned into a full CLAUDE .md template on Reddit. A deve…
A developer turned Karpathy's four rules for Claude Code into a full CLAUDE .md template, reportedly boosting coding accuracy from 65% to 94% on a real codebase.