@elad12390/agent-memory
3.0.0ToolInstructionBundle
Description
Fractal memory service for AI agents — human-like memory that scales infinitely via fractal compression. Stores memories in a hierarchical graph with vector similarity search. Auto-consolidates into summaries as context grows. REST API: remember, recall, navigate, admin.
Triggered by
agent memorypersistent memoryremember contextrecall memoriesfractal memorylong-term memory
Download
Review Recommended
tank install @elad12390/agent-memoryAgent Memory (Fractal)
Core Philosophy
- Fractal compression — Memories auto-consolidate into parent summaries as the graph grows; infinite scale without infinite storage.
- Semantic recall — Vector similarity search returns the most relevant memories for a query, not just keyword matches.
- Human-like hierarchy — Memories form a tree: leaf nodes (raw events) → parent nodes (summaries) → root (compressed context).
- Auto-consolidation — After N orphan inserts, background consolidation fires automatically.
- REST-first — FastAPI server; no MCP SDK dependency — call via HTTP from any agent.
Quick-Start: Common Problems
"Remember this context"
POST /remember
{ "text": "User prefers TypeScript over JavaScript", "metadata": { "source": "conversation", "importance": 0.8 } }
Returns: node_id, level, parent_id
"What do I know about X?"
GET /recall?q=TypeScript preferences&top_k=5
Returns ranked memories with similarity scores and graph paths.
"Browse the memory graph"
GET /navigate?node_id=<id> # or GET /navigate for root
Returns node content + children for visual/programmatic traversal.
"Trigger consolidation manually"
POST /admin/consolidate
Merges orphan leaf nodes into summaries using the configured LLM.
Decision Trees
| Task | Endpoint | Method |
|---|---|---|
| Store a memory | /remember | POST |
| Semantic search | /recall?q=...&top_k=N | GET |
| Browse graph | /navigate | GET |
| Get node by ID | /navigate?node_id=... | GET |
| Get all nodes | /nodes | GET |
| Manual consolidation | /admin/consolidate | POST |
| Server health | /health | GET |
Reference Index
| File | Contents |
|---|---|
| (no references) | All documentation is self-contained |