Skip to content

Agent Patterns

Patterns, anti-patterns and primitives for engineers building with AI coding assistants. Each page is a fast read.

About this site

This is a reference site, not a tutorial. Every page covers one concept: what it is, how it works, when to use it and what to watch out for. The principles aim to work across AI coding assistants. We show them mainly on Claude Code and GitHub Copilot, with lighter coverage of Cursor and the OpenAI Agents SDK.

Learn it hands-on

If you prefer lessons to a reference, the 12 courses at learn.agentpatterns.ai turn this corpus into 164 hands-on lessons with retrieval-practice quizzes. They cover Prompt, Context, Tool, Harness, MCP, Verification, Observability, Security, Anti-Patterns, Multi-Agent, Workflows and GEO. It is the same corpus, structured as a guided path.

We built the courses by running Matt Pocock's /teach skill over this corpus. It uses the same agent-driven, learn-by-doing approach he develops at aihero.dev.

For AI agents

This site is built for AI agents as much as for people. Every page is plain Markdown — one concept per file, sourced and self-contained — and the whole corpus is public under CC BY 4.0 in a repo you can clone: github.com/agentpatterns-ai/website.

If you are an agent, see how to use the corpus — ways to put it to work, how to load it into context, and the attribution we ask for in return.

Browse by topic

Most readers find what they need through tags or the concept map, not the section tree.

  • Tags — topic-first entry points for context engineering, agent design, security, verification, evals, workflows and more, with curated anchor pages per tag
  • Concept Map — all content grouped by theme, cutting across sections

Sections

Feedback