Documentation Index
Fetch the complete documentation index at: https://docs.loom.teamecho.ai/llms.txt
Use this file to discover all available pages before exploring further.
What is Loom?
Loom is the missing “last mile” of agentic memory. Rather than just another storage or retrieval layer, Loom is a decoupled framework that compiles candidate memories into the Minimum Sufficient Context for LLM agents. While naive retrieval approaches treat memory as a search problem, Loom treats it as an associative recommendation problem. Driven by real-world product abstractions from building life-long AI companions, Loom ensures agents truly remember, evolve, and reason without flooding the context window.Quick Start
Get Loom up and running in minutes.
Architecture
Understand how the system works end-to-end.
Python API
Use Loom in your Python applications.
REST API
Integrate via the built-in HTTP server.
The Cognitive Pipeline
Through its cognitive architecture, Loom achieves this via a robust pipeline:- Goal-Aware Context — Builds the exact context needed based on the agent’s current task and token budget — no more, no less.
- Associative Recall — Links related memories naturally, but applies strict depth limits to prevent context bloat.
- Read & Write Loop — Pulls information from multiple sources and actively saves high-value insights back to memory.
- Flexible Schemas — Support for custom schemas, AI-generated schemas, and production-tested templates out-of-the-box.
- Decoupled & Inspectable — Plugs into any existing storage (Vector DBs, RAG) while keeping the memory process human-readable and debuggable.
Schema: A Cognitive Ontology
Unlike standard RAG systems that retrieve noisy, unstructured dialogue chunks, or static markdown file systems that lack active reasoning semantics, a Loom Schema is a dynamic, self-describing cognitive ontology. It acts as an executable “file system for cognition” — structuring memory into an inspectable, actively updatable tree.Multi-Resolution Intelligence
Loom’s Schema is Hierarchical & Collapsible, creating a “Variable Focal Length” for the agent’s memory:- High-Level Abstraction (Low Resolution) — The agent perceives the Core Essence: not “Alice likes hiking on Sundays” but
Identity -> High-Energy Adventurer. Lightning-fast, high-dimensional reasoning. - Granular Specificity (High Resolution) — When precision is needed, the schema unfolds recursively from a general persona down to microscopic nuances of a specific habit.
Hybrid Schema Strategy
Loom provides three strategies that balance human control with machine intuition:- Pre-designed Schemas — Define the “Skeleton of Truth” manually for absolute precision.
- AI-Generated Schemas — Auto-generate schemas on the fly as new patterns emerge.
- NS-Inspired Reference Schemas — Battle-tested templates from AI Companionship and Social AI (NatureSelect.ai).
Learn more about Schema Call Protocol
Dive into the Schema Call Protocol architecture.
Benchmark & Results