subagent-orchestration

subagent-orchestration is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 60 tokens per session (1,447 once invoked), scanned A, original, MIT.

A guide for deciding when to delegate codebase exploration, planning, or implementation work to separate agents.

In plain words
What is it for?
Use it to delegate repository research, implementation planning, and independent code changes that can run in parallel.
Why use it?
It helps split self-contained tasks into focused pieces while keeping the main work easier to follow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to delegate repository research, implementation planning, and independent code changes that can run in parallel.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/subagent-orchestration"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/subagent-orchestration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,447 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 34
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00060 $0.01447
Opus 5 $0.00030 $0.00724
Sonnet 5 $0.00012 $0.00289
Haiku 4.5 $0.00006 $0.00145

Measured 7d ago against content hash 2e84c9abd174, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

subagent-orchestration 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 7d 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.

products/desktop/packages/harness/src/extensions/orchestration/skills/subagent-orchestration/SKILL.md · 121 lines

How it starts

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

Subagent Orchestration

You (the parent session) can delegate scoped work to focused subagents, each running in its own isolated Pi session with its own context window. Use this to keep your own context clean and to parallelize independent work.

When to delegate

Delegate when a piece of work is:

  • Self-contained: it doesn't need your full conversation history, just a task and some context you can state explicitly.
  • Isolable: it would otherwise burn a lot of your context window (e.g. broad codebase search, reading many files) for a result you can summarize down to a few paragraphs.
  • Parallelizable: several independent instances of it can run at once (e.g. exploring two unrelated areas of a large codebase in the same turn).

Do not delegate trivial one-line changes, or work that fundamentally needs your full conversation context to do correctly — that's what context (below) is for, but if almost everything is relevant, delegation adds overhead for no benefit.

Bundled agents

Agent Use for Tools Model Notes
Explore Focused, read-only recon: find files, entry points, data flow read, bash, grep, find, ls Sol, falls back to your current model Reports compressed findings, never edits
Plan Turn Explore's findings (or your own) into a concrete implementation plan read, bash, grep, find, ls Inherits your current model Never edits
General Actual implementation: make the code changes an Explore/Plan investigation identified, or any task that needs real edits read, bash, edit, write, grep, find, ls Inherits your current model Same read-write capability as you have; makes real changes

Explore and Plan are read-only. General has the same read-write capability you do — reach for it when a change is mechanical/independent enough to delegate (especially several at once via parallel mode) rather than doing every edit yourself in sequence. For a small, one-off change, just make it directly instead of delegating.

Read the full file on GitHub · 121 lines

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. 7d ago First seen · 121 lines · 60 tokens per session scan A 2e84c9abd174

Subscribe to this mod's changes

subagent-orchestration is a skill published in the GitHub repository PostHog/posthog-foss (715 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,447 once invoked, about $0.0003 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-09-03.