Skip to content

[Radar] Track cross-tool token cost attribution as adjacent surface #103

@luoyuctl

Description

@luoyuctl

Background

Recent ecosystem scan surfaced a stronger adjacent surface around cross-tool token cost attribution for AI coding assistants. agenttrace already reports local session cost, token totals, tool failures, health, anomalies, and CI evidence. The overlap is local session data and cost visibility; the product difference is whether users primarily want diagnostic session health or detailed budget attribution across many coding tools, projects, models, and task types.

Evidence

  • Tavily ecosystem scan on 2026-05-04 surfaced getagentseal/codeburn: https://github.com/getagentseal/codeburn
  • The search snippet describes token usage, cost, and performance tracking across 16 AI coding tools.
  • The snippet says CodeBurn reads session data directly from disk, prices calls with LiteLLM, and reports spending by task type, model, tool, project, and provider.
  • The same Tavily scan surfaced Anthropic issue #49588 requesting programmatic Claude Code session token usage for cost attribution: [FEATURE] Expose session token usage to MCP servers and hooks for cost attribution anthropics/claude-code#49588
  • That issue describes phase-level token measurement needs for agentic development workflows and notes that debug logs / OpenTelemetry contain usage and cost fields, but require extra plumbing.
  • Duplicate check for cost attribution token cost coding tools local session found no exact open issue.

User value

Users evaluating agent sessions may need to explain not only whether a session was unhealthy or failure-prone, but also which tool, model, project, phase, or workflow drove spend across a local coding-agent stack.

Adoption rationale

Tracking this signal helps agenttrace keep its Cost Audit and Developer experience positioning precise. It may inform future report fields, parser metadata, or docs language without turning agenttrace into a full budget management product.

Suggested scope

  • Keep as radar until there is user evidence that cost attribution should become a first-class agenttrace workflow.
  • Compare current JSON/HTML overview fields against the attribution dimensions surfaced by adjacent tools: provider, tool, model, project, task type, and phase.
  • If promoted, split into a focused product/parser issue such as clearer provider/model fields in JSON exports or a report section for top cost drivers.
  • Prefer local session evidence and existing report outputs before adding external pricing or budgeting features.

Non-goals

  • Do not add a billing dashboard from this radar item.
  • Do not add remote telemetry, hosted storage, or account-level spend tracking.
  • Do not change current cost calculations without a separate compatibility and pricing-source review.
  • Do not claim exact cost attribution where upstream session logs only support estimates.

Acceptance criteria

  • Maintainer decides whether this remains radar, informs docs/positioning, or becomes a focused product/parser task.
  • Any promoted work names the minimum attribution dimension needed by users.
  • Follow-up work preserves local-first privacy and keeps estimated-cost wording precise.
  • Related adjacent tools and upstream usage-signal gaps are recorded before implementation begins.

Suggested lane

lane/radar, priority/P2, status/needs-human

Risk

Medium. Cost attribution is valuable but can sprawl into pricing engines and budget management. The low-risk path is to track the signal and only promote narrow report/export improvements with evidence.

Source

source/radar: Tavily ecosystem scan and duplicate check on 2026-05-04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lane/radarResearch and routing from ecosystem radarpriority/P2Useful follow-up worksource/radarCreated or updated by ecosystem radarstatus/needs-humanNeeds maintainer/product decision

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions