Memory LanceDB Pro
Use this skill when the task benefits from durable memory across Codex sessions.
Workflow
- Before broad repo exploration, call
memory_recallwith the current bug, feature, repo, or error keywords if prior work may already exist. - Skip recall only when the task is obviously one-off and prior context is unlikely to help.
- After resolving a bug, decision, or stable preference, prefer
memory_extract_and_storewith a short summary transcript. Usememory_storeonly for one short atomic memory. - Use explicit scopes when the memory should stay local:
globalfor cross-project knowledgeproject:<slug>for repo-specific memorycustom:<slug>for any other partition you want to control manually
- Use
memory_healthwhen writes or recall fail, especially right after install or when embedding credentials changed.
@memory Convention
Treat a user prefix like @memory or @记忆 as a direct request to interact with the memory system, even if the native Codex app picker does not show a memory app chip.
Common mappings:
@memory recall <query>-> callmemory_recall@memory store <text>-> callmemory_store@memory extract <transcript>-> callmemory_extract_and_store@memory list-> callmemory_list@memory stats-> callmemory_stats@memory health-> callmemory_health@memory forget <id>-> callmemory_forget
When the user intent is clear, do not ask them to restate the request in tool-shaped JSON.
Writing Guidance
- Prefer concise, reusable memories.
- Split raw fact and actionable rule into separate entries when both matter.
- Avoid storing transient logs, stack traces, or long conversational summaries unless they are the actual durable artifact.
- Never store secrets, API keys, access tokens, or private credentials.
Tool Map
memory_recall: search existing memorymemory_extract_and_store: extract memories from a conversation transcript and persist themmemory_store: persist a new memorymemory_update: fix or refine a stored memorymemory_forget: delete stale or wrong memorymemory_list: inspect recent entriesmemory_stats: check store shape and countsmemory_health: validate runtime and embedding connectivity