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.
Ask for a plan before code card 5 of 6

What the unchecked guess would have shipped

builds on: Why agents fill gaps with plausible guesses
BAD is what happens when nobody reads the assumptions. It runs, and a test that fetches a product twice goes green. But `LRUCache` drops entries only when it is full; it never expires them. Later cost: a changed price stays invisible until eviction or a restart, and the codebase gains a second caching style plus an extra package. BETTER is the same code after one corrected plan.
// Python
# BAD: built on the unchecked guess
from cachetools import LRUCache, cached

@cached(LRUCache(maxsize=10_000))
def get_product(pid: int) -> Product:
    return db.fetch_product(pid)

# BETTER: after one plan correction
from app.cache import cached

@cached(ttl=60)
def get_product(pid: int) -> Product:
    return db.fetch_product(pid)
Terms on this card
later cost
The concrete damage a shortcut does after merge, such as a hidden bug, corrupted data or extra maintenance.
LRUCache
The LRU cache class from the Python package cachetools; removes entries only when it reaches maxsize.
eviction
A cache removing an entry, for example to make room for a new one.
green
A test or check that passes.
Learn this step by step on Bytewise
Lesson goal: Have the agent explore and propose a plan, listing the files it will touch, its approach and its assumptions, before it edits anything. Correct wrong assumptions at the plan stage, where they are cheap to fix. · the whole lesson