{
  "id": "cognee-memory",
  "name": "Cognee Memory",
  "description": "Cross-session memory via Cognee. Injects LLM-free graph context before each reply (before_prompt_build), persists each turn after it ends (agent_end), and cognifies asynchronously on a background sweep (cognee-llm/Kimi). Modeled 1:1 on the Honcho plugin's touchpoints.",
  "activation": {
    "onStartup": true
  },
  "contracts": {
    "tools": ["cognee_recall"]
  },
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "enabled": { "type": "boolean" },
      "cogneeUrl": { "type": "string" },
      "agents": { "type": "array", "items": { "type": "string" } },
      "topK": { "type": "integer", "minimum": 1, "maximum": 50 },
      "maxContextChars": { "type": "integer", "minimum": 200, "maximum": 20000 },
      "recallTimeoutMs": { "type": "integer", "minimum": 500, "maximum": 30000 },
      "persistTimeoutMs": { "type": "integer", "minimum": 500, "maximum": 60000 },
      "sweepIntervalMs": { "type": "integer", "minimum": 30000, "maximum": 86400000 },
      "minTextChars": { "type": "integer", "minimum": 1, "maximum": 200 },
      "injectHeader": { "type": "string" }
    }
  },
  "uiHints": {
    "enabled": {
      "label": "Cognee Memory",
      "help": "Enable cross-session Cognee memory (recall inject + turn persist + async cognify sweep)."
    },
    "cogneeUrl": {
      "label": "Cognee URL",
      "help": "Base URL of the cognee FastAPI service (default http://cognee:8000)."
    },
    "agents": {
      "label": "Target Agents",
      "help": "Agent ids that use Cognee memory. Empty means all agents."
    },
    "topK": {
      "label": "Recall Top-K",
      "help": "Number of graph triplet seeds to retrieve per recall (before_prompt_build)."
    },
    "maxContextChars": {
      "label": "Max Injected Context Chars",
      "help": "Hard cap on the size of the injected graph-context block."
    },
    "recallTimeoutMs": {
      "label": "Recall Timeout (ms)",
      "help": "Budget for the LLM-free graph recall on the reply path. On timeout the turn proceeds with no injected memory."
    },
    "persistTimeoutMs": {
      "label": "Persist Timeout (ms)",
      "help": "Budget for the post-turn raw add to cognee (off the reply path)."
    },
    "sweepIntervalMs": {
      "label": "Cognify Sweep Interval (ms)",
      "help": "Freshness dial: how often the background sweep cognifies datasets that received new turns. Cognify runs on cognee-llm (Kimi), off the reply path. Lower = fresher cross-session recall of recent facts, more Kimi calls."
    },
    "minTextChars": {
      "label": "Minimum Text Chars",
      "help": "Skip recall/persist for text shorter than this."
    },
    "injectHeader": {
      "label": "Inject Header",
      "help": "Header line prepended to the injected graph-context block."
    }
  }
}
