Patterns¶
Recurring architectural and design patterns in AI/LLM systems — RAG, tool calling, routing, guardrails, and more.
Contents¶
- Retrieval-Augmented Generation (RAG) — Grounding LLM output with retrieved context
- Tool Calling & Model Context Protocol (MCP) — Universal standard for connecting LLMs to external tools and data
- Claude Tool Search Pattern
- Agent Skills Best Practices
- OpenClaw Workflow Prompt Library Pattern
- LLM Trust Boundaries Pattern
- Software Factories Pattern — Non-interactive development via seed, validation, and feedback loops
- Filesystem-as-Interface Pattern — Filesystem as the primary interface and persistence layer for agents
Common Patterns¶
- RAG (Retrieval-Augmented Generation) — Grounding LLM output with retrieved context
- Tool Calling & MCP — LLMs invoking external tools via structured schemas and the Model Context Protocol (MCP)
- Routing — Directing queries to specialised models or agents
- Guardrails — Input/output validation and safety filtering
- Chain-of-Thought — Structured reasoning prompts
- Multi-Agent Collaboration — Multiple agents coordinating on a task