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.
What the agent sees: its context
card 5 of 6
Walking the retry case through
Checklist:
- Your message said "our usual retry helper" but gave no name or path.
- The instruction file doesn't mention `httpx`.
- The only files it opened are in `client/`. Your open editor tab never shows up in the transcript, so it wasn't attached.
- The tool outputs show a 503 and an empty search.
So "usual helper" pointed at nothing, and it wrote the retry loop most Go code has. **Better:** "Use `httpx.Retry` from `internal/httpx/retry.go`", or ask it to search the whole repo first.
Terms on this card
- retry helper
- A shared function that re-sends a failed request a limited number of times, usually waiting a little longer between attempts.
- tool outputs
- The text returned to the agent when it runs a command, search or test, such as printed results or error messages.
- transcript
- The visible log of an agent session: your messages, its replies, and each command or file read it performed with the results.
- 503
- HTTP status code meaning 'Service Unavailable': the server is temporarily unable to handle the request.
- retry loop
- Code that repeats a failing operation a set number of times before giving up.
Lesson goal: List what is actually in the agent's context at a given step: your prompt, instruction files, the files it chose to open and the tool outputs it received. Explain that anything outside that context is invisible to it except through general training knowledge. ·
the whole lesson