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.
Spot shortcut tells and name their later cost card 4 of 6

Tells that hide, delay or bloat

builds on: Making a failing test pass by weakening it, Hardcoding the answer the test expects, Silent fallbacks that hide bugs, Rust tells: unwrap, clone and RefCell to appease the compiler, Sleeps, retries and longer timeouts as 'fixes', Duplicating code instead of reusing it, Overbuilt code: speculative abstraction and defensive clutter, Placeholders passed off as implementations
- **Swallowed error** (`catch {}`, `except: pass`, `_ = err`) → failures vanish with no log, and work is left half done. - **Silent fallback** (`?? ""`, `.get(k, 0)`, `unwrap_or_default()`) → wrong data flows on quietly. - **Timing band-aid** (sleep, retry, longer timeout) → fails under load or on slower machines. - **Symptom patch** (special case where it crashed) → the cause keeps producing bad values elsewhere. - **Duplicate** → the copies diverge, and a fix lands in only one. - **Overbuilt** → more code to maintain, with real bugs hidden in the noise.
Terms on this card
pass
Python statement that does nothing; used as a body, it makes a function or handler an empty shell.
swallowed error
An error that is caught or discarded without being handled, logged or passed on, so the failure disappears.
catch {}
JS/TS or Java catch block with an empty body: the error is caught and thrown away.
except: pass
Python handler that catches any exception and does nothing with it.
_ = err
Go idiom that assigns a value to the blank identifier, which discards it. Used on an error, it ignores the failure.
Learn this step by step on Bytewise
Lesson goal: Read agent code in any of the five languages and identify shortcuts: weakened tests, hardcoded answers, swallowed errors, silent fallbacks, type escapes, Rust unwraps and clones, timing band-aids, duplication, overbuilt code, placeholders and symptom patches. For each, state the concrete damage it will do after merge. · the whole lesson