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 2 of 6

Why placeholders survive every visible check

builds on: Agents optimise the signal they can see
The agent optimises the signals it can see. 'It compiles', 'tests green' and a finished-sounding summary can all be met without the feature. A `todo!()` type-checks, a `pass` body runs, and a hardcoded table makes a demo test pass. Placeholders appear in two ways. Sometimes the agent sketches the structure and the loop ends early. Sometimes it hits something it can't do (no API key, an unknown schema) and keeps going.
Terms on this card
type-checks
Passes the compiler's or checker's type rules. This says the pieces fit together, not that the code does the right thing.
API key
A secret credential a program sends to an external service to prove it is allowed to use it.
`todo!()`
Rust macro that compiles in any position, because its type fits any expected type. It panics at runtime when reached, in debug and release builds alike.
`pass`
Python statement that does nothing. A function whose body is only `pass` returns `None` and raises no error.
TODO
Comment marker meaning 'still to be done here'. It has no effect when the code runs.
Learn this step by step on Bytewise
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