delegate

delegate is a skill for Claude Code, Codex from usefulmove/enso. It costs 42 tokens per session (359 once invoked), scanned A, original, MIT.

A task-delegation workflow that starts a separate child coding agent with its own working context and a defined task envelope.

In plain words
What is it for?
Use it to split work across agents, run parallel investigations, or assign a task that needs a different skill or verification approach.
Why use it?
It lets large or isolated tasks be worked on independently and checked separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is pi -p --cwd ./runs/<task-id> <<< "$PROMPT".

Good fit Use it to split work across agents, run parallel investigations, or assign a task that needs a different skill or verification approach.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/usefulmove/enso
agentmods
npx agentmods add skills/usefulmove/enso/delegate

Made for: Claude Code, 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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/usefulmove/enso/delegate"><img src="https://agentmods.dev/badge/skills/usefulmove/enso/delegate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 359 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.00042 $0.00359
Opus 5.5 $0.00017 $0.00144
Sonnet 5.5 $0.00008 $0.00072
Haiku 4.5 $0.00004 $0.00036

Measured 1mo ago against content hash 7eb22ecb99ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (delegate.sh), 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.

skills/delegate/SKILL.md · 40 lines

What it actually says

Delegate

Spawn a child pi agent from within a running harness. The child runs in its own context directory and returns through an explicit return path.

Interface (the contract)

Parameter Description
context_dir The child's working directory. Inherits parent .pi/skills/ unless overridden.
prompt The task envelope: goal, acceptance criteria, and any loaded skills.
return_path stdout, <context_dir>/.pi/return.md, or a named tmux session.
name Optional tmux session name for re-attachment.

Canonical invocation

pi -p --cwd ./runs/<task-id> <<< "$PROMPT"

Or wrapped:

./delegate.sh <context-dir> <prompt-file> [session-name]

Patterns

  • Fan-out: Spawn multiple agents against sibling directories; collect return.md files.
  • Pipeline: Child stdout piped into next child stdin, or into parent post-processor.
  • Supervisor: Named tmux session for long-running work. Re-attach with tmux attach -t <name>.

Why This Skill Exists

The harness is self-composing. An agent that can invoke pi via bash is a Lisp eval. Without a documented envelope every spawn is bespoke. This skill provides the minimal contract so that recursive delegation remains inspectable and portable across enso instances.

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 First seen · 40 lines · 42 tokens per session scan A 7eb22ecb99ce

Subscribe to this mod's changes

delegate is a skill published in the GitHub repository usefulmove/enso (2 stars, last pushed 4mo ago), licensed MIT. It adds 42 tokens to every session and 359 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-08-31.

Related

Other skills, from other repositories

harness

A meta-skill for designing and maintaining a project harness: a coordinated set of specialist agents, skills, and project instructions. It defines their roles, connects them to the project, and updates the setup as the work changes.

revfactory/harness · 184 tokens

last30Days

Resolve "last30Days" to a concrete ISO date range relative to your run time — a rolling 30-day window ending today. Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a "last 30 days" / trailing-month task…

chaitanyagiri/munder-difflin · 83 tokens

thisQuarter

Resolve "thisQuarter" to a concrete ISO date range relative to your run time — this quarter so far (quarter start → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a quarter-to-date task (QTD…

chaitanyagiri/munder-difflin · 78 tokens

thisWeek

Resolve "thisWeek" to a concrete ISO date range relative to your run time — this week so far (Monday → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a week-to-date task (this week's activity…

chaitanyagiri/munder-difflin · 77 tokens

evolve

A workflow for improving an existing setup that guides coding agents. It collects results and feedback, compares the current setup with its starting version, and records useful changes.

revfactory/harness · 184 tokens

md-fetch-summarize

Fetch a URL and return a concise markdown summary of its content. Read-only: no files are written; the summary is returned as output only. Use when asked to "fetch and summarize", "summarize this URL", "what does this page say", or "get the content of ". Proactively suggest when the user pastes a URL and asks what it…

chaitanyagiri/munder-difflin · 93 tokens