Skip to content

Add Grok Bot's weekly limit to the agents panel - #14563

Open
rlimberger wants to merge 1 commit into
omacom:quattrofrom
rlimberger:feat/agent-usage-grokbot
Open

rlimberger wants to merge 1 commit into
omacom:quattrofrom
rlimberger:feat/agent-usage-grokbot

Conversation

@rlimberger

@rlimberger rlimberger commented Oct 8, 2026 •

Copy link
Copy Markdown

Grok Bot runs on a Cursor account, but its weekly allowance is metered apart from Cursor's own plan, by the dashboard's GetSandUsageStatus RPC. This adds a grokbot collector 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.

Agents panel with Grok Bot's weekly limit beside Claude Code, Grok, and Cursor (#14040)

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's auth.json, the editor's state.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

@greptile-apps

greptile-apps Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds a new agent usage collector for Grok Bot.

The PR appears safe to merge; all four previous findings are addressed.

What we checked:

  • Empty accounts stay hidden: No. The collector sets ready to false when there are no limits, and the panel excludes records with no displayable data.

Summary

Adds a separate Grok Bot section to the agents panel through a new collector and matching marks.

  • Reads Cursor credentials and fetches Grok Bot's weekly allowance.
  • Keeps a failed check's cached limit dimmed only until its known reset.
  • Addresses all four previous findings.
  • No new actionable issues found. Tests were inspected, not run.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Cursor credentials] --> B[Grok Bot collector]
  B --> C[GetSandUsageStatus]
  C --> D[Live weekly limit]
  C --> E[Failed check]
  E --> F[Unexpired cached limit marked stale]
  D --> G[Usage record]
  F --> G
  G --> H[Agents panel]
Loading

Reviews (3) · Last reviewed commit: "Add Grok Bot's weekly limit to the agent..." · Reviewed by Greptile

Comment thread bin/omarchy-agent-usage-grokbot Resolved
Comment thread bin/omarchy-agent-usage-grokbot Resolved
Comment thread bin/omarchy-agent-usage-grokbot Resolved
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants