Manage Memory
Snippbot agents have persistent memory across sessions. Every conversation is automatically captured as an episode, entities are extracted into a knowledge graph, and recall improves over time. This guide explains how to search, explore, configure, and manage memory through the UI.
Accessing the Memory page
Section titled “Accessing the Memory page”Navigate to the Memory page using the sidebar. The page has five tabs:
| Tab | Component | What it shows |
|---|---|---|
| Explore | MemoryNebula | A 2D/3D particle visualization of memory clusters. Click clusters to view related episodes. Zoom and pan to navigate. |
| Timeline | EpisodeStream | A chronological list of all memory episodes, grouped by date (Today, Yesterday, etc.) with infinite scroll. |
| Search | SearchInterface | Search across all memory with three modes, filters, and highlighted results. |
| Knowledge Graph | Knowledge Graph | A force-directed entity-relation visualization with color-coded nodes and interactive exploration. |
| Stats | MemoryStats | Aggregate memory metrics — total episodes, entities, relations, importance distribution, and recall feedback statistics. |
The Memory page header displays summary statistics: episode count, vector count, graph node count, and storage size.
Searching memory
Section titled “Searching memory”The Search tab provides three search modes, each suited to different types of queries.
-
Navigate to the Memory page and select the Search tab.
-
Enter your query in the search box. The search is debounced (300ms) so results appear as you type.
-
Select the search mode:
Mode Best for How it works Hybrid (default) General queries Combines keyword and semantic search using Reciprocal Rank Fusion. A query analyzer auto-detects the optimal blend between keyword and vector weights. Semantic Conceptual questions, “how do I…” queries Uses 384-dimensional vector embeddings to find episodes by meaning, not just exact words. Finds results even without keyword overlap. Keyword Error codes, version numbers, exact terms Uses FTS5/BM25 full-text search. Supports phrase matching, boolean operators, and prefix wildcards. Includes a 7-day recency boost. -
Review results — each result shows the matched episode with highlighted text, a relevance score, and the source type.
Exploring the timeline
Section titled “Exploring the timeline”The Timeline tab (EpisodeStream) shows all memory episodes in chronological order.
-
Navigate to the Memory page and select the Timeline tab.
-
Scroll through episodes — they are grouped by date (Today, Yesterday, This Week, etc.) and load more as you scroll down (infinite pagination).
-
Expand an episode by clicking on it to see the full content, importance score, valence, source type, and linked entities.
-
Delete an episode by expanding it and clicking Delete. This removes the episode from episodic memory, the vector index, and any entity links.
Viewing the knowledge graph
Section titled “Viewing the knowledge graph”The Knowledge Graph tab shows a force-directed visualization of all entities and their relationships.
-
Navigate to the Memory page and select the Knowledge Graph tab.
-
Explore the graph — nodes are color-coded by entity type (languages, frameworks, tools, concepts, people). Drag nodes to rearrange the layout.
-
Click on a node to see its properties: name, type, importance score, and connected relationships.
-
Filter by entity type using the filter controls to focus on specific categories (e.g., show only frameworks and tools).
The graph is built automatically from your conversations. As you interact with your agent, entities and relations are extracted and added to the graph. The graph view is read-only — nodes and edges are managed by the memory system as conversations progress.
Exploring the nebula
Section titled “Exploring the nebula”The Explore tab (MemoryNebula) provides a visual cluster map of your agent’s semantic memory.
-
Navigate to the Memory page and select the Explore tab.
-
Navigate the visualization — zoom in and out, and pan across the canvas to explore memory clusters.
-
Click on a cluster to view the episodes it contains. Clusters represent groups of semantically similar memories.
Viewing memory stats
Section titled “Viewing memory stats”The Stats tab shows aggregate metrics for the selected agent’s memory.
-
Navigate to the Memory page and select the Stats tab.
-
Review the overview — total episodes, total entities, total relations, average importance, and average valence.
-
Check the importance distribution — a histogram showing how episodes are distributed across importance levels.
-
Review recall feedback — total recalls, used count, ignored count, and usage rate. This shows how often recalled memories actually influenced the agent’s responses.
How auto-capture works
Section titled “How auto-capture works”Every conversation is automatically captured as a memory episode. You do not need to do anything to enable this — it happens in the background after every chat response.
The capture process:
- The user message and assistant response are combined into a single content block.
- The Sensory Buffer filters out trivial exchanges (under 100 characters) and near-duplicates (over 80% word overlap).
- Content is normalized (Unicode cleanup, whitespace normalization, truncation at 10,000 characters).
- Importance is scored based on content keywords (“critical”, “decision”, “breakthrough”), content length, and source type. Failures get a boost (+0.2) because agents learn from mistakes.
- Valence (sentiment) is scored from -1.0 to +1.0 based on positive and negative keyword counts.
- The episode is stored, full-text indexed, embedded as a 384-dimensional vector, and entities are extracted into the knowledge graph.
Configuring memory settings
Section titled “Configuring memory settings”-
Navigate to Settings in the sidebar.
-
Select the Memory section.
-
Adjust the following settings:
Setting Default Description Memory Enabled On Master toggle for the entire memory system. When off, no episodes are captured or recalled. Auto Recall On Automatically surface relevant memories during conversations. When off, memory exists but is not injected into chat context. Recall Scope All Which memories to search during recall: All (global across all conversations), Project (only memories from the current project), Session (current session only), or None (disable recall without disabling capture). Retention Policy Forever How long to keep episodes: Forever, 1 Year, 6 Months, 3 Months, or 1 Month. Episodes older than the retention period are automatically pruned. Max Episodes 10,000 Maximum number of stored episodes (range: 100 to 100,000). When the limit is reached, the oldest low-importance episodes are removed first. Auto Summarize On Automatically compress older episodes via LLM summarization to save storage and improve retrieval quality. Summarize Threshold 30 Number of messages before auto-summarization triggers (range: 7 to 90 days). Min Relevance Threshold 0.25 Minimum similarity score (0.0 to 1.0) for injecting a memory into chat context. Below this threshold, nothing is injected — silence is better than noise. -
Click Save to apply changes.
Configuring privacy settings
Section titled “Configuring privacy settings”Privacy settings are located in the same Settings page, under the Memory section.
-
Navigate to Settings in the sidebar and select the Memory section.
-
Adjust the following privacy settings:
Setting Default Description Redact Secrets On Automatically strips API keys, passwords, tokens, and other secrets from episodes before they are written to the database. Anonymize Names Off Removes or replaces personal names in stored episodes to protect identity information. Local Only On Enforces that all memory data remains on the local machine. No cloud sync, no data transmission. Exclude Patterns Empty Regex or glob patterns to exclude from memory storage. Use this to prevent specific content from being captured (e.g., *.env, sensitive file paths, internal URLs). -
Click Save to apply changes.
Exporting and clearing memory
Section titled “Exporting and clearing memory”Export memory data
Section titled “Export memory data”-
Navigate to the Memory page.
-
Click Export Memory in the page actions.
-
A JSON file is downloaded containing all episodes and their metadata (content, importance, valence, timestamps, entities, and relations).
Clear all memory
Section titled “Clear all memory”-
Navigate to the Memory page.
-
Click Clear All Memory.
-
Confirm the action in the confirmation dialog. This performs a cascading delete of all episodes, the vector index, and the knowledge graph.
Delete individual episodes
Section titled “Delete individual episodes”-
Navigate to the Memory page and select the Timeline tab.
-
Click on an episode to expand it.
-
Click Delete to remove that specific episode from memory.
Automatic pruning
Section titled “Automatic pruning”Episodes are automatically pruned based on two settings:
- Retention Policy — episodes older than the configured period are removed on a rolling basis.
- Max Episodes — when the episode count exceeds the limit, the oldest low-importance episodes are removed first.
Tips for effective memory
Section titled “Tips for effective memory”- Review what your agent knows — use Semantic search to check what the agent remembers before starting important work.
- Tune the relevance threshold — increase it if the agent injects too much noise; decrease it if it misses useful context.
- Use Project scope — for project-specific work, set Recall Scope to Project so the agent only recalls relevant project memories.
- Keep episode counts reasonable — very large episode stores (above 10,000) can slow retrieval. Use retention policies to prune old episodes.
- Monitor the knowledge graph — check which entities and relations the agent has learned. This helps you understand how the agent connects concepts.
- Clear and restart if an agent has accumulated contradictory memories — sometimes a fresh start gives better results.
Related
Section titled “Related”- Memory concepts — the 5-tier architecture, hybrid search, knowledge graph, and privacy model explained in depth