Skip to content

Feature Request: Usage statistics for q chat --non-interactive #3298

@msalexallen

Description

@msalexallen

I would like to be able to get the usage statistics after executing a non-interactive chat like I can with an interactive chat.

Ideally I could call q chat --no-interactive --trust-all-tools **--usage** 'how do you say hello in french?'

And be returned my response with the usage statistics run last ex:
Current context window (17640 of 200k tokens used)
███████ 8.82%

█ Context files: ~2540 tokens (1.27%)
█ Tools: ~2720 tokens (1.36%)
█ Q responses: ~500 tokens (0.25%)
█ Your prompts: ~11880 tokens (5.94%)

Or as a JSON object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions