← Back to library

Keep a working understanding of code agents write

iamwil, on Hacker News, worried that agents take away the act that builds a programmer's mental model: writing code. Their reworked workflow rests on four habits: let the agent interview them to resolve ambiguity, personally make the decisions that set the product apart, ask for explainers, quizzes and simulations of subsystems, and keep automated checks and guardrails running.

  • OutcomePair agent coding with an interview-style spec, your own decisions on what differentiates the product, and agent-made explainers and quizzes about the system.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditiamwil on Hacker News
View original
Works with
Claude Code

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • Agents write most of your code
  • You feel you no longer know how parts work
  • You must extend the system later

Not for: One-off scripts; Code you will never maintain

What do you need, and what do you get?

You need

  • Feature idea
  • List of decisions that matter
  • Agent that can make explainers

You get

  • Spec from an interview
  • Your decisions recorded
  • Explainers and quizzes

How does it work, step by step?

  1. Get interviewedHave the agent ask you questions until the request is clear.
  2. Decide what mattersMake stack and design calls where they set the product apart.
  3. Delegate the restLet the agent decide routine parts such as login.
  4. Learn the systemAsk for diagrams, explainers and quizzes on parts you do not know.
  5. VerifyKeep tests and guardrails running in the loop.

The prompt

Our own prompt, inspired by iamwil on Hacker News and written to work in Claude Code. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt1 variable
Before building {feature}, interview me: ask questions about anything ambiguous, one at a time, until the spec is clear. Mark which decisions you think are mine to make.
After building, write a brief explainer on the new part and five quiz questions to check my understanding.

Inspired by iamwil on Hacker News: Comment in Ask HN: How to deal with shipping AI-written code you don't understand?. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Agents default to mainstream choices; push back where it matters.
  • Code review alone is a weak way to learn a system, per the developer.
  • Quizzes only help if you take them.

Our take

iamwil names a cost that productivity claims usually skip. If an agent writes the code, you never build the mental map that writing used to give you, and debugging a system you do not understand gets slow and risky. The four habits are a practical response. Being interviewed by the agent before it starts surfaces ambiguities while they are cheap to settle. Splitting decisions keeps your judgment on the parts that differentiate the product while the agent handles routine choices. The third habit is the most original: asking for explainers, diagrams, quizzes and even simulations of your own subsystems. A quiz on code you supposedly own is a quick, humbling way to find the blind spots before a production incident does. Verifiers and guardrails close the loop by catching what slipped through. To start, pick one subsystem a week, ask for a short explainer and five questions, and answer them without looking. Where you fail, read the code properly. Over time this keeps you the person who can still fix it at 2 a.m.

Where the time goes back: You can still reason about and extend your own product even when agents type most of it.

FAQ

Why not just review code?
The developer finds it unmotivating and says learning to change the system sticks better.
What is an interview spec?
The agent asks what is unclear to it before building.

Source and credit

Inspired by iamwil on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Comment in Ask HN: How to deal with shipping AI-written code you don't understand?
Creator
iamwil on Hacker News
Published on
Hacker News
Original date
Oct 19, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Compare an agent run with a task you did by hand

Before you believe big productivity claims, time and cost one routine agent task against a similar one you did yourself, counting review and cleanup.

Credit: Chris_Newton on Hacker News

Under an hour
IT & SecuritySkill✓ AI dry run

Find repeat fixes and good habits in your team's PRs

Have Claude Code look across a chosen window of commits and pull request review comments for the same fix or review note coming up again and again, suggest turning the top ones into a project rule or skill you write in your own words, and list good practices already in the repo that other teams could copy.

Credit: anthropics

Under an hour
IT & SecurityWorkflow✓ AI dry run

Route agent decisions by how hard they are to undo

Use a read-only judge agent that lets AI settle easy-to-reverse choices and sends hard-to-reverse ones to you, with every claim labeled confirmed, guessed or unknown.

Credit: u/No_Ant6261 on r/ClaudeCode

Under an hour
IT & SecurityWorkflow✓ AI dry run

Talk through a feature spec before any code is written

Shift your time from typing code to defining behavior: work out a thorough spec in conversation, hand it to a coding agent, and test the result hard.

Credit: aurareturn on Hacker News

Under an hour