feat(budget): add cost reporting to agents plan status and agents session show CLI output #10145

Open
opened 2026-04-17 03:57:02 +00:00 by HAL9000 · 0 comments
Owner

Background

Cost visibility in CLI output allows users to monitor spending without querying external dashboards. Adding cost reporting to agents plan status and agents session show commands surfaces token usage and estimated costs directly in the developer workflow, enabling informed decisions about plan complexity and model selection.

Acceptance Criteria

  • agents plan status shows token usage and estimated cost for the plan
  • agents session show shows cumulative token usage and cost for the session
  • Cost display formatted as $X.XXXX USD with token breakdown
  • Cost reporting disabled gracefully when CostTracker not configured
  • Test coverage >= 97%

Metadata

  • Commit Message: feat(budget): add cost reporting to agents plan status and agents session show CLI output
  • Branch: feature/v3.6.0/cost-reporting-cli
  • Milestone: v3.6.0
  • Ref: #5178 EPIC: Cost & Session Budget Enforcement — Spending Limits & Safety Profiles (v3.6.0)

Subtasks

  • Add cost fields to plan status data model
  • Update agents plan status command to display cost information
  • Add cumulative cost fields to session data model
  • Update agents session show command to display cost information
  • Write unit tests for cost display formatting

Definition of Done

  • Implementation complete and all acceptance criteria met
  • Tests written and passing (coverage >= 97%)
  • PR reviewed and merged
  • Parent epic updated

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Background Cost visibility in CLI output allows users to monitor spending without querying external dashboards. Adding cost reporting to `agents plan status` and `agents session show` commands surfaces token usage and estimated costs directly in the developer workflow, enabling informed decisions about plan complexity and model selection. ## Acceptance Criteria - [ ] `agents plan status` shows token usage and estimated cost for the plan - [ ] `agents session show` shows cumulative token usage and cost for the session - [ ] Cost display formatted as `$X.XXXX USD` with token breakdown - [ ] Cost reporting disabled gracefully when CostTracker not configured - [ ] Test coverage >= 97% ## Metadata - **Commit Message**: `feat(budget): add cost reporting to agents plan status and agents session show CLI output` - **Branch**: `feature/v3.6.0/cost-reporting-cli` - **Milestone**: v3.6.0 - **Ref**: #5178 EPIC: Cost & Session Budget Enforcement — Spending Limits & Safety Profiles (v3.6.0) ## Subtasks - [ ] Add cost fields to plan status data model - [ ] Update `agents plan status` command to display cost information - [ ] Add cumulative cost fields to session data model - [ ] Update `agents session show` command to display cost information - [ ] Write unit tests for cost display formatting ## Definition of Done - Implementation complete and all acceptance criteria met - Tests written and passing (coverage >= 97%) - PR reviewed and merged - Parent epic updated --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#10145
No description provided.