docs: agents - add kimi-code

This commit is contained in:
Ryan Yin
2026-07-17 10:45:55 +08:00
parent dda800f65d
commit b1e2bb7e09
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -33,6 +33,7 @@ Current targets:
- Codex: `AGENTS.md` -> `${CODEX_HOME:-~/.codex}/AGENTS.md` - Codex: `AGENTS.md` -> `${CODEX_HOME:-~/.codex}/AGENTS.md`
- OpenCode: `AGENTS.md` -> `${XDG_CONFIG_HOME:-~/.config}/opencode/AGENTS.md` - OpenCode: `AGENTS.md` -> `${XDG_CONFIG_HOME:-~/.config}/opencode/AGENTS.md`
- Claude Code: `AGENTS.md` -> `~/.claude/CLAUDE.md` - Claude Code: `AGENTS.md` -> `~/.claude/CLAUDE.md`
- Generic cross-tool (read by Kimi Code): `AGENTS.md` -> `~/.agents/AGENTS.md`
Behavior: Behavior:
+1
View File
@@ -10,6 +10,7 @@ Installed via Nix:
- opencode - opencode
- cursor-agent(cli) - cursor-agent(cli)
- claude-code - claude-code
- kimi-code
## Optional tooling ## Optional tooling
+2
View File
@@ -31,9 +31,11 @@ def main() -> int:
xdg_config_home = Path(os.environ.get("XDG_CONFIG_HOME", "~/.config")).expanduser() xdg_config_home = Path(os.environ.get("XDG_CONFIG_HOME", "~/.config")).expanduser()
opencode_dir = xdg_config_home / "opencode" opencode_dir = xdg_config_home / "opencode"
claude_dir = Path("~/.claude").expanduser() claude_dir = Path("~/.claude").expanduser()
agents_dir = Path("~/.agents").expanduser()
install_one(codex_dir, agents_file, "AGENTS.md") install_one(codex_dir, agents_file, "AGENTS.md")
install_one(opencode_dir, agents_file, "AGENTS.md") install_one(opencode_dir, agents_file, "AGENTS.md")
install_one(claude_dir, agents_file, "CLAUDE.md") install_one(claude_dir, agents_file, "CLAUDE.md")
install_one(agents_dir, agents_file, "AGENTS.md")
return 0 return 0