Repository navigation
Add Grok Bot's weekly limit to the agents panel - #14563
Open
rlimberger wants to merge 1 commit into
Open
rlimberger wants to merge 1 commit into
rlimberger wants to merge 1 commit into
Conversation
Contributor
|
rlimberger
force-pushed
the
feat/agent-usage-grokbot
branch
from
October 8, 2026 09:28
190203c to
16fc962
Compare
Grok Bot runs on a Cursor account, but its weekly allowance is metered apart from Cursor's plan, by the dashboard's GetSandUsageStatus RPC. A grokbot collector asks it with the Cursor CLI's sign-in, or the editor's, and writes a limits-only record; an account without a Grok Bot allowance gives an empty one, so the panel only shows Grok Bot to people who have it. A failed check keeps the last limit, dimmed, until its week ends. No panel changes: the collector and its mark are picked up by convention. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rlimberger
force-pushed
the
feat/agent-usage-grokbot
branch
from
October 8, 2026 09:39
16fc962 to
0216324
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Grok Bot runs on a Cursor account, but its weekly allowance is metered apart from Cursor's own plan, by the dashboard's
GetSandUsageStatusRPC. This adds agrokbotcollector for it, so Grok Bot gets its own section in the agents panel: its mark, plan, and a Weekly meter with the time to reset.New files only, no changes to the panel: the collector and its mark are picked up by convention, as the plugin README describes.
bin/omarchy-agent-usage-grokbot— asks as the same account the Cursor collector in Add every coding agent and provider to the agents panel and the default agent #14040 reads, in the same order (CURSOR_API_KEY, the Cursor CLI'sauth.json, the editor'sstate.vscdb), so the two sections always describe the same person. A Cursor account without a Grok Bot allowance gives an empty record, so the panel only shows Grok Bot to people who have it. A failed check keeps the last limit, dimmed, until its week ends.shell/plugins/agents/assets/grokbot.svg,grokbot-light.svg— the mark, with a twin for light surfaces.test/shell.d/agent-usage-grokbot-test.sh— stubs the RPC, in the style of the Grok collector's test.With #14040: standalone, but made to sit beside it. They share no files (no merge conflicts either way), keep separate caches and records, and never count the same thing twice: Grok Bot's record carries only its weekly limit, no tokens, while Cursor's section keeps the account's plan meters and token history.
Tested against a live account: the record matches the weekly percentage and reset Grok Bot's own clients report, and the panel shows it alongside #14040's Cursor section.
🤖 Generated with Claude Code