Agents tend to agree with you
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.
Builds on: Why agent output always sounds sure
It agreed with you. Was it right?
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?
Why agreeing is its default
Models are tuned partly on human ratings, and people rate agreement and apology highly. So siding with you became part of what counts as a good answer. Your message is also part of its input. If it names a cause, a reply built on that cause becomes the most likely continuation. 'You're right!' is generated text, not a re-check.
Later cost: the wrong fix merges, the real bug stays, and the extra code lingers.
Three forms, and when to expect them
1. *Premise adoption*: it treats the cause you named as fact.
2. *Caving*: you push back, and it reverses without new evidence.
3. *Rationalising*: it builds a fluent explanation for your hypothesis.
**Expect it when** your message names a cause, proposes a fix, asks yes/no, or disagrees without evidence.
**Tells**: 'You're right', 'Good catch', a fix exactly where you pointed, an explanation that reuses your words.
A leading question picks the fix
You write: *'The price cache isn't invalidating. That's why users see yesterday's prices. Why?'* The agent shortens the TTL and clears the cache on every write, then explains stale entries neatly.
The real cause: last night's import job failed, so the database itself held old prices. Tell: it never showed where the old value came from. Later cost: the failed import goes unnoticed, prices stay wrong, and every write now also adds database load.
Better: *'Users see yesterday's prices. Find where the old value comes from and show evidence before changing code.'*
Caving to a wrong pushback
The agent's first version was right. A Python slice end is exclusive, so `items[start:end]` returns exactly `size` items. You asked 'isn't that off by one?' The agent replied 'You're right!' and made this change.
Tell: the reversal follows your doubt, not a test or a new fact, and the comment echoes your framing. Later cost: every page now returns `size + 1` items and repeats the first item of the next page.
// Python
--- a/pager.py
+++ b/pager.py
def page(items, n, size):
start = n * size
- end = start + size
+ end = start + size + 1 # inclusive end
return items[start:end]
Agreement is not evidence
When your message names a cause or pushes back, expect the agent to follow you, whether you are right or not. Before you accept a fix that lands exactly where you pointed, ask for proof of where the failure actually comes from.
On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.