agent-orchestration-guide
v0.1.0
Published
A comprehensive knowledge base for building AI agent orchestration systems. Universal patterns, code templates, and real-world case studies — designed to be read by both humans and AI coding agents.
Maintainers
Readme
Agent Orchestration Guide
A comprehensive knowledge base for building AI agent orchestration systems. Contains universal patterns, real-world case studies, and code templates in TypeScript and Python — designed to be read by both humans and AI coding agents as foundational guidance.
What This Is
This is a knowledge package, not a code library. It contains structured markdown guides, code templates, and case studies that teach you (or your AI coding agent) how to build robust agent orchestration systems from scratch.
The patterns are extracted from production agent architectures and distilled into reusable, framework-agnostic building blocks.
Install
Option A: npm
npm install agent-orchestration-guideThen reference guides from node_modules/agent-orchestration-guide/guides/.
Option B: Skills / Rules Folder
Copy the contents into your agent's reference directory:
# For Cursor
cp -r ./guides .cursor/skills/agent-orchestration-guide/
# Or clone directly
git clone <repo-url> .cursor/skills/agent-orchestration-guideOption C: Direct Reference
Clone or download the repo and point your agent at the guides/ directory.
Guide Structure
| Guide | Topic | Complexity | |-------|-------|------------| | 00 Foundations | Agent mental models, taxonomy, core loop concept | Foundational | | 01 Agent Loop | The query-execute-observe cycle | Foundational | | 02 Tool System | Tool design, schemas, registry, execution | Foundational | | 03 Multi-Agent | Sub-agents, orchestration, delegation, coordination | Intermediate | | 04 Context & Memory | Context window management, compaction, long-term memory | Intermediate | | 05 Permissions & Safety | Permission models, sandboxing, trust boundaries | Intermediate | | 06 Human-in-the-Loop | Approval flows, feedback, interactive patterns | Intermediate | | 07 Planning & Reasoning | Plan mode, task decomposition, todo systems | Intermediate | | 08 Tool Catalog | Common tools: file I/O, shell, search, web, code execution | Intermediate | | 09 Protocols | MCP, bridge protocols, transport layers, IDE integration | Advanced | | 10 State & Lifecycle | Session state, config, bootstrap, settings layers | Advanced | | 11 Patterns & Anti-patterns | Proven patterns and common pitfalls | Advanced |
Finding What You Need
- INDEX.md — Keyword lookup table mapping concepts to files and sections
- DECISION_TREE.md — "What are you building?" routing guide
- Semantic tags — Every guide has YAML frontmatter tags and inline
#tagsfor grep-based discovery
Code Templates
Starter implementations for core patterns in both TypeScript and Python:
templates/
├── typescript/
│ ├── agent-loop.ts
│ ├── tool-registry.ts
│ ├── sub-agent.ts
│ ├── context-manager.ts
│ └── permission-system.ts
└── python/
├── agent_loop.py
├── tool_registry.py
├── sub_agent.py
├── context_manager.py
└── permission_system.pyCase Studies
Real-world agent architectures analyzed and mapped to the universal patterns:
- Claude Code — Terminal-based agentic coding assistant with 40+ tools, multi-agent orchestration, and 200K context management
Contributing
To add a new technique:
- Create
guides/XX_topic.mdfollowing the guide template (see any existing guide for structure) - Add entries to
INDEX.mdandDECISION_TREE.md - Optionally add code templates to
templates/ - Submit a PR
License
MIT
