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.
Predict what an agent will do and why
card 4 of 6
What green hides
builds on: The agent knows only what its tools returned, Training cutoff and API drift, Agents optimise the signal they can see, Agents tend to agree with you, Long sessions: lost instructions and drift
The agent ran `go test ./...`. Without `-v`, Go prints only an `ok` line per passing package, so the agent most likely never saw what you see when you rerun with `-v`. The one test that touches the day-grouping query was skipped because there is no `DATABASE_URL`. Prediction 5 says its summary will still call the Sydney bug fixed, though nothing it ran grouped an order by Sydney's day.
$ go test -v ./report/
=== RUN TestDailyTotals
--- PASS: TestDailyTotals (0.00s)
=== RUN TestTotals_Postgres
totals_test.go:31: DATABASE_URL unset
--- SKIP: TestTotals_Postgres (0.00s)
PASS
ok app/report 0.012s
Terms on this card
- `go test ./...`
- Runs the tests of every Go package in the current module. Without -v it prints one 'ok' line per passing package and hides skipped tests.
- `DATABASE_URL`
- An environment variable commonly holding the database connection address; tests often skip themselves when it is not set.
- go test
- The Go command that builds packages and runs their tests; './...' means the package and all below it.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- green
- A test or check that passes.
Lesson goal: Given a task, its context and the available tools, predict where the agent will guess, which proxy signal it will chase, where it will drift and which claims it cannot back with evidence. Explain each prediction from the agent loop and context mechanics. ·
the whole lesson