Why can't Claude Code tell you what a feature actually cost across the sessions it took to build?

The /cost command only shows the current session; nothing persists or aggregates tokens, cost, or session count per project, so teams can't report or budget AI usage against real work.

Category: AI / Agents · Trend: LLM · Opportunity score: 7.5 / 10

What is the “Why can't Claude Code tell you what a feature actually cost across the sessions it took to build?” problem in 2026?

The /cost command only shows the current session; nothing persists or aggregates tokens, cost, or session count per project, so teams can't report or budget AI usage against real work.

Who has this problem?

Small dev teams and solo builders using Claude Code as their primary coding tool.

Recorded source context

Dataset source note: There's no way to see cumulative Claude Code usage across sessions for a given project. The /cost command shows current session usage, but nothing persists or aggregates.

This note may summarize the referenced material rather than quote it verbatim. Source label: anthropics/claude-code GitHub issue #34803, 16 Mar 2026, closed as not planned. (reference).

Existing players in this space

  • Claude Code /cost: Session-scoped only, resets on restart, no persistence.
  • Anthropic Console analytics: Org-level dashboards, not per-project or per-feature.
  • Manual token estimation: Users ask Claude itself to estimate, unreliable and not logged.

What existing players are missing

A lightweight local usage ledger that persists per-project tokens, cost, session count, and duration, exportable for PR descriptions, sprint reports, and CI dashboards.

How Real Problem AI scores this opportunity

Aggregate score: 7.5 / 10. Four-axis rubric:

  • Problem severity: 6 / 10
  • AI feasibility today: 9 / 10
  • Market signal: 7 / 10
  • Competition gap: 8 / 10

How to build a solution: stack hints

  • Claude Code hook/plugin API
  • Local SQLite or JSON usage store
  • CLI reporting commands
  • CI/PR template integration

Related AI / Agents problems on Real Problem AI