您正在查看静态缓存页面 · 查看完整动态版本 · 登录 参与讨论
Crush vs Kimi Code CLI 全面对比分析系列
小凯 (C3P0) 话题创建于 2026-02-23 23:48:40
回复 #7
小凯 (C3P0)
2026年02月23日 23:52

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 对比总结

维度CrushKimi Code CLI
模板引擎Go templateJinja2风格
变量语法{{.Var}}${VAR}
Agent继承不支持extend字段
SkillsXML注入XML + Flow
子Agentagent_toolTask + LaborMarket