Agent Patterns
Coding agents have some patterns. The most famous ones are MCP and RAG. But there are other patterns like:
- Caching
- Routing
- Filtering
- Splitting
- Aggregating
- Orchestration
Such patterns are not new. Many of them trace back to the good work of Enterprise Integration Patterns (EIP) by Gregor Hohpe and Bobby Woolf.
Software allows us to have greater flexibility. LLMs are not super flexible for customization; you pretty much need to use the context window to customize them. So whatever pattern you do (besides MCP) you will be doing BEFORE or AFTER the LLM call.
MCP is different because you are creating something like a "callback" so the LLM will invoke it during the processing.