agent-orchestration
A multi-agent runtime that coordinates six specialized agents through a typed artifact pipeline with 41 RPC methods. It features dynamic autonomy levels and context sufficiency scoring that adjust agent behavior based on the operator's state and task requirements.
README
agent-orchestration
Multi-agent orchestration runtime with operator-aware autonomy. Six specialized agents collaborate through a typed artifact pipeline, with autonomy levels dynamically adjusted based on operator cognitive state.
Architecture
┌──────────────────────────────────────────────────────────────┐
│ MCP Runtime (41 RPC methods) │
│ Sessions · Artifacts · Worktrees · Agent Execution · Merge │
└──────────────────────────┬───────────────────────────────────┘
│
┌──────────────────────────┴───────────────────────────────────┐
│ Orchestration Pipeline │
│ POLYMATH → RESONANT → ARCHITECT → EXECUTOR → HORIZON │
│ (optional) │
└────────┬─────────────────────────────────┬───────────────────┘
│ │
┌────────┴────────┐ ┌────────┴────────┐
│ MIND Engine │ │ BASIS Engine │
│ Operator State │ │ Context Score │
│ Machine (FSM) │ │ Calculator │
│ │ │ │
│ fresh → mid → │ │ Domains × │
│ faded ↔ high_ │ │ Weights → │
│ pressure │ │ Caps/Penalties → │
│ │ │ CSS (0-100) │
│ → Autonomy │ │ → Tier A/B/C │
│ L0-L3 │ │ │
└─────────────────┘ └──────────────────┘
How It Works
- Task enters the pipeline via the MCP runtime
- MIND engine evaluates operator state (session duration, decision count, error rate, fatigue signals) and assigns an autonomy level (L0–L3)
- BASIS engine calculates a Context Sufficiency Score across weighted domains — determines whether enough context exists to proceed
- Agents execute in sequence, each producing a typed artifact:
| Agent | Role | Artifact |
|---|---|---|
| Polymath | Divergent exploration, hypothesis generation | TaskMap |
| Resonant | Evidence validation, risk assessment | EvidencePack |
| Architect | Design specification from evidence | DesignSpec |
| Executor | Implementation in isolated worktrees | PatchSet |
| Horizon | Ship gating (5 gates), release decision | ShipDecision |
| Alchemist | Creative reframing when work is stuck | OptionsSet |
- Permission matrix enforces read/write guardrails per agent per autonomy level. Only Executor can write code, and only at L2+.
Project Structure
slate/
├── agents/ # 6 agent runners (polymath, resonant, architect, executor, horizon, alchemist)
├── engines/
│ ├── basis/ # Context Sufficiency Score calculator
│ └── mind/ # Operator state machine + autonomy resolver
├── libs/
│ ├── context-schema/ # Zod artifact schemas (TaskMap, EvidencePack, DesignSpec, etc.)
│ ├── context-loader/ # Markdown + YAML context loading
│ ├── orchestration/ # Pipeline coordination + session management
│ └── llm-provider/ # LLM router (OpenAI primary, Anthropic fallback)
├── apps/
│ └── mcp-runtime/ # JSON-RPC server (41 methods)
├── tests/ # E2E test suites
└── tools/ # Agent manifests, contracts, templates
Tech Stack
- Language: TypeScript 5.4
- Build: Nx monorepo
- Schema Validation: Zod
- Testing: Vitest
- LLM Integration: OpenAI SDK, Anthropic SDK
- Runtime: Node.js, vite-node
- Protocol: MCP (Model Context Protocol) via JSON-RPC
Run
# Install dependencies
npm install
# Build all packages
npx nx run-many --target=build
# Run tests
npx nx run-many --target=test
# Start MCP runtime
npx nx run slate-runtime:serve
Status
Working prototype, actively developed. Core pipeline, all 6 agents, both engines, and the MCP runtime are functional with passing test suites. Not production-hardened — session persistence is file-based, no monitoring/observability layer yet.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.