Skip to content

feat: Add Kimi Code CLI Integration#195

Open
CelsoDeSa wants to merge 4 commits intomsitarzewski:mainfrom
CelsoDeSa:main
Open

feat: Add Kimi Code CLI Integration#195
CelsoDeSa wants to merge 4 commits intomsitarzewski:mainfrom
CelsoDeSa:main

Conversation

@CelsoDeSa
Copy link

🎉 New Integration: Kimi Code CLI

This PR adds support for Kimi Code CLI, an AI-powered coding assistant from Moonshot AI.

✨ What's Added

  • Conversion Support (scripts/convert.sh --tool kimi): Converts Agency agents to Kimi's YAML agent format
  • Installation Support (scripts/install.sh --tool kimi): Installs agents to ~/.config/kimi/agents/
  • Full Tool Support: All 145 agents are supported with complete tool mappings
  • Documentation: Added integrations/kimi/README.md with usage instructions
  • Testing: Added scripts/test-kimi-integration.sh for local validation

📁 Agent Format

Each agent becomes a directory with:

  • agent.yaml - Agent specification (extends Kimi's default agent)
  • system.md - System prompt with personality and instructions

🚀 Usage

# Generate agents
./scripts/convert.sh --tool kimi

# Install to ~/.config/kimi/agents/
./scripts/install.sh --tool kimi

# Use with Kimi CLI
kimi --agent-file ~/.config/kimi/agents/frontend-developer/agent.yaml

🔧 Technical Details

  • Agents extend Kimi's built-in default agent for full tool support
  • Generated files are gitignored (users generate locally)
  • Follows the same patterns as existing Cursor, Aider, Windsurf integrations

✅ Testing

  • YAML syntax validated for all agents
  • Schema compliance verified (version, name, system_prompt_path, tools)
  • Kimi CLI accepts generated agent files
  • Install script works correctly

Add complete support for Kimi Code CLI agent format.

- Add convert_kimi() function to generate YAML agent specs
- Add install_kimi() function to install agents to ~/.config/kimi/agents/
- Add Kimi to tool detection and installer UI
- Add integrations/kimi/ directory (generated files gitignored)
- Update integrations/README.md with Kimi documentation
- Add generated agent directories to .gitignore

Users can generate agents with: ./scripts/convert.sh --tool kimi
Update README.md with complete Kimi Code CLI integration documentation.

- Add Kimi Code to Option 3 in Quick Start section
- Add Kimi Code to Supported Tools list
- Update installer UI example to show 11 tools
- Add tool-specific details section for Kimi Code
- Update roadmap to include Kimi Code

Users can now discover Kimi Code CLI support from the main README.
@msitarzewski
Copy link
Owner

Hey @CelsoDeSa — this is really well done. Clean implementation, follows existing patterns, docs are thorough, gitignore is correct. Nice work.

Two small changes before we merge:

  1. Remove scripts/test-kimi-integration.sh — no other integration has a dedicated test script, and it adds a PyYAML dependency. Happy to see it as a follow-up if you want, but let's keep the first pass focused on the integration itself.

  2. Drop the explicit tool list in agent.yaml — you're already using extend: default, which should inherit Kimi's default toolset. The hardcoded list is redundant and means we'd have to update it if Kimi adds new tools. Let the extension handle it:

    version: 1
    agent:
      name: ${slug}
      extend: default
      system_prompt_path: ./system.md

Once those are in, this is good to go.

Remove redundant tools list from agent.yaml generation since extend: default
already inherits Kimi's default toolset. This simplifies maintenance and
follows the reviewer's suggestion to avoid hardcoded tool lists.

Closes review feedback on PR msitarzewski#195
Remove dedicated test script per reviewer feedback. No other integration
has a dedicated test script and it adds an unnecessary PyYAML dependency.

Closes review feedback on PR msitarzewski#195
@CelsoDeSa
Copy link
Author

@msitarzewski glad you liked it! Required changes commited 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants