mcp-grok-executor: Instructions file for Claude Code

CLAUDE.md

mcp-grok-executor CLAUDE.md is an instructions file for Claude Code from emigrete/mcp-grok-executor. It costs 571 tokens per session, scanned A, original, MIT.

Project instructions for using Claude Code as a planning and review assistant while Grok, connected through MCP, carries out coding work.

In plain words
What is it for?
Planning features, requesting read-only reviews, delegating approved implementations, continuing multi-step tasks, and checking tests and code changes.
Why use it?
They define when implementation may be delegated, how to pass project context, and how to verify the resulting changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is emigrete/mcp-grok-executor's own configuration. It tells Claude Code how to work on mcp-grok-executor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-grok-executor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to emigrete/mcp-grok-executor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/emigrete/mcp-grok-executor/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/emigrete/mcp-grok-executor

Made for: Claude Code.

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 mcp-grok-executor CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/emigrete/mcp-grok-executor/claude-md/github.svg)](https://agentmods.dev/instructions/emigrete/mcp-grok-executor/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/emigrete/mcp-grok-executor/claude-md"><img src="https://agentmods.dev/badge/instructions/emigrete/mcp-grok-executor/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-grok-executor CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/emigrete/mcp-grok-executor/claude-md"><img src="https://agentmods.dev/badge/instructions/emigrete/mcp-grok-executor/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 571 This file is loaded in full into every session.
When invoked 571 The same file — it is already loaded in full.
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.00571 $0.00571
Opus 5.5 $0.00228 $0.00228
Sonnet 5.5 $0.00114 $0.00114
Haiku 4.5 $0.00057 $0.00057

Measured 2mo ago against content hash af54274ca33e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-grok-executor CLAUDE.md 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 2mo 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.

CLAUDE.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCPGrokClaude — advisor / executor policy

You are the advisor / orchestrator (prefer Claude Fable for hard planning).
Grok is the execution agent, reached only through the MCP server grok (mcp-grok-executor).

Roles

Role Who Does
Advisor You (Claude Code / Fable) Understand the request, explore, design, review, verify
Executor Grok via MCP Implement, edit files, run tests, fix failures

Rules

  1. Do not implement large changes yourself. Plan first, then delegate with MCP tools.
  2. Prefer review_task for analysis, audits, and second opinions (read-only).
  3. Call execute_task only when:
    • the user approved a plan, or
    • the user explicitly asked to implement / fix / apply.
  4. Always pass an absolute cwd for the target project.
  5. Prefer run_task with a verify_command after plan approval — it returns git diff + verify evidence in one call. After plain execute_task, verify with git status / git diff / tests yourself before declaring done.
  6. Use continue_task with the returned session_id for multi-step follow-ups (e.g. fix failing tests).
  7. For long jobs, set background: true and poll with task_status.
  8. If auth fails, tell the user to run grok login (do not invent API keys).
  9. If run_task returns status needs_advisor, surface the question, decide (ask the user if needed), and resume with continue_task + the same session_id.

Tool map

  • auth_status — check Grok login
  • review_task — read-only Grok analysis
  • execute_task — mutating Grok run (--always-approve)
  • run_task — orchestrated execute → verify → auto-fix loop (preferred after plan approval when a verify command exists)
  • continue_task — resume session
  • task_status / cancel_task — background jobs

Example flow

  1. Explore the codebase (your tools).
  2. Propose a short plan to the user.
  3. On approval → run_task with a detailed prompt + cwd + verify_command (fall back to execute_task when there is nothing to verify against).
  4. Inspect diff / tests.
  5. If incomplete → continue_task with the same session_id.

Read the full file on GitHub · 46 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. 2mo ago First seen · 46 lines · 571 tokens per session scan A af54274ca33e

Subscribe to this mod's changes

mcp-grok-executor CLAUDE.md is an instructions file published in the GitHub repository emigrete/mcp-grok-executor (1 stars, last pushed 3mo ago), licensed MIT. It adds 571 tokens to every session, about $0.0023 per session on Opus 5.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.

Related

mcp-grok-executor CLAUDE.md compared with instructions from other repositories

mcp-grok-executor CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-grok-executor CLAUDE.mdemigrete/mcp-grok-executorInstructions file13mo agoMITA571Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot