把复杂任务的「一条直线」变成「多分支并行」。
当任务符合以下任一条件时,自动启用本技能:
使用 sessions_spawn 创建独立分支:
sessions_spawn(
mode="session",
runtime="subagent",
task="<具体分支任务>",
label="ct-<序号>-<简短描述>"
)
每个分支有独立 Session ID,互不干扰。
~/.openclaw/workspace/cognitive-topology/branches/_L2.md Main Session 等待所有分支完成,读取所有 L2 文件,生成 synthesis:
cat ~/.openclaw/workspace/cognitive-topology/branches/*_L2.md
~/.openclaw/workspace/cognitive-topology/
├── branches/ # 分支工作目录
│ ├── ct-1_anal_ai_L2.md # 分支1的L2
│ ├── ct-2_anal_chip_L2.md # 分支2的L2
│ └── ...
├── topology_latest.json # 当前拓扑状态
└── synthesis.md # 整合结果
无 UI,星空图用文本树替代:
🌐 认知拓扑
├── branch-1 [分析AI板块]
│ └── ✅ 已完成
├── branch-2 [分析半导体]
│ └── ⏳ 进行中
└── branch-3 [分析新能源]
└── ⏳ 待启动
场景:分析 A 股三个方向的机会
Main Session 收到任务后:
共 1 个版本