Skip to content

Commit 440fb56

Browse files
committed
docs(readme): 把 hooks 从 2.5 收回成步骤 2 的可选小节
1 parent a53a173 commit 440fb56

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,13 @@ The install scripts, prompts, validator, and templates live here. The viewer is
152152

153153
Drops `AGENTS.md` (or appends to existing) plus `.codesee/{prompts,scripts,hooks}/` into your project. Zero changes to your code.
154154

155-
### 2.5 (Optional) Wire hooks in one shot
155+
**Optional — wire hooks in one shot.** Re-run with `-AutoDetect` (PowerShell) / `--auto-detect` (Bash):
156156

157157
```powershell
158-
# Windows
159158
.\scripts\install.ps1 D:\path\to\your\project -AutoDetect
160-
161-
# macOS / Linux
162-
./scripts/install.sh /path/to/your/project --auto-detect
163159
```
164160

165-
`-AutoDetect` looks for `.claude/` or `.kiro/` and writes the Stop / agentStop hook so the IDE reminds AI to sync `features.json` after every turn. Existing user entries are untouched, reruns are idempotent, and `-UninstallHooks` cleans up. For manual setup or per-platform docs see [`hooks/README.md`](./hooks/README.md).
161+
Looks for `.claude/` or `.kiro/` and writes the Stop / agentStop hook so the IDE reminds AI to sync `features.json` after every turn. Existing user entries are untouched, reruns are idempotent, and `-UninstallHooks` cleans up. For manual setup or per-platform docs see [`hooks/README.md`](./hooks/README.md).
166162

167163
### 3. Let AI scan
168164

README.zh-CN.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,13 @@ cd codeSee
151151

152152
`AGENTS.md`(已存在则追加)和 `.codesee/{prompts,scripts,hooks}/` 注入到你的项目,不动你的代码。
153153

154-
### 2.5(可选)一键启用 hooks
154+
**可选——一键启用 hooks**`-AutoDetect`(PowerShell)/ `--auto-detect`(Bash)重跑一次:
155155

156156
```powershell
157-
# Windows
158157
.\scripts\install.ps1 D:\path\to\your\project -AutoDetect
159-
160-
# macOS / Linux
161-
./scripts/install.sh /path/to/your/project --auto-detect
162158
```
163159

164-
`-AutoDetect` 检测到 `.claude/``.kiro/` 就自动写入对应平台的 Stop / agentStop hook,让 IDE 在每轮 agent 结束时提醒"代码改了但 features.json 没跟上"。已有 entry 一字不改、重跑幂等、`-UninstallHooks` 可清除。手动启用或单独平台说明见 [`hooks/README.md`](./hooks/README.md)
160+
检测到 `.claude/``.kiro/` 就自动写入对应平台的 Stop / agentStop hook,让 IDE 在每轮 agent 结束时提醒"代码改了但 features.json 没跟上"。已有 entry 一字不改、重跑幂等、`-UninstallHooks` 可清除。手动启用或单独平台说明见 [`hooks/README.md`](./hooks/README.md)
165161

166162
### 3. 让 AI 扫描
167163

0 commit comments

Comments
 (0)