delegate-claude

A guide for adapting Media3 video quality and buffering to available network bandwidth. Adaptive bitrate, or ABR, lets a player switch between video quality levels as connection conditions change.

In plain words
What is it for?
Use it to set mobile bitrate limits, share bandwidth information between playback and preload, and reduce buffering work during data saving, battery saving, thermal, or cellular constraints.
Why use it?
It helps reduce startup stalls, poor-quality playback, and downloads that compete with the video currently playing. It also avoids using oversized buffers to hide problems in stream descriptions.

Command

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.

agentmods
npx agentmods add commands/arthurkatcher/grok-delegate/delegate-claude
Clone the repo
git clone --depth 1 https://github.com/arthurkatcher/grok-delegate
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 626 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00626
Opus 5 $0.00009 $0.00313
Sonnet 5 $0.00003 $0.00125
Haiku 4.5 $0.00002 $0.00063

Measured 3d ago against content hash 50ff308767d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

delegate-claude 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 3d 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/commands/delegate-claude.md · 51 lines

How it starts

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

Delegate to local Claude Code. Models/efforts are discovered live from the installed CLI.

Launch (required)

Use exactly one run_terminal_command with background: true and timeout: 0 (or a very high timeout) so the host does not SIGTERM the companion after ~20s.

Put flags before free text. Use -- before focus so paste cannot inject flags. Do not unquote free-form text into the shell — pass as separate argv tokens after --.

node "${GROK_PLUGIN_ROOT}/scripts/delegate-companion.mjs" claude --wait --model MODEL --effort EFFORT -- overview -- "focus text"

For complex paste, write JSON and use:

node "${GROK_PLUGIN_ROOT}/scripts/delegate-companion.mjs" claude --wait --payload-file /tmp/payload.json

Payload shape: { "positionals": ["review", "focus…"], "options": { "model": "opus" } }

  • Expand the Grok task for live tools (thinking / tool / writing).
  • Cancel the Grok task → companion SIGTERM kills Claude process tree.
  • Do not poll status into chat.

Safety defaults

Action Default
overview / review / adversarial Prefer hermetic --bare + read tools (dontAsk) when ANTHROPIC_API_KEY is set; Max/OAuth without a key auto-drops --bare (same practical mode as --trust-project) so first launch works
rescue acceptEdits + file tools only (Read/Edit/Write/Glob/Grep) — no Bash
Shell / git CLI Explicit --allowed-tools '…,Bash(…)' or full --yolo

Pass explicit --bare only if you have an API key and want to force hermetic (hard-fails without a key). Prefer --cwd at a real project, not $HOME.

Auth / preflight

claude auth login or ANTHROPIC_API_KEY. Setup first if unsure.

Every action runs the same readiness check first: claude on PATH + login/API key/token. If not ready, the companion does not spawn Claude — it prints setup-style next steps and exits non-zero.

Raw arguments (agent: re-split carefully; prefer structured payload):

Read the full file on GitHub · 51 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. 3d ago First seen · 51 lines · 17 tokens per session scan A 50ff308767d8

Subscribe to this mod's changes

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