Skip to main content

Synopsis

Description

memory manages profClaw’s context memory index. The memory system indexes files and conversation history into chunks that are retrieved during agent execution to provide relevant context. Commands let you search the index, trigger a sync from disk, inspect what is indexed, and clear everything.

Subcommands

memory search <query>

Performs a semantic search over the memory index and returns the most relevant chunks.
string
required
Search query string. Matched semantically against indexed content.
string
default:"10"
Maximum number of chunks to return.
boolean
Output as JSON with scores, file paths, and content.

memory stats

boolean
Output statistics as JSON including chunk count, file count, token estimate, embedding model, and last sync time.

memory sync

Crawls the configured memory directories and updates the index - adding new files, updating changed files, and removing deleted files.
boolean
Output sync result as JSON with counts for added, updated, and removed chunks.

memory clear

boolean
Skip the confirmation prompt. Required for non-interactive use.
boolean
Output {"ok": true} on success.
memory clear permanently deletes all indexed content. The index must be rebuilt from disk with memory sync.

Examples