feat: add a dedicated system prompt for Kimi models#20259
Merged
kommander merged 1 commit intoanomalyco:devfrom Mar 31, 2026
Merged
feat: add a dedicated system prompt for Kimi models#20259kommander merged 1 commit intoanomalyco:devfrom
kommander merged 1 commit intoanomalyco:devfrom
Conversation
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Comment on lines
+89
to
+100
| ## What are skills? | ||
|
|
||
| Skills are modular extensions that provide: | ||
|
|
||
| - Specialized knowledge: Domain-specific expertise (e.g., PDF processing, data analysis) | ||
| - Workflow patterns: Best practices for common tasks | ||
| - Tool integrations: Pre-configured tool chains for specific operations | ||
| - Reference material: Documentation, templates, and examples | ||
|
|
||
| ## How to use skills | ||
|
|
||
| Identify the skills that are likely to be useful for the tasks you are currently working on, use the `skill` tool to load a skill for detailed instructions, guidelines, scripts and more. |
Collaborator
There was a problem hiding this comment.
I think this is redundant
There is a later section of system prompt that mentions skills.
But ill merge as is but just letting u know, if u have follow up changes u want I can merge those too.
Contributor
There was a problem hiding this comment.
@Yuxin-Dong . In case review note was missed, because this is a good point.
Contributor
Author
There was a problem hiding this comment.
Good catch. I will remove the dedicated # Skills section from the Kimi prompt so we don’t restate skill behavior in two places.
h33h
pushed a commit
to h33h/opencode
that referenced
this pull request
Mar 31, 2026
Co-authored-by: dongyuxin <dongyuxin@dev.dongyuxin.msh-dev.svc.cluster.local>
6 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #20258
Type of change
What does this PR do?
This PR introduces a dedicated system prompt for Kimi models and updates prompt selection so that model IDs containing
kimiuse this prompt instead of the generic default prompt.We are submitting this on behalf of Moonshot AI. The prompt content added here is migrated from Kimi Code CLI, where it is specifically tuned for Kimi-series models. The objective is to preserve the prompting style that is already known to work well for these models, while keeping the implementation isolated and low-risk.
Importantly, this prompt has been tested internally and is able to recover the performance regression observed on our internal benchmarks when Kimi models are run with the generic default prompt.
Scope of the change:
packages/opencode/src/session/prompt/kimi.txtpackages/opencode/src/session/system.tssokimimodel IDs resolve to the Kimi-specific promptHow did you verify your code works?
kimiresolve to the dedicated Kimi promptkimi-k2.5performance on coding benchmarks #20258Screenshots / recordings
Not applicable.
Checklist