delegate-to-grok

delegate-to-grok is a skill for Codex from Sunwood-ai-labs/delegate-to-grok-skill. It costs 74 tokens per session (1,245 once invoked), scanned A, original, MIT.

A skill for sending coding, repository-inspection, comparison, web-research, and public X-search tasks to the locally installed Grok Build command-line tool. A command-line tool is a program operated through a terminal.

In plain words
What is it for?
Use it to consult Grok about code or repositories, compare Codex and Grok, inspect projects, perform public X searches, or resume Grok authentication.
Why use it?
It gives Grok a defined role as a secondary agent while keeping scope, safety, permissions, and verification under Codex’s control. Read-only operation is the default.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Codex.

Good fit Use it to consult Grok about code or repositories, compare Codex and Grok, inspect projects, perform public X searches, or resume Grok authentication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sunwood-ai-labs/delegate-to-grok-skill/skill
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 Sunwood-ai-labs/delegate-to-grok-skill --skill skill
Clone the repo
git clone --depth 1 https://github.com/Sunwood-ai-labs/delegate-to-grok-skill

Made for: Codex.

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-to-grok

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sunwood-ai-labs/delegate-to-grok-skill/skill"><img src="https://agentmods.dev/badge/skills/sunwood-ai-labs/delegate-to-grok-skill/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,245 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.00074 $0.01245
Opus 5 $0.00037 $0.00622
Sonnet 5 $0.00015 $0.00249
Haiku 4.5 $0.00007 $0.00125

Measured 11d ago against content hash 36d3f0ae6ba7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

delegate-to-grok 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/invoke-grok.ps1), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skill/SKILL.md · 75 lines

How it starts

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

Delegate to Grok Build

Use local grok as a secondary coding and research agent. Codex owns scope, safety, verification, and the final report.

Invocation contract

  1. Invoke every headless task through scripts/invoke-grok.ps1. Never bypass it with grok -p, including on retry.
  2. Name -WorkingDirectory. The default approved root is exactly that directory; use -AllowedRoot only for an explicitly confirmed parent root.
  3. The wrapper runs a fresh grok models preflight before the task and after it. It fails closed unless both explicitly show a logged-in session and a model list.
  4. The wrapper is single-flight: wait up to 30 seconds; treat GROK_BUSY as ownership by an existing run. Never start a second Grok or OAuth process.
  5. Read-only is the default: --permission-mode default, --sandbox read-only, --no-subagents, --no-plan, and --no-memory. -AllowWrites, -AllowSubagents, and -AllowMemory each require a specific user request.
  6. Do not use --always-approve, bypassPermissions, dontAsk, persistent debug logs, or a command that exposes prompts or auth files. Prompts always use a temporary --prompt-file.
  7. Never read or expose %USERPROFILE%\.grok\auth.json. The wrapper copies it only to an isolated temporary home and commits it back only after the run and postflight succeed.
  8. Put all task text in one -Prompt value. This safely supports punctuation, quotes, commas, multiline text, and Japanese.

Authentication and OAuth recovery

Run grok models in a fresh process. A valid result must explicitly say the user is logged in and list available models. Do not infer authentication merely from an existing auth.json.

If it explicitly says authentication is missing or expired:

  1. Ensure no wrapper invocation or OAuth process is active. If GROK_BUSY, wait instead of starting another login.
  2. Start exactly one grok login --oauth; the wrapper never logs in or out.
  3. Read the browser-control skill before browser control. Choose the newest authorization tab created by this flow whose URL carries the active redirect_uri=http://127.0.0.1:<port>/callback.
  4. Inspect the visible page before clicking Allow. Hand password, one-time-code, CAPTCHA, and other secret steps to the user.
  5. Verify with a fresh grok models. Browser success alone is insufficient.

Read the full file on GitHub · 75 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 75 lines · 74 tokens per session scan A 36d3f0ae6ba7

Subscribe to this mod's changes

delegate-to-grok is a skill published in the GitHub repository Sunwood-ai-labs/delegate-to-grok-skill (2 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 1,245 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

grok-subagent

Delegate bounded coding, investigation, review, implementation, and real-time X/Reddit/web research tasks from Codex to the locally authenticated Grok Build CLI. Use when the user asks Codex to consult Grok, use Grok as a subagent, compare independent model conclusions, spend SuperGrok quota on useful project work…

Walvez/grok-subagent · 112 tokens

grok-prompting

Internal guidance for composing Grok Build prompts for coding, review, diagnosis, and research tasks inside the Grok Claude Code plugin.

davit-khaburdzania/grok-plugin-cc · 31 tokens

grok-bridge

Delegate any substantial local task to Grok Build as one durable logical job, in a repository or a non-repository workspace, and retrieve its genuine final result across turn, token, context, and caller-session boundaries. Use when the user asks for Grok/Grok Build, an independent builder/tester/reviewer/researcher…

conrad85/grok-bridge · 90 tokens

nexfade

Create one-time NexFade encrypted links for attached files or sensitive notes, check link status, and revoke links.

NexFade/nexfade-grok-plugin · 26 tokens

grok-prompting

Internal guidance for composing clear Grok task prompts from Codex rescue handoffs.

bigu1/grok-plugin-codex · 21 tokens

readiness-scorer

Calculate and explain a "Grok Readiness Score" (0-100) for a project based on concrete signals: quality of AGENTS.md / project rules, quantity and validity of skills, test/CI presence, git hygiene, ignore configuration, and verification culture. Use when asked to "score", "readiness score", "grok score", "how agent…

cobusgreyling/grok-build-showcase · 98 tokens