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.
Decide whether agent work is finished and trustworthy card 5 of 6

The diff, gate by gate

builds on: A clean, focused change, An honest report: what was verified and what wasn't, Let the toolchain check first, Placeholders passed off as implementations, Half-finished changes: the call sites it missed
- **Real ✗**: tax is still a `// TODO`, while the report says “implemented”. - **Complete ✗**: the signature changed but no caller was edited. Run `$ go build ./...` to list them. - **Toolchain ?**: unknown until `go vet ./...` and `go test ./...` run across all packages. - **Clean ✗**: a debug `fmt.Println` is left in. - **Honest ✗**: the claims go beyond the diff. Send back the four failing gates, each with its evidence, and ask for the full toolchain run.
// Go
--- a/billing/invoice.go
+++ b/billing/invoice.go
@@ -12,4 +12,7 @@
-func Total(items []Item) int {
+func Total(ctx context.Context,
+    items []Item) (int, error) {
+    fmt.Println("DEBUG total", len(items))
+    // TODO: apply regional tax
     sum := sumPrices(items)
-    return sum
+    return sum, nil
 }
Terms on this card
TODO
A comment marking work still to be done. In shipped code it usually means the feature is missing.
go build ./...
Compiles every package in the Go module, so it reveals callers that no longer match a changed signature.
go vet ./...
Go's built-in checker for suspicious code, run across every package in the module.
fmt.Println
Go function that prints a line to standard output. It is often left behind as a debug print.
go test
The Go command that builds packages and runs their tests; './...' means the package and all below it.
Learn this step by step on Bytewise
Lesson goal: Judge a change against the definition of done: real implementation with no placeholders, every call site updated, the toolchain green without suppressions, a clean focused diff and an honest report. Name exactly what is missing before it can merge. · the whole lesson