sub-agents

sub-agents is a skill for Claude Code from opencue/cuecards. It costs 66 tokens per session (1,410 once invoked), scanned A, original, MIT.

A tool for running external command-line AI agents as separate sub-agents. Each sub-agent works with its own context, so tasks can be delegated or investigated independently.

In plain words
What is it for?
Use it to delegate coding or research tasks to Codex, Cursor Agent, Gemini, or other configured command-line agents.
Why use it?
It helps split complex work into parallel tasks and prevents one investigation from filling or confusing the main agent's context.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to delegate coding or research tasks to Codex, Cursor Agent, Gemini, or other configured command-line agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opencue/cuecards/sub-agents
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 opencue/cuecards --skill sub-agents
Clone the repo
git clone --depth 1 https://github.com/opencue/cuecards

Made for: Claude Code.

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 sub-agents

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/opencue/cuecards/sub-agents"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/sub-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,410 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.00066 $0.01410
Opus 5.5 $0.00026 $0.00564
Sonnet 5.5 $0.00013 $0.00282
Haiku 4.5 $0.00007 $0.00141

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

Security

Grade A, and why

sub-agents 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 2mo ago.

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

.agents/skills/sub-agents/SKILL.md · 178 lines

How it starts

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

Sub-Agents - External CLI AI Task Delegation

Spawns external CLI AIs (Codex, cursor-agent, codex, gemini) as isolated sub-agents with dedicated context.

Resources

Script Path: Use absolute path {SKILL_DIR}/scripts/run_subagent.py where {SKILL_DIR} is the directory containing this SKILL.md file.

CLI-Specific Notes

Check the corresponding reference for your environment:

Interpreting User Requests

Extract parameters from user's natural language request:

Parameter Source
--agent Agent name from user request (see selection rules below)
--prompt Task instruction part (excluding agent specification)
--cwd Current working directory (absolute path)

Agent Selection Rules (when user doesn't specify agent name):

  1. Run --list to get available agents
  2. 0 agents: Inform user no agents available, show setup instructions (see Agent Definition Format)
  3. 1 agent: Auto-select without asking
  4. 2+ agents: Show list with descriptions, ask user to choose

Example: "Run code-reviewer on src/" → --agent code-reviewer --prompt "Review src/" --cwd $(pwd)

When to Use This Skill

Use sub-agent when ANY of these apply:

  • Complex multi-step task (isolated context prevents interference)
  • Parallel investigation (multiple agents can run simultaneously)
  • Task needs fresh context (sub-agent starts without conversation history)
  • Specialized agent definition exists (leverage pre-defined expert prompts)

Important: Permission and Timeout

This script executes external CLIs that require elevated permissions.

Before first execution:

  1. Request elevated permissions via your CLI's tool parameters
  2. Set tool timeout to match --timeout argument (default: 600000ms)

Read the full file on GitHub · 178 lines

Files

What ships with it

3 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. 2mo ago First seen · 178 lines · 66 tokens per session scan A 6a526b9cd1ed

Subscribe to this mod's changes

sub-agents is a skill published in the GitHub repository opencue/cuecards (10 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 1,410 once invoked, about $0.0003 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-03.

Related

sub-agents compared with skills from other repositories

sub-agents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sub-agentsopencue/cuecardsSkill10yesterdayMITA66Claude Code
agentloop-audit-dashboardalibaba/loongsuite-pilotSkill2703d agoApache-2.0A149Claude Code, Codex
loongsuite-pilot-opsalibaba/loongsuite-pilotSkill2703d agoApache-2.0A15Claude Code, Codex
atomic-visual-optionsdamusix/atomic-claudeSkill117yesterdayMITA150Claude Code, Codex
agentloop-audit-queryalibaba/loongsuite-pilotSkill2703d agoApache-2.0A54Claude Code, Codex
atomic-tdddamusix/atomic-claudeSkill117yesterdayMITA142Claude Code, Codex
atomic-verifydamusix/atomic-claudeSkill117yesterdayMITA100Claude Code, Codex