shodh-memory
v0.2.0Cognitive memory for AI agents — semantic search, Hebbian learning, knowledge graphs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
remember
Store a memory for future recall. Use this to remember important information, decisions, user preferences, project context, or anything you want to recall later.
| Parameter | Type | Description |
|---|---|---|
content * | string | The content to remember (observation, decision, learning, etc.) |
action_type | string | Action type name (e.g., 'navigate', 'grasp', 'dock') |
created_at | string | Optional ISO 8601 timestamp for the memory (e.g., '2025-12-15T06:30:00Z'). If not provided, uses current time. |
credibility | number | Credibility score: 0.0 to 1.0 (1.0 = verified facts, 0.3 = inferred) |
emotion | string | Dominant emotion label (e.g., 'joy', 'frustration', 'surprise') |
emotional_arousal | number | Arousal level: 0.0 (calm) to 1.0 (highly aroused). E.g., routine task: 0.2, critical issue: 0.9 |
emotional_valence | number | Emotional valence: -1.0 (negative) to 1.0 (positive), 0.0 = neutral. E.g., bug found: -0.3, feature shipped: 0.7 |
episode_id | string | Episode ID - groups memories into coherent episodes/conversations |
geo_location | array | GPS coordinates [latitude, longitude, altitude] in WGS84 |
heading | number | Heading in degrees (0-360) |
importance | number | Optional importance override (0.0-1.0). Bypasses auto-calculation. Use for memories where importance is known: Decision=0.8, Learning=0.7, Error=0.7, Discovery=0.6, Observation=0.3 |
local_position | array | Local position [x, y, z] in meters (robot-local frame) |
mission_id | string | Mission identifier for grouping experiences |
outcome_type | string | Outcome type: success, failure, partial, aborted, timeout |
parent_id | string | Parent memory ID for hierarchical organization. Creates memory trees (e.g., '71-research' -> 'algebraic' -> '21×27≡-1') |
preceding_memory_id | string | ID of the preceding memory (for temporal chains) |
reward | number | Reinforcement learning reward signal (-1.0 to 1.0) |
robot_id | string | Robot/drone identifier for multi-robot systems |
sensor_data | object | Raw sensor readings (e.g., {battery: 72.5, temperature: 23.1}) |
sequence_number | number | Sequence number within episode (1, 2, 3...) |
source_type | string | Source type: where the information came from |
tags | array | Optional tags for categorization |
terrain_type | string | Terrain type: indoor, outdoor, urban, rural, water, aerial |
type | string | Type of memory |
recall
Search memories AND todos using semantic similarity. Returns both relevant memories and matching todos. Use this to find past experiences, decisions, context, or pending work. Modes: 'semantic' (vector similarity), 'associative' (graph traversal), 'temporal' (time-based retrieval), 'hybrid' (combined), 'spatial' (geo-location based), 'mission' (mission context), 'action_outcome' (reward-based learning).
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language search query - searches both memories and todos |
action_type | string | Filter by action type (e.g., 'navigate', 'grasp', 'dock') |
failures_only | boolean | If true, only return failure/error experiences |
geo_lat | number | Spatial filter: center latitude (-90 to 90). Requires geo_lon and geo_radius_meters. |
geo_lon | number | Spatial filter: center longitude (-180 to 180). Requires geo_lat and geo_radius_meters. |
geo_radius_meters | number | Spatial filter: search radius in meters. Requires geo_lat and geo_lon. |
limit | number | Maximum number of memory results (default: 5). Todos limited to 5. |
mission_id | string | Filter by mission identifier |
mode | string | Retrieval mode: 'semantic' for pure vector similarity, 'associative' for graph-based traversal (follows learned connections), 'temporal' for time-based retrieval, 'hybrid' for density-dependent combin… |
outcome_type | string | Filter by outcome type: success, failure, partial, aborted, timeout |
reward_max | number | Filter by maximum reward value (-1.0 to 1.0) |
reward_min | number | Filter by minimum reward value (-1.0 to 1.0) |
robot_id | string | Filter by robot/drone identifier (for multi-robot systems) |
session_id | string | Session ID for session-scoped retrieval. When provided, retrieves memories from that session's time window. Forces temporal mode. |
tags | array | Filter by tags (any match) |
terrain_type | string | Filter by terrain type: indoor, outdoor, urban, rural, water, aerial |
recall_by_tags
Find memories by tags. Returns memories matching ANY of the provided tags. Useful for finding memories by category (e.g., 'tool:Edit', 'file:src/main.rs', 'source:hook', 'error', 'session-summary').
| Parameter | Type | Description |
|---|---|---|
tags * | array | Tags to search for (returns memories matching ANY of these tags) |
limit | number | Maximum number of results (default: 50) |
context_summary
Get a condensed summary of recent learnings, decisions, and context. Use this at the start of a session to quickly understand what you've learned before.
| Parameter | Type | Description |
|---|---|---|
include_context | boolean | Include project context (default: true) |
include_decisions | boolean | Include recent decisions (default: true) |
include_learnings | boolean | Include recent learnings (default: true) |
max_items | number | Maximum items per category (default: 5) |
list_memories
List all stored memories
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of results |
forget
Delete a specific memory by ID
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the memory to delete |
memory_stats
Get statistics about stored memories
verify_index
Verify vector index integrity - diagnose orphaned memories that are stored but not searchable. Returns health status and count of orphaned memories.
repair_index
Repair vector index by re-indexing orphaned memories. Use this when verify_index shows unhealthy status. Returns count of repaired memories.
backup_create
Create a backup of all memories. Returns backup metadata including ID, size, and checksum. Backups are stored locally and can be restored later.
backup_list
List all available backups for this user. Returns backup history with IDs, timestamps, and sizes.
backup_verify
Verify backup integrity using SHA-256 checksum. Use to check if a backup is corrupted before restoring.
| Parameter | Type | Description |
|---|---|---|
backup_id * | number | The backup ID to verify |
backup_purge
Purge old backups, keeping only the most recent N. Useful for managing disk space.
| Parameter | Type | Description |
|---|---|---|
keep_count | number | Number of backups to keep (default: 7) |
backup_restore
Restore a previously created backup by ID. This replaces all current data for the user with the backup contents. Server restart is recommended after restore.
| Parameter | Type | Description |
|---|---|---|
backup_id * | number | The backup ID to restore (from backup_list) |
consolidation_report
Get a report of what the memory system has been learning. Shows memory strengthening/decay events, edge formation, fact extraction, and maintenance cycles. Use this to understand how your memories are evolving.
| Parameter | Type | Description |
|---|---|---|
since | string | Start of report period (ISO 8601 format). Defaults to 24 hours ago. |
until | string | End of report period (ISO 8601 format). Defaults to now. |
proactive_context
REQUIRED: Call this tool with EVERY user message to surface relevant memories and build conversation history. Pass the user's message as context. This enables: (1) retrieving memories relevant to what the user is asking, (2) building persistent memory of the conversation for future sessions. The system analyzes entities, semantic similarity, and recency to find contextually appropriate memories. Auto-ingest stores the context automatically. USAGE: Always call this FIRST when you receive a user message, passing their message as the context parameter.
| Parameter | Type | Description |
|---|---|---|
context * | string | The current conversation context or topic (e.g., recent messages, current task description) |
auto_ingest | boolean | Automatically store the context as a Conversation memory (default: true). Set to false to only surface memories without storing. |
entity_match_weight | number | Weight for entity matching in relevance scoring (0.0-1.0, default: 0.4) |
max_results | number | Maximum number of memories to surface (default: 5) |
memory_types | array | Filter to specific memory types (e.g., ['Decision', 'Learning', 'Context']). Empty means all types. |
recency_weight | number | Weight for recency boost in relevance scoring (0.0-1.0, default: 0.2) |
semantic_threshold | number | Minimum semantic similarity (0.0-1.0) for memories to be surfaced (default: 0.65) |
tool_actions | array | Tool/actuator actions performed since last proactive_context call. Used for causal feedback attribution. |
token_status
Get current token usage status for this session. Returns tokens used, budget remaining, and percentage consumed. Use this to check context window health.
reset_token_session
Reset the token counter for a new session. Call this when starting a new conversation or after context has been compressed/summarized.
set_reminder
Set a reminder for the future. Triggers on time (at specific time or after duration) or context match (when keywords appear in conversation). Reminders will surface automatically when conditions are met.
| Parameter | Type | Description |
|---|---|---|
content * | string | What to remember/remind about |
trigger_type * | string | When to trigger: 'time' (at specific ISO timestamp), 'duration' (after N seconds), 'context' (when keywords match) |
after_seconds | number | Seconds from now for 'duration' trigger |
keywords | array | Keywords for 'context' trigger - reminder surfaces when any keyword appears |
priority | number | Priority 1-5 (5 = highest, default: 3) |
tags | array | Optional tags for categorization |
threshold | number | Semantic similarity threshold for 'context' trigger (0.0-1.0, default: 0.7). Lower values match more broadly, higher values require closer semantic match. |
trigger_at | string | ISO 8601 timestamp for 'time' trigger (e.g., '2025-12-23T18:00:00Z') |
list_reminders
List all pending reminders. Use to check what reminders are scheduled.
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status (default: pending) |
dismiss_reminder
Dismiss/acknowledge a triggered reminder. Call this after you've handled a reminder.
| Parameter | Type | Description |
|---|---|---|
reminder_id * | string | ID of the reminder to dismiss |
add_todo
Add a task to your todo list. Supports GTD workflow with projects, contexts (@computer, @phone), priorities, due dates, and subtasks (via parent_id).
| Parameter | Type | Description |
|---|---|---|
content * | string | What needs to be done |
blocked_on | string | Who/what you're waiting on (sets status to blocked) |
contexts | array | Contexts like @computer, @phone, @errands |
due_date | string | Due date - ISO format or 'today', 'tomorrow', 'monday', etc. |
notes | string | Additional notes |
priority | string | Priority level (default: medium) |
project | string | Project name (created if doesn't exist) |
recurrence | string | Recurrence pattern for repeating tasks |
status | string | Initial status (default: todo) |
tags | array | Optional tags for categorization |
list_todos
List or search todos. Supports semantic search via query parameter, or GTD-style filtering. Returns Linear-style formatted output grouped by status.
| Parameter | Type | Description |
|---|---|---|
context | string | Filter by context (e.g., @computer) |
due | string | Filter by due date |
limit | number | Maximum results (default: 50) |
offset | number | Skip first N items for pagination (default: 0) |
priority | string | Filter by priority |
project | string | Filter by project name |
query | string | Semantic search query - when provided, uses vector similarity to find matching todos instead of listing all |
status | array | Filter by status(es) |
update_todo
Update a todo's properties. Use short ID prefix (e.g., SHO-1a2b) or full ID.
| Parameter | Type | Description |
|---|---|---|
todo_id * | string | Todo ID or short prefix |
blocked_on | string | Who/what you're waiting on |
content | string | New content |
contexts | array | New contexts |
due_date | string | New due date |
notes | string | Additional notes |
parent_id | string | Parent todo ID or short prefix to make this a subtask. Pass empty string to remove parent. |
priority | string | New priority |
project | string | New project name |
status | string | New status |
tags | array | New tags |
complete_todo
Mark a todo as complete. For recurring tasks, automatically creates the next occurrence.
| Parameter | Type | Description |
|---|---|---|
todo_id * | string | Todo ID or short prefix |
delete_todo
Delete a todo permanently.
| Parameter | Type | Description |
|---|---|---|
todo_id * | string | Todo ID or short prefix |
reorder_todo
Move a todo up or down within its status group. Use to prioritize tasks manually.
| Parameter | Type | Description |
|---|---|---|
direction * | string | Direction to move the todo |
todo_id * | string | Todo ID or short prefix |
add_project
Create a new project to group todos. Use parent to create a sub-project under another project.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
description | string | Project description |
parent | string | Parent project name or ID to create a sub-project |
prefix | string | Custom prefix for todo IDs (e.g., 'BOLT', 'MEM'). Auto-derived from name if not provided. |
list_projects
List all projects with todo counts and status breakdown.
archive_project
Archive a project. Archived projects are hidden by default but can be restored.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or ID to archive |
delete_project
Permanently delete a project. Use delete_todos=true to also delete all todos in the project.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or ID to delete |
delete_todos | boolean | Also delete all todos in this project (default: false) |
todo_stats
Get statistics about your todos - counts by status, overdue items, etc.
list_subtasks
List subtasks of a parent todo. Use add_todo with parent_id to create subtasks.
| Parameter | Type | Description |
|---|---|---|
parent_id * | string | Parent todo ID or short prefix |
add_todo_comment
Add a comment to a todo. Use to track progress, notes, or resolution details.
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment content (supports markdown) |
todo_id * | string | Todo ID or short prefix (e.g., 'BOLT-1', 'MEM-2') |
comment_type | string | Type of comment: comment (default), progress (updates), resolution (fix details), activity (system) |
list_todo_comments
List all comments and activity history for a specific todo.
| Parameter | Type | Description |
|---|---|---|
todo_id * | string | Todo ID or short prefix (e.g., 'BOLT-1', 'MEM-2') |
update_todo_comment
Update an existing comment on a todo.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | Comment ID (UUID) |
content * | string | New comment content |
todo_id * | string | Todo ID or short prefix |
delete_todo_comment
Delete a comment from a todo.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | Comment ID (UUID) |
todo_id * | string | Todo ID or short prefix |
read_memory
Read the FULL content of a specific memory by ID. Use this when you need to see the complete text of a memory that was truncated in search results.
| Parameter | Type | Description |
|---|---|---|
memory_id * | string | The memory ID (full UUID or short prefix like '5581cd02') |