iiRecord
Agentic AI Atlas · GAP-SUBOBS-003: Per-Subagent Token and Cost Tracking
page:docs-harness-features-backlog-gaps-subagent-observability-gap-subobs-003a5c.ai
II.
Page JSON

page:docs-harness-features-backlog-gaps-subagent-observability-gap-subobs-003

Structured · live

GAP-SUBOBS-003: Per-Subagent Token and Cost Tracking json

Inspect the normalized record payload exactly as the atlas UI reads it.

File · wiki/docs/harness-features-backlog/gaps/subagent-observability/gap-subobs-003.mdCluster · wiki
Record JSON
{
  "id": "page:docs-harness-features-backlog-gaps-subagent-observability-gap-subobs-003",
  "_kind": "Page",
  "_file": "wiki/docs/harness-features-backlog/gaps/subagent-observability/gap-subobs-003.md",
  "_cluster": "wiki",
  "attributes": {
    "nodeKind": "Page",
    "sourcePath": "docs/harness-features-backlog/gaps/subagent-observability/GAP-SUBOBS-003.md",
    "sourceKind": "repo-docs",
    "title": "GAP-SUBOBS-003: Per-Subagent Token and Cost Tracking",
    "displayName": "GAP-SUBOBS-003: Per-Subagent Token and Cost Tracking",
    "slug": "docs/harness-features-backlog/gaps/subagent-observability/gap-subobs-003",
    "articlePath": "wiki/docs/harness-features-backlog/gaps/subagent-observability/GAP-SUBOBS-003.md",
    "article": "\n# GAP-SUBOBS-003: Per-Subagent Token and Cost Tracking\n\n| Field | Value |\n|-------|-------|\n| Category | subagent-observability |\n| Priority | High |\n| Effort | M |\n| Status | Missing |\n\n## Description\nTrack token usage and estimated cost per dispatched subagent effect. Aggregate at run and session level.\n\n## Current State\ntokens:stats tracks run-level tokens. No per-effect or per-subagent breakdown.\n\n## Target State\nToken usage and cost tracked per effect. Aggregated at run and session level. Visible in embedded SDK dashboard with per-effect cost breakdown. Cost anomaly detection for expensive effects.\n\n## Dependencies\n- [GAP-SUBOBS-001](../subagent-observability/GAP-SUBOBS-001.md) -- streaming output for token extraction\n\n## Key Files\n| Component | Path |\n|-----------|------|\n| Token stats | `packages/babysitter-sdk/src/cli/` |\n| Task definitions | `packages/babysitter-sdk/src/tasks/` |\n| Embedded SDK dashboard (new) | `packages/babysitter-sdk/src/dashboard/` |\n\n## Recommendation\nPhase 2 implementation. Capture token counts from harness output per effect. Aggregate at run and session level. Display in embedded SDK dashboard.\n",
    "documents": []
  },
  "outgoingEdges": [],
  "incomingEdges": [
    {
      "from": "page:docs-harness-features-backlog",
      "to": "page:docs-harness-features-backlog-gaps-subagent-observability-gap-subobs-003",
      "kind": "contains_page"
    }
  ]
}