Interactive explanations
Developers can ask coding agents to build animated, interactive explanations to understand AI-generated code and pay down 'cognitive debt'.
Simon Willison describes 'cognitive debt': when AI writes your code, you may not understand it, making future work harder. His fix is asking the AI to build interactive explanations. He used Claude to animate a word-cloud algorithm, showing how words spiral outward from the center to avoid overlaps. Anyone using AI coding tools can apply this trick.
As teams let agents like Claude write more code, understanding erodes, slowing planning much like technical debt. Willison proposes having the agent generate animations or walkthroughs of its own code to rebuild comprehension. The practice is free, uses existing tools, and suits teams adopting agentic coding. Risk sits with teams skipping this step and losing architectural insight.
Willison ran an async Claude Code research project building a Rust word-cloud CLI, then requested a linear walkthrough, then an animated HTML explainer (animated-word-cloud.html) with a pauseable, frame-stepping slider and PNG export, revealing Archimedean spiral placement with collision-check retries. Built with Claude Opus 4.6; result is publicly hosted.