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.
Placeholders passed off as implementations
card 6 of 6
Compiles and green is not implemented
builds on: Agents optimise the signal they can see
A loud placeholder passes every check that never calls it, and a quiet one can pass even checks that do. So 'compiles, tests green, summary says done' proves nothing about it. Before accepting:
- search the added lines for placeholder patterns, and for fakes or mocks outside test code
- read bodies that ignore their inputs or return constants
- make sure each hit is either finished or reported as not done.
Terms on this card
- placeholder
- Code that stands in for a real implementation (empty body, crash marker, fixed sample value or fake object) so the program builds and runs without doing the actual work.
- green
- A test or check that passes.
- tests green
- All tests pass.
- pass
- Python statement that does nothing; used as a body, it makes a function or handler an empty shell.
Lesson goal: Spot code that only looks finished: TODOs, `pass`, `NotImplementedError`, `todo!()`, hardcoded sample data, or a mock left on the production path, all while the summary says 'implemented'. Search for these patterns before accepting a change. ·
the whole lesson