Grok Plugin Claude Code banner
zachdunn zachdunn

Grok Plugin Claude Code

Development community

Description

A lightweight Grok plugin for Claude Code — delegate coding and review tasks to the Grok CLI. A simple reimplementation of OpenAI's codex-plugin-cc.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

grok-plugin-claude-code

A lightweight [Claude Code](https://claude.com/claude-code) plugin that lets you delegate coding, debugging, and review tasks to the [Grok CLI](https://grok.com) — spawn a `grok-rescue` subagent or run `/grok-cc:rescue ` and Grok works the problem as a parallel agent.

This is essentially a simple, unofficial reimplementation of OpenAI's [`codex-plugin-cc`](https://github.com/openai/codex-plugin-cc) — same shape (a thin forwarder subagent + slash commands + a companion runtime), pointed at the Grok CLI instead of Codex. It is intentionally leaner: it wraps Grok's one-shot headless mode rather than a long-running app-server, so there is no tracked-job registry / status / result / cancel surface.

What you get

Component What it does
grok-rescue subagent Thin forwarder. Hand it a substantial task (via the Agent tool / @grok-rescue) and it delegates to Grok.
/grok-cc:rescue One-shot delegation with optional routing flags.
/grok-cc:setup Verifies the Grok CLI is installed and signed in.
grok-cli-runtime skill Reference for how the companion drives Grok.
grok-companion.mjs The runtime that wraps grok -p --output-format json.

Requirements

  • Grok CLI access. This plugin drives xAI's Grok CLI ("grok build"), which requires access — see x.ai/cli. Without it the plugin has nothing to delegate to.
  • The grok CLI on your PATH (or at ~/.grok/bin/grok; override with the GROK_BIN env var).
  • Signed in: grok login.
  • Node (used to run the companion script).

Delegation sends your prompt and any code Grok reads to xAI's backend — the same external-service caveat as any cloud coding agent.

Install

From within Claude Code:

/plugin marketplace add zachdunn/grok-plugin-claude-code
/plugin install grok-cc@grok-plugin-claude-code

Or with the CLI:

claude plugin marketplace add zachdunn/grok-plugin