docs: 修正 kilo 调用方式 — 不用 -f,直接消息传递
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
13
RECOVERY.md
13
RECOVERY.md
@@ -12,17 +12,18 @@ cargo check # 验证编译
|
|||||||
|
|
||||||
## kilo 调用方式 (已验证正确)
|
## kilo 调用方式 (已验证正确)
|
||||||
```bash
|
```bash
|
||||||
# -f 传附件任务文件,但还需要一个主消息参数
|
# 直接在消息中传递所有内容,不要用 -f
|
||||||
kilo run -m openai/gpt-5.4 --auto \
|
kilo run -m openai/gpt-5.4 --auto \
|
||||||
--dir /home/showen/Showen/ShowenV2 \
|
--dir /home/showen/Showen/ShowenV2 \
|
||||||
-f /tmp/task-<name>.md \
|
"你是<角色名>。先读取 souls/<name>.md 和 TEAM_CHAT.md。任务:<具体说明>。完成后 cargo check 确认通过。"
|
||||||
"请按照附件中的任务说明执行"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**注意**:
|
**教训**:
|
||||||
- `kilo run -f file` 不够,必须有 message 参数
|
- ❌ `-f file` 会被当作消息的一部分,导致 "File not found" 错误
|
||||||
- `-f` 只是附件,message 是必需的
|
- ❌ `-f file "message"` 最后的 message 也被当文件名
|
||||||
|
- ✅ 正确方式:把所有内容放在一个消息字符串里,让 kilo 自己去读文件
|
||||||
- `--auto` 自动批准权限
|
- `--auto` 自动批准权限
|
||||||
|
- `--dir` 指定工作目录
|
||||||
|
|
||||||
## kilo 配置
|
## kilo 配置
|
||||||
- 配置文件: `/home/showen/.config/kilo/config.json`
|
- 配置文件: `/home/showen/.config/kilo/config.json`
|
||||||
|
|||||||
Reference in New Issue
Block a user