Skip to content
Code Review
Skill

/grok-delegate-runtime

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

BOOST
From plugin
grok-build-plugin-cc
2632 skills1 agent8 commands
Install
$ npx -y skills add xai-org/grok-build-plugin-cc --skill grok-delegate-runtime --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/grok-delegate-runtime

Context preview

The summary Claude sees to decide when to auto-load this skill.

Internal helper contract for calling the grok-bridge runtime from 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
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).

Get the whole plugin
Stats
263
Stars
67
Forks
Maintained
Maintenance
JavaScript
Language
Apache-2.0
License
2mo ago
Last commit
3mo ago
Created
3h ago
Added

Repo: xai-org/grok-build-plugin-cc

Other skills on grok-build-plugin-cc.