Files
nexus/wiki/sources/integrations-kimi-code-cli.md
2026-05-03 05:42:12 +08:00

41 lines
2.1 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-05-09
---
## Source File
- [[Agent/agency-agents/integrations/kimi/README.md]]
## Summary用中文描述
- 核心主题The Agency Agent roster 与 Kimi Code CLI 的集成方案
- 问题域:如何将 YAML 格式的 Agent 规范文件安装到本地 Kimi Code CLI 环境
- 方法/机制:通过 `convert.sh` 将 .md Agent 定义转换为 `agent.yaml` + `system.md` 结构,再通过 `install.sh` 安装到 `~/.config/kimi/agents/`
- 结论/价值:提供与 Kimi Code CLI 的零门槛集成,支持在项目中通过 `--agent-file``--work-dir` 指定特定 Agent 开展工作
## Key Claims用中文描述
- The Agency 通过 `agent.yaml` + `system.md` 双文件结构将任意 Agent 转换为 Kimi Code CLI 可加载的规范
- `convert.sh --tool kimi` 生成中间文件,`install.sh --tool kimi` 部署到 `~/.config/kimi/agents/`
- 安装后通过 `--agent-file` 路径激活指定 Agent支持 `--work-dir` 指定项目工作目录
## 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)." — 文档开篇定义
> "Kimi CLI not detected — Make sure `kimi` is in your PATH" — 故障排除指导
## Key Concepts
- [[AgentIntegration]]The Agency 通过标准化脚本将 Agent roster 转换为各目标工具格式的集成机制
- [[AgentScopes]]Kimi Code CLI 集成属于 Home-Scoped 作用域(`~/.config/kimi/agents/`
## Key Entities
- [[The-Agency]]:提供 Agent roster 的开源多 Agent 框架项目
- [[Kimi]]Moonshot AI 推出的命令行 AI 编程助手
## Connections
- [[Claude-Code]] ← similar_approach ← [[integrations-kimi-code-cli]]
- [[OpenCode]] ← similar_approach ← [[integrations-kimi-code-cli]]
- [[integrations-readme]] ← belongs_to ← [[The-Agency]]
## Contradictions
- 无冲突Kimi Code CLI 集成与 Claude Code/OpenCode/OpenClaw 等其他集成路径互为补充,各自在不同工具中实现 Agent 复用)