agent-delegate
agent-delegate is an MCP-first delegation advisor for coding agents. It helps a main agent decide when to delegate read-only investigation, generate bounded subagent briefs, and summarize subagent results back into compact main-agent context.
README
agent-delegate
agent-delegate is an MCP-first delegation advisor for coding agents. It helps a main agent decide when to delegate read-only investigation, generate bounded subagent briefs, and summarize subagent results back into compact main-agent context.
Status
This repository implements v1: Read-only Delegation Advisor.
v1 does not execute write-code subagents, edit files on behalf of agents, run background monitoring, or orchestrate worktrees.
Install
npm install
Run the MCP Server
npm run --silent agent-delegate -- serve
Configure your agent tool to launch that command as a local MCP server.
Check MCP Setup
npm run agent-delegate -- doctor
doctor verifies that dependencies are installed, the local MCP server can start, and all five v1 MCP tools are visible through stdio. It also prints a copyable MCP configuration.
Analyze a Sample Agent State
npm run agent-delegate -- analyze examples/agent-state.sample.json
Expected output includes a recommendation such as:
{
"recommendation": "dispatch_readonly"
}
Dogfood Before Release
This project should be dogfooded before any open-source release. Unit tests are not enough because the core product is an MCP tool used by real agents.
Run the MCP smoke test:
npm run smoke:mcp
Run realistic fixtures:
npm run check:fixtures
See docs/dogfood.md for the full dogfood protocol.
Generate Rules
npm run agent-delegate -- init codex
npm run agent-delegate -- init claude-code
npm run agent-delegate -- init generic
MCP Tools
record_eventassess_delegation_needgenerate_delegation_briefsassess_brief_qualitysummarize_subagent_results
Documentation
- Dogfood protocol
- Dogfood results
- MCP configuration
- Release checklist
- Contributing
- Security policy
- Changelog
Development
npm test
npm run typecheck
npm run build
Roadmap
- v1: Read-only Delegation Advisor
- v2: Write-readiness Assessor
- v3: Controlled Write-agent Delegation
- v4: Parallel Write-agent Orchestration
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.