mayros ltm

Manage the LanceDB-backed long-term vector memory. List stored memories, perform semantic searches, and view memory statistics.

Memories are automatically captured from conversations (preferences, decisions, entities, facts) and recalled before each agent session when auto-recall is enabled.

Subcommands

ltm list

List the total number of memories stored in the LanceDB database.

ltm search <query>

Perform a semantic vector search across stored memories. The query is embedded using the configured OpenAI embedding model and compared against all stored memory vectors.

Options:

FlagDescription
--limit <n>Maximum results to return (default: 5)

Results are returned as JSON with: id, text, category, importance, and score (similarity 0-1).

ltm stats

Show memory statistics including the total count of stored memories.

Memory categories

Memories are automatically categorized:

CategoryExamples
preference"I prefer dark mode", "I like TypeScript"
decision"We decided to use PostgreSQL"
entityEmail addresses, phone numbers, named entities
factGeneral factual statements
otherUncategorized memories

Configuration

The memory plugin is configured in mayros.toml under the memory-lancedb section:

KeyDescription
dbPathLanceDB database path (resolved relative to project)
embedding.apiKeyOpenAI API key for embeddings
embedding.modelEmbedding model (default: text-embedding-3-small)
autoRecallInject relevant memories before agent start
autoCaptureAutomatically capture important info from conversations
captureMaxCharsMaximum text length for auto-capture

Examples

bash
mayros ltm list
mayros ltm search "database preferences"
mayros ltm search "authentication decisions" --limit 10
mayros ltm stats