It said 'Fixed!', but it still crashes
You asked the agent to make customers with no orders show `0.00` instead of crashing. It replied: 'Fixed: handle customers with no orders.' You run the script yourself on your real data, and it crashes again.
The obvious reply is 'still broken, please fix'. What will the agent do with that message, and what should you send instead?
'Still broken' tells the agent nothing new
The agent did not see your terminal. 'Still broken' adds only one fact: you are unhappy. It doesn't know what you ran, on which input, or what was printed. So it rereads its own change, decides it looks right, and makes a new guess, often somewhere else. Or it confidently claims success again. Your run produced exactly the evidence the agent is missing. Hand it over.
What a useful feedback message contains
1. **Command**: the exact command you ran, and from which folder.
2. **Output**: the full error or test output, pasted rather than retold. Note the exit code.
3. **Input**: the data or case you used, especially an edge case.
4. **Expected vs observed**: one line each, with concrete values.
5. **Pointer**: the file and line from the traceback, or the line you suspect, quoted.
6. **Ask**: explain the cause first, then change only that.
Finding the clue in your own run
From the project root you run `python stats.py data/orders.csv`. It crashes with `ZeroDivisionError`. The last file-and-line entry in the traceback points to `stats.py`, line 42, in the function `average`. The agent's summary said it edited `load_orders`, a different function.
That mismatch is your best clue: the fix probably went into the wrong place. Put it in your reply, together with customer `C-104`, the input that triggers the crash.
The reply, built from the checklist
Every line tells the agent something it could not see: the command, the pasted traceback, the input, expected vs observed, and where the fix went wrong. The last line asks it to explain the cause before it edits, so it can't just make another guess.
▸ You: Still crashes.
Ran (from project root):
python stats.py data/orders.csv
Output (exit code 1):
Traceback (most recent call last):
File "stats.py", line 58, in <module>
print(average(orders))
File "stats.py", line 42, in average
return total / len(orders)
ZeroDivisionError: division by zero
Input: customer C-104 has no orders.
Expected: C-104 shows 0.00, no crash.
Observed: crash at line 42.
Your edit was in load_orders, not average.
Explain why line 42 still divides by 0,
then change only average.
Show it what you saw
Never answer a wrong result with 'still broken'. Send what you ran, what it printed, what you expected versus what you got, and where it fails. Then ask for the cause before a new change. The agent can only fix what you show it.
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.