subagent-family-tracking
Track parent/child thread tree of spawned sub-agents with Open/Closed status. USE WHEN: spawned one or more sub-agents, task description suggests a tree…
от MiniMax-AI★ 30 звёзд на GitHub
Установить subagent-family-tracking в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Sub-Agent Family Tracking
When you spawn sub-agents, you create a family tree: you are the parent, your spawned agents are children, and your children's spawned agents are grandchildren. If you do not track this tree explicitly, three failure modes are common:
- Lost child — you spawn an agent, lose track of its
task_id, and never read its result. - Sibling duplication — two children of yours do the same work, wasting tokens.
- Lingering child — you move on to the next sub-task, leaving an old child running in the background, burning context budget.
This Skill codifies a family-tracking file so these failures are visible, not hidden.
When to use
Activate when any of these is true:
- You are about to call
taskand the result of that call is "fire and wait," not "do it inline." (Inline calls don't need a tree.) - You have already spawned one or more sub-agents in this session.
- The task description suggests a tree: "X has sub-tasks", "for each of A/B/C, ...", "the migration has 5 stages, each stage can be parallelised."
- A user asks "what's your sub-agent doing right now?" and you don't have an immediate answer.
When NOT to use
- The sub-task is so cheap you would just inline it. (No sub-agent → no tree.)
- The harness already exposes a live dashboard of running sub-agents. (Use that instead.)
- You are the child, not the parent. Children don't track siblings; they only see their own parent.
Process
Pick a single, predictable path. Default (illustrative; actual on-disk path is host-internal):
<host-agents-root>/<thread-id>/subagents.md. The mcode 0.2.4 public surface does not document a family-file path. The Skills below use<host-agents-root>as a conceptual placeholder; the host determines the actual root. Different from the goal file (which is "what we are doing") and the world-state file (which is "where we are"); this is "who is working for us."Initialise the file on the first spawn in this exact shape:
# Sub-agent family — <short task name> **Parent (you)**: <thread-id> **Last updated**: <ISO timestamp> ## Children | id | spawned_at | brief | status | result_summary | |----|------------|-------|--------|----------------| | <task_id> | <ISO> | <one-line brief> | open | (pending) |On every spawn, add a row with
status: openand a one-line brief.On every sub-agent completion, update the row:
status: closed(orclosed-failedif it didn't meet its pass condition)result_summary: <one line>
If a sub-agent spawns its own children, append a sub-section for that child:
| <task_id> | <ISO> | <one-line brief> | open | (pending) | ## Children of <task_id> | grandchild-id | spawned_at | brief | status | result_summary | |---------------|------------|-------|--------|----------------|At every
context-pressure-compact, the compact summary must reference the family file by path, not duplicate it. The file is the ground truth.At the end of a fan-out aggregation (see
parallel-fanout), include a one-line "all children closed" check. If any are stillopen, surface that to the user — the aggregation is not safe to declare done while children are running.
Output contract
The user sees:
- The family file's contents (full) at the start of any multi-agent task.
- A one-line status update per spawn / completion (e.g. "spawned task-7a3f for OIDC review," "task-7a3f closed with PASS").
- A "all children closed" check at the end of any fan-out.
Example
The path to the family file in the example below is illustrative; the actual on-disk path is host-internal. The
thread-7c2bvalue is a placeholder for the calling session's thread id (on mcode 0.2.4 the relevant lifecycle identifier for a sub-agent is thetask_idreturned bytask(...)). The file shape is what the calling agent maintains in its own bookkeeping.
# Sub-agent family — Auth refactor (OIDC alongside SAML)
**Parent (you)**: thread-7c2b *(placeholder for the calling session's thread id)*
**Last updated**: 2026-08-23T23:55:00Z
## Children
| id | spawned_at | brief | status | result_summary |
|----|------------|-------|--------|----------------|
| task-3f1a | 23:40:00Z | Audit /repo/server/Cargo.toml for CVEs | closed | No critical CVEs; 2 moderate, listed in SECURITY-REPORT.md |
| task-4d2b | 23:40:00Z | Audit /repo/web/package.json for CVEs | closed | 1 critical CVE (CVE-2024-xxxx); surfaced immediately, did not wait for others |
| task-5e3c | 23:40:00Z | List licenses of /repo/server and /repo/web direct deps | open | (pending) |
After task-5e3c finishes:
| task-5e3c | 23:40:00Z | List licenses of /repo/server and /repo/web direct deps | closed | 47 deps; 1 AGPL, 4 Apache-2.0, rest MIT — full table in SECURITY-REPORT.md |
If task-5e3c
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл subagent-family-tracking?
Track parent/child thread tree of spawned sub-agents with Open/Closed status. USE WHEN: spawned one or more sub-agents, task description suggests a tree (sub-tasks, "for each of A/B/C", "5 stages"), user asks "what's your sub-agent doing right now" / "子 agent 都在干嘛", sub-agent may fan out, want to know "还在跑吗" / "还有几个没关", before declaring fan-out done (all children closed check). TRIGGER PHRASES: "子 agent 都在干嘛", "sub-agent", "子任务", "family tree", "who is running", "还在跑吗", "还有几个没关", "what's your sub-agent doing", "subagent family", "subagent tree", "all children closed". SKIP WHEN: sub-task is so cheap you'd just inline it, harness already exposes live sub-agent dashboard, you are the child not the parent.
Как установить скилл subagent-family-tracking?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл subagent-family-tracking запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…