Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add davit-khaburdzania/grok-plugin-cc/plugin install grokWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/davit-khaburdzania/grok-plugin-cc/implement)<a href="https://agentmods.dev/commands/davit-khaburdzania/grok-plugin-cc/implement"><img src="https://agentmods.dev/badge/commands/davit-khaburdzania/grok-plugin-cc/implement.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.01506 |
| Opus 5 | $0.00014 | $0.00753 |
| Sonnet 5 | $0.00006 | $0.00301 |
| Haiku 4.5 | $0.00003 | $0.00151 |
Grade A, and why
implement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Run the plan-big, execute-small loop with Grok as the worker. You (Claude) are the planner and the verifier. Grok implements.
Raw user request:
$ARGUMENTS
Roles and hard rules:
- Do not implement the change yourself. Your job is to investigate, write the plan, launch Grok, wait, verify, and report.
- Grok runs write-capable (
--sandbox workspace) in the repository. It edits files directly in the working tree. - Never fix Grok's code silently. If verification fails, send a follow-up to the same Grok session (see step 5) or ask the user.
- If the helper reports that Grok is missing or unauthenticated, stop and tell the user to run
/grok:setup. - If the user did not supply a request, ask what Grok should implement.
Flags (strip them from the request text; do not forward unknown flags to the helper):
--background: launch only. Do not wait or verify. Tell the user the job id and how to continue.--wait(default when neither flag is present): launch, wait, verify, report.--resume: follow-up for the latest Grok implement session in this repo. Skip the full plan; write concise follow-up instructions instead, and launch with--resume-last.--fresh: always start a new Grok session.--verify-only [job-id]: skip planning and launch. Fetch the finished job (result [job-id]) and run step 5 and step 6 only.--no-verify: skip step 5.--model <model>,--effort <effort>,--no-subagents: pass through to the helper unchanged. Leave model and effort unset unless the user asked for them.
Step 1 - Plan:
- Investigate with
Read,Glob,Grep, and read-only git (git status --short,git log --oneline -20,git diff) until you can name the files, functions, and acceptance criteria. Do not solve the task yourself; stop investigating once the plan is concrete. - Use
AskUserQuestiononly when different readings of the request would lead to materially different work. - Write the plan in this Markdown shape and keep it under 150 lines:
# Plan: <short title>
## Goal
One or two sentences.
## Context
What exists today that matters: files with paths, functions, conventions, existing tests.
## Steps
1. <file path>: <exact change>. Each step must be independently checkable.
2. ...
## Out of scope
What Grok must not touch or change.
## Verification
Exact commands to run (for example `npm test`, `npx tsc --noEmit`) and any manual checks.
## Acceptance criteria
- ...
Step 2 - Launch Grok (always in the background so Claude Code's Bash timeout cannot kill a long run):
node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" implement --background --title "<short title>" --verify "<verification command>" - <<'PLAN'
<the plan from step 1>
PLAN
- Repeat
--verify "<command>"once per verification command from the plan. The helper adds them to the prompt as planner checks. - Add
--model,--effort, or--no-subagentsonly when the user asked for them. - The command prints the job id (
impl-...). Remember it. - For
--resume, use the same command with--resume-lastand put the follow-up instructions (what is wrong, where, what to do, what to rerun) in the heredoc instead of a full plan. - If the plan is too long for a heredoc, write it to a file with
Writeand pass--plan-file <path>instead of-.
Step 3 - Wait (skip when the user passed --background):
- Poll with the helper and a long Bash timeout:
Bash({
command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" status <job-id> --wait --timeout-ms 540000`,
description: "Wait for Grok implement job",
timeout: 600000
})
- The output shows the job line
- <job-id> | <status> | implement | .... Repeat the poll while the status isqueuedorrunning. - Stop polling after 12 rounds. Tell the user the job is still running and how to check with
/grok:status <job-id>and later/grok:implement --verify-only <job-id>. - Do not start other work between polls.
Step 4 - Fetch the report:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 107 lines · 28 tokens per session scan A c52c656c1471
implement is a command published in the GitHub repository davit-khaburdzania/grok-plugin-cc (1 stars, last pushed 19d ago), licensed Apache-2.0. It adds 28 tokens to every session and 1,506 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
rescue
Hand a question or code review to xAI's Grok via the grok-consult subagent.
worktree
List, diff, apply, remove, or prune Grok isolation worktrees.
delegate
Delegate a coding task to Grok.
memory
Manage Grok cross-session memory.
resume
Continue a prior Grok session (multi-turn resume).
review
Review Grok output (diff gate — never auto-commit).