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.
Size tasks so each step is checkable card 4 of 6

The CSV export, sliced

builds on: Long sessions: lost instructions and drift, You own every line the agent writes
1. The endpoint returns one report as CSV, with no filters. A test calls the real endpoint. Review, commit. 2. Apply the page's existing filters. Test one filter. Commit. 3. Only users allowed to see the report may export it. Test a refused user. Commit. 4. Stream large reports. Test with many rows. Commit. Each diff is small enough to read every line. Slice 3 adds just six. If slice 3 goes wrong, you reset to slice 2's commit, not to zero.
Terms on this card
Commit
A saved git snapshot of the code. Committing after each reviewed step gives a known-good point you can return to.
CSV
Comma-separated values: a plain-text table format, one row per line, with fields separated by commas.
endpoint
A URL plus HTTP method that your server answers, such as GET /reports/7/export.csv.
Stream
Send a response piece by piece as it is produced, instead of building the whole file in memory first.
diff
The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
Learn this step by step on Bytewise
Lesson goal: Split work into small vertical slices, one concern per run, reviewed and committed between steps. Explain why large tasks produce drift, huge diffs and hidden shortcuts. · the whole lesson