Thank you for being interested in contributing to Kimi Code CLI!
We welcome all kinds of contributions, including bug fixes, features, document improvements, typo fixes, etc. To maintain a high-quality codebase and user experience, we provide the following guidelines for contributions:
- We only merge pull requests that aligns with our roadmap. For any pull request that introduces changes larger than 100 lines of code, we highly recommend discussing with us by raising an issue or in an existing issue before you start working on it. Otherwise your pull request may be closed or ignored without review.
- We insist on high code quality. Please ensure your code is as good as, if not better than, the code written by frontier coding agents. Changes may be requested before your pull request can be merged.
We use prek to run formatting and checks via git hooks.
Recommended setup:
- Run
make prepareto sync dependencies and install the prek hooks. - Optionally run on all files before sending a PR:
prek run --all-files.
Manual setup (if you do not want to use make prepare):
- Install prek (pick one):
uv tool install prek,pipx install prek, orpip install prek. - Install the hooks in this repo:
prek install.
After installation, the hooks run on every commit. The repo uses prek workspace mode, so only the
projects with changed files run their hooks. You can skip them for an intermediate commit with
git commit --no-verify, or run them manually with prek run --all-files.
The hooks execute the relevant make format-* and make check-* targets, so ensure dependencies
are installed (make prepare or uv sync).