memory
Store, search, read, and update shared AI coding context with conflict arbitration, enabling tools like Codex, Cursor, and Claude Code to reuse structured notes across sessions.
Instructions
Daily memory operations: remember, find, batch_find, read, update, judge, status, help.
workspace is required on remember — discover buckets once with memory_review(view="workspaces") (e.g., at session start) and reuse that list; re-query only when unsure or before deliberately creating a new bucket ('default' is the global pool).
Call memory(action="help") to discover accepted fields, judge requirements, value enums, update modes, and action_required paths before relying on a result that requests attention.
update edits in place: 1..8 local edits use patches=[{old_text,new_text}] (atomic all-or-nothing, one version bump); full rewrites use new_content; a single small edit may use old_text/new_text.
batch_find runs up to 8 queries in one call and returns one merged index page (dedup by memory_id, matched_query_ids per item).
find is an index page: results carry metadata + content_chars + a bounded outline (offsets usable directly as read span starts), not full content — content_mode (v0.15.10, preview default) is a single-choice enum: "hits" adds hit_spans (vector-matched unit text + span coordinates, never truncated; >=50% coverage upgrades an item to full text; hit_window=N (default 0) extends each hit with +/-N neighbouring complete sentences, neighbours marked matched=false; hit_spans appears only on query-recall pages — browse/filter pages carry none; hits whose evidence row lags the memory's current version are dropped with a stale_hit_spans marker plus a re-query warning), "full" returns whole texts. Space-separated short CJK words (each <=4 chars, e.g. "向量 唯一键 冲突") are understood as keywords: semantically close memories whose content/subject contains a keyword rank higher (0.17.0; whole-word matching, generic words ignored). Offsets are 0-based Unicode code-point offsets into the content as indexed for the item's version; the evidence index may lag right after an edit (see vector_lag). Score compares only within the page; if the top page misses, reword the query or add tags_filter instead of deep paging. The size block meters the returned page (tokens_estimate + display_hint).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| action | No | help |