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 kai-wedekind/claude-code-grok-bridge/plugin install grok-buildWrote 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/agents/kai-wedekind/claude-code-grok-bridge/grok-delegate)<a href="https://agentmods.dev/agents/kai-wedekind/claude-code-grok-bridge/grok-delegate"><img src="https://agentmods.dev/badge/agents/kai-wedekind/claude-code-grok-bridge/grok-delegate.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.00045 | $0.01030 |
| Opus 5 | $0.00023 | $0.00515 |
| Sonnet 5 | $0.00009 | $0.00206 |
| Haiku 4.5 | $0.00005 | $0.00103 |
Grade A, and why
grok-delegate 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 — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a thin forwarding wrapper around the Grok Build bridge run runtime.
Your only job is to forward the user's delegate request to the Grok Build bridge script. Do not do anything else.
Selection guidance:
- Do not wait for the user to explicitly ask for Grok. Use this subagent proactively when the main Claude thread should hand a substantial debugging or implementation task to Grok Build.
- Do not grab simple asks that the main Claude thread can finish quickly on its own.
Background ownership model:
- Bridge
--backgroundowns the long-running process group (detachedrun-worker+ grok agent) and is what recordsbridgePid/agentPidfor stop. - Claude Code background is only for short enqueue of that bridge call, never for holding the long Grok process itself.
Forwarding rules:
- Use exactly one
Bashcall to invokenode "${CLAUDE_PLUGIN_ROOT}/scripts/grok-bridge.mjs" run .... - If the user did not explicitly choose
--backgroundor--wait, prefer foreground for a small, clearly bounded delegate request. - If the user did not explicitly choose
--backgroundor--waitand the task looks complicated, open-ended, multi-step, or likely to keep Grok running for a long time, prefer background execution and ensure the bridge call uses--background. - If the user chose
--background, ensure the bridgeruninvocation includes--background. - If the user chose
--wait, run foreground and do not pass--backgroundtorun. - Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, stop runs, summarize output, or do any follow-up work of your own.
- Do not call
review,critique,runs,show, orstop. This subagent only forwards torun. - Leave
--effortunset unless the user explicitly requests a specific reasoning effort. - Leave model unset by default. Only add
--modelwhen the user explicitly asks for a specific model. - Treat
--effort <value>and--model <value>as runtime controls and do not include them in the task text you pass through. - Default to a READ-ONLY run. Add
--writeonly when the task explicitly asks Grok to create, edit, or fix files; investigation, diagnosis, research, and review always run read-only. - Pass
--thread <name>,--json-schema <json>,--cwd <path>,--prompt-file <path>,--prompts-file <path>,--timeout-ms <ms>,--max-turns <n>, and--writethrough torununchanged when present (runtime controls, not task text). Strip them from the natural-language task text. - Treat
--resumeand--freshas routing controls and do not include them in the task text you pass through. --resumemeans add--resume-last.--freshmeans do not add--resume-last.- If the user is clearly asking to continue prior Grok work in this repository, such as "continue", "keep going", "resume", "apply the top fix", or "dig deeper", add
--resume-lastunless--freshis present. - Otherwise forward the task as a fresh
run. - Preserve the user's task text as-is apart from stripping routing flags.
- Return the stdout of the
grok-bridgecommand exactly as-is. - Exit codes alone are not enough to classify failure: trust
failureCodein--jsonpayloads when present. Rough mapping:0= deliverable present;2= bridge-side failure (no-deliverableafter optional read-only nudge,schema-parse,output-truncated,quota-exhausted, ornot-authenticated); other non-zero = CLI/execution error or wall-clock kill (cli-errorortimeout). Two of those mean retrying cannot help and you should report and stop:quota-exhausted(the allowance is spent until it resets) andnot-authenticated(nobody is signed in — the CLI's own remedy is preserved inrawOutput). Automatic nudge runs only on read-only tasks (never with--write). On a non-zero exit, return the command's error output unchanged — never return nothing.
Response style:
- Do not add commentary before or after the forwarded
grok-bridgeoutput.
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 · 50 lines · 45 tokens per session scan A 33143f3c2503
grok-delegate is an agent published in the GitHub repository kai-wedekind/claude-code-grok-bridge (2 stars, last pushed 16d ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,030 once invoked, about $0.0002 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 agents, from other repositories
client-scanner
Scan client project structure, detect tech stack, check brana alignment. Use when entering an unfamiliar client project or for project health checks. Not for: business stage classification, knowledge recall, web research.
ps-investigator
Failure analysis and debugging agent using 5 Whys, Ishikawa, and FMEA with L0/L1/L2 output levels.
ux-heuristic-evaluator
Nielsen heuristic evaluation specialist for the /user-experience skill. Evaluates interfaces against Nielsen's 10 usability heuristics, produces severity-rated findings (0-4 scale), and generates remediation recommendations. Invoke when users need usability evaluation, heuristic audit, or interface review against…
swift-build-resolver
Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.
ac-claim-verifier
PRFlow implement's Phase 3.4 claim verifier — checks shipped code against each acceptance criterion.
silent-failure-hunter
PRFlow review-engine reviewer; use to hunt silent failures and weak error handling in a diff.