A repository’s history already holds the answers to most “why is this here?” and “what broke this?” questions. Most people just never query it. Two git commands do most of the work.
git blame tells you which commit last touched a line. Before deleting code you don’t understand, read that commit message: it often names the bug the line was added to fix. git bisect binary-searches the history for the commit that broke something. Mark one good commit and one bad one, test each midpoint, and 1,000 commits come down to about 10 checks instead of an afternoon of guessing.
The same idea shows up in Repeated agent corrections belong in the codebase rather than the conversation: what the repository records outlives what anyone remembers.
Caveat: history answers questions only as well as it was written. Vague commit messages, squashed merges and mixed-purpose commits make blame point at nothing useful, and bisect needs a test that can tell good from bad.
Key Quotes
- “Every bug anyone hit before you is sitting in the history, and a lot of people don’t know how to query it.” (03:09)
- “And roughly 40% of the time, blame reveals the idiot who wrote the line was you, eight months ago.” (03:42)
Related:
- Repeated agent corrections belong in the codebase rather than the conversation — the repo as durable memory, for agents as well as people
- A bug you can reproduce on demand is already 90% fixed. Everything before that point is guesswork and guessing scales terribly — bisect needs exactly that: a reliable check for broken vs. working