{"at":"2026-11-23T05:45:53.495Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:45:54.038Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:45:54.188Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:45:54.698Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{},"tools":{}},"instructions":"keymem is this agent's associative long-term memory (a key-graph, not a vector store).\n\nRecall first: before your first reply — and whenever the topic shifts — call recall(query) to check what is already known about the user, project, or topic. Use short noun keywords, not full sentences (recall(\"거주지\") not recall(\"어디 살아\")), and split multi-fact questions into several recall calls. recall returns matching keys only; follow with read_key(key_id) then read_memory(memory_id, via_key_id) to read a fact, or pass inject:true to recall for a one-shot content fetch.\n\nRemember durable facts — the write-side twin of recall first: recall opens the turn, remember closes it. Before you finish EVERY reply you MUST check whether this turn revealed anything durable; when the user shares a name, preference, decision, correction, project fact, or goal, you MUST save it silently in the same turn with remember(content, keys) using 3-6 diverse search keys (include colloquial and cross-lingual variants). Do not defer it to \"later\". A turn that surfaced a durable fact but saved nothing is a bug. Use correct() when a fact changes — never remember() for updates.\n\nStay silent: never mention the memory system to the user; act as if you naturally know things. For the full navigation and key-selection playbook, load the memory_system_prompt prompt.","protocolVersion":"2025-11-25","serverInfo":{"name":"keymem","version":"0.16.0"}}}}
{"at":"2026-11-23T05:45:54.698Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:45:54.698Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:45:54.700Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Search long-term memory for what is already known about the user, project, or topic — call this before your first reply and whenever the topic shifts. Returns matching key clusters only (not memory content): canonical concept, aliases, key type, match score, linked-memory count, hub status, and specificity. Follow up with read_key(key_id) then read_memory(memory_id, via_key_id) to read a stored fact. Use short focused noun queries and decompose multi-fact questions into several recall calls. Set inject:true to ALSO get the top connected memories' content in one call (skips manual read_key/read_memory) — returns {keys, memories}. Opt-in: trades the deliberate-navigation flow's context-efficiency and precision (the injected set carries lower-precision associative neighbours) for fewer round trips. inject_top_k caps the injected set; inject_prefer_depth favors confirmed (deep) memories; inject_explore_shallow reserves one slot for a weak/recent memory.","inputSchema":{"properties":{"inject":{"type":"boolean"},"inject_explore_shallow":{"type":"boolean"},"inject_prefer_depth":{"type":"boolean"},"inject_top_k":{"type":"number"},"namespace":{"type":"string"},"query":{"type":"string"},"top_k":{"type":"number"}},"required":["query"],"type":"object"},"name":"recall"},{"description":"List the memories stored under one key (concept), ranked. Returns the canonical key, its aliases, and hub metadata plus ranked memory IDs and metadata — never memory content. Call read_memory on promising handles. Use limit/offset to page through hub keys without flooding context. Pass the original query: handles are then ranked by content relevance to it, which is essential for hub keys so the target memory surfaces first instead of being buried.","inputSchema":{"properties":{"key_id":{"type":"string"},"limit":{"type":"number"},"namespace":{"type":"string"},"offset":{"type":"number"},"query":{"type":"string"}},"required":["key_id"],"type":"object"},"name":"read_key"},{"description":"Read the full content of one stored memory (selected via read_key). Returns the memory and all connected key clusters so exploration can continue Key → Memory → Key. Pass via_key_id from the selected key: only that traversed edge is Hebbian-reinforced, and depth/access count increase only when this full read occurs.","inputSchema":{"properties":{"memory_id":{"type":"string"},"namespace":{"type":"string"},"via_key_id":{"type":"string"}},"required":["memory_id"],"type":"object"},"name":"read_memory"},{"description":"Save important information to memory. Keys are search terms — think 'what would I search to find this later?' Use 3-6 diverse keys. Before coining new keys, recall() the topic and reuse returned canonical concepts or aliases. Semantically merged synonyms become aliases in one key cluster; shared broad keys become navigable hubs. CROSS-LINGUAL: add keys in both languages. namespace groups memories by project/context; ttl_seconds sets expiry; related_to adds explicit memory links; source attaches provenance and is auto-stamped with the server session, a timestamp, and — when a host agent (Claude Code, Codex) transcript is active — host_session/host_agent/host_turn so the memory can be traced back to its original conversation via get_conversation.","inputSchema":{"properties":{"content":{"type":"string"},"key_types":{"additionalProperties":{"type":"string"},"type":"object"},"keys":{"items":{"type":"string"},"type":"array"},"namespace":{"type":"string"},"related_to":{"items":{"type":"string"},"type":"array"},"source":{"additionalProperties":true,"type":"object"},"ttl_seconds":{"type":"number"}},"required":["content","keys"],"type":"object"},"name":"remember"},{"description":"Update outdated information. Use when user corrects you or info changes (e.g. moved cities, changed job). Old version is preserved but weakened — never lost. Omit keys to keep the same search terms. related_to links the updated memory to other memory IDs.","inputSchema":{"properties":{"content":{"type":"string"},"key_types":{"additionalProperties":{"type":"string"},"type":"object"},"keys":{"items":{"type":"string"},"type":"array"},"memory_id":{"type":"string"},"related_to":{"items":{"type":"string"},"type":"array"},"source":{"additionalProperties":true,"type":"object"}},"required":["memory_id","content"],"type":"object"},"name":"correct"},{"description":"Find other memories associated with a memory you already have (by ID). Returns neighboring memories connected by shared keys or explicit links. For normal agent-driven navigation prefer read_memory(), inspect its returned keys, then call read_key().","inputSchema":{"properties":{"memory_id":{"type":"string"}},"required":["memory_id"],"type":"object"},"name":"related"},{"description":"Permanently delete a memory. Only use for completely wrong information. For outdated info, use correct() instead — it preserves history.","inputSchema":{"properties":{"memory_id":{"type":"string"}},"required":["memory_id"],"type":"object"},"name":"forget"},{"description":"List all stored memories. namespace filters by project/context. Expired memories are excluded. Prefer recall() for normal retrieval.","inputSchema":{"properties":{"namespace":{"type":"string"}},"required":[],"type":"object"},"name":"list_memories"},{"description":"Save multiple memories in one call. Each item: {content, keys, key_types?, namespace?, ttl_seconds?, related_to?}. Returns list of saved IDs. More efficient than multiple remember() calls.","inputSchema":{"properties":{"items":{"items":{"properties":{"content":{"type":"string"},"key_types":{"additionalProperties":{"type":"string"},"type":"object"},"keys":{"items":{"type":"string"},"type":"array"},"namespace":{"type":"string"},"related_to":{"items":{"type":"string"},"type":"array"},"source":{"additionalProperties":true,"type":"object"},"ttl_seconds":{"type":"number"}},"required":["content","keys"],"type":"object"},"type":"array"}},"required":["items"],"type":"object"},"name":"remember_batch"},{"description":"Delete all memories past their ttl. Returns count of deleted memories. Call periodically to keep memory clean.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"cleanup_expired"},{"description":"Get counts of keys, memories, and links in the system.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"memory_stats"}]}}}
