用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joshka0/foxctl --skill foxctl-multi-agent命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | foxctl Multi-Agent |
| description | Spawn and coordinate subagents with depth limits, roles, and hierarchy tracking. Manage agent sessions. |
Hierarchical agent spawning with depth limits and role-based coordination.
Depth 0: Overseer (actor:system:overseer)
├── Depth 1: Planner Agent
│ └── Depth 2: Coder Subagent
└── Depth 1: Coder Agent
└── Depth 2: Reviewer Subagent
Three depth controls prevent runaway spawning:
| Role | Purpose | Special Capabilities |
|---|---|---|
overseer | Coordinate multi-agent workflows | agent_spawn, agent_list, agent_kill, agent_hierarchy, agent_wait |
planner | Task decomposition and planning | todo.add, todo.query, graph management |
coder | Code implementation | fs_write_file, edit tools |
reviewer | Code review (read-only) | Read/search tools, no write access |
researcher | Information gathering | Search, memory, session recall |
verifier | Validate claims and results | verification tools |
fixer | Apply targeted fixes | Limited write scope |
The overseer is a special coordination agent that manages agent hierarchies:
# Spawn an overseer to coordinate a multi-agent task
foxctl agent spawn --role overseer --prompt "Coordinate a codebase analysis:
1. Spawn a researcher to find all API endpoints
2. Spawn a coder to document any undocumented endpoints
3. Wait for both to complete and summarize findings"
Overseer-specific tools:
agent_spawn - Request spawning of subagents (validates depth limits)agent_list - List all active agent sessionsagent_status - Get detailed status of an agentagent_kill - Terminate an agent sessionagent_hierarchy - View the full agent treeagent_wait - Wait for all children to completeWhen an agent needs subagents:
{
"tool": "agent.spawn",
"args": {
"epic_id": "epic-123",
"requested_subagents": [
{
"role": "coder",
"reason": "Implement auth module",
"local_max_depth": 2
}
]
}
}
Overseer validates each spawn request:
caller_depth < max_depthcaller_depth < local_max_depthdepth_limit_exceeded - Global max depth reachedlocal_limit_exceeded - Subtree limit reachedresource_exhausted - Too many concurrent agentspolicy_violation - Custom policy denied spawnSpawn agents directly via CLI:
# Basic spawn with inline prompt
foxctl agent spawn --role researcher --prompt "Find all hook implementations"
# With context budget (stops if exceeded)
foxctl agent spawn \
--role researcher \
--prompt "Analyze codebase structure" \
--exec-mode autonomous \
--max-iterations 20 \
--max-context-tokens 30000
# From prompt file
foxctl agent spawn --role coder --prompt-file task.txt
| Flag | Default | Description |
|---|---|---|
--prompt | - | Inline prompt text |
--prompt-file | - | Path to prompt file |
--role | - | Agent role (researcher, coder, planner, reviewer) |
--exec-mode | reactive | Execution mode: reactive, autonomous, proactive |
--max-iterations | 10 | Max tool calls per turn |
--max-context-tokens | 0 | Context budget in tokens (0=no limit) |
--max-auto-turns | 1 | Max autonomous continuations |
--llm-provider | cerebras | LLM provider override |
--llm-model | - | Model override |
The --max-context-tokens flag prevents runaway context accumulation:
[CONTEXT] iter=4 msgs=11 prompt_tokens=10040 ... finish=tool_calls
[CONTEXT] budget exceeded: 10040 > 10000 limit, stopping
When exceeded, the session stops with status=error and StopReasonContextBudget.
Each agent runs in a session with:
actor:<role>:<id>)Agent sessions automatically persist turns to session_turns table:
-- Each turn stores:
session_id, turn_index, role, content_preview, tool_calls, tokens_used
Resume a previous session with additional context:
# Continue a session
foxctl agent resume <session-id> --prompt "Based on your findings, tell me more about X"
The resume command:
session_turns tablesession_edges (edge_type: "continues")Get agent tree structure:
# List all active sessions
foxctl agent list
# Show full agent hierarchy (all roots)
foxctl agent hierarchy
# Show hierarchy from specific session
foxctl agent hierarchy <session-id>
Example output:
● actor:system:overseer [overseer] depth=0 session=01KFGX...
└─ ● actor:researcher:01KFGY... [researcher] depth=1 session=01KFGY...
└─ ✓ actor:coder:01KFGZ... [coder] depth=1 session=01KFGZ...
actor:<role>:<identifier>
Examples:
- actor:system:overseer
- actor:system:admin
- actor:coder:agent1
- actor:planner:epic-123