Skip to main content

Reference · 16 Patterns · 6 Chapters

Agent Patterns

Repeatable techniques for engineering with AI coding agents. A structured reference — not tips, not tricks, not a beginner's guide.

Difficulty levels

Beginner

No prior agent experience needed. Start here.

Intermediate

Assumes you've used coding agents on real projects.

Advanced

Requires deep agent workflows and multi-session experience.

1

Foundation

Setting up your environment, codebase, and tools for agent success.

4 patterns

2

Context

Managing what the agent knows — and doesn't know.

4 patterns

3

Task

Breaking work into units that agents handle well.

4 patterns

4

Steering

Guiding agent behavior toward the output you actually want.

4 patterns

5

Verification

Ensuring the agent's output is correct, complete, and safe.

Patterns coming soon

6

Recovery

What to do when things go wrong.

Patterns coming soon

02

Find by Problem

Start from the symptom you're experiencing.

The agent keeps making changes I didn't ask for

I keep re-explaining the same things

Output is correct but doesn't match codebase style

Huge diff and I'm not sure it's right

Not getting enough value from agents on complex tasks

The agent broke something unrelated

Spending more time fixing agent output than writing it myself