Repository navigation
Bring Grok up to par with Claude and Codex in the agents panel - #13992
Merged
Merged
Conversation
Grok's npm launcher runs ~/.grok/bin/grok whenever it exists, and the install script that repoints it at a new release doesn't run under mise, so every machine kept running the release it first unpacked. Updating mise tools now drops a link to an older release and the old binary, and lets the launcher unpack the installed one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Grok honors GROK_HOME, so an added Grok account gets its own home holding only its login and settings cache, with the CLI binary, sessions, skills, plugins, memory, and config linked back to ~/.grok. The account commands, the add flow (a second account signs in through a private window), the launcher, and a grok shell function all take it like the others, and its identity and plan come from the files Grok writes at login. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A grok collector reads each account's plan from the settings Grok caches and its credits from the endpoint behind Grok's own /usage view, so Grok gets a section, per-account limits, and autoswitch like Claude and Codex. A signed-in agent with a plan now shows before its first numbers, so a lapsed sign-in has somewhere to say so. Grok's mark joins the assets, and with every agent able to take another account the add screen no longer needs to dim one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The answer nests under config, names a weekly period with its end, and as protobuf JSON leaves the usage percentage out while it's zero. The collector now reads that shape, so a fresh week shows as 0% until it resets rather than as nothing known. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Grok keeps a summary beside each session with when it was last active and how many prompts it had, so its section and the hero's summary get today's prompts and sessions and its active days. It records no token counts there, so none are claimed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two overlapping collector runs wrote the same cache through one .tmp path, so one rename could leave the other's failing and its record not updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The launcher and the CLI honor GROK_HOME, but the collector always read ~/.grok, so a Grok signed in only in a custom home showed nothing. With one account, the collector now reads the home the CLI would; with several registered, the primary stays ~/.grok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The collector carried fallbacks for fields and shapes guessed from the binary before xAI's actual answer was seen, a numeric timestamp branch nothing writes, the panel's default for prompt stats, and guards that an empty sign-in already covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The update dropped the link and older binaries before the new release was unpacked and ignored a failed unpack, which could leave every Grok account without a CLI. The old release now stays until the new one is linked, and its link comes back if it never is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A session's summary holds all its prompts and only when it was last active, so a resumed session put its whole history on today. Today now counts the sessions active in it; prompts stay an all-time total. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Opening the panel and near-limit checks only need fresh limits, so they reuse a scan up to 15 minutes old, as the Codex collector does; --force still rescans. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
buger
added a commit
to probelabs/omarchy
that referenced
this pull request
Oct 1, 2026
Upstream omacom/omarchy quattro moved c05d901 -> f45461a (omacom#13992, Grok in the agents panel). It touches no menu or lock file this proof layer covers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Member
|
@omarchybot there are many PRs adjacent or duplicated by this. We should look for things to include in follow ups or close out PRs and issues that are stale now. |
2 tasks done
This was referenced Oct 2, 2026
This was referenced Oct 2, 2026
sgruendel
pushed a commit
to sgruendel/omarchy
that referenced
this pull request
Oct 3, 2026
…m#13992) * Let Grok updates through mise take effect Grok's npm launcher runs ~/.grok/bin/grok whenever it exists, and the install script that repoints it at a new release doesn't run under mise, so every machine kept running the release it first unpacked. Updating mise tools now drops a link to an older release and the old binary, and lets the launcher unpack the installed one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep several Grok accounts, the way Claude and Codex do Grok honors GROK_HOME, so an added Grok account gets its own home holding only its login and settings cache, with the CLI binary, sessions, skills, plugins, memory, and config linked back to ~/.grok. The account commands, the add flow (a second account signs in through a private window), the launcher, and a grok shell function all take it like the others, and its identity and plan come from the files Grok writes at login. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Show Grok's plan and credits in the agents panel A grok collector reads each account's plan from the settings Grok caches and its credits from the endpoint behind Grok's own /usage view, so Grok gets a section, per-account limits, and autoswitch like Claude and Codex. A signed-in agent with a plan now shows before its first numbers, so a lapsed sign-in has somewhere to say so. Grok's mark joins the assets, and with every agent able to take another account the add screen no longer needs to dim one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Document Grok accounts and limits alongside Claude and Codex Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Read Grok's credits the way xAI actually answers The answer nests under config, names a weekly period with its end, and as protobuf JSON leaves the usage percentage out while it's zero. The collector now reads that shape, so a fresh week shows as 0% until it resets rather than as nothing known. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Count Grok's prompts and sessions from its session summaries Grok keeps a summary beside each session with when it was last active and how many prompts it had, so its section and the hero's summary get today's prompts and sessions and its active days. It records no token counts there, so none are claimed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Give each Grok limits cache write its own temporary file Two overlapping collector runs wrote the same cache through one .tmp path, so one rename could leave the other's failing and its record not updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Read a single Grok account from GROK_HOME when it's set The launcher and the CLI honor GROK_HOME, but the collector always read ~/.grok, so a Grok signed in only in a custom home showed nothing. With one account, the collector now reads the home the CLI would; with several registered, the primary stays ~/.grok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop guesses the real Grok credits answer made unnecessary The collector carried fallbacks for fields and shapes guessed from the binary before xAI's actual answer was seen, a numeric timestamp branch nothing writes, the panel's default for prompt stats, and guards that an empty sign-in already covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep the working Grok release until its update is in place The update dropped the link and older binaries before the new release was unpacked and ignored a failed unpack, which could leave every Grok account without a CLI. The old release now stays until the new one is linked, and its link comes back if it never is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Count only Grok sessions for today, not prompts A session's summary holds all its prompts and only when it was last active, so a resumed session put its whole history on today. Today now counts the sessions active in it; prompts stay an all-time total. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Reuse the Grok session scan on a limits-only refresh Opening the panel and near-limit checks only need fresh limits, so they reuse a scan up to 15 minutes old, as the Codex collector does; --force still rescans. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
20 of 34 tasks
4 tasks
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 was only half wired in: it could sign in its first account and launch, but had no usage collector, no icon, refused a second account, and none of the account commands took it. This makes it a full provider alongside Claude and Codex.
Accounts
Grok honors
GROK_HOME, so an added Grok account gets its own home under~/.local/state/omarchy/agents/accounts/grok/<id>/, holding only its login (auth.json) and the settings it caches. Everything else links back to~/.grok: the CLI binary itself (so no account unpacks its own 160MB copy), sessions, skills, agents, plugins, hooks, memory, rules, commands, workflows, and config files.omarchy agent accountcommand takesgrok. A second Grok account signs in through a private window, like the others.omarchy agentand a newgrokshell function start as the active Grok account; an explicitGROK_HOMEstill wins.auth.json(user id, email), the plan fromsettings_cache.json(subscription_tier_display, e.g. "X Premium+").Usage
omarchy-agent-usage-grok:https://cli-chat-proxy.grok.com/v1/billing?format=credits, the endpoint Grok's own/usageview reads, with that account's sign-in. The answer is protobuf JSON underconfig, with a weeklycurrentPeriod; the usage percentage is left out while it's zero, so a fresh week reads as 0% rather than nothing known. Verified against a live account.summary.json. Grok records neither token counts nor when each prompt was sent there, so neither tokens nor today's prompts are claimed. A limits-only refresh reuses a scan up to 15 minutes old.GROK_HOMEwhen set, as the CLI does.The panel shows a signed-in agent that has a plan even before its first numbers arrive, so a lapsed sign-in has somewhere to say so. Grok's mark joins the assets. With every agent able to take another account, the add screen no longer dims one.
Ordering the agents
The agents in the panel can be put in any order: drag one by its mark (the mark it would land on lights, and the move happens on release), or put the cursor on an agent's header, now a keyboard stop with its mark boxed, and press Ctrl+Up/Down. The order is kept in
~/.local/state/omarchy/agents/order.json. The shared key catcher only turns Ctrl+Up/Down into a reorder for panels that opt in.Grok updates
Grok's npm launcher runs
~/.grok/bin/grokwhenever it exists, and the install script that repoints it at a new release doesn't run under mise, so machines kept running whichever release they first unpacked (this one was on 1.0.30 with 1.0.44 installed).omarchy-update-misenow has the launcher unpack the installed release, and only then drops the old binary; if the unpack fails, the old release stays linked. Note that mise's npmlatestfor Grok currently reports itself as the alpha channel.Tests
agent-usage-grok-test.sh(plan, credits shape, zero percentage, lapsed sign-in, accounts,GROK_HOME, session stats) andupdate-mise-grok-test.sh;agent-account-test.shcovers adding, listing, and launching a second Grok account../test/clipass, apart fromvscode generated theme references current theme file, which fails the same way onquattro.codex review --base quattro(both findings fixed) and Greptile (three fixed; an explicitGROK_HOMEalongside registered accounts follows the registry, as Claude and Codex do).🤖 Generated with Claude Code