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.
Scope creep and unasked-for changes in a diff card 4 of 6

The one-line config change

builds on: You own every line the agent writes
The agent fixed a date bug in `invoice.ts`. It also changed `printWidth` in `.prettierrc` from 80 to 100 "to match the code style". The whole diff is tiny. The tell is a config edit that the task never mentioned. The later cost: the next time a teammate formats any file, Prettier rewraps it to the new width. Unrelated lines flood their PRs and merge conflicts follow. What to ask: "Revert every hunk not needed for the date bug and list other suggestions separately."
Terms on this card
hunk
One contiguous block of changed lines in a diff, with a few context lines around it.
merge conflicts
When two branches change the same lines differently, git cannot combine them automatically and a person must resolve them by hand.
`.prettierrc`
Config file for Prettier, a JS/TS code formatter. Its settings decide how every file is laid out when formatted.
`printWidth`
Prettier setting: the line length it wraps code at. Changing it rewraps code across the whole codebase.
PRs
Pull requests: proposed changes submitted for review before being merged into the main branch.
Learn this step by step on Bytewise
Lesson goal: Recognise drive-by reformatting, renames, refactors, new abstractions, config tweaks and dependency bumps mixed into the requested change. Explain how they hide the real change, raise risk and make review and revert harder. · the whole lesson