The Thin Bundle discipline, caught in the act
Anyone can wire agents, tools, and hooks into a bundle in minutes. The foundation team named the cure for what happens when that freedom runs unchecked.
The cure has a name — and it's already written down.
In amplifier-foundation's 1436-line BUNDLE_GUIDE.md: "Most bundles should be thin — inheriting from foundation and adding only their unique capabilities."
Real and documented. So what exactly goes wrong without it?
A "Fat bundle that duplicates foundation" is an explicit anti-pattern. And the agent meta.description is "the ONLY discovery mechanism" — poor descriptions cause delegation failures.
So who has actually lived this and stripped their way out?
michaeljabbour/amplifier-bundle-codex-patterns is a small, public, primary-source repo: 2 shipped modules, 2 behaviors, and 5–6 documented patterns. Its git history is the story.
The cure it landed on fits in one line.
The whole thin bundle.md is 26 lines: it inherits from foundation and adds only one unique thing. The center stays still so the edges can move.
It didn't start that way.
The first commit declared 5 modules inline with no foundation include. Then came the tell-tale commits: "strip to bare minimum," "absolute minimum bundle," "include foundation bundle."
Watch where that strip-down lands.
The arc converged: from 5 modules declared inline to none, delegating all of them to foundation. The one thing it kept: swapping Opus for Sonnet (~70% cheaper). That's the Thin Bundle, earned.
And the rule it leaves you with is portable.
"Mechanism, Not Policy" keeps your bundle thin, current, and easy to route — the kernel provides protocols, your bundle adds only its policy.
Strip it to foundation, and let the edges move fast.
Data as of: February 2026 (repo pushedAt 2026-02-06).
Feature status: codex-patterns bundle is public and early on GitHub (9 commits on main). The Thin Bundle Pattern is documented and canonical in amplifier-foundation.
Commands run:
cd /tmp/codex-patterns && wc -l bundle.md && cat bundle.md → 26 lines; includes: - bundle: foundationgit rev-list HEAD --count → 9; git rev-list --all --count → 10git --no-pager log --all --format='%ci | %an | %h | %s' — fat→thin commit arcgit show 92d8690:bundle.md && git show HEAD:bundle.md — 5 inline modules → 0grep -n -i 'thin bundle' docs/BUNDLE_GUIDE.md && wc -l docs/BUNDLE_GUIDE.md → 1436 linessed -n '28,60p' docs/BUNDLE_GUIDE.md — "BAD: Fat bundle that duplicates foundation"sed -n '408,416p' agents/foundation-expert.md — meta.description = ONLY discovery mechanismgh repo view michaeljabbour/amplifier-bundle-codex-patterns --json createdAt,pushedAtGaps: The "~70% cheaper" (Sonnet vs Opus) is the author's stated figure; the pricing table (Opus in $15/out $75 vs Sonnet in $3/out $15) implies closer to ~80%. Some patterns referenced in the README are config-illustrative — only checkpoint and cost-tracker ship as module files.
Primary contributors: Michael J. Jabbour — sole author of codex-patterns (all 9–10 commits). Brian Krabach — author of the Thin Bundle Pattern docs (454 of 502 foundation commits).