Files
nexus/wiki/sources/kimi.md

42 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Kimi Code CLI Integration"
type: source
tags: []
date: 2026-04-25
---
## Source File
- [[Agent/agency-agents/integrations/kimi/README.md]]
## Summary用中文描述
- 核心主题:将 Agency agents 项目转换为 Kimi Code CLI 可用的 agent specification
- 问题域:多 agent 工具链集成、agent 规范在不同 CLI 平台间的迁移
- 方法/机制:通过 `convert.sh``install.sh` 脚本,将每个 agent 转换为包含 `agent.yaml``system.md` 的目录结构;安装到 `~/.config/kimi/agents/`
- 结论/价值:提供了一套将 agency-agents 项目的 agent 定义无缝迁移到 Kimi Code CLI 的完整工作流
## Key Claims用中文描述
- Kimi Code CLI 通过 `agent.yaml` + `system.md` 文件定义 agent支持 `--agent-file` 标志激活
- agent 规范支持继承机制(`extend: default`),可复用 Kimi 内置 default agent 的工具集
- 源文件修改后需重新运行 `convert.sh` + `install.sh` 完成同步
## Key Quotes
> "Converts all Agency agents into Kimi Code CLI agent specifications. Each agent becomes a directory containing `agent.yaml` (agent spec) and `system.md` (system prompt)." — 项目概述
> "Install agents: `./scripts/install.sh --tool kimi` — This copies agents to `~/.config/kimi/agents/`." — 安装机制
## Key Concepts
- [[YAML配置文件]]: `agent.yaml` 是 agent 的规范定义文件,包含 name、version、继承关系和工具列表
- [[Agent规范]]: Agent specification指用 YAML 格式描述的 agent 元数据(工具集、子 agent、扩展关系等
- [[SystemPrompt]]: `system.md` 文件包含 agent 的系统提示词、个性和指令
## Key Entities
- [[Kimi Code CLI]]: Moonshot AI 出品的命令行 agent 工具,通过 `--agent-file` 加载自定义 agent 规范
- [[Moonshot AI]]: Kimi 背后的公司,提供 Kimi Code CLI 产品
- [[Agency Agents]]: 本源文件的母项目,提供跨平台 agent 集成框架
## Connections
- [[Cursor Integration]] ← similar_approach ← [[Kimi Code CLI Integration]]: 两者都旨在将 agency-agents 转换为各自的 IDE/CLI 工具规范
- [[Claude Code]] ← competes_with ← [[Kimi Code CLI Integration]]: 两者都是 AI 编程 CLI 工具,存在工具生态竞争
## Contradictions
- 无已知冲突