Andrej Karpathy, former head of AI at Tesla, shared a method for working with AI that can make development 10 times faster. The method is divided into three levels: specification, verifier, and environment.
The Specification Level ⏱ 0:00
•AI models are incredibly smart but miss contextual things.•Karpathy's example: asking if you should drive or walk to a car wash 50 meters away; AI says walk because it's close, but you need the car there.•AI is brilliant at what it can measure but lacks a signal for contextual things like the need for a car wash.•A specification conveys your understanding to Claude in a usable format.•Karpathy doesn't like planning mode because it's too general; you need to work with your agent to develop a very detailed specification.•Step 1: Identify your purpose. The real goal is the conclusion or decision the task drives. Ask Claude to interview you to determine the purpose.•Step 2: Work flexibly. Use agile method, not waterfall. Create specifications flexibly with clear checkpoints.•Step 3: Be precise and use your brain. The more precise you are, the less AI has to guess. Tell Claude to confirm key decisions.•Final query combines these three parts to create a clear and thoughtful specification. Karpathy calls this 'modern engineering'.The Verifier Level ⏱ 3:30
•Verification is one of the most annoying things about working with AI.•Karpathy describes AI as 'ghosts' not 'animals' because they are statistical simulation chains, not driven by intrinsic motivation.•Think of AI as a robot librarian that only knows what's in its library and can't tell when it's out of a book, so it may confidently make things up.•The only lever you have is the lever of verification.•First, define evaluation criteria in advance. For example, instead of 'make this report good,' require three sections each ending with a recommendation.•Second, use a second AI model as a critique. For Claude Code, install the Codeex plugin to get a second opinion.•Third, involve external signals. Connect your Claude session to the deployment system to verify success, or use previous reports as a reference for format.•Boris Cherny, creator of Claude Code, said if Claude has a feedback loop, quality increases by 2-3 times.The Environment Level ⏱ 8:32
•The environment is the workshop where specification and verifier exist. Specification is the drawing, verifier is quality control, environment is the workshop.•Set up the correct Claude.md file, which is automatically added to every request. Add guidelines like 'before creating anything multi-step, include a verification plan.'•Sections in Claude.md: describe how the repository works, special skills, training data architecture, and key work rules.•Build your own LLM knowledge base: a folder system with your own training data so Claude knows where information is.•Start building your skill set: create specific skills for repeated tasks. The more you use them, the better they become.•Create rules for what AI can and cannot work on. Use rule-based safeguards like hooks that check files before modification, not just prompts.•Divide tasks into three groups: 'always do,' 'ask first,' and 'never do.'The Key Focus in the AI Era ⏱ 12:34
•Karpathy says: 'You can delegate thinking, but you can't delegate understanding.'•The three levels focus on your understanding of the big picture.•You need to understand your goals and what is needed to make AI work for you.Key Takeaways
•Karpathy's method has three levels: specification, verifier, and environment.•AI is brilliant at measurable tasks but fails at contextual things, as shown by the car wash example.•A specification should include purpose, flexible checkpoints, and precise criteria to reduce guessing.•Verification can be improved by defining criteria in advance, using a second AI as critique, and involving external signals.•The environment includes a Claude.md file, an LLM knowledge base, skills, and rule-based safeguards.•You can delegate thinking but not understanding, so focus on your own understanding of the big picture.Conclusion
Karpathy's method provides a structured approach to working with AI, emphasizing specification, verification, and environment to achieve 10x faster development. The key is to maintain your own understanding of the goals and context, as that cannot be delegated to AI.