Request
Add a setting that adds child subagent token usage into the parent’s usage totals.
Requirements
- Opt-in (or documented default — TBD, lean off so accounting stays as today unless enabled)
- Works recursively: depth 2+ agents roll up through each ancestor
- Cover components already tracked on
lifetimeUsage: input, output, cacheWrite (cost only if/when we surface dollar cost)
- When enabled, parent-facing accounting (widget / notifications / session surfaces we own) reflects rolled-up totals
- Docs: clarify this is accounting visibility, not changing provider billing; child still runs its own session/API calls
Current behavior
Child usage stays only on the child AgentRecord. Nothing rolls into parent session stats. See src/usage.ts, AgentRecord.lifetimeUsage, manager onAssistantUsage.
Acceptance
Related
Local log: bugs.txt (setting: roll up child usage into parent)
Complementary (not the same): persist structured usage for extension consumers
Request
Add a setting that adds child subagent token usage into the parent’s usage totals.
Requirements
lifetimeUsage:input,output,cacheWrite(cost only if/when we surface dollar cost)Current behavior
Child usage stays only on the child
AgentRecord. Nothing rolls into parent session stats. Seesrc/usage.ts,AgentRecord.lifetimeUsage, manageronAssistantUsage.Acceptance
subagents.json+/agents → Settings(or equivalent)Related
Local log:
bugs.txt(setting: roll up child usage into parent)Complementary (not the same): persist structured usage for extension consumers