subagent-delegation

subagent-delegation is a skill for Codex from shinpr/codex-workflows. It costs 43 tokens per session (804 once invoked), scanned A, original, MIT.

A set of rules for assigning work to helper agents and managing them until they finish. A subagent is a separate agent given a defined task by a main agent.

In plain words
What is it for?
Use it when starting, guiding, waiting for, or receiving results from one or more subagents.
Why use it?
It prevents unclear assignments, missing inputs, premature completion, and decisions being made by the wrong agent.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Good fit Use it when starting, guiding, waiting for, or receiving results from one or more subagents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shinpr/codex-workflows/subagent-delegation
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 shinpr/codex-workflows --skill subagent-delegation
Clone the repo
git clone --depth 1 https://github.com/shinpr/codex-workflows

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 subagent-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinpr/codex-workflows/subagent-delegation/github.svg)](https://agentmods.dev/skills/shinpr/codex-workflows/subagent-delegation)
Your own site
<a href="https://agentmods.dev/skills/shinpr/codex-workflows/subagent-delegation"><img src="https://agentmods.dev/badge/skills/shinpr/codex-workflows/subagent-delegation/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 subagent-delegation

Your own site · 80×15
<a href="https://agentmods.dev/skills/shinpr/codex-workflows/subagent-delegation"><img src="https://agentmods.dev/badge/skills/shinpr/codex-workflows/subagent-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 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.00043 $0.00804
Opus 5.5 $0.00017 $0.00322
Sonnet 5.5 $0.00009 $0.00161
Haiku 4.5 $0.00004 $0.00080

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

Security

Grade A, and why

subagent-delegation 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.

.agents/skills/subagent-delegation/SKILL.md · 36 lines

How it starts

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

Subagent Delegation

Apply this skill before delegating work or managing a running subagent. It covers both custom agents and agents created for the current task.

Delegation gives the child a responsibility and the authority to complete it from an isolated context. Pass only the task's minimum input contract; preloading the parent's conclusions, target list, or classifications turns delegation into confirmation work, suppresses independent judgment, and defeats context isolation.

Assignment

Give the child its expected outcome, scope, governing inputs required by its input contract, and the result needed by the next consumer. Pass each source (the user's words, a governing artifact, a review finding, another agent's result) by its path or copied unchanged, and label the parent's own decisions as the parent's. The sources already make the child self-contained, so this takes precedence over writing a delegation prompt out in full: text the parent writes about a source, such as a restatement, summary, reading list, added constraint, estimate, or advice, reaches the child as a requirement no user confirmed and no reviewer checked. It drifts from the source, changes scope without a decision, and overrides the child's judgment of what to read. A gap in a source goes to whoever owns that decision: the child decides in-scope choices, the parent passes its own decisions labeled as such, and any other gap returns to the source's owner instead of being filled. Leave in-scope methods and reversible choices to the child. Tell the child to notify the parent when its decision or intervention is needed or an update is explicitly requested, and otherwise work through to the completed result; include the evidence needed to act.

Accept semantically equivalent wording in natural-language inputs while preserving exact contracts where software parses them.

Choose the delegation level before spawning, based on which decisions the child owns:

Task type Default delegation
Implementation or fixes within the assigned scope; review or verification against supplied criteria; research with a defined question Delegate through completion, including the required verification. Receive the completed result or an escalation for a blocker requiring help beyond the child's assigned scope.
Exploration or design that needs the parent to settle the objective, selection criteria, or a major decision during the work Name the decision retained by the parent in the assignment. Have the child request that decision when it becomes necessary, with the evidence needed to answer.

Read the full file on GitHub · 36 lines

Files

What ships with it

1 file 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. 1mo ago Changed 15b3e136ff71
  2. 1mo ago Changed 73868050b93e
  3. 1mo ago Changed 3612440e4b6f
  4. 2mo ago Changed · +2 lines 3411d6ba270d
  5. 2mo ago Changed 6c001b03bd56
  6. 2mo ago Changed · +2 lines · -2 tokens per session c5d2fcf3f047
  7. 2mo ago First seen · 32 lines · 45 tokens per session scan A 70016e3f4770

Subscribe to this mod's changes

subagent-delegation is a skill published in the GitHub repository shinpr/codex-workflows (42 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 804 once invoked, about $0.0002 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-09-09.

Related

subagent-delegation compared with skills from other repositories

subagent-delegation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
subagent-delegationshinpr/codex-workflowsSkill423d agoMITA43Codex
chrome-cdpmattzcarey/shippieSkill2.5k1mo agoMITA91Claude Code, Codex
skill-creatorzhayujie/CowAgentSkill48ktodayMITA61Claude Code, Codex
ax-agent-rlmax-llm/axSkill3.0ktodayApache-2.0A88Claude Code, Codex
ax-go-flowax-llm/axSkill3.0ktodayApache-2.0A43Claude Code, Codex
notificationsvellum-ai/vellum-assistantSkill1.5k3d agoMITA9Claude Code, Codex
telegram-setupvellum-ai/vellum-assistantSkill1.5k3d agoMITA22Claude Code, Codex