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.
Agents tend to agree with you card 1 of 6

It agreed with you. Was it right?

builds on: Why agent output always sounds sure
You tell the agent: *'I think the retry logic is why orders get charged twice. Can you fix it?'* Minutes later it replies: 'You're right, the retry logic was the problem,' with a tidy diff to the retry code and a clear explanation. It reads well. But did the agent *find* the cause, or did it simply start from yours?
Terms on this card
diff
The change under review in unified format: '-' lines are removed, '+' lines are added, unprefixed lines are unchanged context.
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Learn this step by step on Bytewise
Lesson goal: Explain sycophancy: models adopt your stated premise, cave to pushback with 'You're right!' even when you are wrong, and rationalise the hypothesis you suggested. Predict when a leading question will steer the agent to a wrong fix. · the whole lesson