Skip to content

Commands ​

LivingMemory commands use the /lmem prefix.

CommandDescription
/lmem statusShow memory statistics and, while maintenance is active or abnormal, its state, progress, and message
/lmem search <query> [k]Search long-term memories; k defaults to 5
/lmem forget <id>Delete a specific memory
/lmem rebuild-indexRebuild document indexes
/lmem rebuild-graphRebuild and compact graph indexes into memory-level vectors
/lmem migrate-scope <target> [apply] [source]Migrate existing memories (documents, atoms, graph entries) to a scope; dry-run by default, apply writes; optional source accepts all/*/- for every source
/lmem webuiShow WebUI entry information
/lmem summarize [message_count]Summarize now; with a count, re-summarize the most recent N messages
/lmem resetReset current session memory context
/lmem cleanup [preview|exec]Clean old memory injection fragments from message history
/lmem helpShow help

Index maintenance states ​

Startup consistency checks and automatic repairs run in the background. Use /lmem status to inspect non-idle states:

StateMeaningRecommended action
checkingDocument, vector, BM25, and graph consistency is being checkedNo action is required; the plugin remains available
rebuildingIndexes are being rebuilt in batches and progress is availableKeep providers available and do not start duplicate rebuilds
partialRebuild finished with tolerated failures or the final check still found differencesCheck provider limits and logs, then run /lmem rebuild-index again if needed
failedBackground maintenance failed; the live index remains in use when a shadow generation did not switchFix the reported environment problem and rerun the rebuild
cancelledMaintenance was cancelled during plugin stop or reloadThe next startup checks again, or rebuild manually after the runtime is stable

idle and ready do not add a maintenance section to the status reply.

Troubleshooting ​

SymptomTry this
Recently discussed content is not searchableRun /lmem summarize to ensure it has been written into long-term memory
A summary is empty or misses detailsUse /lmem summarize 20 for the latest 20 messages, or re-summarize retained source from memory details
Memories leak across personasCheck filtering_settings.use_persona_filtering
Group context is incompleteCheck session_manager.enable_full_group_capture
Search indexes look inconsistentRun /lmem rebuild-index; for graph issues, run /lmem rebuild-graph
Old recall degrades after changing the embedding modelWait for the provider-fingerprint check to trigger a full vector rebuild and monitor /lmem status
An error names faiss-cpu 1.14.2 or a core dependency conflictAstrBot 4.27.1 and the plugin require faiss-cpu>=1.14.3; update or repair the Desktop embedded environment and lock instead of overriding a core dependency
FAISS reports Illegal instructionThe plugin first probes generic instruction mode; if that also fails, install a wheel compatible with the current CPU and Python or move to a compatible runtime
FAISS reports an undefined SuperKMeansPython wrappers and the binary extension are mismatched; cleanly reinstall a compatible build in the exact Python environment used by AstrBot