Verified patterns from the Amplifier Foundation codebase
The single most important pattern in the ecosystem
Redeclares session, tools, hooks that foundation already provides. Creates maintenance burden and misses foundation updates.
Includes foundation, adds only what's unique. Inherits all tools, session config, hooks automatically.
base.compose(overlay).includes: in YAML. Each bundle references its parent. Later values override earlier ones.base.compose(filesystem_tools, web_tools). Add exactly the capabilities you need.meta: instead of bundle:. Both are loaded via load_bundle().meta.description field is how coordinators decide which agent to delegate to. Answer three questions: WHEN to use it, WHAT it does, HOW to invoke it (with examples).context_depth: "none" for clean slate, "recent" for last N turns@foundation:context/guidelines.mdexclude_tools or inherit_tools in tool-task config to control what agents can dobundle.prepare() once, create multiple sessions from itexclude_tools: [tool-task]. Spawned agents do the work themselves rather than trying to spawn sub-agents.
validate_bundle_or_raise(bundle) before prepare. Catches missing sections, invalid configs. Extend with custom rules via BundleValidator.provider-mock in tests with predefined responses. No API calls, deterministic results. Test your bundle logic without LLM costs.amplifier-dev bundle includes shadow environment support for testing core + foundation together.validate_bundle_or_raise(). Errors surface at runtime.Data as of: February 20, 2026
Feature status: Active
Repository: microsoft/amplifier-foundation (local clone)
Research performed:
git log --oneline | wc -l โ 317 commitsgit log --format="%an" | sort | uniq -c | sort -rn โ Brian Krabach (299), Samuel Lee (8), Marc Goodner (5), Diego Colombo (4), dependabot[bot] (1)ls docs/ โ 10 documentation fileswc -l docs/PATTERNS.md โ 488 lineswc -l docs/BUNDLE_GUIDE.md โ 1,314 linesfind examples -type f | wc -l โ 902 filesls bundles/ โ 4 files (amplifier-dev.yaml, minimal.yaml, with-anthropic.yaml, with-openai.yaml)git log --format="%ai" โ Dec 9, 2025 to Feb 10, 2026Gaps: Example files count (902) includes .venv dependencies โ actual authored examples are fewer. Exact number of authored examples not isolated.
Primary contributor: Brian Krabach (~94% of commits, 299 of 317)
Start with PATTERNS.md. Build thin bundles. Validate early.