How DawnLoop works: an agent memory architecture
Five agents, one memory graph, and a nightly pass. What's designed, what's prototyped, and what's still a research bet.
DawnLoop’s agent memory architecture rests on one idea: an assistant should get more useful the longer you work with it. That needs three things working together: a memory that keeps everything in a structured form, a working context that stays small, and an offline pass that turns raw experience into durable, correct beliefs.
DawnLoop is in development. Every component below carries its status: planned (designed and buildable, not yet a product) or research bet (may not work, and gated behind an evaluation). We have an experimental prototype of the memory loop, and some outputs from it appear on this page.
The architecture at a glance
request
│
▼
Reactor ──── familiar ────▶ Executor ──▶ outcome
│ ▲ │ (tests, merges,
novel or hard │ │ reverts)
▼ │ ▼
Planner ───── plan ───────────┘ episode + outcome
│
Reviewer scores the Executor's output │
▼
┌─────────────┐
every agent reads ──────────▶│ memory graph│
└─────────────┘
▲
nightly: Dreamer replays, consolidates,
prunes, strengthens
The five agents
No single model should do everything, so the work is split across five specialists. Status: planned.
| Agent | Designed role | Model tier |
|---|---|---|
| Reactor | Answer the familiar fast (sub-second) and route everything else | Small, cheap |
| Planner | Deliberate, multi-step reasoning, only when the Reactor escalates | Frontier |
| Executor | Do the work (code, messages, actions) and record each action as an episode | Either |
| Reviewer | Score outputs before they ship and feed the signal back | Either |
| Dreamer | Run the nightly pass that turns episodes into beliefs | Offline |
The Reactor/Planner split is model routing, a well-understood technique and not our invention. The part we care about is that the router is designed to see the memory graph: it can know this is the fortieth time you’ve asked, not just that the request looks simple. Model routing: small vs frontier models goes deeper.
How do the agents share memory?
In the design, all five agents work against one memory graph, each through its own access path:
- The Reactor reads it to decide whether a request is familiar.
- The Planner reads the relevant subgraph before reasoning.
- The Executor writes an episode for each action and attaches the outcome once it’s known.
- The Reviewer writes its scores alongside those episodes.
- The Dreamer is the only agent that rewrites beliefs, and it does so offline.
Keeping belief changes in one offline pass means they can be evaluated, logged and rolled back as a unit, instead of every agent editing shared memory mid-conversation.
The memory graph
Status: planned (prototyped). Memory is a typed graph with two layers:
- Episodic: raw events, recording who did what, when, where, and how it turned out. These are linked to the files they touched and the decisions they implemented.
- Semantic: distilled beliefs about how your team works, built from episodes during the nightly pass. Each belief carries its provenance (the episodes behind it), a confidence score, and when it was last confirmed.
Episodic vs semantic memory for AI agents explains the split.
Retrieval is designed to start from a cue and walk the graph, ranked by salience weighting, a scoring function over four signals: outcome magnitude, access frequency, recency of confirmation, and contradiction pressure. This is retrieval, and we say so. The bet is that retrieval over a consolidated graph with provenance beats retrieval over a pile of embedded text chunks, and that’s a claim we intend to prove with numbers.
A small working context
The graph is the warehouse and the context window is the workbench. Only the relevant corner of memory is designed to be serialized into the prompt for each request. In the prototype’s scripted demo, one cue pulls 12 of the graph’s 16 nodes. That’s a toy graph, but the shape is the point:
episode[13] Deploy the auth changes straight to production | outcome: fail
episode[1] Split auth middleware out of the router | outcome: ok
…
belief[6] Team uses service objects, not fat models | conf: 0.69 | salience: 0.368
(12 nodes pulled from 16 in the graph)
The night cycle, in two separate tracks
Consolidation is expensive, and nobody has to be waiting for it, so it’s designed to run overnight.
Track A: graph consolidation. Status: planned, and it’s the product. No model weights are touched.
- Replay: re-walk the day’s episodes, joined to how they actually turned out.
- Consolidate: extract beliefs that generalize, with their evidence attached.
- Prune: decay what’s gone stale, and retire what the day’s outcomes contradicted.
- Strengthen: reinforce what mattered and what’s used often.
Track B: per-team weight distillation. Status: research bet. Distilling consolidated knowledge into a model’s weights might be possible. It ships only if it beats the memory-only version on a real evaluation, and it may never ship. Track A doesn’t depend on it.
Memory consolidation for AI agents walks through a real prototype run.
What makes it learn: outcome labels
The signal that drives consolidation is outcomes: tests that pass or fail, pull requests that merge or get reverted, builds that break. They’re facts from the world, not a model’s opinion of its own work. That’s what separates consolidation from an AI grading its own homework.
It’s also designed to cover a known weakness. The Reviewer is likely to share a model class with the Executor, so their errors can correlate. External outcomes are the check that doesn’t share those blind spots.
Safety rails
Nothing that changes how DawnLoop behaves is designed to ship without three things:
- An eval gate: the change has to beat the current version on an evaluation.
- A shadow period: it runs alongside the current version before it’s switched on.
- One-operation rollback: any night’s changes can be undone in one step. The prototype already does this for its nightly pass:
Rollback — the nightly pass is fully reversible (one operation)
revert -> exact restore (2 beliefs, was 2)
re-apply -> 9 operations, graph back to 3 beliefs
Learning is designed to live in the graph by default, not in weights, because graph learning is testable, inspectable and deletable. You’ll be able to see, fix and pin what DawnLoop believes.
Where it’s going first
DawnLoop Code, an AI pair programmer, is the first product, because code gives concrete memory and free, unambiguous outcome labels. Other surfaces come later, once Code has earned them.