Kimi Code Delegation
CherryHQ/cherry-studio
Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream.
How and when to delegate work to subagents via the subagent tool (Explore, Plan, General).
$ npx skills add PostHog/code --skill subagent-orchestration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PostHog/code subagent-orchestration --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PostHog/code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/harness/src/extensions/subagent/skills/subagent-orchestration .claude/skills/subagent-orchestration && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "subagent-orchestration" agent skill from https://github.com/PostHog/code/tree/main/packages/harness/src/extensions/subagent/skills/subagent-orchestration into .claude/skills/subagent-orchestration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subagent-orchestration", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PostHog/code/tree/main/packages/harness/src/extensions/subagent/skills/subagent-orchestrationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PostHog/code --skill subagent-orchestration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PostHog/code subagent-orchestration --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/code.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/harness/src/extensions/subagent/skills/subagent-orchestration .agents/skills/subagent-orchestration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "subagent-orchestration" agent skill from https://github.com/PostHog/code/tree/main/packages/harness/src/extensions/subagent/skills/subagent-orchestration into .agents/skills/subagent-orchestration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subagent-orchestration", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PostHog/code --skill subagent-orchestration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PostHog/code subagent-orchestration --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/code.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/harness/src/extensions/subagent/skills/subagent-orchestration .cursor/skills/subagent-orchestration && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "subagent-orchestration" agent skill from https://github.com/PostHog/code/tree/main/packages/harness/src/extensions/subagent/skills/subagent-orchestration into .cursor/skills/subagent-orchestration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subagent-orchestration", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PostHog/code.git --path packages/harness/src/extensions/subagent/skills/subagent-orchestration--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PostHog/code --skill subagent-orchestration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PostHog/code subagent-orchestration --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/code.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/harness/src/extensions/subagent/skills/subagent-orchestration .gemini/skills/subagent-orchestration && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "subagent-orchestration" agent skill from https://github.com/PostHog/code/tree/main/packages/harness/src/extensions/subagent/skills/subagent-orchestration into .gemini/skills/subagent-orchestration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subagent-orchestration", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PostHog/code subagent-orchestrationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PostHog/code --skill subagent-orchestration -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PostHog/code.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/harness/src/extensions/subagent/skills/subagent-orchestration .github/skills/subagent-orchestration && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "subagent-orchestration" agent skill from https://github.com/PostHog/code/tree/main/packages/harness/src/extensions/subagent/skills/subagent-orchestration into .github/skills/subagent-orchestration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subagent-orchestration", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PostHog/code --skill subagent-orchestration -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PostHog/code subagent-orchestration --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/code.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/harness/src/extensions/subagent/skills/subagent-orchestration .opencode/skills/subagent-orchestration && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "subagent-orchestration" agent skill from https://github.com/PostHog/code/tree/main/packages/harness/src/extensions/subagent/skills/subagent-orchestration into .opencode/skills/subagent-orchestration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subagent-orchestration", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
subagent-orchestrationHow and when to delegate work to subagents via the subagent tool (Explore, Plan, General).
Subagent Orchestration is an agent skill from PostHog/code, published by the product's own GitHub organization. How and when to delegate work to subagents via the subagent tool (Explore, Plan, General). Use when a task involves codebase recon, implementation planning, or actual code changes that would benefit from an isolated context window instead of doing it all inline.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Subagents and Context engineering. It works with Bash. The repository describes itself as: The era of self-driving development is here. The licence is MIT.
Read from SKILL.md and the folder at commit a4c32df. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Subagent Orchestration loads about 1.5k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 798 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from PostHog/code at commit a4c32df, republished under its MIT licence (© PostHog). 798 words, ~1,456 tokens.
.claude/skills/subagent-orchestration/SKILL.md (or your agent's skills folder).You (the parent session) can delegate scoped work to focused subagents, each running in its own isolated pi process with its own context window. Use this to keep your own context clean and to parallelize independent work.
Delegate when a piece of work is:
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.
| Agent | Use for | Tools | Model | Notes |
|---|---|---|---|---|
Explore | Fast, read-only recon: find files, entry points, data flow | read, bash, grep, find, ls | Fast/cheap model, 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.
Subagents cannot themselves call subagent — they are leaves, not orchestrators. Keep
all delegation decisions in your own (parent) session.
For larger fan-out orchestration — many agents, loops over file lists, staged
map/verify/synthesize flows — prefer the workflow tool (if available), which runs a
JavaScript script coordinating these same read-only agents and returns one synthesized
result. subagent is for one-off or small parallel delegations.
A project can add its own agents (including ones that write) as .pi/agents/<name>.md
files — same frontmatter convention as the bundled agents above. See agentScope below.
context field — always fill it inA subagent gets only its task string, plus a small automatic digest of your last
few conversation turns (as a fallback, not a substitute). It does not see the files
you've already read, tool results you've already seen, or decisions you've already made
unless you put them in context.
Always pass context with whatever the subagent actually needs:
A subagent given a bare one-line task and no context will waste its own turns
re-discovering things you already know.
tasks: [...], up to 8 tasks / 4 concurrent. Use for independent work
that can run at once, e.g. Exploreing two unrelated parts of a codebase together.There is no chain mode. For a fixed pipeline (e.g. explore then plan), just call
subagent twice in sequence yourself and pass the first call's output back in as the
second call's context — you are already the orchestrator holding both results.
clarify -> Explore -> Plan -> implement it yourself -> confirm before any risky follow-upThis is guidance, not a rigid workflow — decide per task whether you need both steps. For a small, well-understood change, skip straight to implementing it yourself.
A subagent is a means to answer the user's request, not a background task whose result can be silently acknowledged. After a subagent finishes, read its result and give the user the relevant substantive outcome in the parent response.
The tool result remains available in the conversation for detailed follow-up, but the parent agent owns communicating its useful conclusion to the user.
Every run writes status.json, events.jsonl, and a full transcript.md to
~/.pi/agent/subagent-runs/<runId>/ for later inspection.
© PostHog, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/harness/src/extensions/subagent/skills/subagent-orchestration of PostHog/code.
Open the folder on GitHubat commit a4c32df
Subagent Orchestration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Subagent Orchestration this skillPostHog/code | 179 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Kimi Code DelegationCherryHQ/cherry-studio | 52k | 1 repos | ~504 | Automated safety check: Pass | AGPL-3.0 | |
| Teamethanhq/cc-fleet | 215 | 1 repos | ~3.4k | Automated safety check: Pass | Apache-2.0 | |
| Claude Statusbarleeguooooo/claude-code-usage-bar | 377 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Badstephenleo/bmad-autonomous-development | 107 | — | ~7.7k | Automated safety check: Pass | MIT | |
| Analyze Trajectoryyologdev/yoyo-evolve | 1.9k | — | ~3.6k | Automated safety check: Pass | MIT |
CherryHQ/cherry-studio
Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream.
ethanhq/cc-fleet
Spawn long-lived provider LLM teammates in tmux panes that you message via the native agent-team tools — multi-turn, collaborative, watchable.
leeguooooo/claude-code-usage-bar
Manage cs (claude-statusbar) — switch theme/style/density, override severity colors, preview combinations, run doctor, reset config, install, upgrade (cs upgrade — the only supported upgrade path)…
stephenleo/bmad-autonomous-development
BMad Autonomous Development — orchestrates parallel story implementation pipelines.
yologdev/yoyo-evolve
Diagnoses a recurring failure such as a stuck task, repeated CI error or frequent reverts by sending sub-agents through the logs and returning one root-cause diagnosis.
trailofbits/skills
Picks a small, graph-based slice of source with Trailmark and hands a focused code task to a smaller or local model without exposing the whole repository.
PostHog/code
How PostHog "canvas" dashboards work end-to-end — the two rendering tiers (json-render vs freeform React-in-iframe), the agent system prompts that steer each, and the RIGHT way to fetch PostHog data…
PostHog/code
How to write JavaScript workflow scripts for the workflow tool - fanning work out across many isolated subagents with agent(), parallel(), and pipeline(), then synthesizing one result.
PostHog/code
Install, configure, authenticate, and troubleshoot MCP (Model Context Protocol) servers for this agent.
PostHog/code
Merge a PR into main through the Trunk merge queue and babysit it until it lands.
PostHog/code
Add, replace, and optimize the looping demo videos in the onboarding "welcome" bento grid (packages/ui/src/features/onboarding).
PostHog/code
Edit the @posthog/quill design system locally and consume the change in this repo (posthog-code) before it is published to npm.
Works with
Categories
How and when to delegate work to subagents via the subagent tool (Explore, Plan, General). Subagent Orchestration is an agent skill from PostHog/code, published by the product's own GitHub organization. How and when to delegate work to subagents via the subagent tool (Explore, Plan, General).
Subagent Orchestration fits situations like: A task involves codebase recon; implementation planning; actual code changes that would benefit from an isolated context window instead of doing it all inline.
Run `npx skills add PostHog/code --skill subagent-orchestration -a claude-code`. Or copy the skill folder (packages/harness/src/extensions/subagent/skills/subagent-orchestration in PostHog/code) into .claude/skills/subagent-orchestration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PostHog/code --skill subagent-orchestration -a codex`. Or copy the skill folder (packages/harness/src/extensions/subagent/skills/subagent-orchestration in PostHog/code) into .agents/skills/subagent-orchestration in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PostHog/code --skill subagent-orchestration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/subagent-orchestration, .gemini/skills/subagent-orchestration, .github/skills/subagent-orchestration and .opencode/skills/subagent-orchestration in your project.
SKILL.md names no scripts, command-line tools or credentials: Subagent Orchestration is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Subagent Orchestration is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Subagent Orchestration: Kimi Code Delegation (CherryHQ/cherry-studio, 52k stars), Team (ethanhq/cc-fleet, 215 stars), Claude Statusbar (leeguooooo/claude-code-usage-bar, 377 stars) and Bad (stephenleo/bmad-autonomous-development, 107 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PostHog (a GitHub organization, an official publisher) maintains it in PostHog/code, which has 179 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on August 5, 2026.
Source: PostHog/code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.