Engram-Locus
Drop-in persistent memory for any AI agent. Hierarchical, temporal, and surprise-gated—so agents remember what matters without unbounded growth.
Hierarchical memory structure
Locus implements a three-tier memory hierarchy: Episodes capture concrete interactions, Abstractions summarize patterns, and Anchors persist high-salience state across agent lifecycles.
Episodes
1,247 entriesConcrete interactions, decisions, and outcomes. Timestamped and immutable.
Abstractions
89 entriesCompressed summaries of episode patterns. Updated through consolidation.
Anchors
12 entriesHigh-salience state that persists across agent lifecycles. Core identity.
Intelligent memory growth
Not every event deserves persistence. Locus uses surprise-gated writing: new memories are created only when incoming experience deviates meaningfully from expectation.
Simple API, powerful memory
Add persistent memory to your agent in minutes. Write episodes, query the graph, and let Locus handle consolidation and pruning automatically.
import { Leap } from '@engram/leap'
const leap = new Leap({
apiKey: process.env.LOCUS_API_KEY
})
// Write a new episode with surprise gating
await leap.write({
type: 'episode',
content: {
action: 'user_preference_update',
context: { theme: 'dark', lang: 'en' }
},
// Only persists if novelty exceeds threshold
surpriseThreshold: 0.3
})TypeScript & Python SDKs
First-class support for both languages with full type safety and autocomplete.
GraphQL & REST APIs
Choose the query interface that fits your stack. Both support streaming.
Self-hosted or Cloud
Run Locus in your infrastructure or use our managed cloud offering.
Built for production agents
Locus powers memory for agents across industries—from customer support to autonomous research.
Customer Support
Remember customer preferences, past issues, and conversation context across sessions.
Coding Assistants
Maintain project context, coding style preferences, and learned patterns.
Research Agents
Build knowledge graphs from literature, track hypothesis evolution, store findings.
Personal Assistants
Learn user preferences, schedules, and relationships over time.
Give your agents memory
Locus is available via API with usage-based pricing. Start with our free tier and scale as your agents grow.
