Skip to content

Feature Request: Token Usage Tracking and Warnings #1703

@pwgseml

Description

@pwgseml

It would be great to have visibility into token usage during a Goose session, specifically:

  1. Track and display the number of tokens used in the current session
  2. Implement warning system for high token usage that might lead to problems
  3. Potentially show:
    • Current token count for the session
    • Token usage per interaction
    • Warnings when approaching model context limits
    • Estimated cost (if applicable)

This would help users:

  • Monitor resource usage
  • Avoid unexpected cutoffs due to context limits
  • Better manage costs when using paid models
  • Optimize their interactions for token efficiency

The warnings could be configurable based on the model being used, since different models have different context limits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationprovide explanation for goose's behaviorenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions