Add DakeraMemoryStore for persistent cross-session agent memory
Problem
AutoGen agents currently have no built-in mechanism for cross-session memory persistence. Each conversation starts with an empty context, which makes it impossible for agents to recall facts, user preferences, or decisions from prior sessions. Teams building long-running multi-agent workflows need a way to accumulate and retrieve knowledge across executions.
Proposed solution
Add a DakeraMemoryStore integration that gives AutoGen agents access to Dakera — a self-hosted, decay-weighted vector memory server. Dakera provides:
- Semantic search using an on-device ONNX embedding model
- Decay-weighted importance — frequently accessed memories stay relevant; stale facts fade
- Session scoping — memories can be namespaced per agent or session
- Zero external cloud dependencies — runs entirely on-premise via Docker
Usage sketch
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.teams import RoundRobinGroupChat
from autogen_ext.memory.dakera import DakeraMemoryStore
from autogen_agentchat.conditions import MaxMessageTermination
store = DakeraMemoryStore(url="http://localhost:3300", api_key="demo", agent_id="support-agent")
agent = AssistantAgent(
name="support_agent",
model_client=...,
memory=[store],
)
team = RoundRobinGroupChat([agent], termination_condition=MaxMessageTermination(5))
asyncio.run(team.run_until_done(task="What has the user complained about before?"))
Self-host Dakera:
docker run -p 3300:3300 -e DAKERA_API_KEY=demo ghcr.io/dakera-ai/dakera:latest
PR #7900 contains the implementation (in python/packages/autogen-ext/src/autogen_ext/memory/dakera/).
One thing I would keep separate in this design is storage backend vs memory authority.
A decay-weighted vector store is useful for recall, but it should not be the only lifecycle model for cross-session memory. In practice I would want a memory item to carry at least:
- source session / turn references
- user-stated vs agent-inferred origin
- scope: user, project, team, workflow
- status: candidate, accepted, superseded, revoked
- whether it is context-only or allowed to affect behavior
That prevents a retrieved similarity hit from becoming durable truth just because it was recalled often.
I have been experimenting with a small Git/markdown version of this pattern: raw notes, wiki-linked durable nodes, playbooks, and generated outputs kept separate so any model can load continuity without owning authorship: https://github.com/hegu-1/personal-memory-vault-starter
Agentic systems are turning into always-on factories: one request fans out into model calls, tool calls, policy checks, and storage.
The hard part is rarely tokens/sec — it is control-plane reliability:
- Fan-out control — hard cap on tools/steps per request before external writes
- Durable id + idempotency — one write per business object (ledger / preflight)
- Observable long jobs — progress + cooperative cancel on multi-minute runs
- Expected vs actual — durable artifact id before marking success
- Policy before action — gate that can refuse known-bad side effects
If you share one sanitized failing run (expected vs actual + tool result), I can map which pillar is broken. Architecture only.
Hi @ferhimedamine, saw the feature request for persistent cross-session memory in AutoGen. This is exactly what we've built into Ash—would love to discuss.