implement

implement is a command for Claude Code from davit-khaburdzania/grok-plugin-cc. It costs 28 tokens per session (1,506 once invoked), scanned A, original, Apache-2.0.

A command that has Claude create an implementation plan, asks Grok to make the code changes, and then checks the result. Grok is used as the implementation worker while Claude plans and verifies.

In plain words
What is it for?
Use it to delegate feature work or fixes to Grok while keeping a plan-and-check workflow. It supports waiting for completion, launching in the background, and continuing a previous implementation session.
Why use it?
It separates planning, editing, and verification so the requested change can be reviewed after implementation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the grok plugin — 3 skills, 10 commands, 1 agent, 3 hooks shipped together

Good fit Use it to delegate feature work or fixes to Grok while keeping a plan-and-check workflow. It supports waiting for completion, launching in the background, and continuing a previous implementation session.

Compare 6 commands from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add davit-khaburdzania/grok-plugin-cc
Claude Code
/plugin install grok

Made for: Claude Code.

Or install grok, the plugin that ships this one along with the rest of its 3 skills, 10 commands, 1 agent, 3 hooks.

Wrote 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.

agentmods badge for implement

README.md
[![agentmods](https://agentmods.dev/badge/commands/davit-khaburdzania/grok-plugin-cc/implement.svg)](https://agentmods.dev/commands/davit-khaburdzania/grok-plugin-cc/implement)
Your own site
<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>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,506 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 7d ago against content hash c52c656c1471, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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.

plugins/grok/commands/implement.md · 107 lines

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 AskUserQuestion only 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-subagents only when the user asked for them.
  • The command prints the job id (impl-...). Remember it.
  • For --resume, use the same command with --resume-last and 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 Write and 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 is queued or running.
  • 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:

Read the full file on GitHub · 107 lines

Changes

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.

  1. 7d ago First seen · 107 lines · 28 tokens per session scan A c52c656c1471

Subscribe to this mod's changes

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.