Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

chore: archive kimi-cli and point users to Kimi Code CLI - #2659

Merged
RealKai42 merged 2 commits into
mainfrom
chore/archive-kimi-cli
Sep 21, 2026
Merged

RealKai42 merged 2 commits into
mainfrom
chore/archive-kimi-cli

Conversation

@RealKai42

@RealKai42 RealKai42 commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Prepares the repository for archival. Kimi CLI (Python) is being discontinued in favor of Kimi Code CLI. Once the repo is archived, the README, docs site, security/contributing policies, and PyPI metadata can no longer be updated, so this PR lands those changes ahead of the final 1.51.0 release.

User-facing notices

  • README: replace the header with an archive notice (EN/ZH), migration steps, and a status table for all packages in this repo; fold the original README into a <details> block.
  • Docs site: switch the top banner to an archive notice that links to the localized migration guide, and rename its localStorage key so users who dismissed the previous banner see it again. Add a danger callout to the EN/ZH getting-started pages.
  • SECURITY.md / CONTRIBUTING.md: state that no further security updates or contributions are accepted, and point to Kimi Code CLI.
  • kosong, pykaos, kimi-sdk READMEs: add an archive notice.

PyPI

  • kimi-cli: archived summary, Development Status :: 7 - Inactive classifier, and project URLs pointing to Kimi Code CLI.
  • kimi-code (PyPI): this package was an alias of kimi-cli, so pip install kimi-code / uv tool install kimi-code silently installed the legacy CLI instead of the new Kimi Code CLI. It is now a dependency-free stub that prints install instructions for Kimi Code CLI and exits with status 1. Its README is now a standalone file instead of a symlink to the root README.

Housekeeping

  • flake.nix: drop the override that replaced the kimi-code README symlink, which is no longer needed now that the README is a real file.
  • Release skill: stop instructing to pin kimi-cli in packages/kimi-code, so the upcoming bump does not reintroduce the dependency.
  • CHANGELOG and docs changelog / breaking-changes entries (EN/ZH) under Unreleased. Regenerating the EN docs changelog with sync-changelog.mjs also adds the missing 1.50.0 heading; the ZH changelog gets the same heading.

Testing

  • New tests/test_kimi_code_tombstone.py: fails before the change, passes after.
  • Built the kimi-code wheel and installed it into a clean venv: only kimi-code is installed, and running it prints the notice and exits with status 1.
  • make test: all suites pass except 7 failures in tests/ui/test_usage.py, which fail identically on main (pre-existing, unrelated).
  • Docs build (npm run build) passes.
  • The flake.nix change was not verified locally (no Nix available).

Follow-ups (not in this PR)

  • Release 1.51.0 (kimi-cli + kimi-code) via the usual bump PR.
  • Then update the CDN migration notice, pin an announcement issue, close open issues and PRs, revoke CI secrets, and archive the repo on GitHub and PyPI.

Devin Review

Copilot AI lite review requested due to automatic review settings September 21, 2026 14:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-21T15:10:43.341341Z 43604dc New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Update the CI dependency-pin gate and resolve the documentation consistency issues before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Archives Kimi CLI and redirects users to Kimi Code CLI, including a dependency-free kimi-code migration stub.

Changes:

  • Adds archive notices and migration guidance across documentation and policies.
  • Updates package metadata, lockfiles, release guidance, and changelogs.
  • Adds tombstone behavior tests and removes the legacy dependency.
File Summary
uv.lock Removes legacy dependency metadata
tests/​test_kimi_code_tombstone.py Tests tombstone behavior
SECURITY.md Updates archived security policy
sdks/​kimi-sdk/​README.md Adds archive notice
README.md Adds archive notice and migration guidance
pyproject.toml Marks package inactive and links replacement
packages/​kosong/​README.md Adds archive notice
packages/​kimi-code/​src/​kimi_code/​__init__.py Implements migration stub
packages/​kimi-code/​pyproject.toml Updates tombstone package metadata
packages/​kaos/​README.md Adds archive notice
flake.nix Removes obsolete README override
docs/​zh/​release-notes/​changelog.md Adds archival release notes
docs/​zh/​release-notes/​breaking-changes.md Documents breaking changes
docs/​zh/​guides/​getting-started.md Adds archive callout
docs/​en/​release-notes/​changelog.md Adds archival release notes
docs/​en/​release-notes/​breaking-changes.md Documents breaking changes
docs/​en/​guides/​getting-started.md Adds archive callout
docs/​.vitepress/​theme/​EvolutionBanner.vue Updates archive banner
CONTRIBUTING.md Redirects contributions
CHANGELOG.md Adds archival release notes
.agents/​skills/​release/​SKILL.md Prevents dependency restoration

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/kimi-code/pyproject.toml

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread docs/.vitepress/theme/EvolutionBanner.vue

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4fc4f19f89

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/kimi-code/pyproject.toml
Comment thread docs/zh/guides/getting-started.md Outdated
Comment thread docs/zh/guides/getting-started.md Outdated
Comment thread packages/kimi-code/src/kimi_code/__init__.py Outdated
Comment thread docs/en/guides/getting-started.md Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 43604dce37

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md

2. Open a new terminal and run `kimi`. On first launch, it detects your Kimi CLI data in `~/.kimi/` and offers to migrate your config, MCP servers, input history, and sessions. You can also run `kimi migrate` at any time. Your original data in `~/.kimi/` is never modified or deleted.
3. Run `/login` again, and re-authorize your MCP servers. Login credentials, MCP authorizations, and Kimi CLI plugins are not migrated.
4. Uninstall the legacy CLI after migrating, e.g. `uv tool uninstall kimi-cli` or `brew uninstall kimi-cli`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Uninstall the uv tool before replacing its kimi shim

For users who originally installed kimi-cli with uv, this ordering removes the newly installed CLI: both uv and the migration installer manage ~/.local/bin/kimi (src/kimi_cli/ui/shell/update.py creates the replacement symlink there), while uv tool uninstall kimi-cli later deletes every executable recorded in the old tool receipt without checking whether the symlink target was replaced. I confirmed with uv 0.7.22 that uninstall logs Removing executable: .../kimi and deletes a substituted symlink. Move the legacy uninstall before installing Kimi Code CLI, or explicitly reinstall/relink the new CLI afterward; the same ordering should be corrected in the getting-started pages.

Useful? React with 👍 / 👎.

# 开始使用

::: danger 警告
**本项目已归档**。Kimi CLI 已停止维护,不再提供任何更新和安全修复,旧版将无法继续使用。请改为安装 [Kimi Code CLI](https://github.com/MoonshotAI/kimi-code),详见 [迁移指南](https://moonshotai.github.io/kimi-code/zh/guides/migration)。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Redirect feedback to the maintained repository

After this page redirects readers to the replacement CLI, its feedback callout at line 24 still sends issues and suggestions to MoonshotAI/kimi-cli/issues. That conflicts with the newly updated README and CONTRIBUTING.md, which state that this repository is read-only and no longer accepts issues, so users of the newly installed CLI are directed to an unusable or wrong-product tracker. Update this callout in both locales to point to MoonshotAI/kimi-code.

AGENTS.md reference: docs/AGENTS.md:L20-L20

Useful? React with 👍 / 👎.

@RealKai42
RealKai42 added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit 6c95904 Sep 21, 2026
51 of 55 checks passed
@RealKai42
RealKai42 deleted the chore/archive-kimi-cli branch September 21, 2026 15:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants