delegate

A command that sends a coding task to OpenAI Codex through an MCP connection.

In plain words
What is it for?
Passing Codex a self-contained task brief, then reviewing the resulting code changes against stated requirements.
Why use it?
It removes the need to handle delegation manually or call the Codex command directly.

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/andreilungeanu/codex-delegate-mcp/delegate
Clone the repo
git clone --depth 1 https://github.com/andreilungeanu/codex-delegate-mcp
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 129 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.00018 $0.00129
Opus 5 $0.00009 $0.00064
Sonnet 5 $0.00004 $0.00026
Haiku 4.5 $0.00002 $0.00013

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

Security

Grade A, and why

delegate 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 2d 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.

commands/delegate.md · 12 lines

What it actually says

Follow the delegate skill (/codex-delegate:delegate or auto-invoked) for the full workflow. Task: $ARGUMENTS

  1. Pass a self-contained inline brief in spec (goal, scope, acceptance criteria) — do not create a spec file unless the user asks to persist it.
  2. Call the delegate MCP tool — do not invoke codex directly.
  3. Review the diff and confirm acceptance criteria.
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. 2d ago First seen · 12 lines · 18 tokens per session scan A def2e65991cc

Subscribe to this mod's changes

delegate is a command published in the GitHub repository andreilungeanu/codex-delegate-mcp (1 stars, last pushed 12d ago), licensed MIT. It adds 18 tokens to every session and 129 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-31.

Related

Other commands, from other repositories

auto

Intent-classified router, the front door to OrchestKit and the DEFAULT entry point for any goal-shaped request. Classifies a plain-English goal and routes it to the right specialist skill. Routing is never overhead, so use it even when the target skill seems obvious; skip only when already executing inside another…

yonatangross/orchestkit · 99 tokens

delegate

Delegate to Cursor, Composer, or cursor-agent via cursor-delegate-mcp (see delegate skill).

andreilungeanu/cursor-delegate-mcp · 20 tokens

generate-ecosystem

Generate a validated Claude Code ecosystem (orchestrator + N sub-agents + M skills + MCPs) from a brief.

prgilabert/agent-ecosystem-generator · 25 tokens

multi-agent-optimize

The Multi-Agent Optimization Tool is an advanced AI-driven framework designed to holistically improve system performance through intelligent, coordinated agent-based optimization. Leveraging cutting-edge AI orchestration techniques, this tool provides a comprehensive approach to performance engineering across multiple…

wshobson/agents · 0 tokens

ship-an-mcp-server

Workflow recipe — make your product agent-usable by chaining 4 skills, spec to pricing.

mohitagw15856/pm-claude-skills · 19 tokens

verify

Grade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type checking, scores every dimension 0-10, and returns a merge verdict with a VERIFIED-vs-CLAIMED evidence manifest. Writes no test files and edits no source. Use…

yonatangross/orchestkit · 92 tokens