Skip to content

capacity: Show Mistral usage from the broker - #187

Merged
cgwalters-bot merged 1 commit into
mainfrom
capacity-mistral-usage
Oct 13, 2026
Merged

cgwalters-bot merged 1 commit into
mainfrom
capacity-mistral-usage

Conversation

@cgwalters-bot

@cgwalters-bot cgwalters-bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

The broker's /usage now has a mistral object with request and token counts since the broker started (no window). This shows them where inference capacity is shown:

  • bin/bot-capacity prints an unpaced mistral: N requests, T tokens since the broker started line and has mistral in --json.
  • bin/bot-heartbeat publishes {requests, tokens} as a top-level mistral key of the private bot-usage/v1 snapshot (outside pools), which the review dashboard reads. It is omitted when the broker has no mistral key (older broker).

Mistral is display only: not part of pacing or hold decisions.

Companion dashboard change: cgwalters-forge/review#56.

Tests: node --test tests/capacity.test.js tests/bot-heartbeat-usage.test.js tests/pools.test.js, bash tests/capacity.sh tests/bot-heartbeat-usage.sh tests/bot-heartbeat.sh.

Generated-by: https://github.com/cgwalters/#llms

The praxis broker now serves a mistral object beside anthropic and
codex. It has only request and token counters since the broker started,
no window, so there is no percent or pace to show and Mistral stays out
of the pacing and hold decisions: bot-capacity prints one unpaced line
and bot-heartbeat publishes the two counters in the private usage
snapshot, where the review app can read them. A broker without the key
yields nothing, not an error.

The broker is now fetched once per run and shared by the codex and
mistral readers.

Generated-by: AI
@cgwalters-bot
cgwalters-bot merged commit 53eb9cd into main Oct 13, 2026
4 checks passed
@cgwalters-bot
cgwalters-bot deleted the capacity-mistral-usage branch October 13, 2026 00:07
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