Skip to main content
The memory system provides semantic search over markdown files, persistent session context, and an experience store for learning from past tool chains and user preferences.

POST /api/memory/search

Search memory chunks by semantic similarity.
Request body Response 200

POST /api/memory/sync

Sync memory files from disk into the database.
Response: { "synced": 42, "added": 5, "updated": 2, "removed": 0 }

GET /api/memory/stats

Get memory statistics (file count, chunk count, last sync time).

GET /api/memory/files

List all indexed memory files.

GET /api/memory/files/:path/chunks

List all chunks for a specific file (URL-encode the path).

DELETE /api/memory/chunks/:id

Delete a specific chunk by ID.

DELETE /api/memory/files/:path

Delete all chunks for a file.

DELETE /api/memory/all

Clear all memory chunks and files.

Memory Sessions


Experience Store

The experience store (src/memory/experience-store.ts) learns from past tool chains and user preferences. Experience types: tool_chain | user_preference | task_solution | error_recovery

Record an experience

Search similar experiences

Other experience endpoints


Watcher Status

The memory watcher monitors files for changes and auto-syncs: