mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[PR #19] [MERGED] feat: Add Kimi CLI support #23
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/yigitkonur/cli-continues/pull/19
Author: @skylixone
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @yigitkonur
Base:
main← Head:main📝 Commits (8)
cb4c1c8feat: add Kimi CLI support97117e2fix: resolve kimi parser consensus issuesadf049cfix: address remaining kimi review commentsd3989bcfix: align kimi context extraction with review feedback570ac70chore: add review guidance and greptile config files9778fd8test: add createKimiFixture and use shared kimi fixture context52a7521fix: allow kimi special records without content in schema19ce73cfix: preserve user message when trimming kimi context📊 Changes
23 files changed (+1706 additions, -8 deletions)
View changed files
➕
.github/copilot-instructions.md(+34 -0)➕
.github/instructions/ci.instructions.md(+36 -0)➕
.github/instructions/parsers.instructions.md(+62 -0)➕
.github/instructions/security.instructions.md(+35 -0)➕
.github/instructions/testing.instructions.md(+35 -0)➕
.github/instructions/typescript.instructions.md(+46 -0)➕
.greptile/config.json(+129 -0)➕
.greptile/files.json(+43 -0)➕
.greptile/rules.md(+159 -0)➕
AGENTS.md(+52 -0)➕
REVIEW.md(+104 -0)📝
package-lock.json(+2 -2)📝
src/__tests__/e2e-conversions.test.ts(+6 -1)📝
src/__tests__/extract-handoffs.ts(+5 -1)📝
src/__tests__/fixtures/index.ts(+109 -1)➕
src/__tests__/kimi-parser.test.ts(+260 -0)📝
src/__tests__/schemas.test.ts(+26 -3)📝
src/__tests__/unit-conversions.test.ts(+63 -0)📝
src/parsers/index.ts(+1 -0)➕
src/parsers/kimi.ts(+444 -0)...and 3 more files
📄 Description
Summary
This PR adds support for Kimi CLI to the continues tool, enabling seamless session handoffs between Kimi and other supported CLI tools.
Changes
Kimi Session Format
Kimi stores sessions in the following structure:
context.jsonl format
_checkpointentries: internal checkpointsuserentries: user messages with string contentassistantentries: assistant messages with content blocks (text, think, tool_calls)toolentries: tool results_usageentries: token countsFeatures Supported
continues list)continues resume <id> --print-only)kimi --session <id>)Testing
Example Output
Notes
Review all of them with eye of John Carmack-like simplicity with elegeance approach and apply the one only if required
Greptile Summary
This PR successfully adds Kimi CLI support following the established adapter registry pattern. All issues from previous review threads have been addressed:
Fixed Issues:
createHash().digest('hex')instead of broken base64 encodingstats.mtimeinstead ofDate.now() / 1000Setinstead of O(n) array lookupsextractTextFromBlocksdirectlycrossToolArgsuses clean['--prompt', prompt]format without corrupting handoff textKimiUsageSchemadead code from schemas.tsImplementation Quality:
.passthrough()for forward compatibilitySummaryCollectorfor tool activity tracking per established patternDocumentation:
Most file changes are non-code additions (
.github/,.greptile/,AGENTS.md,REVIEW.md) providing review guidance and architecture documentation.Confidence Score: 5/5
Important Files Changed
.passthrough()for forward compatibility. Content field correctly marked as optional.Last reviewed commit:
52a7521🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.