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.
Why agents fill gaps with plausible guesses card 4 of 6

Pagination, the tutorial way

builds on: What the agent cannot see, Why agent output always sounds sure
Task: 'add pagination to `GET /users`'. Your other list endpoints use cursor pagination via a `paginate()` helper, capped at 100 rows, because the table is huge. The agent opened only the users route and wrote `?page=&limit=` with SQL `OFFSET`, the tutorial pattern. Tell: parameter names unlike every other endpoint. Later cost: deep pages get slow, and clients face two pagination styles. Better: name `paginate()` and an existing endpoint in the task.
Terms on this card
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
Later cost
The concrete damage a shortcut does after merge, such as a hidden bug, corrupted data or extra maintenance.
endpoint
One URL path plus HTTP method that a service answers, e.g. `GET /users`.
cursor pagination
Paging through results by passing a marker of the last row seen, rather than a page number; stays fast on large tables.
SQL
Structured Query Language, the standard language for querying relational databases.
Learn this step by step on Bytewise
Lesson goal: Explain that when information is missing, the model tends to produce the most typical continuation instead of stopping to ask. Its guesses therefore match common patterns from public code, not your codebase's helpers, conventions or constraints. · the whole lesson