Loading...
Loading...
Compare original and translation side by side
learning-loopred-team-reviewdual-loopagent-swarmcli-agent-executor.mdlearning-loopred-team-reviewdual-loopagent-swarmcli-agent-executor.md1. Is this work I can do entirely myself (research, document, iterate)?
└─ YES → Pattern 1: learning-loop
└─ NO → continue
2. Does it need adversarial review before proceeding?
└─ YES → Pattern 2: red-team-review
└─ NO → continue
3. Can the work be split into parallel independent tasks?
└─ YES → Pattern 4: agent-swarm
└─ NO → Pattern 3: dual-loop (sequential inner/outer delegation)| Signal | Pattern | Skill |
|---|---|---|
| Research question, knowledge gap, documentation task | Simple Learning | |
| Architecture decision, security review, high-risk change | Red Team Review | |
| Feature implementation, bug fix, single work package | Dual-Loop | |
| Large feature, bulk migration, multi-concern parallel work | Agent Swarm | |
1. 这项工作我可以完全独立完成吗(研究、文档、迭代)?
└─ 是 → 模式1:learning-loop
└─ 否 → 继续
2. 在推进前是否需要对抗性审查?
└─ 是 → 模式2:red-team-review
└─ 否 → 继续
3. 这项工作可以拆分为并行的独立任务吗?
└─ 是 → 模式4:agent-swarm
└─ 否 → 模式3:dual-loop(顺序式内外层委托)| 触发信号 | 模式 | 技能 |
|---|---|---|
| 研究问题、知识缺口、文档任务 | 简单学习 | |
| 架构决策、安全审查、高风险变更 | 红队审查 | |
| 功能实现、Bug修复、单个工作包 | 双循环 | |
| 大型功能、批量迁移、多关注点并行工作 | Agent Swarm | |
agent-orchestratorgitagent-orchestratorgit.git.gitagent_orchestrator.pyscripts/agent_orchestrator.pyscripts/scanpython scripts/agent_orchestrator.py scan --spec-dir <PATH>scanpython scripts/agent_orchestrator.py scan --spec-dir <PATH>packetpython scripts/agent_orchestrator.py packet --wp <WP-ID> --spec-dir <PATH>handoffs/packetpython scripts/agent_orchestrator.py packet --wp <WP-ID> --spec-dir <PATH>handoffs/verifypython scripts/agent_orchestrator.py verify --packet handoffs/task_packet_NNN.md --worktree <PATH>python scripts/agent_orchestrator.py correct --packet handoffs/task_packet_NNN.md --feedback "Specific failure reason"verifypython scripts/agent_orchestrator.py verify --packet handoffs/task_packet_NNN.md --worktree <PATH>python scripts/agent_orchestrator.py correct --packet handoffs/task_packet_NNN.md --feedback "具体失败原因"swarm_run.pyagent-swarmpython3 plugins/agent-loops/skills/agent-swarm/scripts/swarm_run.py --job <JOB_FILE> [--resume]agent-swarmswarm_run.pypython3 plugins/agent-loops/skills/agent-swarm/scripts/swarm_run.py --job <JOB_FILE> [--resume]flowchart LR
Router{Task Router} -->|Complex| High["High-Reasoning CLI (Opus/Ultra)"]
Router -->|Routine| Fast["Fast CLI (Haiku/Flash)"]
Router -->|Audit| Spec["Specialist CLI (Security/QA)"]flowchart LR
Router{Task Router} -->|Complex| High["High-Reasoning CLI (Opus/Ultra)"]
Router -->|Routine| Fast["Fast CLI (Haiku/Flash)"]
Router -->|Audit| Spec["Specialist CLI (Security/QA)"]bundlepython scripts/agent_orchestrator.py bundle --files <file1> <file2> --output <OUTPUT_BUNDLE.md>bundlepython scripts/agent_orchestrator.py bundle --files <file1> <file2> --output <OUTPUT_BUNDLE.md>python scripts/agent_orchestrator.py retroretros/python scripts/agent_orchestrator.py retroretros/capture_snapshot.pypersist_soul.pygit commitgit pushcapture_snapshot.pypersist_soul.pygit commitgit pushundefinedundefined
---
---claude-cli-agent--filecontext-bundler--dangerously-skip-permissionsclaude loginclaude-cli-agent--filecontext-bundler--dangerously-skip-permissionsclaude login| Phase | Gate |
|---|---|
| Planning | Spec or plan is coherent and broken into tasks. |
| Execution | Packets are generated and handed off. |
| Review | Output passes verification criteria. |
| Retrospective | Post-loop learnings extracted and infrastructure improved. |
| Primary Agent Handoff | Signal the global ecosystem to run Seal, Persist, and Git closure. |
| 阶段 | 验证关卡 |
|---|---|
| 规划 | 需求规格或计划连贯且已拆分为任务。 |
| 执行 | 已生成数据包并完成交接。 |
| 审查 | 输出结果通过验证标准。 |
| 回顾 | 已提取循环后学习成果并优化基础设施。 |
| 主Agent交接 | 已向全局生态系统发送信号以运行封存、持久化和Git收尾操作。 |
| Control | Description |
|---|---|
| Iteration Counter | Increment each cycle. Log |
| Max Iterations | Safety cap. When reached, force-seal as incomplete with blocking notes. |
| Completion Promise | Deterministic exit: only declare done when acceptance criteria are genuinely met. |
| 控制项 | 描述 |
|---|---|
| 迭代计数器 | 每次循环递增。在启动时记录 |
| 最大迭代次数 | 安全上限。达到上限时,强制标记为未完成并附上阻塞说明后封存。 |
| 完成承诺 | 确定性退出:仅当真正满足验收标准时才宣布完成。 |
| Mechanism | Purpose |
|---|---|
Stop Hook ( | Blocks premature session exit until Seal → Persist → Retrospective are complete. |
| Red Team Subagent | Red team review can run as a forked subagent to keep the main session context clean. |
| 机制 | 用途 |
|---|---|
停止钩子 ( | 阻止会话提前退出,直到完成封存 → 持久化 → 回顾流程。 |
| 红队子Agent | 红队审查可以作为分叉子Agent运行,以保持主会话上下文清洁。 |