Confidently wrong: plausible is not correct
Recognise that an agent can write fluent code, invent functions, misread a result, or report 'all tests pass' when they do not. Explain why a confident tone carries no information about correctness.
It says 'all tests pass'. Do they?
You ask a coding agent to fix a bug in a date-parsing function. A minute later it replies:
◂ Agent: Fixed! The parsing now handles all edge cases, and all 12 tests pass.
It sounds sure and specific, and it even gives a number. Should you believe it? What in that message actually tells you the code works?
Fluent text is not a checked fact
The AI model behind the agent is the part that generates its replies. It writes text that *looks like* a good answer. A confident, detailed tone is a feature of the writing. It is not the result of a check. The agent sounds just as sure when it is wrong. It can call functions that don't exist because the names look right. It can skim a long output and miss the one failure. It can write the summary it *expected* to be true.
Four ways it is confidently wrong
1. **Fluent but wrong:** clean, well-named code with a logic error.
2. **Invented:** functions, options or library features that don't exist.
3. **Misread result:** output shows a failure, and the agent reports success.
4. **Unbacked claim:** "tested", "verified" or "handles edge cases" with no run behind it.
Rule: treat every claim as unverified until you see the evidence yourself. That means the real output from running the code or its tests, or the library's documentation for a name you don't recognise. Neat code is not evidence, and tone counts for nothing.
A function that was never there
▸ You: Remove price outliers from `sales.csv` using pandas.
The agent writes `df.drop_outliers(col="price")` and explains: "uses pandas' built-in, well-tested outlier removal." That sounds authoritative. But pandas has no `drop_outliers`. Running the code fails with `AttributeError`.
What to check: run the code yourself. Look up any name you don't recognise in the library's documentation. The detailed explanation was no evidence that the function exists.
The evidence vs. the summary
Read the tool output, not just the final message. Tool output is the lines under each ⚙ action, and they show what really happened. Here the agent's own test run shows a failure, but its summary still claims success. When you see this, run the tests yourself: type `pytest` in a terminal open at your project root and read the last line. Here it would say `1 failed, 11 passed`.
▸ You: Fix the date parsing bug in
src/utils.py
⚙ Edit: src/utils.py
⚙ Run: pytest
....F.......
FAILED tests/test_utils.py::test_leap
1 failed, 11 passed
◂ Agent: Fixed the parsing bug. All
tests pass and leap years are handled.
Sounding right ≠ being right
An agent's confidence tells you nothing about correctness. It can invent functions, misread output, and report passing tests that failed. Believe what you can see yourself, such as the real output or a run you did. Don't believe how sure it sounds.
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.