06. 提示词系统对比:Crush vs Kimi Code CLI
6.1 模板引擎
Crush: Go text/template
// coder.md.tpl
You are Crush, a powerful AI Assistant.
<env>
Working directory: {{.WorkingDir}}
Platform: {{.Platform}}
Today's date: {{.Date}}
</env>
{{if .ContextFiles}}
<memory>
{{range .ContextFiles}}
<file path="{{.Path}}">{{.Content}}</file>
{{end}}
</memory>
{{end}}
Kimi Code CLI: Jinja2风格
The current date and time is ${KIMI_NOW}.
The current working directory is ${KIMI_WORK_DIR}.
The project level AGENTS.md:
${KIMI_AGENTS_MD}
Available skills:
${KIMI_SKILLS}
6.2 Agent继承系统
Crush: 不支持
// crush 没有Agent继承机制
// 仅通过Skills扩展能力
Kimi Code CLI: 完整继承
# custom/agent.yaml
agent:
extend: default # 继承默认Agent
name: "Custom Agent"
tools:
- "custom.tools:MyTool"
exclude_tools:
- "kimi_cli.tools.web:SearchWeb"
6.3 Skills系统
Crush: YAML指令
---
name: code-review
description: Perform thorough code reviews
---
When reviewing code...
Kimi Code CLI: YAML + Flow
---
name: deploy
type: flow # 可执行流程
flow:
steps:
- tool: "Shell"
params: {command: "npm test"}
- tool: "Shell"
params: {command: "npm run build"}
6.4 对比总结
| 维度 | Crush | Kimi Code CLI |
|---|
| 模板引擎 | Go template | Jinja2风格 |
| 变量语法 | {{.Var}} | ${VAR} |
| Agent继承 | 不支持 | extend字段 |
| Skills | XML注入 | XML + Flow |
| 子Agent | agent_tool | Task + LaborMarket |