Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
The agent knows only what its tools returned
card 2 of 6
No tool output, no observation
builds on: A coding agent is a model in a loop, What the agent sees: its context
Recall the loop: the agent learns the current state of your repo through tool outputs added to its context. If it never ran the tests, there is no 'pass' output it could have seen. The sentence is a prediction from reading code. Real output can mislead too: cut off by `head`, run in the wrong working directory, or run against a build older than the edit. **Later cost:** you merge a change nobody actually checked.
Terms on this card
- tool output
- The text a tool returns to the agent after running an action, such as a command's printed result or a file's contents.
- context
- Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
- working directory
- The folder a command runs in. Relative paths and patterns like `./...` are resolved from it.
- head
- Shell command printing only the first N lines of its input; everything after is dropped.
- later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, corrupted data or extra maintenance.
Lesson goal: Explain that if the agent did not run the test, it has not seen it pass. Show how truncated output, the wrong working directory or a stale build can mislead it. Read a transcript to tell claims backed by tool output apart from unbacked assertions. ·
the whole lesson