Think before coding
State assumptions, surface ambiguities, present multiple interpretations. No silent decisions.
One file. Zero dependencies. Discipline every AI coding session.
CLAUDE.backup.md)mkdir -Force "$HOME\.claude" > $null; cp "$HOME\.claude\CLAUDE.md" "$HOME\.claude\CLAUDE.backup.md" 2>$null; iwr "https://raw.githubusercontent.com/zeljkoavramovic/karpathy-bernstein-avramovic/master/CLAUDE.md" -OutFile "$HOME\.claude\CLAUDE.md"
How it comes together
Works with
The problem
How it works
State assumptions, surface ambiguities, present multiple interpretations. No silent decisions.
Minimum code that solves the problem. No speculative features, no unused abstractions.
Touch only what you must. Match existing style. No scope creep hiding as cleanup.
Define success criteria, loop until verified, report what changed and what remains unverified.
What makes this different
Illustrative example
How it differs
| Feature | Karpathy | Bernstein | This repo |
|---|---|---|---|
| Core coding rules | Yes | Partial | Refined |
| Collaborative partnership framing | No | Yes | Refined |
| Order of Precedence | No | No | New |
| Operating modes | No | No | New |
| Must/Should/May wording conventions | No | No | New |
| Shared vocabulary / interpretation layer | No | No | New |
| Existing-code scope discipline | Partial | Partial | Formalized |
| Hard stops with rule citation | No | No | New |
| Hard-stop explanation protocol | No | No | New |
| Verification by task type | No | Partial | Formalized |
| Verification fallback to manual steps | No | No | New |
| Broken-baseline handling | No | No | New |
| Structured post-task reporting | No | No | New |
| Dedicated documentation rules | No | Partial | Formalized |
| Full multi-dimensional agnosticism | Partial | Partial | Made explicit |
Works everywhere
Common questions
Yes. It works with any tool that reads instruction files: CLAUDE.md, AGENTS.md, GEMINI.md. Works natively with Claude Code and OpenCode. For other tools, follow that tool's convention. The content stays the same, only the filename changes.
No. Pure behavioral instructions in a Markdown file. Zero runtime impact. Zero dependencies. Zero configuration. It is a text file your AI tool reads before each session.
Override with explicit instruction. The framework respects your authority: explicit instruction always overrides defaults. You can also fork and modify the file to match your preferences.
No. It makes sessions faster by preventing rework. Every minute the AI spends asking before acting saves ten minutes undoing unwanted changes.
Structure matters. Operating modes, precedence rules, hard stops, and shared vocabulary create consistent behavior that ad-hoc prompts cannot. A prompt says "be careful." This file defines exactly what careful means, when to stop, and what to report.
Yes. Commit it to your repo as a project-level file. Everyone on the team gets the same guardrails and the same behavioral contract with their AI assistant. Consistency across developers, not just across sessions.
Install once. Benefit immediately. No configuration needed.