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

Closed
opened 2026-02-16 18:04:09 -05:00 by yindo · 1 comment
Owner

Originally created by @FreeSamples00 on GitHub (Jan 15, 2026).

Originally assigned to: @thdxr on GitHub.

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).

Originally created by @FreeSamples00 on GitHub (Jan 15, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] 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: <img width="1111" height="70" alt="Image" src="https://github.com/user-attachments/assets/f5d004ec-1cfe-4029-8a00-90eb566b4a9b" /> 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).
yindo added the discussion label 2026-02-16 18:04:09 -05:00
yindo closed this issue 2026-02-16 18:04:09 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 15, 2026):

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

  • #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.
@github-actions[bot] commented on GitHub (Jan 15, 2026): This issue might be a duplicate of an existing issue. Please check: - #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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6412