All courses

Feedback with evidence, asked neutrally

Give feedback as exact errors, outputs and reproduction steps instead of 'still broken'. Ask for a diagnosis before a fix, and phrase questions so they do not lead the agent toward your guess.

Builds on: Agents tend to agree with you, The agent knows only what its tools returned

Read it card by card Start the whole course

"Still broken, try again"

You ran the agent's fix and the bulk-order total is still wrong. You type `still broken, try again`. The agent replies "You're right, sorry! Let me try a different approach" and edits another function. Two rounds later the diff touches five files and the total is still wrong. Neither you nor the agent can say what the actual cause is.

No evidence in, only guesses out

The agent's context holds only what you sent and what its tools returned. `still broken` names no input, no output and no error, so the agent cannot reason about the bug. It can only guess. Because it tends to agree with you, it reads your message as proof its last change was wrong and stacks another plausible edit on top. If you add a guess ("maybe the cache?"), that guess becomes its premise. **Later cost:** speculative edits stay in the diff, and the real cause ships.

Evidence first, diagnosis before fix

Feedback that carries evidence: 1. **Where**: the commit or branch, and the working directory. 2. **Command**: the exact one you ran. 3. **Output**: pasted verbatim, with the full error, not a paraphrase. 4. **Expected vs actual**, plus the input that triggers it. 5. **Ruled out**: what you checked, stated as facts. Then ask for a diagnosis: "Explain the cause and the output that shows it. Don't edit yet." Ask open questions. Offer a hunch only as one unverified candidate.

What to paste instead of "still broken"

This gives the agent the commit, the exact command and the exact numbers. Buying 120 units at 250 cents each should get the 10% bulk discount, for a total of 27000. It got no discount: 30000. Add one fact you checked: "qty 200 gets the discount correctly." Then ask: "Why is no discount applied at qty 120? Point to the line and the output that shows it. Don't change code yet."
// Python
$ git rev-parse --short HEAD
a41c9e2
$ pytest tests/test_invoice.py -q -k bulk
F
>   assert total(qty=120, unit=250) == 27000
E   assert 30000 == 27000
E    +  where 30000 = total(qty=120, unit=250)
1 failed, 11 deselected in 0.05s

Leading vs neutral question

**BAD:** "I think the price cache is stale, can you fix the cache?" The agent agrees, adds cache invalidation and reports success. Yet the test passes the unit price in directly, and qty 200 at the same price is correct, so a stale price cache is an unlikely cause. **BETTER:** "qty 120 → 30000, expected 27000. qty 200 is correct. I wondered about the cache but haven't checked. List the possible causes and what you'd run to tell them apart." Then check that its diagnosis is backed by tool output. For example, it quotes a `qty > 150` threshold from a file it actually read, which explains both 120 failing and 200 working.

Remember

Send evidence, not verdicts: the command, the verbatim output, expected vs actual, and what you ruled out. Ask for the cause before the fix, and phrase questions openly so the agent investigates instead of confirming your guess.

On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.