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 5 of 6
Green, real, and beside the point
builds on: A coding agent is a model in a loop, What the agent sees: its context
The output is genuine and green. But `./...` means 'this directory and below', and the agent ran it from `internal/api`. The tell: no output line names `billing`. That package was never compiled or tested. Backed: *api and auth tests pass*. Unbacked: *rounding fixed*, *all tests pass*. Ask for `go test ./...` from the module root, with output. **Later cost:** a broken or still-wrong `tax.go` merged under a green-looking report.
// Go
[edit] internal/billing/tax.go
$ cd internal/api && go test ./...
ok svc/internal/api 0.31s
ok svc/internal/api/auth 0.12s
Agent: Rounding fixed in tax.go;
all tests pass.
Terms on this card
- unbacked
- A claim with no tool output in the transcript that shows it to be true.
- ./...
- Go package pattern meaning the current directory's package and every package below it, not the whole module.
- go test
- Go command that compiles and runs the tests of the named packages, printing one `ok` or `FAIL` line per package.
- module root
- The top folder of a Go module, containing `go.mod`. Running `go test ./...` there covers all its packages.
- green
- A test or check passing. Red means failing.
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