Skip to content
Code Review
Skill

/grok-delegate-runtime

Internal helper contract for calling the grok-bridge runtime from Claude Code

From plugin
grok-build-plugin-cc
2812 skills1 agent8 commands

Claude Code

$ npx -y skills add xai-org/grok-build-plugin-cc --skill grok-delegate-runtime --agent claude-code

SKILL.md

grok-delegate-runtime.SKILL.md
name: grok-delegate-runtime
description: Internal helper contract for calling the grok-bridge runtime from Claude Code
user-invocable: false

Grok Build Delegate Runtime

Use this skill only inside the `grok-build:grok-delegate` subagent.

Primary helper:

  • `node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-bridge.mjs" run "<raw arguments>"`

Execution rules:

  • The delegate subagent is a forwarder, not an orchestrator. Its only job is to invoke `run` once and return that stdout unchanged.
  • Prefer the helper over hand-rolled `git`, direct Grok CLI strings, or any other Bash activity.
  • Do not call `check`, `review`, `critique`, `runs`, `show`, or `stop` from `grok-build:grok-delegate`.
  • Use `run` for every delegate request, including diagnosis, planning, research, and explicit fix requests.
  • Leave `--effort` unset unless the user explicitly requests a specific effort.
  • Leave model unset by default. Add `--model` only when the user explicitly asks for one.
  • Default to a write-capable Grok run by adding `--write` unless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.

Command selection:

  • Use exactly one `run` invocation per delegate handoff.
  • If the forwarded request includes `--background` or `--wait`, treat that as Claude-side execution control only for short enqueue semantics. Prefer bridge `--background` for long work so the run records `bridgePid` and `agentPid`. When forwarding long work yourself, pass `--background` to `run` when the user chose background mode. Strip Claude-only framing that is not a bridge flag, and do not treat those tokens as part of the natural-language task text.
  • If the forwarded request includes `--model`, pass it through to `run`.
  • If the forwarded request includes `--effort`, pass it through to `run`.
  • If the forwarded request includes `--resume`, strip that token from the task text and add `--resume-last`.
  • If the forwarded request includes `--fresh`, strip that token from the task text and do not add `--resume-last`.
  • `--resume`: always use `run --resume-last`, even if the request text is ambiguous.
  • `--fresh`: always use a fresh `run`, even if the request sounds like a follow-up.
  • `--effort`: accepted values are `low`, `medium`, `high`.
  • `run --resume-last`: internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous delegate run.

Safety rules:

  • Default to write-capable Grok work in `grok-build:grok-delegate` unless the user explicitly asks for read-only behavior.
  • Preserve the user's task text as-is apart from stripping routing flags.
  • 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.
  • Return the stdout of the `run` command exactly as-is.
  • If the Bash call fails or Grok cannot be invoked, return nothing.
Read more
@xai-org
Ships withgrok-build-plugin-cc

Bridge Grok Build into Claude Code for review, critique, delegation, and session import. This repository is a Claude Code marketplace plugin that shells out to the real grok CLI. Run status, results, and stop are owned by the plugin (PID + log files).

2812 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
281
Star history of xai-org/grok-build-plugin-cc on GitHub, a chart by star-history.com

Other skills on grok-build-plugin-cc.

More skills from other plugins.

open-code-review

open-code-review

Review workspace changes, PRs, commits, or branch comparisons with OCR's native review pipeline and independently configured…

@alibaba@alibabaInstall Skill
build-graph

build-graph

Build or update the code review knowledge graph. Run this first to initialise, or let hooks keep it updated automatically.

@tirth8205@tirth8205Install Skill
hunk-extensions

hunk-extensions

Maps the `hunkdiff/extension` authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked…

hunk5d9.8k
@modem-dev@modem-devInstall Skill

Questions about grok-delegate-runtime.

Which coding agents can use grok-delegate-runtime?
grok-delegate-runtime installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.