/grok-bot-delegation:grok-bot-token-spendfrom grok-bot-delegation
Optimizes Grok Bot fleet token spend with hard handoff rules, effort ladders, and CLI model ordering. Use when fleet usage is tight or on-demand pressure is high.
Ships in grok-bot-delegation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use after research or when fleet usage is tight / on-demand pressure is up. Companion to fleet-pattern-routing (box workflow fleet-pattern-routing). Apply on every roster/persona/skill stamp.
grok -p, SuperGrok) → Codex (Cursor only while monthly Cursor use <80%, check usage first; last 20% reserved for Bugbot/routines/PR review) → xAI Grok API last resort. Read back verdict line/report only, never transcripts. Bots hand off bot-to-bot directly (not via CoS). CoS gets only finished results, Matthew decisions, failures/blockers — no routine status/acks.xhigh only when the gap is reasoning/capacity, not default thrift — and only after the PE pack path above./workspace/ravenpower-website-build/cli-out/prompts/_MAX-PARALLEL.md — real levers (Agent subagents, workflows//effort ultracode, --worktree, ultrathink, plan mode). No /max-parallel slash command — do not invent one. This is inside-session concurrency, not roster-wide fan-out (still use effort ladder before spawning other bots).[collectability:unproven] until field telemetry is proven collectable.after-update-computer-reinstall).hidden_from_sidebar / hide. Don’t recreate-as-delete without Matthew GO.grok-bot-billing-safeguard); Matthew widget OK required. Never auto-enable spend.@mcorbett51090 only; flag configs that email his employer.primary; explicit recommendation — never bare menus.Do: lean descriptions; connectors first; canary 1 worker before N-way; PE pack → specialist execute; Update Computer + reinstall for box recovery; Stable + auto app updates; hide_from_sidebar for declutter; billing widget before money moves; personal GH only for reviews.
Don’t: invent /max-parallel; skip PE craft on heavy work; fan out for “more reasoning”; copy Max burn onto Bot weekly; claim this skill “fixed burn”; recommend Reset Computer; urge Delete agent; conflate app Updates with Update/Reset Computer; auto on-demand/plan/cancel-trial; include Matthew's employer work email / identity on PR reviews or Bugbot; CoS drafting resume/LinkedIn prose (tip People Ops); same-model sequential iterative loops (must Claude Code→Grok Build→Codex); bare Matthew menus (recommended must be first + primary).
Prefer adding/updating under grok-bot-delegation (version bump only — not a new plugin). Distinct from Max token-budget-playbook, claude-app-engineering context-budget, and ai-coding-model-guidance. Sage lands repo PR; CoS applies fleet-side.
Evidence: /workspace/rc-deep-research-token-spend/REPORT.md
Claude Code/Grok Build runs a bot launches may edit files and make LOCAL commits in a worktree only. They must never push, open/edit/merge/close PRs, rebase or force-push shared branches, or touch GitHub/Origin — every brief must say so. All mutating git/GitHub/Origin work (push once per PR, PR create/edit, merge, branch delete, mirror sync) is handed DIRECTLY to Source Control Sage, not relayed through CoS. Approval cards for gated steps still run in CoS chat. Sage is the exclusive executor.
HARD direct-handoff guards (Matthew Oct 12): bot-launched Claude/Grok runs NEVER (1) deploy (wrangler deploy, Deploy Commerce, workflow_dispatch, Wallet push), write prod D1/KV or apply migrations: hand to Platform, with Matthew's gate where required; (2) print/log/commit secrets: RavenPower 1Password vault only, never the personal vault or Apple Passwords; secret-setting stays with Auth/Platform; (3) send email/Slack/X/messages: bots draft, Matthew sends via a draft card; (4) trigger/re-run GitHub Actions or shard tests; Cursor models only while monthly Cursor use is below 80% (check usage before any Cursor build; last 20% reserved for Bugbot, routines, PR reviews), no tests/builds in Grok Bot workers. (5) Grok reviews cover only the diff since the last reviewed commit (about 20 chunks max, 8 in parallel); commits that only merge main or update the branch need no AppSec or Grok re-review; a passing run writes /workspace/state/ready/-.json and SendToAgents Sage, which owns push/merge-main/merge order per the Oct 12 2:35 PM work flow. (6) Direct is not quiet: Sage verifies push/merge and Platform verifies deploy end to end; the owner sends CoS a final DONE/FAILED; on failure, fix or re-dispatch at once. (7) Heavy box work ONLY via /workspace/bin/box-run <claude|grok|admin> (memory-based admission, reserve 2.5 GB free, no fixed cap; gate queues; Platform owns gate); nohup/bg; never kill others' runs. (8) Read the last response before archiving Claude sessions, never touch running ones, archive Cursor agents after merge, and log the owner and next steps for leftovers. (9) Never route around Auto-review: gated steps go to CoS so the card shows in CoS chat. (10) Every brief: never Matthew's employer work email or identity; Matthew widgets put the recommended option first, styled primary.
Work flow (Matthew Oct 12, 2:35 PM ET):
Admin rule (Matthew Oct 12, 3:40 PM ET): system/account admin (plan upgrades, settings, dashboard config) is done by the bot that OWNS the system, in its own browser/desktop, per /workspace/state/SYSTEM-OWNERS.md. Spend or plan changes need Matthew's approval card via CoS, then the owner executes. Never route admin execution through CoS. RavenPower vault only. Owner reports DONE/FAILED to CoS.
HARD box-run (Matthew Oct 12 4:24 PM ET): launch ALL heavy box work ONLY via /workspace/bin/box-run <claude|grok|admin> <cmd...> (claude max 2, grok max 2 with diff chunks queued in one process, admin never blocked; memory/load gate queues runs, never fails). Run under nohup or in the background; never kill other bots' runs; log at /workspace/state/box-run/log. Example: nohup /workspace/bin/box-run claude claude -p ... < brief.md > log 2>&1 &
HARD blocker-first+parallel (Oct 13 6:22): check P&D critical path first, take earliest unblocked item; fill free box-run slots (memory-based, reserve 2.5 GB free; Platform owns gate) with independent work, never idle with an unblocked queue; spread reviews across models (Claude/Cursor while Grok 402); Sage merges green unheld PRs ≤30 min, red CI→owner at once; batch Matthew decisions per PR; idle capacity + queued work→report CoS.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
token-spend, fleet-optimization, model-routing, cost-control
9 skills in this plugin
/completion-contractUse whenever a bot finishes, fails, or blocks on a deliverable: end with one RESULT block, the PARENT bot SendToAgents it to CoS (priority when Matthew/blocked/failed), and writes /workspace/state/ready/<id>.json./delegate-via-expert-botsDelegate via expert botsOct 12 2026 direct-handoff rule. Use this on every user ask: direct bot-to-bot handoffs, CoS hub for results/decisions/failures; Matthew widgets recommended-first+primary (never bare menus); fleet 3-model DONE any iterative loop; talent→People Ops./Other plugins' skills for the same job
npx claudepluginhub mcorbett51090/ravenclaude --plugin grok-bot-delegation