helloagents 3.0.10-beta.1 → 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +402 -657
- package/README_CN.md +404 -657
- package/gemini-extension.json +1 -1
- package/package.json +2 -12
- package/skills/commands/build/SKILL.md +1 -1
- package/skills/commands/help/SKILL.md +1 -1
- package/skills/commands/loop/SKILL.md +10 -10
- package/skills/hello-ui/SKILL.md +12 -12
- package/skills/hello-verify/SKILL.md +2 -2
package/README_CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**面向 AI 编码 CLI 的工作流层:技能、知识库、交付检查、更安全的配置写入,以及可恢复的执行流程。**
|
|
10
10
|
|
|
11
11
|
[](./package.json)
|
|
12
12
|
[](https://www.npmjs.com/package/helloagents)
|
|
@@ -25,35 +25,30 @@
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
27
|
> [!IMPORTANT]
|
|
28
|
-
>
|
|
28
|
+
> 如果你在找 `v2.x`,旧的 Python 版本已经迁到 [helloagents-archive](https://github.com/hellowind777/helloagents-archive)。`v3` 是基于 Node.js、Markdown 规则、skills 和轻量运行时脚本的完全重写版本。
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## 目录
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
- [HelloAGENTS 做什么](#helloagents-做什么)
|
|
33
|
+
- [相对 v3.0.7 的真实变化](#相对-v307-的真实变化)
|
|
34
|
+
- [核心功能](#核心功能)
|
|
35
|
+
- [快速开始](#快速开始)
|
|
36
|
+
- [CLI 管理](#cli-管理)
|
|
37
|
+
- [对话命令](#对话命令)
|
|
38
|
+
- [项目知识库](#项目知识库)
|
|
39
|
+
- [工作流与交付](#工作流与交付)
|
|
40
|
+
- [配置](#配置)
|
|
41
|
+
- [各 CLI 集成方式](#各-cli-集成方式)
|
|
42
|
+
- [验证](#验证)
|
|
43
|
+
- [FAQ](#faq)
|
|
44
|
+
- [故障排除](#故障排除)
|
|
45
|
+
- [许可证](#许可证)
|
|
34
46
|
|
|
35
|
-
|
|
36
|
-
- [🆚 相比 v2.3.8 的变化](#-相比-v238-的变化)
|
|
37
|
-
- [✨ 核心特性](#-核心特性)
|
|
38
|
-
- [🚀 快速开始](#-快速开始)
|
|
39
|
-
- [🔄 安装流程与文件写入](#-安装流程与文件写入)
|
|
40
|
-
- [📖 命令](#-命令)
|
|
41
|
-
- [🔧 配置](#-配置)
|
|
42
|
-
- [⚙️ 工作原理](#️-工作原理)
|
|
43
|
-
- [📚 使用指南](#-使用指南)
|
|
44
|
-
- [🧪 验证](#-验证)
|
|
45
|
-
- [❓ FAQ](#-faq)
|
|
46
|
-
- [🛠️ 故障排除](#️-故障排除)
|
|
47
|
-
- [📈 版本历史](#-版本历史)
|
|
48
|
-
- [📜 许可证](#-许可证)
|
|
47
|
+
## HelloAGENTS 做什么
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
AI 编码 CLI 写代码很快,但也容易停在建议、跳过检查、丢失项目上下文,或在真正完成前就报告完成。
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
你有没有遇到过这种情况:AI 编码助手分析了一通,最后来一句"建议你这样做"就结束了?或者写了代码但跳过测试、忽略边界情况,然后说"完成了"?
|
|
55
|
-
|
|
56
|
-
HelloAGENTS 就是为了解决这个问题。它是一个编排层,装在你的 AI CLI 上面,在每一步都强制执行质量标准。
|
|
51
|
+
HelloAGENTS 叠加在 Claude Code、Gemini CLI 和 Codex CLI 之上,帮助模型选择合适流程、使用任务相关的质量技能、维护项目知识库,并在交付前完成验证。
|
|
57
52
|
|
|
58
53
|
<table>
|
|
59
54
|
<tr>
|
|
@@ -61,827 +56,581 @@ HelloAGENTS 就是为了解决这个问题。它是一个编排层,装在你
|
|
|
61
56
|
|
|
62
57
|
**没有 HelloAGENTS**
|
|
63
58
|
|
|
64
|
-
<img src="./readme_images/08-demo-snake-without-helloagents.png" alt="
|
|
59
|
+
<img src="./readme_images/08-demo-snake-without-helloagents.png" alt="Without HelloAGENTS" width="520">
|
|
65
60
|
|
|
66
61
|
</td>
|
|
67
62
|
<td width="50%" valign="top" align="center">
|
|
68
63
|
|
|
69
|
-
|
|
64
|
+
**使用 HelloAGENTS**
|
|
70
65
|
|
|
71
|
-
<img src="./readme_images/07-demo-snake-with-helloagents.png" alt="
|
|
66
|
+
<img src="./readme_images/07-demo-snake-with-helloagents.png" alt="With HelloAGENTS" width="520">
|
|
72
67
|
|
|
73
68
|
</td>
|
|
74
69
|
</tr>
|
|
75
70
|
</table>
|
|
76
71
|
|
|
77
|
-
|
|
|
78
|
-
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
72
|
+
| 问题 | 没有 HelloAGENTS | 使用 HelloAGENTS |
|
|
73
|
+
|------|------------------|------------------|
|
|
74
|
+
| 结束过早 | 停在建议 | 继续实现、验证和收尾 |
|
|
75
|
+
| 质量不稳定 | 很依赖提示词 | 按任务类型激活 14 个质量技能 |
|
|
76
|
+
| 上下文分散 | 方案散落在聊天记录里 | 项目知识和方案文件落在磁盘上 |
|
|
77
|
+
| 完成态模糊 | 自然语言说“完成” | 按状态、证据和验证结果交付 |
|
|
78
|
+
| 配置容易漂移 | CLI 文件可能不一致 | 安装、更新、清理和 doctor 会检查受管文件 |
|
|
84
79
|
|
|
85
|
-
|
|
86
|
-
- ✅ **使用 AI CLI 的开发者**,想要一致的、经过验证的输出
|
|
87
|
-
- ✅ **团队**,需要 AI 辅助编码的质量护栏
|
|
88
|
-
- ✅ **复杂项目**,需要结构化的 设计 → 开发 → 验证 工作流
|
|
80
|
+
## 相对 v3.0.7 的真实变化
|
|
89
81
|
|
|
90
|
-
|
|
91
|
-
- ❌ 简单的一次性问题(HelloAGENTS 会增加流程开销)
|
|
92
|
-
- ❌ 非编码任务(针对软件工程优化)
|
|
82
|
+
下面是当前 `v3.0.10` 相对 `v3.0.7` 的主要运行时和安装变化:
|
|
93
83
|
|
|
94
|
-
|
|
84
|
+
- 主代理交付改用结构化 `turn-state`,明确区分 `complete`、`waiting`、`blocked`;stop、notify、收尾流程不再从自然语言里猜完成态。
|
|
85
|
+
- 工作流恢复改为读取当前 `state_path`,状态文件按会话写入 `.helloagents/sessions/<branch>/<session-or-default>/STATE.md`。
|
|
86
|
+
- 移除旧的项目根状态文件回退逻辑,恢复流程只走当前状态路径。
|
|
87
|
+
- Codex 标准/全局模式的安装、刷新、清理和 doctor 检查更严格:受管 `notify` 会带标记,多行 `notify` 数组可保留,用户自己的 `model_instructions_file`、`notify`、非托管 `codex_hooks` 会在恢复时保留。
|
|
88
|
+
- Codex 全局模式在重装、更新或本地切分支后,会同步刷新 home 读取根、本地插件根目录、marketplace 条目、插件启用段和缓存副本。
|
|
95
89
|
|
|
96
|
-
|
|
90
|
+
## 核心功能
|
|
97
91
|
|
|
98
|
-
|
|
99
|
-
|------|--------|---------------|
|
|
100
|
-
| **底层实现** | Python 包 + 大量脚本/规则混合 | 纯 Node.js + Markdown 运行时,围绕 `cli.mjs`、`bootstrap*.md`、`skills/`、`scripts/` 重建 |
|
|
101
|
-
| **目标定位** | 更像多 CLI 管理工具 + 提示协议集合 | 更像 AI CLI 的质量工作流框架,重点是路由、把关、验证和可恢复执行 |
|
|
102
|
-
| **安装方式** | pip / uv / npx / 一键脚本并行存在 | npm 为主;安装包后再显式部署到 Claude / Gemini / Codex |
|
|
103
|
-
| **CLI 支持策略** | 6 个目标,能力差异很大 | 聚焦 3 个主战场:Claude Code、Gemini CLI、Codex CLI |
|
|
104
|
-
| **工作流模型** | R0/R1/R2 三层路由 + 老式 design/develop 语义 | ROUTE/TIER → SPEC → PLAN → BUILD → VERIFY → CONSOLIDATE 六阶段主流程 |
|
|
105
|
-
| **命令体系** | 15 个命令,含 `~exec` / `~rollback` / `~rlm` / `~validatekb` | 13 个聚焦命令:`~idea` / `~plan` / `~build` / `~verify` / `~prd` / `~loop` / `~wiki` / `~help` 等 |
|
|
106
|
-
| **质量模型** | 规则较分散,更多依赖自然语言约束 | 14 个自动激活技能 + 检查清单把关 + Ralph Loop + 结构化证据 |
|
|
107
|
-
| **项目状态** | 知识库更多是附属能力 | `.helloagents/` 成为项目激活边界,`STATE.md` / 方案包 / `DESIGN.md` / `contract.json` 组成主流程的主要判断依据 |
|
|
108
|
-
| **知识库存储** | 默认项目本地 | 默认项目本地,同时新增 `project_store_mode=repo-shared`,支持同一 git 仓库多个 worktree 共享稳定知识和方案资产 |
|
|
109
|
-
| **Codex 集成** | 早期依赖更多兼容层和旧流程 | 标准模式使用注入规则 + 本地链接;全局模式使用原生本地插件,减少噪音与漂移 |
|
|
92
|
+
### 1)14 个按任务使用的质量技能
|
|
110
93
|
|
|
111
|
-
|
|
94
|
+
HelloAGENTS 内置 14 个 `hello-*` 技能。技能只在当前阶段需要时读取,因此简单任务不会被额外流程拖慢,复杂任务则会得到更完整的检查。
|
|
112
95
|
|
|
113
|
-
|
|
96
|
+
| 技能 | 关注点 |
|
|
97
|
+
|------|--------|
|
|
98
|
+
| `hello-ui` | UI 规划、设计契约、实现映射、视觉验收 |
|
|
99
|
+
| `hello-api` | API 设计、校验、错误格式、兼容性 |
|
|
100
|
+
| `hello-security` | 认证、密钥、权限、注入风险 |
|
|
101
|
+
| `hello-test` | TDD、覆盖率、边界用例、测试结构 |
|
|
102
|
+
| `hello-verify` | 审查、命令验证、交付证据、收尾 |
|
|
103
|
+
| `hello-errors` | 错误处理、日志、重试和恢复 |
|
|
104
|
+
| `hello-perf` | 性能、缓存、查询和渲染风险 |
|
|
105
|
+
| `hello-data` | 数据库、迁移、事务、索引 |
|
|
106
|
+
| `hello-arch` | 架构、边界、代码体积、可维护性 |
|
|
107
|
+
| `hello-debug` | 问题诊断和卡住时的升级处理 |
|
|
108
|
+
| `hello-subagent` | 子代理分工和结果整合 |
|
|
109
|
+
| `hello-review` | 代码审查和结构化问题记录 |
|
|
110
|
+
| `hello-write` | 文档、报告和文字交付 |
|
|
111
|
+
| `hello-reflect` | 可复用经验和知识更新 |
|
|
114
112
|
|
|
115
|
-
|
|
113
|
+
所有 UI 任务都会先受共享的 UI 质量基线约束。
|
|
114
|
+
在已激活项目或明确的 UI 工作流里,`hello-ui` 会进一步补充设计契约执行、设计系统映射与视觉验收。
|
|
115
|
+
当需要视觉证据时,HelloAGENTS 可以写入 `.helloagents/.ralph-visual.json`。
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
<tr>
|
|
119
|
-
<td width="50%" valign="top">
|
|
120
|
-
<img src="./readme_images/02-feature-icon-installer.svg" width="48" align="left">
|
|
117
|
+
### 2)面向不同工作方式的命令
|
|
121
118
|
|
|
122
|
-
|
|
119
|
+
命令在 AI CLI 对话中使用,以 `~` 开头。HelloAGENTS 会直接读取对应 command skill;无关技能不会提前加载,除非后续流程确实需要。
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
| 命令 | 用途 |
|
|
122
|
+
|------|------|
|
|
123
|
+
| `~idea` | 轻量探索和方向比较;不写文件 |
|
|
124
|
+
| `~auto` | 自动选择主路径,并持续推进到交付或真实阻塞 |
|
|
125
|
+
| `~plan` | 需求、方案、任务拆分和方案包 |
|
|
126
|
+
| `~build` | 按当前请求或现有方案实现 |
|
|
127
|
+
| `~prd` | 通过逐维度讨论生成现代产品需求文档 |
|
|
128
|
+
| `~loop` | 设置指标和守卫命令,循环改进、保留或回滚 |
|
|
129
|
+
| `~wiki` | 只创建或同步项目知识库 |
|
|
130
|
+
| `~init` | 完整项目初始化:知识库、项目级规则文件和 skills 链接 |
|
|
131
|
+
| `~test` | 为指定模块或最近变更编写测试 |
|
|
132
|
+
| `~verify` | 审查、运行验证命令、修复失败并收尾 |
|
|
133
|
+
| `~commit` | 生成规范化提交信息并同步知识库 |
|
|
134
|
+
| `~clean` | 归档已完成方案,清理临时运行文件 |
|
|
135
|
+
| `~help` | 显示命令和当前设置 |
|
|
128
136
|
|
|
129
|
-
|
|
137
|
+
兼容别名:
|
|
130
138
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
139
|
+
- `~do` → `~build`
|
|
140
|
+
- `~design` → `~plan`
|
|
141
|
+
- `~review` → `~verify` 的审查优先模式
|
|
134
142
|
|
|
135
|
-
|
|
143
|
+
### 3)项目知识库
|
|
136
144
|
|
|
137
|
-
|
|
145
|
+
HelloAGENTS 可以在 `.helloagents/` 下创建和维护项目知识库。
|
|
138
146
|
|
|
139
|
-
|
|
147
|
+
知识库让后续对话不用反复重新理解同一批项目事实。它可以包含:
|
|
140
148
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
149
|
+
| 文件或目录 | 用途 |
|
|
150
|
+
|------------|------|
|
|
151
|
+
| `context.md` | 项目概览、技术栈、架构、模块索引 |
|
|
152
|
+
| `guidelines.md` | 从仓库推断出的非显而易见编码约定 |
|
|
153
|
+
| `verify.yaml` | lint、test、build 等验证命令 |
|
|
154
|
+
| `CHANGELOG.md` | 项目级变更记录 |
|
|
155
|
+
| `DESIGN.md` | UI 项目的稳定设计契约 |
|
|
156
|
+
| `modules/*.md` | 模块级说明和经验 |
|
|
157
|
+
| `plans/<feature>/` | 活跃方案包 |
|
|
158
|
+
| `archive/` | 已归档方案包 |
|
|
146
159
|
|
|
147
|
-
|
|
160
|
+
`~wiki` 只创建或更新知识库。
|
|
148
161
|
|
|
149
|
-
|
|
162
|
+
`~init` 做得更多:创建或更新知识库、写入项目级规则文件,并刷新各宿主项目级原生 skills 链接。
|
|
150
163
|
|
|
151
|
-
|
|
164
|
+
### 4)结构化方案包
|
|
152
165
|
|
|
153
|
-
|
|
154
|
-
<td width="50%" valign="top">
|
|
155
|
-
<img src="./readme_images/05-feature-icon-compat.svg" width="48" align="left">
|
|
166
|
+
复杂任务不再只依赖聊天里的几段说明,而是可以落成方案包。
|
|
156
167
|
|
|
157
|
-
|
|
168
|
+
`~plan` 使用:
|
|
158
169
|
|
|
159
|
-
|
|
170
|
+
- `requirements.md`
|
|
171
|
+
- `plan.md`
|
|
172
|
+
- `tasks.md`
|
|
173
|
+
- `contract.json`
|
|
160
174
|
|
|
161
|
-
|
|
175
|
+
`~prd` 还会生成 PRD 文件,例如:
|
|
162
176
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
177
|
+
- `prd/00-overview.md`
|
|
178
|
+
- `prd/01-user-stories.md`
|
|
179
|
+
- `prd/02-functional.md`
|
|
180
|
+
- `prd/03-ui-design.md`
|
|
181
|
+
- `prd/04-technical.md`
|
|
182
|
+
- `prd/05-nonfunctional.md`
|
|
183
|
+
- `prd/06-i18n-l10n.md`
|
|
184
|
+
- `prd/07-accessibility.md`
|
|
185
|
+
- `prd/08-content.md`
|
|
186
|
+
- `prd/09-testing.md`
|
|
187
|
+
- `prd/10-deployment.md`
|
|
188
|
+
- `prd/11-legal-privacy.md`
|
|
189
|
+
- `prd/12-timeline.md`
|
|
168
190
|
|
|
169
|
-
|
|
191
|
+
`contract.json` 会影响验证范围、reviewer/tester 关注点、可选 advisor 检查和可选视觉验收。
|
|
170
192
|
|
|
171
|
-
|
|
193
|
+
### 5)状态与恢复
|
|
172
194
|
|
|
173
|
-
|
|
195
|
+
长任务需要一个小型恢复快照,但多个对话共用一个状态文件并不安全。
|
|
174
196
|
|
|
175
|
-
|
|
176
|
-
<td width="50%" valign="top">
|
|
177
|
-
<img src="./readme_images/05-feature-icon-compat.svg" width="48" align="left">
|
|
197
|
+
HelloAGENTS 现在只从 `state_path` 解析当前状态文件:
|
|
178
198
|
|
|
179
|
-
|
|
199
|
+
- 宿主提供稳定会话标识时:`.helloagents/sessions/<branch>/<session>/STATE.md`
|
|
200
|
+
- 宿主未提供稳定会话标识时:`.helloagents/sessions/<branch>/default/STATE.md`
|
|
180
201
|
|
|
181
|
-
|
|
202
|
+
`STATE.md` 只记录当前工作流做到哪里,不承担所有对话的统一记忆。
|
|
182
203
|
|
|
183
|
-
|
|
204
|
+
### 6)验证与交付证据
|
|
184
205
|
|
|
185
|
-
|
|
186
|
-
</tr>
|
|
187
|
-
</table>
|
|
206
|
+
HelloAGENTS 不把“命令通过”和“任务完成”简单画等号。交付还可能要求需求覆盖、任务清单、审查证据、advisor 证据和视觉证据。
|
|
188
207
|
|
|
189
|
-
|
|
208
|
+
运行态证据文件包括:
|
|
190
209
|
|
|
191
|
-
|
|
210
|
+
- `.helloagents/.ralph-review.json`
|
|
211
|
+
- `.helloagents/.ralph-advisor.json`
|
|
212
|
+
- `.helloagents/.ralph-visual.json`
|
|
213
|
+
- `.helloagents/.ralph-closeout.json`
|
|
214
|
+
- `.helloagents/loop-results.tsv`
|
|
192
215
|
|
|
193
|
-
|
|
194
|
-
npm install -g helloagents
|
|
195
|
-
```
|
|
216
|
+
### 7)更安全的安装、更新、清理和诊断
|
|
196
217
|
|
|
197
|
-
|
|
218
|
+
CLI 显式管理宿主文件:
|
|
198
219
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
220
|
+
- `install` 只写入指定目标,除非使用 `--all`
|
|
221
|
+
- `update` 刷新指定目标或全部目标
|
|
222
|
+
- `cleanup` 删除受管注入和链接
|
|
223
|
+
- `uninstall` 在移除包前执行对应清理
|
|
224
|
+
- `doctor` 检查规则文件、链接、hooks、配置项、插件根目录、缓存副本和版本漂移
|
|
202
225
|
|
|
203
|
-
|
|
226
|
+
## 快速开始
|
|
204
227
|
|
|
205
|
-
|
|
228
|
+
### 1)安装包
|
|
206
229
|
|
|
207
230
|
```bash
|
|
208
|
-
|
|
209
|
-
helloagents install --all --standby
|
|
231
|
+
npm install -g helloagents
|
|
210
232
|
```
|
|
211
233
|
|
|
212
|
-
|
|
234
|
+
如果系统里已经有别的 `helloagents` 可执行文件,可以使用稳定别名:
|
|
213
235
|
|
|
214
|
-
|
|
236
|
+
```bash
|
|
237
|
+
helloagents-js
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
`postinstall` 只安装包命令并初始化 `~/.helloagents/helloagents.json`,不会自动部署到任何 AI CLI。
|
|
215
241
|
|
|
216
|
-
|
|
217
|
-
|------|----------|------|
|
|
218
|
-
| 先安装包,不立即改宿主 | `npm install -g helloagents` | 仅安装命令与 `~/.helloagents/helloagents.json` |
|
|
219
|
-
| 默认保持轻量 | `helloagents install --all --standby` | **标准模式**:显式为目标 CLI 注入精简规则 |
|
|
220
|
-
| 所有项目启用完整规则 | `helloagents install --all --global` 或 `helloagents --global` | 切到 **全局模式**:Claude/Gemini 走原生插件/扩展,Codex 自动安装原生本地插件 |
|
|
221
|
-
| 本地切分支/改文件后重新同步 | `helloagents update codex`、`helloagents install --all --standby`、`helloagents --global` | 按目标或当前模式刷新已注入/已复制的文件 |
|
|
242
|
+
### 2)部署到目标 CLI
|
|
222
243
|
|
|
223
|
-
|
|
244
|
+
想按项目显式激活,使用标准模式:
|
|
224
245
|
|
|
225
246
|
```bash
|
|
226
247
|
helloagents install codex --standby
|
|
227
|
-
helloagents install --all --
|
|
228
|
-
helloagents update codex
|
|
229
|
-
helloagents cleanup claude --global
|
|
230
|
-
helloagents uninstall gemini
|
|
248
|
+
helloagents install --all --standby
|
|
231
249
|
```
|
|
232
250
|
|
|
233
|
-
|
|
234
|
-
- 省略 `--standby` / `--global` 时:优先沿用该 CLI 已记录或已检测到的模式;如果没有历史记录,则回退到 `standby`
|
|
235
|
-
- `install` / `update` 只处理目标 CLI;用 `--all` 可显式批量处理全部目标
|
|
236
|
-
- Claude Code / Gemini CLI 在 `global` 模式下仍需手动执行原生插件/扩展安装或卸载命令;Codex CLI 仍由 HelloAGENTS 自动处理本地插件安装
|
|
237
|
-
|
|
238
|
-
如需所有项目启用完整规则,切换到全局模式:
|
|
251
|
+
想在所有项目默认启用完整规则,使用全局模式:
|
|
239
252
|
|
|
240
253
|
```bash
|
|
241
254
|
helloagents --global
|
|
242
255
|
```
|
|
243
256
|
|
|
244
|
-
|
|
257
|
+
### 3)在 AI CLI 里验证
|
|
245
258
|
|
|
246
|
-
|
|
247
|
-
# Claude Code
|
|
248
|
-
/plugin marketplace add hellowind777/helloagents
|
|
259
|
+
输入:
|
|
249
260
|
|
|
250
|
-
|
|
251
|
-
|
|
261
|
+
```text
|
|
262
|
+
~help
|
|
252
263
|
```
|
|
253
264
|
|
|
254
|
-
|
|
255
|
-
- `~/.agents/plugins/marketplace.json`
|
|
256
|
-
- `~/plugins/helloagents/`
|
|
257
|
-
- `~/.codex/plugins/cache/local-plugins/helloagents/local/`
|
|
258
|
-
- `~/.codex/config.toml` 中的 `helloagents@local-plugins`
|
|
265
|
+
应能看到 13 个对话命令和当前设置。
|
|
259
266
|
|
|
260
|
-
###
|
|
267
|
+
### 4)创建项目知识
|
|
261
268
|
|
|
262
|
-
|
|
263
|
-
# 在 AI CLI 对话中输入:
|
|
264
|
-
~help
|
|
265
|
-
```
|
|
269
|
+
只创建知识库:
|
|
266
270
|
|
|
267
|
-
|
|
271
|
+
```text
|
|
272
|
+
~wiki
|
|
268
273
|
```
|
|
269
|
-
💡【HelloAGENTS】- 帮助
|
|
270
274
|
|
|
271
|
-
|
|
275
|
+
完整初始化项目:
|
|
272
276
|
|
|
273
|
-
|
|
277
|
+
```text
|
|
278
|
+
~init
|
|
274
279
|
```
|
|
275
280
|
|
|
276
|
-
|
|
281
|
+
## CLI 管理
|
|
277
282
|
|
|
278
|
-
|
|
279
|
-
# 简单任务 — 直接执行
|
|
280
|
-
"修复 src/utils.ts 第 42 行的拼写错误"
|
|
283
|
+
### Shell 命令
|
|
281
284
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
```bash
|
|
286
|
+
helloagents --standby
|
|
287
|
+
helloagents --global
|
|
288
|
+
helloagents install codex --standby
|
|
289
|
+
helloagents install --all --global
|
|
290
|
+
helloagents update codex
|
|
291
|
+
helloagents cleanup claude --global
|
|
292
|
+
helloagents uninstall gemini
|
|
293
|
+
helloagents doctor
|
|
294
|
+
helloagents doctor codex --json
|
|
287
295
|
```
|
|
288
296
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
HelloAGENTS 在不同模式下会写入不同文件,但写入/恢复/清理都是可预期的。
|
|
297
|
+
支持的目标:
|
|
292
298
|
|
|
293
|
-
|
|
299
|
+
- `claude`
|
|
300
|
+
- `gemini`
|
|
301
|
+
- `codex`
|
|
302
|
+
- `--all`
|
|
294
303
|
|
|
295
|
-
|
|
296
|
-
|-----|------------------------------|----------|-------------------------|
|
|
297
|
-
| Claude Code | `~/.claude/CLAUDE.md`、`~/.claude/settings.json`、`~/.claude/helloagents -> <包根目录>` | 现有非 HelloAGENTS markdown、settings、permissions、hooks | 删除注入标记块、HelloAGENTS hooks/permissions 和符号链接 |
|
|
298
|
-
| Gemini CLI | `~/.gemini/GEMINI.md`、`~/.gemini/settings.json`、`~/.gemini/helloagents -> <包根目录>` | 现有 markdown、hooks 和无关配置 | 删除注入标记块、HelloAGENTS hooks 和符号链接 |
|
|
299
|
-
| Codex CLI | `~/.codex/AGENTS.md`、`~/.codex/config.toml`、形如 `~/.codex/config.toml_YYYYMMDD-HHMMSS.bak` 的时间戳备份、`~/.codex/helloagents -> <包根目录>` | 通过 backup/restore 保留原有顶层 TOML 配置和无关 section | 删除注入标记块、HelloAGENTS TOML 键、符号链接以及最新的 HelloAGENTS 托管备份 |
|
|
304
|
+
省略 `--standby` 或 `--global` 时,HelloAGENTS 会先复用该 CLI 已记录或检测到的模式,再回退到 `standby`。
|
|
300
305
|
|
|
301
|
-
###
|
|
306
|
+
### 标准模式文件
|
|
302
307
|
|
|
303
|
-
| CLI |
|
|
304
|
-
|
|
305
|
-
| Claude Code |
|
|
306
|
-
| Gemini CLI |
|
|
307
|
-
| Codex CLI |
|
|
308
|
+
| CLI | 写入或更新的文件 | 清理行为 |
|
|
309
|
+
|-----|------------------|----------|
|
|
310
|
+
| Claude Code | `~/.claude/CLAUDE.md`、`~/.claude/settings.json`、`~/.claude/helloagents -> <package-root>` | 删除受管标记块、HelloAGENTS hooks / 权限和符号链接 |
|
|
311
|
+
| Gemini CLI | `~/.gemini/GEMINI.md`、`~/.gemini/settings.json`、`~/.gemini/helloagents -> <package-root>` | 删除受管标记块、HelloAGENTS hooks 和符号链接 |
|
|
312
|
+
| Codex CLI | `~/.codex/AGENTS.md`、`~/.codex/config.toml`、`~/.codex/helloagents -> <package-root>`、受管备份 | 删除受管标记块、受管配置键、符号链接和最近一次受管备份 |
|
|
308
313
|
|
|
309
|
-
###
|
|
314
|
+
### 全局模式文件
|
|
310
315
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
+
| CLI | 安装方式 | 涉及文件 |
|
|
317
|
+
|-----|----------|----------|
|
|
318
|
+
| Claude Code | 原生插件安装 | 由 Claude Code 插件系统管理 |
|
|
319
|
+
| Gemini CLI | 原生扩展安装 | 由 Gemini 扩展系统管理 |
|
|
320
|
+
| Codex CLI | 原生本地插件链路 | `~/.agents/plugins/marketplace.json`、`~/plugins/helloagents/`、`~/.codex/plugins/cache/local-plugins/helloagents/local/`、`~/.codex/config.toml`、`~/.codex/helloagents -> ~/plugins/helloagents` |
|
|
316
321
|
|
|
317
|
-
|
|
322
|
+
Claude Code 和 Gemini CLI 的全局模式仍需要宿主原生命令:
|
|
318
323
|
|
|
319
|
-
|
|
324
|
+
```text
|
|
325
|
+
/plugin marketplace add hellowind777/helloagents
|
|
326
|
+
gemini extensions install https://github.com/hellowind777/helloagents
|
|
327
|
+
```
|
|
320
328
|
|
|
321
|
-
|
|
329
|
+
Codex 全局模式由 HelloAGENTS 通过本地插件路径自动安装。
|
|
322
330
|
|
|
323
|
-
|
|
324
|
-
|------|------|
|
|
325
|
-
| `~idea` | 轻量点子探索 — 比较方向与方案,不写文件 |
|
|
326
|
-
| `~auto` | 自动执行 — 自动选择主路径并持续推进到实现 / 验证 / 收尾,并优先复用现有活跃方案包 |
|
|
327
|
-
| `~plan` | 结构化规划 — 需求澄清 + 方案确认 + 计划包 |
|
|
328
|
-
| `~build` | 执行实现 — 基于当前需求或现有计划包完成实现 |
|
|
329
|
-
| `~prd` | 完整 PRD — 13 维度头脑风暴式探索,生成产品需求文档 |
|
|
330
|
-
| `~loop` | 自主迭代优化 — 设定目标和指标,AI 循环改进直到达标 |
|
|
331
|
+
## 对话命令
|
|
331
332
|
|
|
332
|
-
|
|
333
|
+
### 常见流程
|
|
333
334
|
|
|
334
|
-
|
|
|
335
|
+
| 目标 | 使用 |
|
|
335
336
|
|------|------|
|
|
336
|
-
|
|
|
337
|
-
|
|
|
337
|
+
| 写文件前先比较方案 | `~idea "compare two API designs"` |
|
|
338
|
+
| 让 HelloAGENTS 自己选路并持续推进 | `~auto "add JWT login"` |
|
|
339
|
+
| 先审查方案再实现 | `~plan "refactor payment module"` |
|
|
340
|
+
| 按明确请求或活跃方案实现 | `~build "finish task 2 in the plan"` |
|
|
341
|
+
| 生成完整产品需求文档 | `~prd "modern dashboard for operations team"` |
|
|
342
|
+
| 按指标迭代优化 | `~loop "reduce bundle size" --metric "npm run size" --direction lower` |
|
|
343
|
+
| 只创建或刷新项目知识 | `~wiki` |
|
|
344
|
+
| 完整激活项目工作流 | `~init` |
|
|
345
|
+
| 验证当前工作 | `~verify` |
|
|
346
|
+
| 生成提交信息并同步知识库 | `~commit` |
|
|
338
347
|
|
|
339
|
-
|
|
348
|
+
### 已激活项目与未激活项目
|
|
340
349
|
|
|
341
|
-
|
|
342
|
-
|------|------|
|
|
343
|
-
| `~wiki` | 仅创建/同步项目知识库(`.helloagents/`) |
|
|
344
|
-
| `~init` | 完整初始化项目:知识库 + 项目级规则文件 |
|
|
345
|
-
| `~commit` | 生成规范化提交信息 + 知识库同步 |
|
|
346
|
-
| `~clean` | 归档已完成方案,清理临时文件 |
|
|
347
|
-
| `~help` | 显示所有命令和当前配置 |
|
|
350
|
+
标准模式下,未激活项目只获得轻量规则和显式 `~command` 入口。项目中出现 `.helloagents/` 后才进入项目级工作流,通常由 `~wiki` 或 `~init` 创建。
|
|
348
351
|
|
|
349
|
-
|
|
350
|
-
- `~design` → `~plan`
|
|
351
|
-
- `~do` → `~build`
|
|
352
|
-
- `~review` → `~verify`(审查优先模式)
|
|
352
|
+
全局模式下,HelloAGENTS 默认启用完整规则。
|
|
353
353
|
|
|
354
|
-
##
|
|
354
|
+
## 项目知识库
|
|
355
355
|
|
|
356
|
-
|
|
356
|
+
### 本地模式
|
|
357
357
|
|
|
358
|
-
|
|
358
|
+
默认情况下,项目知识写在项目内:
|
|
359
359
|
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
"output_language": "",
|
|
363
|
-
"output_format": true,
|
|
364
|
-
"notify_level": 0,
|
|
365
|
-
"ralph_loop_enabled": true,
|
|
366
|
-
"guard_enabled": true,
|
|
367
|
-
"kb_create_mode": 1,
|
|
368
|
-
"project_store_mode": "local",
|
|
369
|
-
"commit_attribution": "",
|
|
370
|
-
"install_mode": "standby"
|
|
371
|
-
}
|
|
360
|
+
```text
|
|
361
|
+
.helloagents/
|
|
372
362
|
```
|
|
373
363
|
|
|
374
|
-
|
|
375
|
-
|--------|-------|------|
|
|
376
|
-
| `output_language` | `""` | 空=跟随用户语言,填写 `zh-CN`、`en` 等指定 |
|
|
377
|
-
| `output_format` | `true` | `true`=仅主代理在流式结束后的最终收尾回复可使用 HelloAGENTS 布局;所有流式/进度/中间输出及所有子代理输出保持自然;`false`=自然输出 |
|
|
378
|
-
| `notify_level` | `0` | `0`=关闭,`1`=桌面通知,`2`=声音,`3`=两者 |
|
|
379
|
-
| `ralph_loop_enabled` | `true` | 任务完成时自动运行验证 |
|
|
380
|
-
| `guard_enabled` | `true` | 拦截危险命令 |
|
|
381
|
-
| `kb_create_mode` | `1` | `0`=关闭,`1`=已激活项目或全局模式中的编码任务自动,`2`=已激活项目或全局模式中始终 |
|
|
382
|
-
| `project_store_mode` | `"local"` | `"local"`=知识库/方案包保留在项目本地 `.helloagents/`;`"repo-shared"`=本地 `.helloagents/` 仅保留激活/STATE/运行态,知识库与方案包改写到 `~/.helloagents/projects/<repo-key>/` |
|
|
383
|
-
| `commit_attribution` | `""` | 空=不添加,填写内容则追加到 commit message |
|
|
384
|
-
| `install_mode` | `"standby"` | `"standby"`=按项目激活(精简规则),`"global"`=所有项目启用完整规则 |
|
|
364
|
+
这个目录同时承担:
|
|
385
365
|
|
|
386
|
-
|
|
387
|
-
|
|
366
|
+
- 激活信号
|
|
367
|
+
- 本地知识库目录
|
|
368
|
+
- 方案目录
|
|
369
|
+
- 状态与运行态目录
|
|
388
370
|
|
|
389
|
-
|
|
390
|
-
```bash
|
|
391
|
-
helloagents --global
|
|
392
|
-
```
|
|
371
|
+
### 共享模式
|
|
393
372
|
|
|
394
|
-
|
|
395
|
-
```bash
|
|
396
|
-
helloagents --standby
|
|
397
|
-
```
|
|
373
|
+
当 `project_store_mode = "repo-shared"` 时:
|
|
398
374
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
```
|
|
375
|
+
- 本地 `.helloagents/` 保留激活和运行态文件
|
|
376
|
+
- 稳定知识和方案文件写到 `~/.helloagents/projects/<repo-key>/`
|
|
377
|
+
- 同一 git 仓库的多个 worktree 可以共享这些稳定资料
|
|
403
378
|
|
|
404
|
-
|
|
405
|
-
```json
|
|
406
|
-
{ "kb_create_mode": 0 }
|
|
407
|
-
```
|
|
379
|
+
运行态文件仍保留在当前项目本地:
|
|
408
380
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
```
|
|
381
|
+
- `state_path`
|
|
382
|
+
- `.ralph-*.json`
|
|
383
|
+
- `loop-results.tsv`
|
|
413
384
|
|
|
414
|
-
|
|
415
|
-
```json
|
|
416
|
-
{ "notify_level": 3 }
|
|
417
|
-
```
|
|
385
|
+
### 知识创建规则
|
|
418
386
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
387
|
+
| 命令或配置 | 行为 |
|
|
388
|
+
|------------|------|
|
|
389
|
+
| `~wiki` | 只创建或同步知识库 |
|
|
390
|
+
| `~init` | 创建知识库,同时写入项目级规则文件和 skills 链接 |
|
|
391
|
+
| `kb_create_mode = 0` | 关闭自动知识更新 |
|
|
392
|
+
| `kb_create_mode = 1` | 已激活项目或全局模式中,编码任务自动更新知识 |
|
|
393
|
+
| `kb_create_mode = 2` | 已激活项目或全局模式中,更积极地更新知识 |
|
|
423
394
|
|
|
424
|
-
|
|
395
|
+
## 工作流与交付
|
|
425
396
|
|
|
426
|
-
|
|
397
|
+
### 工作流阶段
|
|
427
398
|
|
|
428
|
-
|
|
399
|
+
结构化任务使用以下阶段:
|
|
429
400
|
|
|
430
|
-
|
|
401
|
+
```text
|
|
402
|
+
ROUTE / TIER → SPEC → PLAN → BUILD → VERIFY → CONSOLIDATE
|
|
403
|
+
```
|
|
431
404
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
405
|
+
| 阶段 | 用途 |
|
|
406
|
+
|------|------|
|
|
407
|
+
| `ROUTE / TIER` | 判断任务应走 idea、plan、build、verify、PRD 还是自动流程 |
|
|
408
|
+
| `SPEC` | 明确目标、约束和完成标准 |
|
|
409
|
+
| `PLAN` | 准备方案文件并选择需要的技能 |
|
|
410
|
+
| `BUILD` | 实现并做局部检查 |
|
|
411
|
+
| `VERIFY` | 审查、运行命令、核对契约和证据 |
|
|
412
|
+
| `CONSOLIDATE` | 更新状态、知识库和收尾证据 |
|
|
438
413
|
|
|
439
|
-
|
|
440
|
-
- `T0` — 只读探索、点子比较、方向发散
|
|
441
|
-
- `T1` — 低风险小改动、明确实现、显式验证
|
|
442
|
-
- `T2` — 多文件功能、新项目、需要结构化产物的任务
|
|
443
|
-
- `T3` — 高风险或不可逆操作,如认证、安全、支付、数据库、生产发布
|
|
414
|
+
### 交付分层
|
|
444
415
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
416
|
+
| 分层 | 典型场景 |
|
|
417
|
+
|------|----------|
|
|
418
|
+
| `T0` | 只读分析、点子探索、方案比较 |
|
|
419
|
+
| `T1` | 低风险小修复或明确验证 |
|
|
420
|
+
| `T2` | 多文件功能、新项目、结构化方案 |
|
|
421
|
+
| `T3` | 高风险或不可逆工作,如认证、支付、数据库、发布、生产操作 |
|
|
450
422
|
|
|
451
|
-
|
|
452
|
-
- UI / 前端 / 视觉交互任务始终先遵循当前 bootstrap 文件中的 UI 质量基线
|
|
453
|
-
- 在已激活项目、全局模式或显式 UI 工作流命令中,`hello-ui` 会进一步补充设计契约执行、设计系统映射与视觉验收
|
|
454
|
-
- 只有当 UI `contract.json` 显式要求更强 UI 保障时,HelloAGENTS 才会在保持默认路径轻量的前提下,额外引入 `.helloagents/.ralph-advisor.json` 和 `.helloagents/.ralph-visual.json`
|
|
455
|
-
- 涉及 API?→ `hello-api` 激活(REST 规范、校验、错误格式)
|
|
456
|
-
- 任何代码变更?→ `hello-test`、`hello-verify`、`hello-review` 激活
|
|
423
|
+
### UI 工作流
|
|
457
424
|
|
|
458
|
-
|
|
425
|
+
UI 任务遵循以下优先级:
|
|
459
426
|
|
|
460
|
-
|
|
427
|
+
1. 当前 `plan.md` 或 PRD 中的 UI 决策
|
|
428
|
+
2. `.helloagents/DESIGN.md`
|
|
429
|
+
3. 共享 UI 质量基线
|
|
430
|
+
4. `hello-ui` 的实现和验收规则
|
|
461
431
|
|
|
462
|
-
|
|
463
|
-
|------|---------|------|------|----------|
|
|
464
|
-
| **标准模式** (默认) | `helloagents install <target> --standby` 或 `helloagents install --all --standby` | `bootstrap-lite.md`(含压缩版质量下限、UI 质量基线、安全规则与完成约束的精简规则) | `~command` 按需使用;激活前 UI 任务仍受 UI 质量基线约束,出现 `.helloagents/` 后切换到完整流程 | 按需使用,不影响其他项目 |
|
|
465
|
-
| **全局模式** | Claude/Gemini 手动装插件;Codex 自动装原生本地插件 | `bootstrap.md`(完整规则) | 14 个技能自动激活 | 全面使用 HelloAGENTS |
|
|
432
|
+
更重的 UI 任务可以通过 `contract.json` 要求:
|
|
466
433
|
|
|
467
|
-
|
|
434
|
+
- `ui.styleAdvisor.required`
|
|
435
|
+
- `ui.visualValidation.required`
|
|
468
436
|
|
|
469
|
-
|
|
437
|
+
这些要求分别通过 `.helloagents/.ralph-advisor.json` 和 `.helloagents/.ralph-visual.json` 收尾。
|
|
470
438
|
|
|
471
|
-
|
|
439
|
+
### 验证命令来源
|
|
472
440
|
|
|
473
|
-
|
|
441
|
+
验证命令按以下顺序检测:
|
|
474
442
|
|
|
475
|
-
|
|
443
|
+
1. 逻辑 `.helloagents/verify.yaml`
|
|
444
|
+
2. `package.json` 等包管理脚本
|
|
445
|
+
3. 自动检测
|
|
476
446
|
|
|
477
|
-
|
|
447
|
+
当 `project_store_mode = "repo-shared"` 时,逻辑 `.helloagents/verify.yaml` 会从共享项目存储中解析。
|
|
478
448
|
|
|
479
|
-
|
|
480
|
-
|------|------|----------|
|
|
481
|
-
| `~idea` | 仅做轻量探索,不写文件 | 想先比较方向,不想进入完整项目流程 |
|
|
482
|
-
| `~plan` | 仅做交互式规划,生成计划包 | 想先审查方案再编码 |
|
|
483
|
-
| `~build` | 从当前需求或现有计划包执行实现 | 需求已明确,想直接开始做 |
|
|
484
|
-
| `~verify` | 审查与验证工作流 | 想先看审查结果、跑检查并修复 |
|
|
485
|
-
| `~auto` | 在以上模式之间自动选择并一路推进 | 需求明确,想要端到端交付 |
|
|
486
|
-
| `~prd` | 13 维度 PRD 生成 | 需要完整的产品需求文档 |
|
|
449
|
+
## 配置
|
|
487
450
|
|
|
488
|
-
|
|
451
|
+
配置文件:
|
|
489
452
|
|
|
490
|
-
|
|
453
|
+
```text
|
|
454
|
+
~/.helloagents/helloagents.json
|
|
455
|
+
```
|
|
491
456
|
|
|
492
|
-
|
|
493
|
-
- 优先级:逻辑 `.helloagents/verify.yaml`(`project_store_mode=repo-shared` 时解析到共享知识目录)→ `package.json` scripts → 自动检测
|
|
494
|
-
- 全部通过?→ 收集技能检查清单 → 验证 → 完成
|
|
495
|
-
- 有失败?→ 反思 → 修复 → 重跑(3 次连续失败后触发熔断)
|
|
496
|
-
- 若当前活跃方案包仍有未完成任务、缺少必需结构化产物,或残留模板占位内容,交付也会被额外把关拦下
|
|
457
|
+
默认结构:
|
|
497
458
|
|
|
498
|
-
|
|
459
|
+
```json
|
|
460
|
+
{
|
|
461
|
+
"output_language": "",
|
|
462
|
+
"output_format": true,
|
|
463
|
+
"notify_level": 0,
|
|
464
|
+
"ralph_loop_enabled": true,
|
|
465
|
+
"guard_enabled": true,
|
|
466
|
+
"kb_create_mode": 1,
|
|
467
|
+
"project_store_mode": "local",
|
|
468
|
+
"commit_attribution": "",
|
|
469
|
+
"install_mode": "standby"
|
|
470
|
+
}
|
|
471
|
+
```
|
|
499
472
|
|
|
500
|
-
|
|
473
|
+
| 键 | 默认值 | 含义 |
|
|
474
|
+
|----|--------|------|
|
|
475
|
+
| `output_language` | `""` | 默认跟随用户语言 |
|
|
476
|
+
| `output_format` | `true` | 只有主代理最终收尾消息可以使用 HelloAGENTS 格式 |
|
|
477
|
+
| `notify_level` | `0` | `0` 关闭,`1` 桌面通知,`2` 声音,`3` 两者 |
|
|
478
|
+
| `ralph_loop_enabled` | `true` | 任务完成后运行验证 |
|
|
479
|
+
| `guard_enabled` | `true` | 拦截危险命令 |
|
|
480
|
+
| `kb_create_mode` | `1` | 控制知识库自动更新 |
|
|
481
|
+
| `project_store_mode` | `"local"` | `local` 或 `repo-shared` |
|
|
482
|
+
| `commit_attribution` | `""` | 提交信息附加署名 |
|
|
483
|
+
| `install_mode` | `"standby"` | 当前默认安装模式 |
|
|
501
484
|
|
|
502
|
-
|
|
485
|
+
## 各 CLI 集成方式
|
|
503
486
|
|
|
504
|
-
|
|
487
|
+
### Claude Code
|
|
505
488
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
| `context.md` | 项目架构、技术栈、约定 |
|
|
511
|
-
| `guidelines.md` | 非显而易见的编码规则 |
|
|
512
|
-
| `verify.yaml` | 验证命令 |
|
|
513
|
-
| `CHANGELOG.md` | 变更历史 |
|
|
514
|
-
| `modules/*.md` | 模块文档 + 经验 |
|
|
515
|
-
| `plans/` | 活跃计划包(`requirements.md`、`plan.md`、`tasks.md`、`contract.json`) |
|
|
516
|
-
| `archive/` | 已完成计划包 |
|
|
489
|
+
- 标准模式写入 `~/.claude/CLAUDE.md`
|
|
490
|
+
- 标准模式在 `~/.claude/settings.json` 中写入受管 hooks 和权限
|
|
491
|
+
- 标准模式创建 `~/.claude/helloagents -> <package-root>`
|
|
492
|
+
- 全局模式使用 Claude Code 插件系统
|
|
517
493
|
|
|
518
|
-
###
|
|
494
|
+
### Gemini CLI
|
|
519
495
|
|
|
520
|
-
-
|
|
521
|
-
-
|
|
522
|
-
-
|
|
523
|
-
-
|
|
524
|
-
- 按 `kb_create_mode` 设置同步知识库
|
|
496
|
+
- 标准模式写入 `~/.gemini/GEMINI.md`
|
|
497
|
+
- 标准模式在 `~/.gemini/settings.json` 中写入受管 hooks
|
|
498
|
+
- 标准模式创建 `~/.gemini/helloagents -> <package-root>`
|
|
499
|
+
- 全局模式使用 Gemini 扩展系统
|
|
525
500
|
|
|
526
|
-
###
|
|
501
|
+
### Codex CLI
|
|
527
502
|
|
|
528
|
-
|
|
529
|
-
1. 审查 → 构思 → 修改 → 提交 → 验证 → 决策 → 记录 → 重复
|
|
530
|
-
2. 结果记录在 `.helloagents/loop-results.tsv`
|
|
531
|
-
3. 失败实验使用 `git revert` 干净回滚
|
|
503
|
+
Codex 默认走规则文件驱动。
|
|
532
504
|
|
|
533
|
-
|
|
505
|
+
- 标准模式写入 `~/.codex/AGENTS.md`
|
|
506
|
+
- 标准模式写入受管 `model_instructions_file` 指向该文件
|
|
507
|
+
- 标准模式写入受管 `notify` 命令用于收尾通知
|
|
508
|
+
- 标准模式创建 `~/.codex/helloagents -> <package-root>`
|
|
509
|
+
- 全局模式安装原生本地插件链路
|
|
510
|
+
- HelloAGENTS 默认不启用 Codex hooks
|
|
534
511
|
|
|
535
|
-
|
|
512
|
+
## 验证
|
|
513
|
+
|
|
514
|
+
运行全部测试:
|
|
536
515
|
|
|
537
516
|
```bash
|
|
538
517
|
npm test
|
|
539
518
|
```
|
|
540
519
|
|
|
541
|
-
|
|
542
|
-
- 标准/全局模式的安装、重装、刷新、卸载、模式切换
|
|
543
|
-
- Claude / Gemini / Codex 配置文件的合并、恢复、清理行为
|
|
544
|
-
- Codex 本地插件在本地切分支或文件更新后的刷新流程
|
|
545
|
-
- 运行时 inject / route / guard / Ralph Loop 流程
|
|
546
|
-
- `~/.codex/` 已不存在时,Codex 全局产物的清理行为
|
|
547
|
-
|
|
548
|
-
## ❓ FAQ
|
|
549
|
-
|
|
550
|
-
<details>
|
|
551
|
-
<summary><strong>Q:这是 CLI 工具还是 prompt 框架?</strong></summary>
|
|
552
|
-
|
|
553
|
-
**A:** 两者都是。CLI(`cli.mjs`)负责安装、模式切换和 CLI 配置。实际工作流来自 `bootstrap.md` / `bootstrap-lite.md` 规则、质量技能,以及按宿主选择的运行时辅助流程。Claude/Gemini 会使用 `notify.mjs`、`guard.mjs`、`ralph-loop.mjs` 等 hooks;Codex 默认走规则文件驱动,尽量保持 TUI 安静。可以理解为:交付系统 + 智能质量协议。
|
|
554
|
-
</details>
|
|
520
|
+
当前测试覆盖:
|
|
555
521
|
|
|
556
|
-
|
|
557
|
-
|
|
522
|
+
- 安装、更新、卸载、清理和模式切换
|
|
523
|
+
- Claude、Gemini、Codex 的配置合并与恢复
|
|
524
|
+
- Codex 受管 `model_instructions_file`、`notify`、本地插件、marketplace 和缓存行为
|
|
525
|
+
- `helloagents doctor`
|
|
526
|
+
- 项目存储和 `repo-shared`
|
|
527
|
+
- 会话级 `state_path`
|
|
528
|
+
- 运行时选路、Guard、验证、视觉证据和交付门控
|
|
529
|
+
- README 与 skill 契约一致性
|
|
558
530
|
|
|
559
|
-
|
|
560
|
-
- Python 包 → 纯 Node.js/Markdown 架构
|
|
561
|
-
- 15 个命令 → 12 个命令 + 14 个自动激活质量技能
|
|
562
|
-
- 6 个 CLI 目标 → 3 个(Claude Code + Codex CLI + Gemini CLI)
|
|
563
|
-
- 新增:检查清单把关、Guard 系统、~prd、~loop、~verify、设计系统生成
|
|
564
|
-
- 详见[版本历史](#-版本历史)。
|
|
565
|
-
</details>
|
|
531
|
+
## FAQ
|
|
566
532
|
|
|
567
|
-
|
|
568
|
-
<summary><strong>Q:该用哪个 CLI?</strong></summary>
|
|
533
|
+
### 这是 CLI 工具还是提示词框架?
|
|
569
534
|
|
|
570
|
-
|
|
571
|
-
</details>
|
|
535
|
+
两者都是。
|
|
572
536
|
|
|
573
|
-
|
|
574
|
-
|
|
537
|
+
- `cli.mjs` 负责安装、更新、清理、诊断和宿主配置
|
|
538
|
+
- `bootstrap.md` 与 `bootstrap-lite.md` 定义工作流规则
|
|
539
|
+
- `skills/` 定义任务类型相关行为
|
|
540
|
+
- `scripts/` 提供选路、Guard、通知、验证、状态和证据等运行时辅助能力
|
|
575
541
|
|
|
576
|
-
|
|
577
|
-
- **hello-ui**:深层 UI 实现与验收(设计契约、设计系统映射、无障碍、响应式、动画)
|
|
578
|
-
- **hello-api**:API 设计(REST、校验、错误格式、限流)
|
|
579
|
-
- **hello-security**:安全(认证、输入校验、XSS/CSRF、密钥管理)
|
|
580
|
-
- **hello-test**:测试(TDD 流程、边界用例、AAA 模式)
|
|
581
|
-
- **hello-verify**:验证把关(Ralph Loop、熔断器)
|
|
582
|
-
- **hello-errors**:错误处理(结构化错误、日志、恢复策略)
|
|
583
|
-
- **hello-perf**:性能(N+1、缓存、代码分割、虚拟滚动)
|
|
584
|
-
- **hello-data**:数据库(迁移、事务、索引、完整性)
|
|
585
|
-
- **hello-arch**:架构(SOLID、边界、代码体积限制)
|
|
586
|
-
- **hello-debug**:调试(四阶段流程、卡住时升级)
|
|
587
|
-
- **hello-subagent**:子代理编排(分发、协调、审查)
|
|
588
|
-
- **hello-review**:代码审查(逻辑、安全、性能、可维护性)
|
|
589
|
-
- **hello-write**:文档(金字塔原则、受众感知)
|
|
590
|
-
- **hello-reflect**:经验捕获(教训 → 知识库)
|
|
542
|
+
### 应该用 `~wiki` 还是 `~init`?
|
|
591
543
|
|
|
592
|
-
|
|
593
|
-
</details>
|
|
544
|
+
只想创建项目知识库,用 `~wiki`。
|
|
594
545
|
|
|
595
|
-
|
|
596
|
-
<summary><strong>Q:标准模式和全局模式有什么区别?</strong></summary>
|
|
546
|
+
还想写入项目级规则文件和宿主原生 skills 链接,用 `~init`。
|
|
597
547
|
|
|
598
|
-
|
|
599
|
-
</details>
|
|
548
|
+
### standby 和 global 有什么区别?
|
|
600
549
|
|
|
601
|
-
|
|
602
|
-
<summary><strong>Q:项目知识存在哪里?</strong></summary>
|
|
550
|
+
`standby` 更轻量、更显式。它只把规则部署到指定 CLI,完整项目流程由项目激活触发。
|
|
603
551
|
|
|
604
|
-
|
|
605
|
-
</details>
|
|
552
|
+
`global` 默认更广泛地启用完整规则。Claude 和 Gemini 使用原生插件 / 扩展;Codex 使用本地插件路径。
|
|
606
553
|
|
|
607
|
-
|
|
608
|
-
<summary><strong>Q:Guard 系统是什么?</strong></summary>
|
|
554
|
+
### 为什么 Codex 默认不用 hooks?
|
|
609
555
|
|
|
610
|
-
|
|
611
|
-
- **L1 拦截**:执行前阻止破坏性命令(`rm -rf /`、`git push --force`、`DROP DATABASE`、`chmod 777`、`FLUSHALL`)
|
|
612
|
-
- **L2 建议**:扫描文件写入中的硬编码密钥、API key、.env 暴露 — 警告但不阻止
|
|
613
|
-
</details>
|
|
556
|
+
当前 Codex 集成使用规则文件、`model_instructions_file`、`notify` 和本地插件更稳定。hooks 输出仍可能显示在 TUI 中,因此 HelloAGENTS 默认不启用 Codex hooks。
|
|
614
557
|
|
|
615
|
-
|
|
616
|
-
<summary><strong>Q:开启格式化输出后,底部“下一步”栏表示什么?</strong></summary>
|
|
558
|
+
### 可以关闭通知或 Guard 吗?
|
|
617
559
|
|
|
618
|
-
|
|
619
|
-
</details>
|
|
560
|
+
可以。
|
|
620
561
|
|
|
621
|
-
|
|
622
|
-
|
|
562
|
+
- 把 `notify_level` 设为 `0` 可关闭通知
|
|
563
|
+
- 把 `guard_enabled` 设为 `false` 可关闭命令 Guard
|
|
623
564
|
|
|
624
|
-
|
|
625
|
-
</details>
|
|
565
|
+
### `npm uninstall -g helloagents` 会删除项目知识库吗?
|
|
626
566
|
|
|
627
|
-
|
|
628
|
-
<summary><strong>Q:~prd 是什么?</strong></summary>
|
|
567
|
+
不会。卸载包只移除包本身。项目 `.helloagents/` 文件和 `~/.helloagents/helloagents.json` 会保留,除非你手动删除。
|
|
629
568
|
|
|
630
|
-
|
|
631
|
-
</details>
|
|
569
|
+
## 故障排除
|
|
632
570
|
|
|
633
|
-
|
|
571
|
+
### `~help` 无法识别
|
|
634
572
|
|
|
635
|
-
|
|
573
|
+
检查:
|
|
636
574
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
---
|
|
642
|
-
|
|
643
|
-
### 扩展不工作(Gemini CLI)
|
|
644
|
-
|
|
645
|
-
**问题:** `gemini extensions install` 后 `~help` 无法识别
|
|
646
|
-
|
|
647
|
-
**解决:** 重启 Gemini CLI。用 `gemini extensions list` 确认安装状态,确保扩展已启用。
|
|
648
|
-
|
|
649
|
-
---
|
|
650
|
-
|
|
651
|
-
### 文件写入超出工作区范围
|
|
652
|
-
|
|
653
|
-
**问题:** Gemini CLI 或 Codex CLI 提示目标文件路径不在允许的工作区内。
|
|
654
|
-
|
|
655
|
-
**解决:** 将文件写入当前项目工作区内,或写入对应 CLI 的临时工作区目录。做 headless 验证时,优先使用当前仓库下的路径,不要随意写到任意绝对路径。
|
|
656
|
-
|
|
657
|
-
---
|
|
658
|
-
|
|
659
|
-
### 命令未找到
|
|
660
|
-
|
|
661
|
-
**问题:** 安装后 `~help` 无法识别
|
|
575
|
+
```bash
|
|
576
|
+
npm list -g helloagents
|
|
577
|
+
helloagents doctor
|
|
578
|
+
```
|
|
662
579
|
|
|
663
|
-
|
|
664
|
-
- 验证安装:`npm list -g helloagents`
|
|
665
|
-
- Claude Code:检查 `~/.claude/CLAUDE.md` 是否包含 HelloAGENTS 标记
|
|
666
|
-
- Gemini CLI:检查 `~/.gemini/GEMINI.md` 是否包含 HelloAGENTS 标记
|
|
667
|
-
- Codex CLI:检查 `~/.codex/AGENTS.md` 是否包含 HelloAGENTS 标记,`~/.codex/config.toml` 是否保留指向 `~/.codex/AGENTS.md` 的 `model_instructions_file` 与 `notify`
|
|
668
|
-
- 重启你的 CLI
|
|
580
|
+
然后重启目标 CLI。
|
|
669
581
|
|
|
670
|
-
|
|
582
|
+
### 某个 CLI 已安装但行为像旧版本
|
|
671
583
|
|
|
672
|
-
|
|
584
|
+
运行:
|
|
673
585
|
|
|
674
|
-
|
|
586
|
+
```bash
|
|
587
|
+
helloagents doctor
|
|
588
|
+
helloagents update codex
|
|
589
|
+
helloagents --standby
|
|
590
|
+
helloagents --global
|
|
591
|
+
```
|
|
675
592
|
|
|
676
|
-
|
|
677
|
-
- `helloagents --global` → 刷新 `~/plugins/helloagents/` 和 Codex cache 副本
|
|
678
|
-
- `helloagents --standby` → 刷新标准模式下注入的文件和符号链接
|
|
593
|
+
根据当前安装模式和目标 CLI 选择对应命令。
|
|
679
594
|
|
|
680
|
-
|
|
595
|
+
### Codex 本地切分支后仍使用旧文件
|
|
681
596
|
|
|
682
|
-
|
|
597
|
+
刷新 Codex:
|
|
683
598
|
|
|
684
|
-
|
|
599
|
+
```bash
|
|
600
|
+
helloagents update codex
|
|
601
|
+
```
|
|
685
602
|
|
|
686
|
-
|
|
603
|
+
全局模式也可以运行:
|
|
687
604
|
|
|
688
|
-
|
|
605
|
+
```bash
|
|
606
|
+
helloagents --global
|
|
607
|
+
```
|
|
689
608
|
|
|
690
|
-
###
|
|
609
|
+
### 通知不工作
|
|
691
610
|
|
|
692
|
-
|
|
611
|
+
先检查 `notify_level`。
|
|
693
612
|
|
|
694
|
-
|
|
695
|
-
-
|
|
696
|
-
-
|
|
697
|
-
- 3 次连续失败后熔断器激活 — `hello-debug` 升级介入
|
|
613
|
+
- Windows:PowerShell 需要能显示桌面通知或播放声音
|
|
614
|
+
- macOS:需要 `afplay`
|
|
615
|
+
- Linux:需要 `aplay`、`paplay` 或 `notify-send`
|
|
698
616
|
|
|
699
|
-
|
|
617
|
+
### Guard 拦截了你确实想执行的命令
|
|
700
618
|
|
|
701
|
-
|
|
619
|
+
先复查命令。Guard 会拦截已知破坏性操作,并对风险写入给出提醒。如果你仍要关闭:
|
|
702
620
|
|
|
703
|
-
|
|
621
|
+
```json
|
|
622
|
+
{ "guard_enabled": false }
|
|
623
|
+
```
|
|
704
624
|
|
|
705
|
-
|
|
625
|
+
## 许可证
|
|
706
626
|
|
|
707
|
-
|
|
627
|
+
代码使用 [Apache-2.0](./LICENSE.md),文档使用 CC BY 4.0。
|
|
708
628
|
|
|
709
|
-
|
|
629
|
+
## 参与贡献
|
|
710
630
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
- 检查配置中的 `notify_level`(默认 0=关闭)
|
|
715
|
-
- Windows:确保 PowerShell 可以访问 `System.Media.SoundPlayer`
|
|
716
|
-
- macOS:确保 `afplay` 可用
|
|
717
|
-
- Linux:确保安装了 `aplay` 或 `paplay`
|
|
718
|
-
|
|
719
|
-
## 📈 版本历史
|
|
720
|
-
|
|
721
|
-
### v3.0.10(当前版本)
|
|
722
|
-
|
|
723
|
-
**相对 `v3.0.9beta` 的修复与验证:**
|
|
724
|
-
- 🔧 Codex 受管 `notify` 配置现在带有明确标记,清理时可区分 HelloAGENTS 写入和用户自定义的 `codex-notify`
|
|
725
|
-
- 🔧 Codex 清理流程现在会保留用户的多行 `notify` 数组,并正确恢复周围 TOML 配置
|
|
726
|
-
- 🔧 `notify_level=0` 现在同时关闭完成、警告和确认通知,和文档中的“关闭”含义保持一致
|
|
727
|
-
- 🔧 恢复 `hello-ui` 的完整指导;已确认 OpenAI 公开 skill 建议是主 `SKILL.md` 尽量控制在约 500 行以内,而不是按 200 行硬限制精简
|
|
728
|
-
- 🧪 新增 Codex `notify` 保留、多行 TOML 处理和通知等级门控的回归测试
|
|
729
|
-
|
|
730
|
-
### v3.0.9
|
|
731
|
-
|
|
732
|
-
**修复与验证:**
|
|
733
|
-
- 🔧 Claude Code / Gemini CLI 的 `stop` 交付门控现在只接受结构化 `turn-state` 完成态,普通等待态不再被误判为已完成
|
|
734
|
-
- 🔧 Codex 清理流程现在会保留安装后用户自行改写的 `model_instructions_file`、`notify` 与非托管 `codex_hooks`,不再被安装前旧备份回写覆盖
|
|
735
|
-
- 🧪 新增运行时 / 生命周期回归,覆盖 `stop` 的结构化完成态门控,以及安装后用户改写 Codex 配置时的 cleanup 保留行为
|
|
736
|
-
|
|
737
|
-
### v3.0.7
|
|
738
|
-
|
|
739
|
-
**相对 `v2.3.8` 的当前主线结果:**
|
|
740
|
-
- ✨ 从 Python 包全面重写为 Node.js/Markdown 工作流框架,安装、运行时注入、技能、规则与验证流程全部重建
|
|
741
|
-
- ✨ 把旧的多层路由 / design-develop 流程,统一整理为 ROUTE/TIER → SPEC → PLAN → BUILD → VERIFY → CONSOLIDATE 六阶段主流程
|
|
742
|
-
- ✨ 从旧命令集切换到 `~idea` / `~plan` / `~build` / `~verify` / `~prd` / `~loop` / `~wiki` 等更聚焦的命令体系,并引入 14 个自动激活质量技能
|
|
743
|
-
- ✨ 项目产物体系成型:`STATE.md`、`DESIGN.md`、`requirements.md`、`plan.md`、`tasks.md`、`contract.json`、`.ralph-*` 证据成为流程判断依据,而不是附属文档
|
|
744
|
-
- ✨ 安装模型重构为标准模式 / 全局模式双轨;Codex 改为原生本地插件,Claude/Gemini 保留各自宿主原生能力
|
|
745
|
-
- ✨ 新增 `project_store_mode=repo-shared`,让同一 git 仓库的多个 worktree 可以共享稳定知识库和方案包,而本地 `.helloagents/` 继续保留激活和运行态隔离
|
|
746
|
-
|
|
747
|
-
### v3.0.4
|
|
748
|
-
|
|
749
|
-
**标准待机与运行时边界:**
|
|
750
|
-
- 🔧 相对 `v3.0.3`,进一步明确激活边界:完整六阶段主流程保留在 `bootstrap.md`,`bootstrap-lite.md` 作为项目激活前的待机规则文件
|
|
751
|
-
- ✨ 固化标准模式、未激活项目的压缩版质量下限,让轻量模式仍能维持现代技术基线、性能基线和 UI 质量要求
|
|
752
|
-
- 🔧 统一精修 bootstrap 的运行时术语与规则表述,在不改变既有把关模型的前提下提升准确性和专业性
|
|
753
|
-
|
|
754
|
-
### v3.0.3
|
|
755
|
-
|
|
756
|
-
**流程与知识库激活:**
|
|
757
|
-
- ✨ 新增 `~wiki`,用于只创建或同步 `.helloagents/`,不写项目级规则文件
|
|
758
|
-
- 🔧 明确标准模式下的激活边界:`.helloagents/` 才是项目进入完整流程的实际信号;项目级规则文件仍属于 `~init` 的职责
|
|
759
|
-
- 🔧 统一修正 bootstrap、帮助文本和 README 中 `kb_create_mode` 的表述,使其只描述已激活项目或全局模式下的同步时机
|
|
760
|
-
- 🧪 新增 `~wiki` 路由覆盖,并持续验证标准模式下基于 `.helloagents/` 的激活行为
|
|
761
|
-
|
|
762
|
-
### v3.0.2
|
|
763
|
-
|
|
764
|
-
**修复与验证:**
|
|
765
|
-
- 🔧 移除误回流到 Codex 标准/全局安装产物 `AGENTS.md` 中的静态运行时上下文前缀
|
|
766
|
-
- 🔧 复查 Claude / Gemini 标准模式与全局模式静态规则文件,确认本来就不存在同类已废弃运行时规则块
|
|
767
|
-
- 🔧 同步修正文档中关于 Codex `model_instructions_file -> ~/.codex/AGENTS.md` 和无 hooks 运行方式的表述
|
|
768
|
-
- 🧪 新增回归断言,确保 Codex 标准/全局规则文件中不再出现被移除的运行时上下文前缀
|
|
769
|
-
|
|
770
|
-
### v3.0.1
|
|
771
|
-
|
|
772
|
-
**修复与验证:**
|
|
773
|
-
- 🔧 明确并加强 `STATE.md` 恢复规则:关键决策变更即更新,长流程一旦失真立即重写,宿主明确进入压缩/恢复前置阶段前必须先确认已同步
|
|
774
|
-
- 🔧 修复 Codex 本地插件清理后的空 `~/.agents/plugins/marketplace.json` 残留
|
|
775
|
-
- 🔧 修复并验证单 CLI `update` 在记录模式过期时仍会优先复用本地已检测模式,符合 `helloagents update <cli>` 的预期行为
|
|
776
|
-
- 🔧 明确标准模式下“链接文件立即同步、注入后的规则文件需显式刷新”的分支 / bootstrap 刷新语义
|
|
777
|
-
- 🧪 新增标准模式规则文件刷新、模式自动复用、Codex 空 marketplace 清理,以及与版本号无关的 npm pack 生命周期测试
|
|
778
|
-
|
|
779
|
-
### v3.0.0 🎉
|
|
780
|
-
|
|
781
|
-
**破坏性变更:**
|
|
782
|
-
- 🔴 完全重写:Python 包 → 纯 Node.js/Markdown 架构。`pip`/`uv` 安装方式不再可用
|
|
783
|
-
- 🔴 命令重命名/移除:`~design` → `~plan`、`~review` → `~verify`、`~do` → `~build`,移除 `~exec`/`~rollback`/`~rlm`/`~status`/`~validatekb`/`~upgradekb`/`~cleanplan`
|
|
784
|
-
- 🔴 配置键从大写改为小写。移除:`BILINGUAL_COMMIT`、`EVAL_MODE`、`UPDATE_CHECK`、`CSV_BATCH_MAX`
|
|
785
|
-
|
|
786
|
-
**新功能:**
|
|
787
|
-
- ✨ 14 个自动激活质量技能:hello-ui、hello-api、hello-security、hello-test、hello-verify、hello-errors、hello-perf、hello-data、hello-arch、hello-debug、hello-subagent、hello-review、hello-write、hello-reflect
|
|
788
|
-
- ✨ 3 个支持的 CLI:Claude Code(插件/marketplace)、Gemini CLI(扩展)、Codex CLI(npm)
|
|
789
|
-
- ✨ 检查清单把关:所有已激活技能必须通过交付检查清单才能完成任务
|
|
790
|
-
- ✨ `~prd` 命令:13 维度头脑风暴式 PRD 框架
|
|
791
|
-
- ✨ `~loop` 命令:自主迭代优化,带指标追踪和 git 回滚
|
|
792
|
-
- ✨ `~verify` 命令:自动检测并运行所有验证命令
|
|
793
|
-
- ✨ Guard 系统(`guard.mjs`):L1 拦截破坏性命令 + L2 安全模式建议
|
|
794
|
-
- ✨ 标准/全局模式:`install_mode` 配置项支持按项目或全局激活
|
|
795
|
-
- ✨ 流状态管理(`STATE.md`):用于压缩/恢复时继续工作的恢复快照(≤70 行)
|
|
796
|
-
- ✨ 设计系统生成(`DESIGN.md`):作为项目级 UI 契约自动创建
|
|
797
|
-
- ✨ 计划包系统:`requirements.md` + `plan.md` + `tasks.md` + `contract.json`
|
|
798
|
-
- ✨ 可选 advisor 契约与证据:仅在 T3 / UI / 高风险流程启用,通过 `contract.json` + `.helloagents/.ralph-advisor.json` 记录
|
|
799
|
-
- ✨ 可选视觉验收证据:仅在 UI 契约明确要求时启用,通过 `contract.json` + `.helloagents/.ralph-visual.json` 记录
|
|
800
|
-
|
|
801
|
-
**架构:**
|
|
802
|
-
- 📦 先选路再执行的六阶段主流程:ROUTE/TIER → SPEC → PLAN → BUILD → VERIFY → CONSOLIDATE
|
|
803
|
-
- 📦 简化配置:8 个小写键,合理默认值
|
|
804
|
-
- 📦 双模式安装:标准模式(非插件,显式部署)/ 全局模式(插件/扩展)
|
|
805
|
-
- 📦 模块化脚本架构:`cli-utils.mjs`(共享工具)、`notify-ui.mjs`(跨平台声音/桌面通知)、`guard.mjs`(安全防护)、`ralph-loop.mjs`(质量验证)
|
|
806
|
-
- 📦 Hook 脚本跨平台兼容:事件名动态适配(Claude Code / Gemini CLI / Codex CLI),通过环境变量或 CLI 参数推断
|
|
807
|
-
- 📦 Standby 模式路由隔离:新项目检测仅在 global 模式或已激活项目中触发,不干扰未激活项目
|
|
808
|
-
- 📦 通知系统跨平台支持(Windows toast、macOS osascript、Linux notify-send)
|
|
809
|
-
|
|
810
|
-
### v2.3.8
|
|
811
|
-
|
|
812
|
-
**架构变更:**
|
|
813
|
-
- 路由层级整合:移除 R2 简化流和 R3 标准流,统一为 R0/R1/R2 三层路由
|
|
814
|
-
- 评估改为维度充分性驱动,替代固定总分阈值
|
|
815
|
-
- 末轮提问+确认合并,减少独立确认步骤
|
|
816
|
-
- 移除 L0 用户记忆系统和自定义命令扩展
|
|
817
|
-
- 配置系统整合:单一 `~/.helloagents/helloagents.json`
|
|
818
|
-
- 新增代码体积控制规则:预警 300/40 行,强制拆分 400/60 行
|
|
819
|
-
|
|
820
|
-
**新功能:**
|
|
821
|
-
- ✨ 5 个新工作流命令:`~test`、`~rollback`、`~validatekb`、`~upgradekb`、`~cleanplan`
|
|
822
|
-
- ✨ `notify_level` 配置项控制通知行为
|
|
823
|
-
- ✨ 独立配置读取模块供 hook 脚本使用
|
|
824
|
-
|
|
825
|
-
**安全:**
|
|
826
|
-
- 修复 `shared_tasks.py` 路径注入漏洞
|
|
827
|
-
- 修复 `validate_package.py` 路径遍历防护不完整
|
|
828
|
-
|
|
829
|
-
### v2.3.7
|
|
830
|
-
|
|
831
|
-
**Bug 修复:**
|
|
832
|
-
- 修复非编码任务在 `KB_CREATE_MODE=2` 时错误创建知识库
|
|
833
|
-
- 修复 R2 标准流在方案选择后重定向到归档而非 DEVELOP
|
|
834
|
-
- 修复非编码任务错误创建计划包
|
|
835
|
-
|
|
836
|
-
**改进:**
|
|
837
|
-
- 📦 优化上下文压缩后的实施计划状态恢复
|
|
838
|
-
- 📦 优化整体设计流程
|
|
839
|
-
|
|
840
|
-
### v2.3.6
|
|
841
|
-
|
|
842
|
-
**新功能:**
|
|
843
|
-
- ✨ 子代理编排大改:新增 brainstormer 子代理用于并行方案构思
|
|
844
|
-
- ✨ 子代理阻塞机制:失败/超时时自动阻塞并回退
|
|
845
|
-
|
|
846
|
-
**改进:**
|
|
847
|
-
- 📦 工具/Shell 约束优化:内置工具失败时允许回退到 Shell
|
|
848
|
-
- 📦 Shell 编码约束细化:明确 UTF-8 无 BOM 要求
|
|
849
|
-
- 📦 移除 3 个冗余子代理,功能回归主代理和 RLM 角色
|
|
850
|
-
|
|
851
|
-
### v2.3.5
|
|
852
|
-
|
|
853
|
-
**新功能:**
|
|
854
|
-
- ✨ 声音通知系统,5 种事件音效,跨 Windows/macOS/Linux
|
|
855
|
-
- ✨ Claude Code hooks 从 9 个扩展到 11 个生命周期事件类型
|
|
856
|
-
- ✨ Hooks 支持扩展到 Gemini CLI 和 Grok CLI
|
|
857
|
-
- ✨ 会话启动时配置完整性检查
|
|
858
|
-
- ✨ 上下文压缩前注入恢复游标
|
|
859
|
-
- ✨ 用户自定义工具注册和编排
|
|
860
|
-
|
|
861
|
-
**改进:**
|
|
862
|
-
- 📦 全面审计修复(21 个问题:6 HIGH + 9 MEDIUM + 6 LOW)
|
|
863
|
-
- 📦 核心架构:新增 dispatcher 模块、Codex 角色、Claude 规则管理
|
|
864
|
-
- 📦 安装/更新脚本重构,持久化配置
|
|
865
|
-
|
|
866
|
-
## 📜 许可证
|
|
867
|
-
|
|
868
|
-
本项目采用双许可证:代码遵循 [Apache-2.0](./LICENSE.md),文档遵循 CC BY 4.0。
|
|
869
|
-
|
|
870
|
-
详见 [LICENSE.md](./LICENSE.md)。
|
|
871
|
-
|
|
872
|
-
## 🤝 参与贡献
|
|
873
|
-
|
|
874
|
-
- 🐛 **Bug 报告**:[创建 issue](https://github.com/hellowind777/helloagents/issues)
|
|
875
|
-
- 💡 **功能建议**:[发起讨论](https://github.com/hellowind777/helloagents/issues)
|
|
876
|
-
- 📖 **文档改进**:欢迎 PR
|
|
877
|
-
|
|
878
|
-
## 支持的 CLI
|
|
879
|
-
|
|
880
|
-
| CLI | 标准模式安装(默认) | 全局模式安装(插件) | 卸载 |
|
|
881
|
-
|-----|-------------------|-------------------|------|
|
|
882
|
-
| Claude Code | `helloagents install claude --standby` | `/plugin marketplace add hellowind777/helloagents` | `npm uninstall -g helloagents`(全局模式另需 `/plugin remove helloagents`) |
|
|
883
|
-
| Gemini CLI | `helloagents install gemini --standby` | `gemini extensions install https://github.com/hellowind777/helloagents` | `npm uninstall -g helloagents`(全局模式另需 `gemini extensions uninstall helloagents`) |
|
|
884
|
-
| Codex CLI | `helloagents install codex --standby` | `helloagents install codex --global` | `npm uninstall -g helloagents` |
|
|
631
|
+
- Bug 反馈:[提交 issue](https://github.com/hellowind777/helloagents/issues)
|
|
632
|
+
- 功能建议:[提交 issue](https://github.com/hellowind777/helloagents/issues)
|
|
633
|
+
- 欢迎提交 PR
|
|
885
634
|
|
|
886
635
|
---
|
|
887
636
|
|
|
@@ -889,8 +638,6 @@ npm test
|
|
|
889
638
|
|
|
890
639
|
如果这个项目对你有帮助,点个 star 就是最好的支持。
|
|
891
640
|
|
|
892
|
-
感谢 <a href="https://codexzh.com/?ref=EEABC8">codexzh.com</a> / <a href="https://ccodezh.com">ccodezh.com</a>
|
|
893
|
-
|
|
894
|
-
[⬆ 返回顶部](#helloagents)
|
|
641
|
+
感谢 <a href="https://codexzh.com/?ref=EEABC8">codexzh.com</a> / <a href="https://ccodezh.com">ccodezh.com</a> 对本项目的支持。
|
|
895
642
|
|
|
896
643
|
</div>
|