Purpose: Quick command reference for testing subagents
Last Updated: 2026-01-07
cd evals/framework
npm run eval:sdk -- --subagent=ContextScout --pattern="standalone/*.yaml"
npm run eval:sdk -- --subagent=ContextScout --pattern="standalone/01-simple-discovery.yaml"
npm run eval:sdk -- --subagent=ContextScout --pattern="standalone/*.yaml" --debug
npm run eval:sdk -- --agent=core/openagent --pattern="delegation/*.yaml"
npm run eval:sdk -- --agent=core/openagent --pattern="delegation/01-contextscout-delegation.yaml"
# View agent frontmatter
head -30 .opencode/agent/ContextScout.md
# Check tool permissions
grep -A 10 "^tools:" .opencode/agent/ContextScout.md
cat evals/agents/ContextScout/config/config.yaml
# Summary
cat evals/results/latest.json | jq '.summary'
# Agent loaded
cat evals/results/latest.json | jq '.meta.agent'
# Tool calls
cat evals/results/latest.json | jq '.tests[0]' | grep -A 5 "Tool"
# Violations
cat evals/results/latest.json | jq '.tests[0].violations'
npm run eval:sdk -- --subagent=ContextScout --pattern="smoke-test.yaml"
npm run eval:sdk -- --subagent=ContextScout --pattern="discovery/*.yaml"
npm run eval:sdk -- --subagent=ContextScout
| Flag | Purpose | Example |
|---|---|---|
--subagent |
Test subagent in standalone mode | --subagent=ContextScout |
--agent |
Test primary agent (or delegation) | --agent=core/openagent |
--pattern |
Filter test files | --pattern="standalone/*.yaml" |
--debug |
Show detailed output | --debug |
--timeout |
Override timeout | --timeout=120000 |
# Should show subagent name for standalone mode
cat evals/results/latest.json | jq '.meta.agent'
# Should show tool calls > 0
cat evals/results/latest.json | jq '.tests[0]' | grep "Tool Calls"
# See full conversation
cat evals/results/history/2026-01/07-*.json | jq '.tests[0].timeline'
# View violations
cat evals/results/latest.json | jq '.tests[0].violations.details'
.opencode/agent/subagents/core/{subagent}.md
evals/agents/subagents/core/{subagent}/
├── config/config.yaml
└── tests/
├── standalone/
│ ├── 01-simple-discovery.yaml
│ └── 02-advanced-test.yaml
└── delegation/
└── 01-delegation-test.yaml
evals/results/
├── latest.json # Latest test run
└── history/2026-01/ # Historical results
└── 07-HHMMSS-{agent}.json
# Should show: "agent": "ContextScout"
cat evals/results/latest.json | jq '.meta.agent'
# Should show: Tool Calls: 1 (or more)
cat evals/results/latest.json | jq '.tests[0]' | grep "Tool Calls"
# Should show: "passed": 1, "failed": 0
cat evals/results/latest.json | jq '.summary'
concepts/subagent-testing-modes.md - Understand testing modesguides/testing-subagents.md - Step-by-step testing guideerrors/tool-permission-errors.md - Fix common issuesReference: evals/framework/src/sdk/run-sdk-tests.ts