32 AI Memory Tools
Comprehensive vector memory system with persistent storage, semantic search, knowledge graphs, and multi-agent coordination.
1. Core Memory Operations
Essential memory storage, retrieval, and management operations forming the foundation of the Memory Spine system.
Core Memory Example
// Store a new memory
await fetch('/ingest', {
method: 'POST',
body: JSON.stringify({
content: "User prefers dark mode UI",
tags: ["preferences", "ui"],
metadata: { priority: "high" }
})
});
// Search memories
const results = await fetch('/search?q=dark mode&limit=5')
.then(r => r.json());
// Pin critical config
await fetch('/pin/user-preferences', {
method: 'POST',
body: JSON.stringify({
content: "System configuration for user preferences",
key: "user-preferences"
})
});
2. Advanced Analysis
Sophisticated memory analysis tools for patterns, clustering, summarization, and intelligent consolidation.
Advanced Analysis Example
// Get analytics dashboard
const analytics = await fetch('/analytics').then(r => r.json());
console.log(`Total memories: ${analytics.total_count}`);
console.log(`Top tags: ${analytics.tag_distribution.slice(0, 5)}`);
// Find similar memories
const similar = await fetch('/similar/uuid-123?limit=3')
.then(r => r.json());
// Consolidate old memories (70% similarity threshold)
const consolidation = await fetch('/consolidate?threshold=0.7', {
method: 'POST'
}).then(r => r.json());
console.log(`Merged ${consolidation.merged_count} redundant memories`);
3. Knowledge Graph
Automatically generate and query knowledge graphs from your memory collections for relationship discovery.
Knowledge Graph Example
// Build knowledge graph from recent memories
const graph = await fetch('/graph/build?limit=100', {
method: 'POST'
}).then(r => r.json());
console.log(`Generated graph with ${graph.nodes} nodes, ${graph.edges} edges`);
// Query relationships
const relationships = await fetch('/graph/query/uuid-123')
.then(r => r.json());
relationships.connections.forEach(conn => {
console.log(`${conn.source} → ${conn.relation} → ${conn.target}`);
});
4. Conversation Intelligence
Track, analyze, and persist multi-turn conversations with context management and long-term memory integration.
Conversation Intelligence Example
// Start a tracked conversation
const session = await fetch('/conversation/start', {
method: 'POST',
body: JSON.stringify({
system_prompt: "You are a helpful AI assistant focused on code review."
})
}).then(r => r.json());
// Add conversation turns
await fetch('/conversation/turn', {
method: 'POST',
body: JSON.stringify({
role: "user",
content: "Please review this JavaScript function for security issues."
})
});
// Get context for LLM
const context = await fetch('/conversation/context?tokens=4000')
.then(r => r.json());
// Save to long-term memory
await fetch('/conversation/save', {
method: 'POST',
body: JSON.stringify({
tags: ["code-review", "security", "javascript"]
})
});
5. Codebase Integration
Intelligent codebase analysis and context generation for AI-assisted development workflows.
Codebase Integration Example
// Get context for editing a specific file
const context = await fetch('/codebase/context?' +
'path=/src/auth.js&task=add OAuth integration')
.then(r => r.json());
// Analyze entire repository
const analysis = await fetch('/codebase/analyze', {
method: 'POST',
body: JSON.stringify({ path: '/project/root' })
}).then(r => r.json());
console.log(`Complexity score: ${analysis.complexity}`);
console.log(`Architecture: ${analysis.architecture_patterns}`);
// Get improvement suggestions
const suggestions = await fetch('/codebase/suggest?focus=security')
.then(r => r.json());
6. Multi-Agent Coordination
Seamless context handoff and batch operations for multi-agent AI systems and workflow automation.
Multi-Agent Example
// Hand off context to specialized agent
const handoff = await fetch('/agent/handoff', {
method: 'POST',
body: JSON.stringify({
target_agent: "code-reviewer",
include_recent: 10
})
}).then(r => r.json());
// Batch store memories from multiple sources
const batch_memories = [
{ content: "Code review findings", tags: ["review", "security"] },
{ content: "Performance optimizations", tags: ["perf", "optimization"] },
{ content: "Bug fixes applied", tags: ["bugs", "fixes"] }
];
await fetch('/batch/store', {
method: 'POST',
body: JSON.stringify({ memories: batch_memories })
});
// Batch tag related memories
await fetch('/batch/tag', {
method: 'PUT',
body: JSON.stringify({
memory_ids: ["uuid-1", "uuid-2", "uuid-3"],
add_tags: ["sprint-2", "release-candidate"]
})
});
7. Query Power Tools
Advanced query capabilities with custom DSL syntax and optimized LLM context window generation.
Query Power Example
// Advanced DSL query
const dsl_results = await fetch('/query/dsl', {
method: 'POST',
body: JSON.stringify({
dsl_query: "tags:security AND NOT tags:resolved AND created:last-week"
})
}).then(r => r.json());
// Optimized LLM context generation
const llm_context = await fetch('/llm/context?' +
'q=authentication bugs&tokens=8000')
.then(r => r.json());
console.log(`Context: ${llm_context.content}`);
console.log(`Token count: ${llm_context.token_count}`);
console.log(`Relevance score: ${llm_context.relevance}`);
8. System Operations
System monitoring, health diagnostics, and administrative tools for Memory Spine management.
System Operations Example
// Check system statistics
const stats = await fetch('/stats').then(r => r.json());
console.log(`Total memories: ${stats.total_memories}`);
console.log(`Storage used: ${stats.storage_mb}MB`);
console.log(`Avg search time: ${stats.avg_search_ms}ms`);
// Health check
const health = await fetch('/health').then(r => r.json());
if (health.status === 'healthy') {
console.log('All systems operational');
} else {
console.warn('Issues detected:', health.issues);
}
// General context generation
const context = await fetch('/context?q=recent bug reports&tokens=2000')
.then(r => r.json());
Technical Specifications
Ready to Transform Your AI Memory?
Join thousands of developers using Memory Spine for persistent AI memory and intelligent context management.
Start Building with ChaozCode Explore Full Platform See Pricing