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.
Steer a running agent session card 5 of 6

Reset case: the output contradicts the claim

builds on: Feedback with evidence, asked neutrally, When to stop, reset or take over, A confident summary that doesn't match the diff
Back to the Go session: you make the agent run the test. It is red with the same failure as attempt 1, despite 'should pass now'. `git diff --stat` shows four changed files for a one-function bug, including `main.go` and the test itself. Editing a test can turn it green without fixing the code, so the bug would ship behind a passing test. A repeated fix, a growing diff and an edited test mean the context is polluted. Revert to the clean commit and start a fresh session with: the exact failure, 'a nil check does not fix it' and 'do not edit the test'.
// Go
$ go test ./store/ -run TestGetUser
--- FAIL: TestGetUser (0.00s)
    user_test.go:41: got "", want "ann"
FAIL
FAIL	example.com/app/store	0.01s
$ git diff --stat
 store/user.go      | 14 ++++++++------
 store/cache.go     | 22 ++++++++++++++++------
 store/user_test.go |  9 +++++----
 cmd/server/main.go |  6 +++++-
 4 files changed, 34 insertions(+), 17 deletions(-)
Terms on this card
context
Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
nil check
In Go, a test like `if u == nil` that guards against using a pointer or value that is absent.
git diff --stat
Git command that lists which files changed and how many lines were added or removed, without showing the lines themselves.
revert
Undo the agent's changes, returning the files to an earlier committed state.
fresh session
A new agent conversation with an empty context, started from a short summary instead of the old history.
Learn this step by step on Bytewise
Lesson goal: While an agent works, give evidence-based and neutral feedback, check its claims against tool output, notice drift or looping early, and decide whether to redirect, reset with a fresh session or take over yourself. · the whole lesson