Foundry-protocol – A framework for orchestrating complex tasks with AI agents A GitHub project called foundry-protocol has published a reusable framework for orchestrating complex tasks with AI agents, combining a human/AI-orchestrator protocol, Claude-based planning and sub-agent executors. The framework was extracted from a compliance-audit project that ran T0-T5 across 25 work orders in September 2026, and its components including ORCHESTRATOR-LOOP, FORMAT-CONTRACT, RESUME and DR-INDEX come from a separate multi-agent project in October 2026 that took dozens of work orders to ACCEPTED status autonomously, with rate limits and resumes across accounts. The protocol is designed as a self-improving artifact, with lessons from each project flowing back into a shared docs/LESSONS.md ledger so the next project starts with prior experience built in. A reusable framework for orchestrating complex tasks with AI agents, using the human/AI-orchestrator protocol + Claude planning + sub-agent executors. Extracted and generalized from real experience in a compliance-audit project T0-T5, 25 work orders, 2026-09 . Core idea: the protocol itself is an artifact that improves with use. Each project that uses it produces lessons — what worked, what misled an agent, which acceptance criterion was missing. Those lessons flow back to docs/LESSONS.md https://github.com/AlphaIAt/foundry-protocol/blob/master/docs/LESSONS.md in this repository, rather than staying trapped in the project where they arose. The next project starts with that experience already built in, instead of repeating the same mistakes. foundry-protocol/ ├── CLAUDE.md operating instructions for Claude │ when acting as orchestrator/planner ├── docs/ │ ├── ORCHESTRATION.md generic protocol roles, cycle, WO, log │ ├── DECISIONS.md template for the decisions/ADR register │ ├── AUTONOMY-EVAL.md template + validated criteria for │ │ assessing whether an agent can coordinate alone │ ├── LESSONS.md self-improvement ledger — grows with each project │ ├── history/ where condensed per-project summaries live │ ├── memory/ template for per-project living memory │ │ ├── ENTRY-TEMPLATE.md format of one entry same shape as the │ │ │ Claude Code personal memory │ │ └── MEMORY.md index template │ ├── work-orders/TEMPLATE.md work order template PREPARATION, tasks, sabotage checks, RESULT │ ├── gates/TEMPLATE.md human validation gate template ≥ 1 PR, complete report │ ├── ORCHESTRATOR-LOOP.md optional autonomous cycle orchestrator does not implement; failure ⇒ new agent │ ├── FORMAT-CONTRACT.md stable shapes that tools read without an LLM │ ├── RESUME.md resuming a WO in any session/account │ ├── RESTART-PROMPT.md template for the orchestrator restart prompt │ ├── DR-INDEX.md DR index, one line each minimal context │ ├── CONTEXT-TEMPLATE.md per-package CONTEXT.md ≤ 45 lines, instead of reading src/ │ └── foundry.conf BASE BRANCH, GATE BRANCH PREFIX, VERIFY CMD ├── .claude-plugin/marketplace.json local marketplace for claude plugin install ├── plugin/ Claude Code plugin: skills + MCP engine │ ├── .claude-plugin/plugin.json │ ├── mcp/server.mjs local MCP engine see plugin/mcp/README.md │ └── skills/ │ ├── bootstrap-project/ │ ├── close-work-order-cycle/ │ └── write-project-memory/ ├── runtime/ agno/AgentOS foundation Phase 1, experimental └── scripts/ ├── bootstrap-project.sh installs the skeleton into a new or existing project └── project/ scripts copied to