Skip to content

feat(plugin): support project-level plugin directories#1749

Open
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:feat/project-level-plugins
Open

feat(plugin): support project-level plugin directories#1749
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:feat/project-level-plugins

Conversation

@bj456736

Copy link
Copy Markdown
Contributor

Summary

Add support for project-level plugins via workspace local config (.kimi-code/local.toml).

Changes

  • Add plugin_dir array to workspace local config schema
  • New scanProjectPluginDirs utility scans directories for kimi-plugin.json manifests
  • Project-level plugin skills are merged into session skill configuration on create/resume
  • No global state pollution — plugins stay scoped to the workspace

Usage

In your project's .kimi-code/local.toml:

[workspace]
plugin_dir = [./plugins]

Place plugins under ./plugins/<plugin-name>/kimi-plugin.json and their skills will be available in sessions created from that workspace.

Closes #511

Add support for project-level plugins via workspace local config.

- Add 'plugin_dir' array to .kimi-code/local.toml workspace section
- Scan project-level plugin directories for kimi-plugin.json manifests
- Merge project plugin skills into session skill configuration
- Project plugins are scoped to the workspace and do not pollute global state

Closes MoonshotAI#511
@changeset-bot

changeset-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fdf48c5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@fdf48c5
npx https://pkg.pr.new/@moonshot-ai/kimi-code@fdf48c5

commit: fdf48c5

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.

插件安装需要支持项目级

1 participant