Skip to content

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

Description

@bob0x-ai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions