shodh-memory

v0.2.0
io.github.varun29ankuS/shodh-memory Checked 11 hours ago Published 7 months ago

Cognitive 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.

ParameterTypeDescription
content *stringThe content to remember (observation, decision, learning, etc.)
action_typestringAction type name (e.g., 'navigate', 'grasp', 'dock')
created_atstringOptional ISO 8601 timestamp for the memory (e.g., '2025-12-15T06:30:00Z'). If not provided, uses current time.
credibilitynumberCredibility score: 0.0 to 1.0 (1.0 = verified facts, 0.3 = inferred)
emotionstringDominant emotion label (e.g., 'joy', 'frustration', 'surprise')
emotional_arousalnumberArousal level: 0.0 (calm) to 1.0 (highly aroused). E.g., routine task: 0.2, critical issue: 0.9
emotional_valencenumberEmotional valence: -1.0 (negative) to 1.0 (positive), 0.0 = neutral. E.g., bug found: -0.3, feature shipped: 0.7
episode_idstringEpisode ID - groups memories into coherent episodes/conversations
geo_locationarrayGPS coordinates [latitude, longitude, altitude] in WGS84
headingnumberHeading in degrees (0-360)
importancenumberOptional 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_positionarrayLocal position [x, y, z] in meters (robot-local frame)
mission_idstringMission identifier for grouping experiences
outcome_typestringOutcome type: success, failure, partial, aborted, timeout
parent_idstringParent memory ID for hierarchical organization. Creates memory trees (e.g., '71-research' -> 'algebraic' -> '21×27≡-1')
preceding_memory_idstringID of the preceding memory (for temporal chains)
rewardnumberReinforcement learning reward signal (-1.0 to 1.0)
robot_idstringRobot/drone identifier for multi-robot systems
sensor_dataobjectRaw sensor readings (e.g., {battery: 72.5, temperature: 23.1})
sequence_numbernumberSequence number within episode (1, 2, 3...)
source_typestringSource type: where the information came from
tagsarrayOptional tags for categorization
terrain_typestringTerrain type: indoor, outdoor, urban, rural, water, aerial
typestringType 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).

ParameterTypeDescription
query *stringNatural language search query - searches both memories and todos
action_typestringFilter by action type (e.g., 'navigate', 'grasp', 'dock')
failures_onlybooleanIf true, only return failure/error experiences
geo_latnumberSpatial filter: center latitude (-90 to 90). Requires geo_lon and geo_radius_meters.
geo_lonnumberSpatial filter: center longitude (-180 to 180). Requires geo_lat and geo_radius_meters.
geo_radius_metersnumberSpatial filter: search radius in meters. Requires geo_lat and geo_lon.
limitnumberMaximum number of memory results (default: 5). Todos limited to 5.
mission_idstringFilter by mission identifier
modestringRetrieval 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_typestringFilter by outcome type: success, failure, partial, aborted, timeout
reward_maxnumberFilter by maximum reward value (-1.0 to 1.0)
reward_minnumberFilter by minimum reward value (-1.0 to 1.0)
robot_idstringFilter by robot/drone identifier (for multi-robot systems)
session_idstringSession ID for session-scoped retrieval. When provided, retrieves memories from that session's time window. Forces temporal mode.
tagsarrayFilter by tags (any match)
terrain_typestringFilter 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').

ParameterTypeDescription
tags *arrayTags to search for (returns memories matching ANY of these tags)
limitnumberMaximum 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.

ParameterTypeDescription
include_contextbooleanInclude project context (default: true)
include_decisionsbooleanInclude recent decisions (default: true)
include_learningsbooleanInclude recent learnings (default: true)
max_itemsnumberMaximum items per category (default: 5)

list_memories

List all stored memories

ParameterTypeDescription
limitnumberMaximum number of results

forget

Delete a specific memory by ID

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
backup_id *numberThe backup ID to verify

backup_purge

Purge old backups, keeping only the most recent N. Useful for managing disk space.

ParameterTypeDescription
keep_countnumberNumber 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.

ParameterTypeDescription
backup_id *numberThe 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.

ParameterTypeDescription
sincestringStart of report period (ISO 8601 format). Defaults to 24 hours ago.
untilstringEnd 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.

ParameterTypeDescription
context *stringThe current conversation context or topic (e.g., recent messages, current task description)
auto_ingestbooleanAutomatically store the context as a Conversation memory (default: true). Set to false to only surface memories without storing.
entity_match_weightnumberWeight for entity matching in relevance scoring (0.0-1.0, default: 0.4)
max_resultsnumberMaximum number of memories to surface (default: 5)
memory_typesarrayFilter to specific memory types (e.g., ['Decision', 'Learning', 'Context']). Empty means all types.
recency_weightnumberWeight for recency boost in relevance scoring (0.0-1.0, default: 0.2)
semantic_thresholdnumberMinimum semantic similarity (0.0-1.0) for memories to be surfaced (default: 0.65)
tool_actionsarrayTool/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.

ParameterTypeDescription
content *stringWhat to remember/remind about
trigger_type *stringWhen to trigger: 'time' (at specific ISO timestamp), 'duration' (after N seconds), 'context' (when keywords match)
after_secondsnumberSeconds from now for 'duration' trigger
keywordsarrayKeywords for 'context' trigger - reminder surfaces when any keyword appears
prioritynumberPriority 1-5 (5 = highest, default: 3)
tagsarrayOptional tags for categorization
thresholdnumberSemantic similarity threshold for 'context' trigger (0.0-1.0, default: 0.7). Lower values match more broadly, higher values require closer semantic match.
trigger_atstringISO 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.

ParameterTypeDescription
statusstringFilter by status (default: pending)

dismiss_reminder

Dismiss/acknowledge a triggered reminder. Call this after you've handled a reminder.

ParameterTypeDescription
reminder_id *stringID 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).

ParameterTypeDescription
content *stringWhat needs to be done
blocked_onstringWho/what you're waiting on (sets status to blocked)
contextsarrayContexts like @computer, @phone, @errands
due_datestringDue date - ISO format or 'today', 'tomorrow', 'monday', etc.
notesstringAdditional notes
prioritystringPriority level (default: medium)
projectstringProject name (created if doesn't exist)
recurrencestringRecurrence pattern for repeating tasks
statusstringInitial status (default: todo)
tagsarrayOptional 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.

ParameterTypeDescription
contextstringFilter by context (e.g., @computer)
duestringFilter by due date
limitnumberMaximum results (default: 50)
offsetnumberSkip first N items for pagination (default: 0)
prioritystringFilter by priority
projectstringFilter by project name
querystringSemantic search query - when provided, uses vector similarity to find matching todos instead of listing all
statusarrayFilter by status(es)

update_todo

Update a todo's properties. Use short ID prefix (e.g., SHO-1a2b) or full ID.

ParameterTypeDescription
todo_id *stringTodo ID or short prefix
blocked_onstringWho/what you're waiting on
contentstringNew content
contextsarrayNew contexts
due_datestringNew due date
notesstringAdditional notes
parent_idstringParent todo ID or short prefix to make this a subtask. Pass empty string to remove parent.
prioritystringNew priority
projectstringNew project name
statusstringNew status
tagsarrayNew tags

complete_todo

Mark a todo as complete. For recurring tasks, automatically creates the next occurrence.

ParameterTypeDescription
todo_id *stringTodo ID or short prefix

delete_todo

Delete a todo permanently.

ParameterTypeDescription
todo_id *stringTodo ID or short prefix

reorder_todo

Move a todo up or down within its status group. Use to prioritize tasks manually.

ParameterTypeDescription
direction *stringDirection to move the todo
todo_id *stringTodo ID or short prefix

add_project

Create a new project to group todos. Use parent to create a sub-project under another project.

ParameterTypeDescription
name *stringProject name
descriptionstringProject description
parentstringParent project name or ID to create a sub-project
prefixstringCustom 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.

ParameterTypeDescription
project *stringProject name or ID to archive

delete_project

Permanently delete a project. Use delete_todos=true to also delete all todos in the project.

ParameterTypeDescription
project *stringProject name or ID to delete
delete_todosbooleanAlso 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.

ParameterTypeDescription
parent_id *stringParent todo ID or short prefix

add_todo_comment

Add a comment to a todo. Use to track progress, notes, or resolution details.

ParameterTypeDescription
content *stringComment content (supports markdown)
todo_id *stringTodo ID or short prefix (e.g., 'BOLT-1', 'MEM-2')
comment_typestringType of comment: comment (default), progress (updates), resolution (fix details), activity (system)

list_todo_comments

List all comments and activity history for a specific todo.

ParameterTypeDescription
todo_id *stringTodo ID or short prefix (e.g., 'BOLT-1', 'MEM-2')

update_todo_comment

Update an existing comment on a todo.

ParameterTypeDescription
comment_id *stringComment ID (UUID)
content *stringNew comment content
todo_id *stringTodo ID or short prefix

delete_todo_comment

Delete a comment from a todo.

ParameterTypeDescription
comment_id *stringComment ID (UUID)
todo_id *stringTodo 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.

ParameterTypeDescription
memory_id *stringThe memory ID (full UUID or short prefix like '5581cd02')