Skip to content

[FEATURE]: Expose hooks for modifying API usage and context window display #8791

Description

@spencer-cc

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Expose plugin usable hooks for modifying or replacing the text found in the context display (in sidebar or upper right corner if sidebar disabled).

ex:
Image

I use a subscription based provider that has rate limits which reset every few hours, I therefore do not need pricing information for the session, but would rather have a percentage of my rate limit displayed.

All that is needed for myself and others to customize this display are hooks for replacing the generation of this text with our own function, and for controlling when the display refreshes (interval or on event).

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 16, 2026
  2. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

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

    • [FEATURE]: Native StatusLine Hook for Plugins (Context-Free Display) #8619: Native StatusLine Hook for Plugins (Context-Free Display) - Proposes exposing plugin hooks for displaying persistent contextual information like cost, context %, and model info without consuming context tokens. This directly addresses your use case of displaying rate limit percentage instead of pricing information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions