feat: Top level built-in command: /tokens #2060

Closed
opened 2026-02-16 17:33:59 -05:00 by yindo · 2 comments
Owner

Originally created by @taqtiqa-mark on GitHub (Oct 12, 2025).

Given I am in an active session.
And given the primary agent has `token_reports: true`
When I use the top level built in `/tokens`
Then I see the table of token usage:
| Session | Command | Agent | Model | T Sent | T Received | T Total | Sent Cost Guesstimate | Received Cost Guesstimate | Total Cost Guestimate |
Originally created by @taqtiqa-mark on GitHub (Oct 12, 2025). ```gherkin Given I am in an active session. And given the primary agent has `token_reports: true` When I use the top level built in `/tokens` Then I see the table of token usage: | Session | Command | Agent | Model | T Sent | T Received | T Total | Sent Cost Guesstimate | Received Cost Guesstimate | Total Cost Guestimate | ```
yindo closed this issue 2026-02-16 17:33:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 12, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1634: [Feature Request] Track Overall Token Usage (Usage Stats) - requests slash command (e.g. /usage or /stats) for token usage tracking
  • #1990: [Feature Request] Add User Controls for Context Management - specifically requests /tokens command for token usage breakdown

Both of these existing issues request very similar functionality to what you're proposing with the /tokens command.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 12, 2025): This issue might be a duplicate of existing issues. Please check: - #1634: [Feature Request] Track Overall Token Usage (Usage Stats) - requests slash command (e.g. /usage or /stats) for token usage tracking - #1990: [Feature Request] Add User Controls for Context Management - specifically requests /tokens command for token usage breakdown Both of these existing issues request very similar functionality to what you're proposing with the /tokens command. Feel free to ignore if none of these address your specific case.
Author
Owner

@taqtiqa-mark commented on GitHub (Oct 12, 2025):

Closing in favor of #1634

@taqtiqa-mark commented on GitHub (Oct 12, 2025): Closing in favor of #1634
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2060