kimi-code icon indicating copy to clipboard operation
kimi-code copied to clipboard

Feature request: General memory provider mechanism for automatic cross-session memory integration

Open neurosovereign opened this issue 4 months ago • 2 comments

Kimi Code CLI already supports MCP servers and lifecycle hooks, but there is no built-in, backend-agnostic memory provider mechanism comparable to Hermes Agent's memory provider plugin or OpenClaw's memory integration.

Use case

Users who run memory systems such as OpenViking would like important facts, preferences, decisions, and project context from a session to be automatically extracted, stored, and recalled in future sessions — without having to call mcp__openviking__remember / mcp__openviking__recall manually every turn.

Proposed solution

Add a general memory provider interface/plugin point that:

  1. Allows declaring one or more memory providers (MCP-based or native).
  2. Automatically extracts memories at configurable trigger points (e.g., session end, context compaction, explicit command).
  3. Injects relevant memories into context at configurable points. Injection should be available at least at session start and on a per-turn basis, so the agent can recall context exactly when it is needed.
  4. Is backend-agnostic, so any memory provider can implement it.

Prior art

  • Hermes Agent: dedicated memory provider plugin for OpenViking.
  • OpenClaw: similar automatic memory extraction/recall.

Current workaround

Manual MCP tool calls (mcp__openviking__remember, mcp__openviking__recall) or a custom plugin hook that talks to the memory service externally. This is tedious and cannot provide the same deep, general integration as a first-class provider mechanism.

neurosovereign avatar Jul 22 '26 17:07 neurosovereign

A concrete plugin-based path is now installable without patching Kimi Code:

/plugins install https://github.com/hjqcan/GoodMemory

GoodMemory v0.7.2 ships a Kimi Code plugin with a session-start Skill, four /goodmemory:* commands, and a local stdio MCP server. The current boundary is intentionally narrower than automatic provider integration:

  • project memory is shared across sessions by passing the current absolute cwd, while different project paths remain isolated;
  • eight read/audit tools plus goodmemory_remember are exposed;
  • writes are available after install, but the plugin installs no permanent allow rule, so Kimi's MCP approval remains the authorization boundary;
  • there are no hooks, background extraction, raw-transcript writes, or automatic context injection in this release.

The macOS acceptance was refreshed against current Kimi Code 0.34.0: installation from the bare GitHub URL selected hjqcan/GoodMemory@tag:v0.7.2 and registered 9 tools. A deterministic local OpenAI-compatible test model then invoked goodmemory_remember through Kimi; Kimi displayed its Approve once boundary and the tool returned accepted: 1. Separately, the exact packaged MCP command verified write -> new MCP process -> recall -> trace, plus different-cwd isolation. These are maintainer-run integration and authorization-boundary checks, not independent-user adoption or a production-model evaluation.

Evidence:

Could maintainers clarify the Marketplace submission path for a third-party plugin like this? Also, after there is real adoption evidence, would you prefer a focused discussion of a native provider interface, or should this remain entirely at the plugin/MCP layer?

hjqcan avatar Aug 02 '26 06:08 hjqcan

One-time seven-day follow-up on the maintainer questions above. I have not found independent Kimi user evidence yet, so I am not submitting a Marketplace application or treating installs, directory listings, or downloads as adoption.

The published boundary remains v0.7.2: bare-GitHub plugin installation plus maintainer-run macOS write → new-process recall, trace, and cwd isolation. Automatic injection, background extraction, silent writes, and unverified platform support remain out of scope.

Could a maintainer point to the third-party Marketplace submission/validation path, or confirm that plugin/MCP distribution is the intended endpoint for now? I will not repeat this ping.

hjqcan avatar Aug 10 '26 13:08 hjqcan