一键导入
master-agent-orchestration
Guide for the Master Agent to orchestrate, monitor, and merge tasks across the 3-tier multi-agent architecture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide for the Master Agent to orchestrate, monitor, and merge tasks across the 3-tier multi-agent architecture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Designed to assist users with ADHD (Attention Deficit Hyperactivity Disorder) by mitigating task paralysis, managing distractions, providing dopamine-driven progress tracking, and using executive-friendly visual formatting. Triggered by keywords or topics: - Focus/Distraction: "adhd", "fokus", "distracted", "gampang bosan", "pecah fokus", "distraksi", "sulit konsentrasi". - Task Initiation/Paralysis: "bingung mulai", "task paralysis", "mager", "banyak tugas", "tumpuk", "stuck", "overwhelmed". - Motivation/Rewards: "dopamine", "reward", "game", "poin", "xp", "checkpoint". - Formats: "bionic reading", "visual salience", "micro-step", "body double".
Execute detailed plans in batches with review checkpoints
Prevent task duplication, file conflicts, and coordination failures when multiple subagents work in parallel on the same Superagent project. Covers both Superagent→Subagent coordination and Master Agent→Superagent worktree coordination. Uses manage_plan and manage_tasks as the coordination hub.
Execute implementation plan by dispatching fresh subagent for each task, with code review between tasks
Create isolated git worktrees with smart directory selection and safety verification
Triggered when the agent needs to audit, discover, and resolve missing features, architectural or functional gaps, performance/process bottlenecks, and structural complexity liabilities across a codebase, delivering lean and pragmatic improvement blueprints.
| name | Master Agent Orchestration |
| description | Guide for the Master Agent to orchestrate, monitor, and merge tasks across the 3-tier multi-agent architecture |
| when_to_use | when operating as the Master Agent (depth 0), spawning feature-level Superagents, managing worktrees, or merging branches in multi-agent mode |
| version | 1.0.0 |
| languages | ["typescript","shell"] |
The Master Agent (depth 0) acts as the central orchestrator and coordinator. It does not modify code directly. Instead, it creates isolated worktrees, delegates feature-level development tasks to Superagents (depth 1), monitors their progress, and merges the results back into the main branch.
Master Agent (depth 0)
/ | \
Superagent Superagent Superagent (depth 1)
/ \ | / \
Subagent Subagent Subagent Subagent Subagent (depth 2)
| Tool Name | Purpose | Key Parameters | Typical Usage Pattern |
|---|---|---|---|
invoke_superagent | Spawns a Superagent on a new git branch & isolated worktree. | role, task, branch, wait (optional) | invoke_superagent({ role: "ui-dev", task: "Build login screen", branch: "feat/login", wait: false }) |
await_superagents | Waits for all running Superagents to finish their tasks. | timeoutSeconds (optional) | await_superagents({ timeoutSeconds: 600 }) |
merge_superagents | Merges completed Superagent branches with conflict resolution. | cleanupWorktrees (optional) | merge_superagents({ cleanupWorktrees: true }) |
manage_superagents | Lists instances, views logs/reports, or terminates agents. | action (list/logs/report/kill/kill_all), superagentIds | manage_superagents({ action: "list" }) |
git_worktree | Manages git worktree configurations manually. | action, branch, path | git_worktree({ action: "list" }) |
feat/database-logger).invoke_superagent with wait: false.manage_superagents with action: "list" to check the status of all spawned instances.manage_superagents with action: "logs" and the target ID.await_superagents to pause execution until all delegated tasks finish.await_superagents reports success, review the task reports.merge_superagents to merge all feature branches back into the main branch. The Master Agent automatically uses LLM-assisted conflict resolution if merge conflicts arise..worktrees/ directory for those branches.As a Master Agent, you are restricted from directly modifying codebase files and must delegate all feature implementations. Therefore, your implementation plans and task checklists must focus strictly on orchestration.
feat/auth-ui), rather than listing direct line-level edits to codebase files.manage_plan tool with action: "create" to write your implementation plan and automatically synchronize checklist tasks to task.md / _task.md.@superagent-planning skill.The manage_plan tool contains automatic safeguards for Master Agent plans:
Spawn Superagents for parallel task executionMonitor Superagent progress and await completionMerge Superagent branches into main codebasetoolsets.ts and prompts.ts are imported by multiple tool files. Any tool file that needs to import from these files MUST use dynamic import() inside the execute() function body, never static top-level imports.// ❌ BAD: Top-level static import
import { superagentToolset } from "./toolsets.js";
// ✅ GOOD: Dynamic import inside execute
async execute(args, cwd) {
const { superagentToolset } = await import("./toolsets.js");
}
; instead of &&. Always verify the platform first or default to compatible formats..env), persistent logs (superagent.log), and session state inside the global home folder (~/.superagent-r/) rather than the target repository directory.wait: true or invoking one Superagent and immediately calling await_superagents before invoking the next.invoke_superagent calls with wait: false first, and then call await_superagents once.