Skip to content

Show classifier cost in the auto-mode status line - #62

Open
bsamek wants to merge 1 commit into
czottmann:mainfrom
bsamek:feat/classifier-cost-status-line
Open

bsamek wants to merge 1 commit into
czottmann:mainfrom
bsamek:feat/classifier-cost-status-line

Conversation

@bsamek

@bsamek bsamek commented Sep 23, 2026 •

Copy link
Copy Markdown

Summary

  • Accumulate classifier usage cost from fast, detailed, and retry responses across the current session.
  • Show the total in the AM status line after the first classifier call, and expose it through status inspection.
  • Persist and restore the total with session state, default older persisted entries to zero, and clear it with /automode reset.
  • Document the status-line field and add coverage for multi-call/retry aggregation, restore compatibility, formatting, and reset.

This PR contains only the cost/status-line feature; classifier reasoning changes remain in #58.

Validation

  • npm run check — passed.
  • Targeted status and hook tests — 12 passed.
  • npm pack --dry-run — passed.
  • Full npm test — 316 passed, 2 failed, 1 skipped. The two failures are the hard-deny/path-normalization assertions in tests/hard-deny.test.ts and tests/hook-path-policy.test.ts; the same failures occurred on this machine before implementation.

@bsamek
bsamek marked this pull request as ready for review September 23, 2026 14:08
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