Curriculum

Curriculum

Give the Agent Only the Context It Needs

Scenario

Compare three prompts asking an agent to fix a bug in canCheckout.

Selected choicePick a choice below
Result—

Try it yourself

Inspect each prompt to see which gives crisp, reproducible context.

Reveal the explanation
  1. "Checkout is broken, please fix it."

    Missing context! No file path, no failing input, no expected output.

  2. Pasting 40 unrelated files and chat logs without naming the failing test

    Noisy! Distracts the agent and increases unrelated edits.

  3. "In src/library.js, canCheckout(true, 3) returns true; rule requires borrowedCount < 3 -> false. Run npm test."

    Minimal reproducible context: exact file, input, actual vs expected, and verification command.

Four ingredients make a minimal reproducible brief: file path, failing input, expected vs actual result, and exact test command.

Review first

Your turn

Draft a 3-sentence minimal reproducible brief for a bug where didPassQuiz(60) returns false instead of true in quiz.py.

Common mistake Describing the symptom without giving the concrete input (60) or test command.

Check your work

Names quiz.py, input 60 (actual false vs expected true), and command pytest test_quiz.py.

Quick check

Which four items belong in a minimal reproducible bug brief for an agent?
Show the answer and reasoning

Correct answer Target file, concrete input, expected vs actual output, and test command

Those four concrete items let the agent reproduce and verify the fix immediately.