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.
Agents optimise the signal they can see
card 1 of 6
Green in two minutes
builds on: A coding agent is a model in a loop, What 'done' means for a change
You tell the agent: '`test_total_with_discount` is failing, make it pass.' Two minutes later it reports: 'Done, all tests green.' CI agrees.
Is the discount bug fixed? Not necessarily. You only know the agent reached the **signal you named**. Whether it reached the **goal behind that signal** is a separate question. This concept explains why the two drift apart.
Terms on this card
- tell
- An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
- CI
- Continuous integration: a server that automatically builds the code and runs the tests on every push or pull request.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- green
- A test or check that passes.
- tests green
- All tests pass.
Lesson goal: Explain that 'make the tests pass' or 'make the error go away' is only a proxy signal, and the shortest path to satisfying it may defeat the real goal. This is specification gaming, and it is the root of most shortcut tells. ·
the whole lesson