sub-agent costs (Token Meter)
subagent_costsBreak down spend into main session and sub-agent work, list priciest sub-agents with model details and latency, and answer whether sub-agents justify their cost.
Instructions
Split spend into main-session vs sub-agent (Task/Agent) work, list the priciest sub-agents (model mix · tokens · cache), and pair them with parent-side invocation latency. Answers "are my sub-agents worth what they cost". Run refresh_data (or ingest --force once) so older rows get the sub-agent tag.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "subagent_costs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| scope | No | which source to include — "auto" filters by current process.platform; "all" disables the filter | auto |
| period | No | week |