From cfdc8bf800df6e499d1db50db06b3905b423cf50 Mon Sep 17 00:00:00 2001 From: tukuaiai Date: Sat, 10 Jan 2026 21:34:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20README=20=E6=96=B0=E5=A2=9E=E5=93=B2?= =?UTF-8?q?=E5=AD=A6=E6=96=B9=E6=B3=95=E8=AE=BA=E5=B7=A5=E5=85=B7=E7=AE=B1?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 +++++++++++ .../documents/-01-哲学与方法论/AI蜂群协作.md | 29 +++++++++++++++ .../auto-dev-loop/workflow_engine/runner.py | 36 +++++++++++++++++-- 3 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 i18n/zh/documents/-01-哲学与方法论/AI蜂群协作.md diff --git a/README.md b/README.md index f1cbef9..21d7bcc 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,27 @@ Canvas方式:**代码 ⇄ 白板 ⇄ AI ⇄ 人类**,白板成为单一真 +
+🔮 哲学方法论工具箱 + +> **把 Vibe 系统化为可验证、可迭代、可收敛的工程产出** + +23 种哲学方法论 + Python 工具 + 可复制提示词,覆盖: + +| 方法 | 用途 | +|:---|:---| +| 现象学还原 | 需求含糊时,清零脑补,回到可观察事实 | +| 正反合 | 快速可用 → 反例打脸 → 收敛为工程版本 | +| 可证伪主义 | 用测试逼出失败模式 | +| 奥卡姆剃刀 | 删除不必要的复杂度 | +| 贝叶斯更新 | 根据新证据动态调整信念 | + +**核心理念**:哲学不是空谈,是可落地的工程方法。 + +👉 [深入了解哲学方法论工具箱](./i18n/zh/documents/-01-哲学与方法论/README.md) + +
+ --- ## 🖼️ 概览 diff --git a/i18n/zh/documents/-01-哲学与方法论/AI蜂群协作.md b/i18n/zh/documents/-01-哲学与方法论/AI蜂群协作.md new file mode 100644 index 0000000..bdb4810 --- /dev/null +++ b/i18n/zh/documents/-01-哲学与方法论/AI蜂群协作.md @@ -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) diff --git a/i18n/zh/workflow/auto-dev-loop/workflow_engine/runner.py b/i18n/zh/workflow/auto-dev-loop/workflow_engine/runner.py index e751172..f6025a0 100644 --- a/i18n/zh/workflow/auto-dev-loop/workflow_engine/runner.py +++ b/i18n/zh/workflow/auto-dev-loop/workflow_engine/runner.py @@ -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