Agentic Patterns

1 day ago 3

A curated catalogue of agentic AI patterns — real‑world tricks, workflows, and mini‑architectures that help autonomous or semi‑autonomous AI agents get useful work done in production.

Why? Tutorials show toy demos. Real products hide the messy bits. This list surfaces the repeatable patterns that bridge the gap so we can all ship smarter, faster agents.


What counts as a pattern?

  • Repeatable – more than one team is using it.
  • Agent‑centric – improves how an AI agent senses, reasons, or acts.
  • Traceable – backed by a public reference: blog post, talk, repo, or paper.

If your link ticks those boxes, it belongs here.


Quick Tour of Categories

Category What you'll find
Orchestration & Control Task decomposition, sub‑agent spawning, tool routing
Context & Memory Sliding‑window curation, vector cache, episodic memory
Feedback Loops Compilers, CI, human review, self‑healing retries
Tool Use & Environment Shell, browser, DB, Playwright, sandbox tricks
UX & Collaboration Prompt hand‑offs, staged commits, async background agents
Reliability & Eval Guardrails, eval harnesses, logging, reproducibility

Categories are fluid — open a PR if you see a better slice! The tables below are auto‑generated from the patterns/ folder.


Context & Memory

Feedback Loops

Orchestration & Control

Reliability & Eval

Tool Use & Environment

UX & Collaboration


Contributing in 3 steps

  1. Fork & branch → git checkout -b add-my-pattern
  2. Add a pattern file under patterns/ using the template above.
  3. Open a PR titled Add: my-pattern-name — the README & site will regenerate automatically.

See CONTRIBUTING.md for the fine print.


Inspiration

This project started after the write‑up "What Sourcegraph learned building AI coding agents" (28 May 2025) and the ongoing Raising an Agent video diary. Many first patterns come straight from those lessons — thanks to everyone sharing their journey in the open!


License

Apache‑2.0. See LICENSE.

Read Entire Article