feat: add Grok CLI support at parity with Claude Code and Codex#98
Open
gi11es wants to merge 2 commits into
Open
feat: add Grok CLI support at parity with Claude Code and Codex#98gi11es wants to merge 2 commits into
gi11es wants to merge 2 commits into
Conversation
Adds grok as a third first-class agent tab kind: - New Grok tabs, resume, and whole-session fork (grok --resume [--fork-session]) - Session discovery/timelines from ~/.grok/sessions (summary.json, prompt_history.jsonl), status badges from events.jsonl turn events, context usage from signals.json - Poll-based session-id discovery (Grok holds no session file open, so lsof-based discovery is not possible) - GrokCLIFlags autocomplete, settings section, badge colors, menus, shortcuts (Cmd+Ctrl+T), per-workspace default args - Fork-at-point is gated off for Grok: its multi-file session format cannot be truncated safely Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
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.
Adds Grok CLI as a third first-class agent tab kind, mirroring the existing Claude Code and Codex integrations end to end.
What's included
+button Option+Shift-click, Cmd+Ctrl+T shortcut), resume, and whole-session fork viagrok --resume <id> [--fork-session]~/.grok/sessions/<percent-encoded-cwd>/<uuid>/—summary.jsonfor metadata, the sharedprompt_history.jsonlfor first-message/timelines, matching workspace dirs by percent-decoding (sidesteps reproducing the CLI's encoding alphabet)turn_started/turn_endedevents inevents.jsonl, with colors/shapes/blink configurable in Settingssignals.json(contextTokensUsed/contextWindowTokens) — something Codex tabs can't showgrok --helpflag autocomplete via the sharedCLIHelpParser, per-workspace "Default Grok Arguments…"defaultGrokArgsper workspace, tab kind round-trips instate.json, session-name cache and bookmarks namespaced asgrok:<id>, restore-time session-id recoveryTabKind.supportsForkAtPoint— Grok's session spans several interdependent files (chat_history,updates,events) and cannot be truncated safelyTesting
e2e.yml) on this branch: all scenarios pass (startup, ping, hijack rejection, SIGPIPE hammer) — run 29165285927~/.grok/sessionsdata (grok 0.2.93)🤖 Generated with Claude Code