Collaborating with Grok (Grok CLI bridge)
Delegate prototyping, debugging, code review and live web/X research to xAI's Grok CLI from Claude Code, with structured JSON results and multi-turn sessions.
Dev & CodingAdvanced★ 130⑂ 17AI score 9/10Last updated: Aug 17, 2026
What it does
- Drives
grok -pheadlessly throughscripts/grok_bridge.py, streaming progress to stderr and returning structured JSON (success,complete,model,SESSION_ID,tool_counts). - Keeps multi-turn continuity via
--SESSION_ID(resume),--session-id(new named session) and--continue. - Defines explicit safety postures: read-only review (
--tools "read_file,grep,list_dir"), web/X research (deny shell + edit tools), and implementation (isolated worktree +--always-approve, only with user consent). - Enables live web and X search through the coding model's backend
web_search(defaultgrok-4.5as of CLI 0.2.93).
Who it's for
- Developers who want a cross-model second opinion on designs, patches or bug hypotheses.
- Teams offloading large repo analysis to a parallel agent with a read-only allowlist.
- Anyone needing fresh web/X research inline with coding work.
Examples
- Read-only review:
--cd "." --tools "read_file,grep,list_dir" --PROMPT "Review login() in src/auth.py and propose the smallest safe fix as a unified diff". - Live research:
--model grok-4.5 --disallowed-tools "run_terminal_cmd,search_replace" --PROMPT "Search web and X for <question>, cite source URLs". - Two-turn flow: analyze a bug in turn 1, then reuse the returned
SESSION_IDto request the patch in turn 2.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/appautomaton/agent-designer/HEAD/skills/collaborating-with-grok/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/collaborating-with-grok folder from the GitHub repo appautomaton/agent-designer into my ~/.claude/skills/collaborating-with-grok/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/appautomaton/agent-designer.git /tmp/agent-designer && mkdir -p ~/.claude/skills && cp -r /tmp/agent-designer/skills/collaborating-with-grok ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Install and authenticate Grok CLI first: run
grok loginor exportXAI_API_KEY. - Clone the repo:
git clone https://github.com/appautomaton/agent-designer.git - Copy the skill:
mkdir -p ~/.claude/skills && cp -r agent-designer/skills/collaborating-with-grok ~/.claude/skills/ - Pre-authorize the bridge in Claude Code by adding
"Bash(python3 *collaborating-with-grok*bridge.py*)"topermissions.allow(and tosandbox.excludedCommandson sandboxed hosts so the child CLI keeps network access). - Verify:
python3 ~/.claude/skills/collaborating-with-grok/scripts/grok_bridge.py --help, then--list-modelsshould returnsuccess: true. - Restart Claude Code and ask something like "get a second opinion from Grok on this module" to trigger the skill.