01Chapter 1: Start with a specific questionBefore you paste code into an assistant, decide what you want to know. A vague request gets a vague answer. A specific question gets an answer you can check.3 min read
02Chapter 2: Give the assistant the context it needsThis chapter assumes you can read Python, have used a chat or terminal assistant, and can run small snippets locally. It covers the second step of the plan: deciding what to put in front of the assistant so its explanation fits your code and not code in general.3 min read
03Chapter 3: Keep secrets and sensitive code out of the promptThis chapter assumes you can read code in at least one language and have used a chat-based assistant or an editor or terminal assistant. You also need to be comfortable editing small snippets before you share them.3 min read
04Chapter 4: Write a clear explanation promptThis chapter assumes you can read basic Python, have used a chat-based or terminal assistant, and can run a small script locally. It also assumes you have already decided what you need to understand and gathered the code you want explained. Here you will put those pieces into one prompt.3 min read
05Chapter 5: Ask for the right level and formatThis chapter assumes you can read code in at least one language, have used a chat or editor assistant, and can run small Python snippets locally. It covers how to control the depth and shape of an explanation after you have a clear question and a structured prompt.3 min read
06Chapter 6: Read the answer criticallyThis chapter assumes you can read basic Python, have used a chat or editor assistant, and can run small snippets locally. It covers how to read an assistant's explanation of code so you can separate what is solid from what needs checking.4 min read
07Chapter 7: Follow up on the parts you don't understandThis chapter assumes you can read basic Python, have used a chat or terminal assistant, and can run small snippets locally. It also assumes you have already sent a first explanation prompt, such as the @lru_cache prompt from the previous chapters, and have the answer in front of you.3 min read
08Chapter 8: Know where assistants go wrongThis chapter assumes you can read Python, have used a chat or editor assistant, and can run small snippets locally. It covers the kinds of mistakes assistants make when they explain code, so you know which claims to distrust.3 min read
09Chapter 9: Check the explanation against the codeThis chapter assumes you can read Python, have used a chat or terminal assistant, and can run small snippets locally. An assistant's explanation is a claim about the code, and you can test it. This chapter covers three ways to do that: run the code, read the documentation, and write a small test.3 min read
10Chapter 10: Explaining code that spans many filesThis chapter assumes you can already write a single-snippet explanation prompt, run small pieces of code to check claims, and search a project with grep or your editor. Here you apply those skills when the code you don't understand is spread across a project.3 min read
11Chapter 11: Record what you learnedThis chapter assumes you can read basic Python, have used a chat assistant or terminal assistant, and can run small snippets locally. It also assumes you have already asked an assistant to explain some code and checked its answer. The last step is to keep what you learned, so you don't have to work 3 min read