Purpose: Quick reference for adding subagents to eval framework
Last Updated: 2026-01-09
When adding a new subagent, update these THREE locations:
Purpose: Maps subagent → parent agent for delegation testing
const subagentParentMap: Record<string, string> = {
'contextscout': 'openagent', // Core subagents → openagent
'task-manager': 'openagent',
'documentation': 'openagent',
'coder-agent': 'opencoder', // Code subagents → opencoder
'tester': 'opencoder',
'reviewer': 'opencoder',
};
Purpose: Maps subagent name → file path for test discovery
const subagentPathMap: Record<string, string> = {
'contextscout': 'ContextScout',
'task-manager': 'TaskManager',
'coder-agent': 'CoderAgent',
};
Purpose: Maps subagent name → agent file for eval-runner
const agentMap: Record<string, string> = {
'contextscout': 'ContextScout.md',
'task-manager': 'TaskManager.md',
'coder-agent': 'CoderAgent.md',
};
| Error | Missing From | Fix |
|---|---|---|
| "No test files found" | Path Map (#2) | Add to subagentPathMap |
| "Unknown subagent" | Parent Map (#1) | Add to subagentParentMap |
| "Agent file not found" | Agent Map (#3) | Add to agentMap |
# Standalone mode (forces mode: primary)
npm run eval:sdk -- --subagent=contextscout
# Delegation mode (tests via parent)
npm run eval:sdk -- --subagent=contextscout --delegate
guides/testing-subagents.md - Full testing guideguides/adding-agent.md - Creating new agents