wiki / concepts / cognitive-debt-and-walkthroughs
Cognitive Debt and Walkthroughs
Machine ingest — raw context
loading…
~… tokensappend .md to any wiki URL for this view
Cognitive Debt and Walkthroughs
When engineers allow agents to produce code without understanding how the internal mechanics function, they accumulate cognitive debt. Over time, the codebase turns into an opaque black box that paralyzes future design decisions.
Remedies
- Linear Walkthroughs: Directing an agent (via tools like
showboat) to generate an ordered, step-by-step breakdown of newly created files, executing tools to embed real code snippets rather than copying text manually. - Interactive & Animated Explanations: When an algorithm is complex (e.g., Archimedean spiral word-cloud layouts or AST parsing), prompting the agent to build an interactive HTML/JS widget with step-through sliders and visual rendering to build intuitive comprehension.
- Editorial Diagramming: Using structured, accessible visual architectures (editorial diagrams and visual explanations) authored by cathryn lavery to visualize flows, decision trees, and system state with strict density and signal discipline.
- Paying Down the Debt: Understanding the code is a prerequisite for maintaining it; using agentic explanations turns opaque generated code into human-comprehensible assets.
Related
Evidence — verified primary sources
| simon-willison-linear-walkthroughs-2026 | https://simonwillison.net/guides/agentic-engineering-patterns/linear-walkthroughs/ | ingested 2026-08-22 sha256:ffb6395d74eb… |
| simon-willison-interactive-explanations-2026 | https://simonwillison.net/guides/agentic-engineering-patterns/interactive-explanations/ | ingested 2026-08-22 sha256:b8f6de45590f… |