docs: README 新增哲学方法论工具箱模块
This commit is contained in:
parent
02c6ef3661
commit
cfdc8bf800
21
README.md
21
README.md
|
|
@ -177,6 +177,27 @@ Canvas方式:**代码 ⇄ 白板 ⇄ AI ⇄ 人类**,白板成为单一真
|
|||
|
||||
</details>
|
||||
|
||||
<details open>
|
||||
<summary><strong>🔮 哲学方法论工具箱</strong></summary>
|
||||
|
||||
> **把 Vibe 系统化为可验证、可迭代、可收敛的工程产出**
|
||||
|
||||
23 种哲学方法论 + Python 工具 + 可复制提示词,覆盖:
|
||||
|
||||
| 方法 | 用途 |
|
||||
|:---|:---|
|
||||
| 现象学还原 | 需求含糊时,清零脑补,回到可观察事实 |
|
||||
| 正反合 | 快速可用 → 反例打脸 → 收敛为工程版本 |
|
||||
| 可证伪主义 | 用测试逼出失败模式 |
|
||||
| 奥卡姆剃刀 | 删除不必要的复杂度 |
|
||||
| 贝叶斯更新 | 根据新证据动态调整信念 |
|
||||
|
||||
**核心理念**:哲学不是空谈,是可落地的工程方法。
|
||||
|
||||
👉 [深入了解哲学方法论工具箱](./i18n/zh/documents/-01-哲学与方法论/README.md)
|
||||
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
## 🖼️ 概览
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
# AI蜂群协作
|
||||
|
||||
> 基于 tmux 的多 AI Agent 协作系统
|
||||
|
||||
## 核心理念
|
||||
|
||||
传统模式:人 ←→ AI₁, 人 ←→ AI₂, 人 ←→ AI₃ (人是瓶颈)
|
||||
|
||||
蜂群模式:**人 → AI₁ ←→ AI₂ ←→ AI₃** (AI 自主协作)
|
||||
|
||||
## 能力矩阵
|
||||
|
||||
| 能力 | 实现方式 | 效果 |
|
||||
|:---|:---|:---|
|
||||
| 🔍 感知 | `capture-pane` | 读取任意终端内容 |
|
||||
| 🎮 控制 | `send-keys` | 向任意终端发送按键 |
|
||||
| 🤝 协调 | 共享状态文件 | 任务同步与分工 |
|
||||
|
||||
## 核心突破
|
||||
|
||||
AI 不再是孤立的,而是可以互相感知、通讯、控制的集群。
|
||||
|
||||
## 详细文档
|
||||
|
||||
👉 [深入了解AI蜂群协作](../02-方法论/AI蜂群协作-tmux多Agent协作系统.md)
|
||||
|
||||
## 相关资源
|
||||
|
||||
- [tmux快捷键大全](../02-方法论/tmux快捷键大全.md)
|
||||
|
|
@ -154,9 +154,41 @@ def start_workflow(input_file: str = None):
|
|||
save_state(state)
|
||||
return
|
||||
state["retry_count"] = retry_count
|
||||
# 从 step2 重新开始
|
||||
print(f"[RETRY {retry_count}/3] 从 step2 重新执行")
|
||||
|
||||
# 递归调用自身,复用完整的验证逻辑
|
||||
state["target_step"] = None # 清除回跳标记
|
||||
save_state(state)
|
||||
|
||||
for retry_step in STEP_FLOW[1:]: # step2 onwards
|
||||
run_step(retry_step, state)
|
||||
result = run_step(retry_step, state, input_data)
|
||||
if not result:
|
||||
state["status"] = "error"
|
||||
save_state(state)
|
||||
return
|
||||
|
||||
# step4 后检查验证结果
|
||||
if retry_step == "step4":
|
||||
verify_status = result.get("verify", {}).get("status", "success")
|
||||
state["verify"] = {"status": verify_status}
|
||||
|
||||
# step5 决定下一步
|
||||
if retry_step == "step5":
|
||||
if state.get("verify", {}).get("status") == "failed":
|
||||
state["target_step"] = "step2"
|
||||
state["status"] = "retry"
|
||||
print(f"[RETRY] 验证仍失败,继续重试")
|
||||
break # 跳出内层循环,触发外层重试检查
|
||||
else:
|
||||
state["target_step"] = "done"
|
||||
state["status"] = "completed"
|
||||
print(f"[COMPLETE] 重试成功,工作流完成")
|
||||
|
||||
save_state(state)
|
||||
|
||||
# 如果 step5 设置了新的回跳目标,继续递归
|
||||
if state.get("target_step") == "step2":
|
||||
continue # 继续外层循环的下一次迭代(实际会被 break 跳出)
|
||||
break
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue