Skip to content

Statusline reports session cost to AI Maestro metrics - #25

Merged
jpelaez-23blocks merged 1 commit into
mainfrom
feat/statusline-cost-report
Aug 19, 2026
Merged

Statusline reports session cost to AI Maestro metrics#25
jpelaez-23blocks merged 1 commit into
mainfrom
feat/statusline-cost-report

Conversation

@jpelaez-23blocks

Copy link
Copy Markdown
Contributor

The statusline already reads cost.total_cost_usd; now it PATCHes it to /api/agents/<id>/metrics so the agent's API Cost tile reflects real usage. Best-effort, backgrounded, monotonic (reports only on cost growth to avoid per-render spam). Pairs with AI Maestro's existing (previously unfed) metrics UX.

🤖 Generated with Claude Code

The statusline already reads the session's cumulative cost (cost.total_cost_usd);
now it PATCHes it to /api/agents/<id>/metrics so the agent's "API Cost" tile
reflects real usage. Best-effort, backgrounded, 2s timeout, never blocks the
render. Monotonic guard (only reports when cost grows) avoids per-render spam and
prevents the value dipping when a new session starts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jpelaez-23blocks
jpelaez-23blocks merged commit 543232b into main Aug 19, 2026
2 checks passed
@jpelaez-23blocks
jpelaez-23blocks deleted the feat/statusline-cost-report branch August 19, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant