delegate-runtime

delegate-runtime is a skill for Claude Code from arthurkatcher/grok-delegate. It costs 19 tokens per session (296 once invoked), scanned A, original, MIT.

An internal runtime contract for sending focused tasks from the Grok delegate companion to Claude Code or Codex CLI. It describes how those command-line agents are started, waited on, cancelled, and given a project directory.

In plain words
What is it for?
Use it when implementing or operating the Grok companion: delegate actions, choose Claude or Codex, pass complex payloads through files, set a real project directory, and cancel running tasks safely.
Why use it?
It standardizes delegation so long-running tasks are not stopped by short timeouts and so each engine receives the appropriate command-line options.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it when implementing or operating the Grok companion: delegate actions, choose Claude or Codex, pass complex payloads through files, set a real project directory, and cancel running tasks safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arthurkatcher/grok-delegate/delegate-runtime
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add arthurkatcher/grok-delegate --skill delegate-runtime
Clone the repo
git clone --depth 1 https://github.com/arthurkatcher/grok-delegate

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 delegate-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/arthurkatcher/grok-delegate/delegate-runtime/github.svg)](https://agentmods.dev/skills/arthurkatcher/grok-delegate/delegate-runtime)
Your own site
<a href="https://agentmods.dev/skills/arthurkatcher/grok-delegate/delegate-runtime"><img src="https://agentmods.dev/badge/skills/arthurkatcher/grok-delegate/delegate-runtime/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 delegate-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/arthurkatcher/grok-delegate/delegate-runtime"><img src="https://agentmods.dev/badge/skills/arthurkatcher/grok-delegate/delegate-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 296 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.00019 $0.00296
Opus 5.5 $0.00008 $0.00118
Sonnet 5.5 $0.00004 $0.00059
Haiku 4.5 $0.00002 $0.00030

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

Security

Grade A, and why

delegate-runtime 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 1mo 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/delegate/skills/delegate-runtime/SKILL.md · 26 lines

What it actually says

grok-delegate runtime

Hosting

run_terminal_command({ background: true, timeout: 0 })
  → node $GROK_PLUGIN_ROOT/scripts/delegate-companion.mjs <claude|codex> --wait [flags] -- <action> "focus"
  → expand Grok task for live tools
  → cancel task → SIGTERM kills Claude/Codex process group

Always set timeout: 0 (or multi-hour) on the Grok background shell — default ~20s kills long delegates with cancel (SIGTERM).

Never poll companion status into chat. Put free text after --. Prefer --payload-file for messy paste. Prefer --cwd at a real project, not $HOME.

Engines

  • claude — RO prefers hermetic --bare when ANTHROPIC_API_KEY is set; Max/OAuth without a key auto-drops --bare so first launch works; rescue = file tools only (no Bash unless user opts in)
  • codex — OS sandbox; --search is a global flag before exec; auto --skip-git-repo-check when cwd is not a git work tree
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. 1mo ago First seen · 26 lines · 19 tokens per session scan A 9e99359d4d64

Subscribe to this mod's changes

delegate-runtime is a skill published in the GitHub repository arthurkatcher/grok-delegate (13 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 296 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

drive-clique

Drive CLIque over its HTTP API to run and coordinate coding agents on a box — start sessions, send prompts, read output, and wait for one to finish or come back asking. Use when a task means running work across several repos or agents at once and collecting the results, rather than doing it all in one session.

thejdubb02/clique · 69 tokens

grokodex-x-search

A search skill for finding recent public posts and discussions on X (formerly Twitter) through local Grok. It supports ordinary keyword searches and searches based on meaning or topic.

anlostsheep/grokodex · 62 tokens

grokodex-critique

A read-only review that challenges a software design or a set of local Git changes. It focuses on trade-offs, alternative approaches, risks, and ways the design could fail rather than editing the code.

anlostsheep/grokodex · 90 tokens

grokodex-review

A read-only code review that sends local Git changes to a local Grok agent for analysis. Git is a system that records code changes and their history.

anlostsheep/grokodex · 79 tokens

grokodex-run

Delegate a coding/agent task to local Grok via MCP grokrun (restricted by default; optional inherit + hostsandbox). Use for second opinions, hard bugs, multi-step implementation, or when the user asks to run Grok. Pure read-only review of diffs → grokodex-review (profile=review); design challenge → grokodex-critique…

anlostsheep/grokodex · 119 tokens

grokodex-imagine

An image-generation tool that creates pictures from written descriptions through a local Grok service.

anlostsheep/grokodex · 58 tokens