Click any tag below to further narrow down your results
Links
@Raytar on X
A post from @raytar says a friend on Andrej Karpathy's team at Anthropic shared the CLAUDE.md file he uses, and that it makes Claude follow instructions far better from the first message. The post is a short pitch with no technical detail, so the file itself is the real content, and it is linked as an article rather than shown inline.
- The author says a CLAUDE.md file from a colleague of Andrej Karpathy, who joined Anthropic five weeks ago, changed how Claude behaves for them.
- The claimed benefit is that Claude stops resisting their requests and works the way they need from the first message.
- The post itself gives no specifics on what the file contains, so the claims are unverified.
@DivyanshT91162 on X
Andrej Karpathy's observations about AI coding agents inspired a 65-line CLAUDE.md file, packaged by Forrest Chang, that hit #1 on GitHub Trending. The file sets four behavioral rules for agents like Claude Code, aimed at curbing overconfidence, over-engineering, and sprawling edits rather than improving raw coding ability.
- The four rules are: think before coding, simplicity first, surgical changes, and goal-driven execution.
- The repo reportedly crossed well over 220,000 stars across mirrors and forks, though some developers say the count is inflated by Karpathy's name and how easy the file is to copy.
- Critics argue project-specific instructions matter more than generic rules, and the file doesn't replace tests, architecture, or code review.
This project packages four principles—Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven Execution—into a Claude Code plugin or CLAUDE.md file to curb LLM code pitfalls like overengineering and hidden assumptions. It enforces explicit reasoning, minimal edits, and test-driven success criteria to produce cleaner, more accurate AI-generated code.
- A single CLAUDE.md file encodes four Karpathy-derived rules—think before coding, simplicity first, surgical changes, goal-driven execution—to fix common LLM coding failures.
- It explicitly bans unrequested abstractions, error handling, or flexibility, and restricts edits to only what was asked, leaving style and unrelated code untouched.
- It pushes test-first, criteria-based execution so the model loops until defined success conditions pass rather than coding aimlessly.
- Installable as a Claude Code plugin/marketplace package or via curl into CLAUDE.md, with a Cursor rule file and support for project-specific rule additions.
@Jmoon_174 on X
The author says CLAUDE.md solves the instruction side of working with Claude, but the other half is tracking how much context you have left before you hit the limit. They built Headroom, a one-line install that puts a percentage readout in your statusline.
- CLAUDE.md handles persistent instructions for Claude, which is only half the problem.
- The other half is knowing your remaining context budget before you run out.
- Headroom installs in one line and displays context usage as a percentage in your statusline.
This article breaks down the key sections and best practices for your CLAUDE.md file, the project context guide that Claude Code reads before writing or editing code. It covers what to include—from project overview and tech stack to safety rules and commands—so the AI stays aligned with your repo’s structure and standards.
- CLAUDE.md is read by Claude Code before every code write/edit, so it functions as persistent project context rather than a one-time config file
- Specificity beats generality: naming exact versions/libraries ("Next.js App Router + TypeScript + Tailwind + shadcn/ui + Supabase") works far better than vague stack descriptions
- Concrete coding rules like "use named exports except in route files" or "avoid any; prefer explicit interfaces" produce better-fitting code than generic guidance like "clean code"
- The file should act as a living reference to guide suggestions, not a rigid enforcement mechanism that blocks workflow