[PR #6492] docs: for stats --models flag #11932

Closed
opened 2026-02-16 18:16:52 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6492

State: closed
Merged: Yes


Findings

  • 734962675 feat: add model usage statistics... adds a new user-facing CLI flag: opencode stats --models[=N], showing per-model messages, input/output tokens, and cost.

    • Docs previously covered stats, but not the new --models flag.
    • Updated docs: packages/web/src/content/docs/cli.mdx:400 (added --models to flags table + examples).
  • 76c25ef28 feat(format): add rustfmt formatter... is already documented.

    • Confirmed: packages/web/src/content/docs/formatters.mdx:1 includes a rustfmt row.
  • 7adb6e495 feat(desktop): upgrade to latest version on error page is user-visible (adds “Check for updates” / “Update to X” on the desktop error page), but it’s a small UX enhancement and doesn’t seem to warrant dedicated docs in packages/web/src/content/docs/* right now.

Doc changes made

  • packages/web/src/content/docs/cli.mdx:400
    • Documented opencode stats --models and opencode stats --models 5 with a short example block.

Triggered by scheduled workflow

New%20session%20-%202025-12-31T00%3A26%3A33.004Z
opencode session  |  github run

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6492 **State:** closed **Merged:** Yes --- **Findings** - `734962675 feat: add model usage statistics...` adds a new user-facing CLI flag: `opencode stats --models[=N]`, showing per-model messages, input/output tokens, and cost. - Docs previously covered `stats`, but not the new `--models` flag. - Updated docs: `packages/web/src/content/docs/cli.mdx:400` (added `--models` to flags table + examples). - `76c25ef28 feat(format): add rustfmt formatter...` is already documented. - Confirmed: `packages/web/src/content/docs/formatters.mdx:1` includes a `rustfmt` row. - `7adb6e495 feat(desktop): upgrade to latest version on error page` is user-visible (adds “Check for updates” / “Update to X” on the desktop error page), but it’s a small UX enhancement and doesn’t seem to warrant dedicated docs in `packages/web/src/content/docs/*` right now. **Doc changes made** - `packages/web/src/content/docs/cli.mdx:400` - Documented `opencode stats --models` and `opencode stats --models 5` with a short example block. Triggered by scheduled workflow <a href="https://opencode.ai/s/pW3I0IkQ"><img width="200" alt="New%20session%20-%202025-12-31T00%3A26%3A33.004Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTEyLTMxVDAwOjI2OjMzLjAwNFo=.png?model=opencode/gpt-5.2&version=1.0.218&id=pW3I0IkQ" /></a> [opencode session](https://opencode.ai/s/pW3I0IkQ)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/20608949588)
yindo added the pull-request label 2026-02-16 18:16:52 -05:00
yindo closed this issue 2026-02-16 18:16:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11932