Store a new memory with automatic categorization and tagging.
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | Yes | The memory content (max 100k chars) |
project_name | string | Yes | Project identifier (lowercase kebab-case) |
memory_type | string | No | Auto-detected if omitted. Options: feature, code-snippet, debug, design, decision, rule, learning, research, discussion, progress, task, working-notes |
related_files | string[] | No | File paths related to this memory |
tags | string[] | No | Custom tags (auto-generated if omitted) |
importance_score | number | No | 0.0-1.0 scale (0.9=critical, 0.5=normal) |
store_memory({
content: `# JWT Refresh Token Implementation
## Architecture
- Access tokens: 15min expiry
- Refresh tokens: 7 days, HTTP-only cookies
- Storage: Redis for refresh token registry
## Files Modified
- src/auth/jwt.ts
- src/middleware/authMiddleware.ts`,
project_name: "payment-service",
memory_type: "code-snippet",
related_files: [
"src/auth/jwt.ts",
"src/middleware/authMiddleware.ts"
],
tags: ["authentication", "jwt", "security"],
importance_score: 0.9
})
// Returns: { memory_id: 1234 }Search stored memories using semantic or keyword search.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query (keywords, phrases, or concepts) |
project_name | string | No | Filter by project |
search_mode | string | No | "semantic" (default) or "keyword" |
search_target | string | No | "memories" (default), "documents", or "all" |
memory_type | string | No | Filter by type (decision, code-snippet, etc.) |
file_path | string | No | Filter by file path pattern (supports % wildcards) |
recent_only | boolean | No | Only last 30 days (default: false) |
Semantic (default): Hybrid search combining vector embeddings (60%), keywords (25%), and tags (15%). Best for conceptual queries.
Keyword: Pure PostgreSQL full-text search. Best for exact terms like function names or error codes.
search_memories({
query: "authentication implementation decisions",
project_name: "payment-service",
search_mode: "semantic",
memory_type: "decision"
})
// Returns summaries - use expand_memories for full content// Exact file file_path: "src/auth/jwt.ts" // All files in directory file_path: "src/auth/%" // Any file containing 'jwt' file_path: "%jwt%" // All TypeScript files in src file_path: "src/%.ts"
Get full content of memories after search returns summaries.
| Parameter | Type | Required | Description |
|---|---|---|---|
memory_ids | number[] | No* | Memory IDs to expand (max 10 per call) |
chunk_ids | number[] | No* | Document chunk IDs to expand (max 10) |
context_window | number | No | Surrounding chunks for documents (0-2) |
*At least one of memory_ids or chunk_ids required
expand_memories({
memory_ids: [1234, 1245, 1289]
})
// Returns full content for each memoryAnalyze patterns, trends, and learnings across your work.
| Parameter | Type | Required | Description |
|---|---|---|---|
analysis_type | string | No | comprehensive, patterns, learning, progress, quality, productivity, technical_debt |
topic | string | No | Semantic filter by subject area |
project_name | string | No | Filter to specific project (omit for cross-project) |
get_insights({
analysis_type: "quality",
topic: "authentication bugs",
project_name: "payment-service"
})
// Returns root cause analysis, fix approaches,
// recurrence patterns, recommendationsStructured thinking sequences for complex decisions.
| Parameter | Type | Required | Description |
|---|---|---|---|
goal | string | Yes | Problem or goal to think through |
project_name | string | Yes | Project identifier |
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_id | string | Yes | ID from start_thinking |
thought | string | Yes | The thought content |
thought_type | string | No | observation, hypothesis, reasoning, analysis, branch, conclusion |
// Start sequence
start_thinking({
goal: "Evaluate GraphQL migration strategy",
project_name: "payment-service"
})
// Returns: { sequence_id: "seq_abc123" }
// Add observations
add_thought({
sequence_id: "seq_abc123",
thought_type: "observation",
thought: "50+ REST endpoints, significant migration effort"
})
// Create branches for alternatives
add_thought({
sequence_id: "seq_abc123",
thought_type: "branch",
branch_name: "Big Bang Migration",
thought: "Replace all REST at once..."
})
// Conclude (saves as decision memory)
add_thought({
sequence_id: "seq_abc123",
thought_type: "conclusion",
thought: "Recommend gradual migration because..."
})Create, complete, and manage tasks with memory linking.
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | Yes | create, complete, get, link_memories |
project_name | string | Yes | Project identifier |
task_description | string | For create | What needs to be done |
task_ids | string[] | For complete/link | Task ID(s) to operate on |
memory_ids | number[] | For link_memories | Memory IDs to link |
// Create task
tasks({
action: "create",
task_description: "Add rate limiting to login endpoint",
project_name: "payment-service"
})
// Returns: { task_id: "task_xyz789" }
// Link related memories
tasks({
action: "link_memories",
task_ids: ["task_xyz789"],
memory_ids: [1234, 1245],
project_name: "payment-service"
})
// View pending tasks
tasks({
action: "get",
project_name: "payment-service",
include_completed: false
})
// Complete task
tasks({
action: "complete",
task_ids: ["task_xyz789"],
project_name: "payment-service"
})Additional tools available in Recallium:
For complete documentation, see the GitHub repository.