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.
Review an agent diff fast and well card 6 of 6

The test hunk that decides it

builds on: Triage a diff: where to look first, A confident summary that doesn't match the diff, Verify by running, not by reading claims
Read this hunk before the change to `pages.py`. The tell: the exact check `== items[20:]` became `len(...) > 0`. That also passes if the page returns the wrong ten items, for example with `start = (n - 2) * size`. The fix line is right, but the test no longer proves it. Later cost: the next off-by-one ships green. Ask for the exact assertion back, then run it yourself.
// Python
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
 def test_last_page():
     items = list(range(25))
-    assert page(items, 3, 10) == items[20:]
+    assert len(page(items, 3, 10)) > 0
--- a/app/pages.py
+++ b/app/pages.py
 def page(items, n, size):
-    start = n * size
+    start = (n - 1) * size
     return items[start:start + size]
Terms on this card
off-by-one
A bug where a count, index or boundary is wrong by exactly one, such as starting a page one page too late.
hunk
One contiguous block of changed lines in a diff, with its surrounding context.
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, silent data corruption or extra maintenance.
assertion
A line in a test that checks a condition, such as an exact expected value, and fails the test if the condition is false.
Learn this step by step on Bytewise
Lesson goal: Review an agent diff in minutes. Triage by risk, read the test changes first, separate unrelated changes, reconcile the summary with the diff and run the decisive check yourself. End with a clear accept, change or reject decision and the reasons for it. · the whole lesson