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.Documentation Index
Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/memory/search
Search memory chunks by semantic similarity.| Field | Type | Default | Description |
|---|---|---|---|
query | string | Required | Search query |
maxResults | number | 6 | Max results to return |
minScore | number | - | Minimum relevance score (0-1) |
200
POST /api/memory/sync
Sync memory files from disk into the database.{ "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:Related
- Memory Tools - How agents search and recall memory during execution
- profclaw memory - Sync and inspect the memory index from the CLI
- Agent Sessions API - Warm memory before agentic execution
- Configuration Overview - Memory settings and base paths