Grok Build + Warp
Warp terminal integration for SpaceXAI Grok Build (grok).
Published today from nwp/grok-build-warp (Nathan Phelps). The repo is intentionally Claude-plugin–shaped so Warp can fork or adopt it later as warpdotdev/grok-build-warp with a homepage/author retarget.
Features
Native notifications
Get native Warp notifications when Grok Build:
- Completes a task — with a short summary of Grok’s response
- Needs your input — when the agent has been idle and is waiting
- Hits an API error — rate limits and similar turn failures
Session status
Structured events keep Warp’s session UI in sync:
- Prompt submitted — user sent a prompt; Grok is working
- Tool completed — a tool call finished
- Session start — advertises this plugin’s version to Warp
Requirements
- Warp with Grok Build CLI agent support
- SpaceXAI Grok Build CLI (
grok)
jq (brew install jq or your package manager)
Installation
Marketplace (recommended)
grok plugin marketplace add nwp/grok-build-warp
grok plugin install warp --trust
Local checkout
git clone https://github.com/nwp/grok-build-warp.git
cd grok-build-warp
grok plugin validate plugins/warp
grok plugin install ./plugins/warp --trust
The installable unit is plugins/warp (plugin id warp). After install, restart Grok Build (exit and run grok again) so hooks load.
grok plugin list
grok plugin details warp
Direct GitHub install of the plugin subdirectory also works:
grok plugin install nwp/grok-build-warp#plugins/warp --trust
Uninstall
grok plugin uninstall warp --confirm
grok plugin marketplace remove grok-build-warp
Remove legacy Warp file-write hooks
Older Warp clients wrote hooks under ~/.grok/hooks/. Remove them or you may get double OSC events:
rm -f ~/.grok/hooks/warp-plugin.json \
~/.grok/hooks/warp-plugin.version \
~/.grok/hooks/bin/warp-plugin.sh \
~/.grok/hooks/warp-cli-agent.json \
~/.grok/hooks/bin/warp-cli-agent-bridge.sh
How it works
Hooks emit OSC 777 with title warp://cli-agent and a JSON body. Sequences go to stderr only so they do not interfere with Grok’s Stop-hook decision JSON on stdout.
| Field | Notes |
|---|
v | Protocol version (1), negotiated via WARP_CLI_AGENT_PROTOCOL_VERSION |
agent | Always "grok" (Warp CLI agent id) |
event | See table below |
session_id, cwd, project | From the hook envelope |
plugin_version | From plugin.json on session_start |
| Grok hook | JSON event |
|---|
| SessionStart | session_start |
| UserPromptSubmit | prompt_submit |
| PostToolUse | tool_complete |
| Stop | stop |
| StopFailure | stop_failure |
Notification (idle_prompt) | idle_prompt |
Grok does not document PermissionRequest, so this plugin does not register one.
Hook stdin accepts camelCase (Grok) and snake_case (compat).
Layout
.grok-plugin/marketplace.json # Grok catalog (name: grok-build-warp)
.claude-plugin/marketplace.json # Warp/Claude twin of the same catalog
plugins/warp/ # installable unit (name: warp)
plugin.json
hooks/hooks.json
scripts/ # OSC builders + per-hook handlers
tests/test-hooks.sh
Same monorepo shape as claude-code-warp. Grok prefers .grok-plugin/marketplace.json and then falls back to .claude-plugin/. Plugin manifests are probed as plugin.json, then .grok-plugin/plugin.json, then .claude-plugin/plugin.json. No plugin-index.json generator — Grok does not require one for a single-plugin self-hosted catalog.
The catalog lists warp as a local source. Grok 1.0.30 accepts both { "type": "local", "path": "./plugins/warp" } (used in .grok-plugin/) and the string "./plugins/warp" (used in .claude-plugin/, matching Warp’s Claude marketplace).
For Warp maintainers
When adopting this repo as warpdotdev/grok-build-warp:
-
Fork / transfer and retarget homepage, repository, author, and marketplace owner from nwp to Warp.
-
Point the Warp client Grok plugin installer at:
grok plugin marketplace add warpdotdev/grok-build-warp
grok plugin install warp --trust
or grok plugin install warpdotdev/grok-build-warp#plugins/warp --trust. Prefer this over writing files into ~/.grok/hooks/.
-
Keep version in plugins/warp/plugin.json in lockstep with Warp client MINIMUM_PLUGIN_VERSION for Grok.
-
Run tests before release:
bash plugins/warp/tests/test-hooks.sh
grok plugin validate plugins/warp