ruflo

🧠 AgentDB v3 Controllers

/docs/what-is-it-exactly-agents-that-learn-build-and-work-perpetually/agentdb-v3-controllers

Ruflo V3 integrates AgentDB v3 (3.0.0-alpha.13) providing 20+ memory controllers accessible via MCP tools and the CLI. As of @claude-flow/cli@3.7.0-alpha.8, the integration includes the new Cypher-routed delete API (deleteNode, deleteEdge, deleteEdgesByEndpoints, deleteHyperedge, plus ReflexionMemory.deleteEpisode) for full re-index support.

Core Memory:

ControllerMCP ToolDescription
HierarchicalMemoryagentdb_hierarchical-store/recallWorking → episodic → semantic memory tiers with Ebbinghaus forgetting curves and spaced repetition
MemoryConsolidationagentdb_consolidateAutomatic clustering and merging of related memories into semantic summaries
BatchOperationsagentdb_batchBulk insert/update/delete operations for high-throughput memory management
ReasoningBankagentdb_pattern-store/searchPattern storage with BM25+semantic hybrid search

Intelligence:

ControllerMCP ToolDescription
SemanticRouteragentdb_semantic-routeRoute tasks to agents using vector similarity instead of manual rules
ContextSynthesizeragentdb_context-synthesizeAuto-generate context summaries from memory entries
GNNService—Graph neural network for intent classification and skill recommendation
SonaTrajectoryService—Record and predict learning trajectories for agents
GraphTransformerService—Sublinear attention, causal attention, Granger causality extraction

Causal & Explainable:

ControllerMCP ToolDescription
CausalRecallagentdb_causal-edgeRecall with causal re-ranking and utility scoring
ExplainableRecall—Certificates proving why a memory was recalled
CausalMemoryGraph—Directed causal relationships between memory entries
MMRDiversityRanker—Maximal Marginal Relevance for diverse search results

Security & Integrity:

ControllerMCP ToolDescription
GuardedVectorBackend—Cryptographic proof-of-work before vector insert/search
MutationGuard—Token-validated mutations with cryptographic proofs
AttestationLog—Immutable audit trail of all memory operations

Optimization:

ControllerMCP ToolDescription
RVFOptimizer—4-bit adaptive quantization and progressive compression

MCP Tool Examples:

bash
# Store to hierarchical memory
agentdb_hierarchical-store --key "auth-pattern" --value "JWT refresh" --tier "semantic"

# Recall from memory tiers
agentdb_hierarchical-recall --query "authentication" --topK 5

# Run memory consolidation
agentdb_consolidate

# Batch insert
agentdb_batch --operation insert --entries '[{"key":"k1","value":"v1"}]'

# Synthesize context
agentdb_context-synthesize --query "error handling patterns"

# Semantic routing
agentdb_semantic-route --input "fix auth bug in login"

Hierarchical Memory Tiers:

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Working Memory                             │  ← Active context, fast access
│  Size-based eviction (1MB limit)            │
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│  Episodic Memory                            │  ← Recent patterns, moderate retention
│  Importance Ɨ retention score ranking       │
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│  Semantic Memory                            │  ← Consolidated knowledge, persistent
│  Promoted from episodic via consolidation   │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜