← Claude Code Hub
Feb 24, 2026 · 3 min read ✦ Tip #017

4 Agentic AI Patterns You Already Use in Claude Code — and One You Don't

Every agentic pattern from Anthropic's guide maps to a Claude Code primitive. Here's the complete reference.

In December 2024, Anthropic published Building Effective Agents — five workflow patterns for LLM-based systems. What's not obvious: Claude Code already implements four of them natively. The fifth requires a design decision.

I've been studying and applying these patterns as part of my professional practice in Agentic AI. This map shows how each one connects to Claude Code's primitives.

Result:

Anthropic Pattern           → Claude Code Primitive
─────────────────────────────────────────────────────
Prompt Chaining             → Plan mode + Skills
Routing                     → Conditional CLAUDE.md
Parallelization             → Sub-agents / Agent Teams
Orchestrator-Workers        → Task tool (sub-agents)
Evaluator-Optimizer         → Inline skill (/evaluate)

The 5 patterns

1. Prompt Chaining — Sequential steps

Decompose a task into sequential steps where each LLM processes the previous one's output. In Claude Code: plan mode to design the sequence, skills to execute each step as a slash command.

2. Routing — Direct to the right path

Classify the input and route to the appropriate handler. In Claude Code: conditional rules in CLAUDE.md that activate behaviors based on project context.

3. Parallelization — Divide and conquer

Execute sub-tasks simultaneously. In Claude Code: sub-agents working in parallel with isolated contexts, or agent teams when teammates need to talk to each other and challenge each other's hypotheses.

4. Orchestrator-Workers — One director, many executors

A central agent that delegates, coordinates, and synthesizes. In Claude Code: the Task tool launches specialized sub-agents and collects their results. You see this every time Claude delegates a search to an Explore sub-agent.

5. Evaluator-Optimizer — Generate, evaluate, iterate

One LLM generates, another evaluates and provides feedback in a loop. Claude Code doesn't have this as a native automatic loop — the solution: an inline skill that acts as an evidence-based auditor. The hardest pattern to place, and the one that adds the most value in complex tasks.

Quick reference

Pattern Claude Code Primitive When to use
Prompt Chaining Plan mode + Skills Tasks with clear phases (research → design → implement)
Routing Conditional CLAUDE.md Multi-stack projects or context-dependent rules
Parallelization Sub-agents / Agent Teams Independent tasks that don't share state
Orchestrator-Workers Task tool Complex tasks requiring central coordination
Evaluator-Optimizer Inline skill Validate plans, reports, or critical implementations

The key is knowing Claude Code's 6 extension points and matching each pattern to the right one. These patterns aren't theoretical — they're architecture decisions you make every time you design a workflow.

Official docs: Building Effective Agents — Anthropic · Skills · Sub-agents

Found this useful? See more of wmedia.es in your Google results.

Add wmedia.es as a preferred source on Google
FREE GUIDE

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

  • 1. Day one import your sessions
  • 2. The window map and shortcuts
  • 3. Conversations which to open and two prompts
  • 4. Panels which to use for what
  • 5. Routines your first in the cloud
Are you a professional Web developer?

You'll receive the guide by email · Unsubscribe anytime

of 8
#

Wmedia · 8 pages
FREE GUIDE · 8 pages · 2 prompts

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

Are you a professional Web developer? · Unsubscribe anytime

Moving from the terminal to Claude Code Desktop?