Repository navigation
Description
Feature description
Add a minimal usable PowerContext integration for Kimi Code, following the existing ZCode Hook + native MCP approach.
Related to #1213.
Problem and proposed solution
Kimi Code is listed in the integration tracker but has no dedicated PowerContext integration. Users should be able to save and search project memory explicitly, capture ordinary text prompts as Sources, and receive relevant context automatically in later sessions.
Keep the first implementation small:
- Ship a native Kimi plugin with a routing Skill, an HTTP MCP declaration, and one
UserPromptSubmitHook. - Provide
powercontext setup kimi-codeandpowercontext doctor kimi-code. Support a local PowerContext checkout as the plugin source initially. - Require one existing Scope to be configured explicitly. Reuse it across sessions and for explicit MCP operations; do not introduce workspace/session binding management.
- Keep Hook HTTP and native MCP on the same Server and authentication settings.
- Prepare bounded context and capture eligible text prompts through existing APIs. Use Server processing for automatic memory generation; automatic flush is not required.
- Fail open on automatic-path failures and preserve other Kimi plugins and user settings.
Kimi-specific details must be handled rather than copied from ZCode: Hook output uses message, the plugin process cwd is the plugin root while stdin cwd identifies the workspace, and UserPromptSubmit does not carry a turn_id.
Acceptance criteria
- Install from a local checkout, reload/start Kimi, and discover the native PowerContext MCP tools.
- Save a memory explicitly, read it back, and find it from a fresh Kimi session using the same Scope.
- Observe an ordinary text prompt persisted as a Source and prepared context included in an actual Kimi model request.
- Where Server Generation is configured, verify captured Source evidence produces memory and can be recalled in a fresh session.
- Missing/wrong credentials produce an actionable diagnostic; Server outage does not prevent ordinary Kimi work.
- Repeat setup without duplicate registration or loss of unrelated settings; document prerequisites and the verified Kimi version/platform.
Scope limits
No full Handoff/Review workflow, binding commands, Stop/compaction/resume hooks, persistent pending/flush recovery system, marketplace release, or multi-platform CI matrix is required. No Core or OpenAPI changes are expected.
Additional context
References: integrations/zcode/, integrations/dsh/, Kimi's plugin documentation and Hook implementation.
Implementation and validation must distinguish real Kimi host execution from directly invoking the Hook or mocking the host.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity