npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

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.

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-guide

Then 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-guide

Option 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 #tags for 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.py

Case 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:

  1. Create guides/XX_topic.md following the guide template (see any existing guide for structure)
  2. Add entries to INDEX.md and DECISION_TREE.md
  3. Optionally add code templates to templates/
  4. Submit a PR

License

MIT