When a product team (the product owners, designers and engineers who decide what gets built) works with AI agents, the code gets written quickly. What tends to get lost are the decisions behind it: why something was left out, which trade-off the team prefers, where they always draw the line. Doen is an experiment in keeping those decisions and handing them to the next agent, so the team doesn’t have to explain itself twice. Here is what we tried, what worked, and what didn’t.
What could the next piece of work learn from every ticket a team has already finished?
Every finished ticket carries more than code. Along the way the team decided what mattered, what could wait and what they would never accept. Agents ask the team about some of these things while they work, and Doen writes the answers down.
The aim is easy to say and hard to do: the next agent should already know how this team thinks, so it asks fewer questions and gets more right the first time. We don’t mean facts about the code, which the code already holds, but the team’s habits of mind. We call those heuristics.
We borrowed the building blocks from Anthropic’s “The components of agent memory”: searching old conversations, writing notes, and dreaming, a quiet pass that tidies the notes up between sessions. We also borrowed its central idea: a memory is a bet on what will matter later.
Looking up old decisions beats summarising them
Our first test was a replay. We took the team’s past decisions, in the order they were made, and asked an agent to guess each one before showing it the real answer. In between, it could keep notes, in a few different ways.
Only looking things up clearly helped, and the Anthropic article saw the same. When the agent wrote its own notes, it mostly recorded what had been decided rather than why, and a list of old answers doesn’t help much with a new question.
Ask for rules, and you get rules
So we asked the agent to write its notes differently: a rule, the reason it believes the rule, and the trap to watch out for. That is the shape the article found in its best model, and the notes changed straight away.
Memory helped guess what gets built, but common sense did better
A few dozen decisions is not much to learn from, so we asked a question with more history behind it: will this ticket be built, or dropped?
Memory that was tidied up between sessions, combined with looking things up, guessed about 20 points better than no memory, and did so twice. But simply answering “built” every time did better still, because four out of five tickets do get built. The notes remembered the dramatic reasons a few tickets were dropped, and forgot how rare that is.
More to read made it worse
Teams don’t make that many decisions, so we tried giving the dream more to work with: what the team removed from plans, how they described the work, and which of the agent’s own choices they let stand.
A confident memory can talk the agent out of the right answer
Once memory was running for real, it guessed the team’s decisions less well than no memory at all. When we looked closer, one confident rule explained most of it.
We were measuring the wrong thing
Guessing a single decision is a shaky test. Decisions are noisy, and an agent that reads the question carefully already gets most of them right. What a team really wants from memory is less back-and-forth: a plan that already covers what they care about.
Memory doesn’t yet help the agent see decisions coming
We rebuilt the memory as it would have been at the start of each past ticket, and let the agent plan every ticket twice.
| Judge | Difference | 95% range | Tickets | Verdict |
|---|---|---|---|---|
| Judge A | +3.5 points | −7.5 to +14.1 | 5 better, 1 worse | not distinguishable |
| Judge B | −0.5 points | −12.0 to +9.7 | 6 better, 4 worse | not distinguishable |
Overall, there is no difference. Most tickets involved a single decision, which a plan either raises or doesn’t. On the few tickets where the team had to make many decisions, memory did help. That is exactly where we would expect it to matter, and exactly where we have the least data.
A blind judge sees no difference, and mostly picks the longer draft
We then asked a judge directly. For every finished ticket with a description, the first draft was written twice, with and without the memory it would have had, and two judges compared the pair without knowing which was which.
Neither judge could tell the two apart. When a judge did choose, it nearly always chose the longer draft, and every verdict that changed with the order kept the same position. A judge asked “which is better” turns out to measure length and position more than memory.
With an owner whose preferences we know, memory didn’t measurably reduce rework
Real history has no answer key: we never know what the team would have decided otherwise. So we wrote one. A simulated owner decides by ten written preferences that no agent sees, such as “no settings, pick a default” and “no new outside services”. It answered the agents’ questions and reviewed their plans for 26 tickets on a small app for splitting shared costs, once with memory and once without, and the whole run was done twice.
Memory didn’t reduce rework. Tickets with memory had 0.36 items more on average, with a 95% range from 1.2 more to 0.5 fewer. The test would have caught a saving of one item per ticket, about a quarter of the rework, two times in three, so a modest saving can’t be ruled out.
One problem was a bug. Rebuilding the memory dropped every rule whose evidence cited several decisions in one line, and about one memory in six came out empty. Since the fix none has. The changes after that left memory where it was.
What we take from this
Looking up past decisions helps. The memory we build on top of them hasn’t shown that it does, on real history or with a simulated owner: it holds about half of what a person cares about, and it holds it one feature at a time. Teams make relatively few decisions, so every result needs a second run before we believe it. Two of ours didn’t survive it.
No agent can know what a team will decide next. What it can do is remember well enough that the team has a little less to explain each time. That is what we keep checking.
How it is measured
Every replay uses the same past decisions in the same order, with the answer options shuffled and the agent’s own suggestion hidden. We compare each kind of memory with no memory, decision by decision, and only call something an improvement when its whole uncertainty range stays above zero. The replays use the decisions of the team building Doen itself, so read their numbers as a first look.
- statelessbaseline
A fresh session per question, no memory. The article's stateless baseline (CL-Bench 1.0).
- searchstep 1
The five most similar earlier decisions, by embedding. Transcript search; the article's search arm (Fig. 10).
- memorybaseline
One capped file, rewritten freely after each answer. Say what memory is for, not how (Fig. 5).
- structuredstep 2
Notes as rules, each with how it is known and its traps. Opus 5 closing the loop on CL-Bench (Fig. 3).
- dreamstep 3
The flat file, checked against the full decision record every five decisions. Dreaming corrects memory against the transcript (Fig. 6).
- promotedstep 4
A 100-word index loaded every session, notes opened on demand, plus search; dreaming maintains both. Promoting notes up the memory hierarchy (Fig. 13).
- wikistep 5
Linked pages built by dreaming, opened by title with one hop of links, plus search. Wikis as memory representations (Figs. 9-10).
- transferstep 1
The other project's memory, frozen. Facts cannot carry over, so any gain is abstract. Separating remembered facts from heuristics.
These are the full instructions each step received. They tell the agent what memory is for, never how to use it.
You label a benchmark. Below is a product decision and every earlier decision in the same project. Answer whether the person's choice follows from an earlier decision: an earlier choice settles it, directly or by plain implication, so someone who only remembered the earlier answers would get it right without any judgment about how the person decides. Answer false when the earlier decisions are merely on a related topic, or when the choice reflects a preference or way of reasoning rather than a fact already settled.
You are an executor agent's offline maintenance pass ("dreaming"). The agent's memory has two
tiers: a short index loaded into every future session, and notes it can open by key when needed.
Future sessions use it to predict how the person who owns this project decides product questions.
You are given the current index, the current notes, an inbox of notes written in the moment, and
the full record of every decision so far (the ground truth). Check everything against the record,
correct and merge, and rebuild both tiers:
- index: at most {index_words} words. What matters most often, plus a line per note saying when to
open it.
- notes: at most {max_notes} notes, {note_words} words in total. Short keys.
Keep the index small: move detail down into notes and leave a pointer behind.You are an executor agent's offline maintenance pass ("dreaming"). The agent's memory is a wiki: a
set of linked pages, each about one subject. Future sessions see only the page titles and links,
open the pages they think are relevant, and use them to predict how the person who owns this
project decides product questions.
You are given the current pages, an inbox of notes written in the moment, and the full record of
every decision so far (the ground truth). Check pages against the record, correct, merge
duplicates, split pages that cover two subjects, and link related pages. Return the whole wiki: at
most {max_pages} pages, {max_words} words in total. A wiki that only restates the decisions
abstracts nothing; capture what generalises.You are an executor agent's offline maintenance pass ("dreaming"). The agent keeps a memory file
that future sessions use to predict how the person who owns this project decides product
questions. The file was written in the moment and may be wrong, stale, duplicated or too narrow.
You are given the file and the full record of every decision so far: the question, the options,
what the person chose and their rationale. That record is the ground truth.
Check each note against the record. Correct what is wrong, merge duplicates, drop what nothing
supports, and add patterns that only show up across several decisions. Return the whole new file.
It must not exceed {max_words} words.You label a benchmark. A person answered a product question in their own words instead of picking an option verbatim. Say which option their answer amounts to. Answer 0 when it matches none of them, or combines several so that no single option is what they chose.
You are an executor agent working on a software project. A product question has come up that the spec does not answer, and you must predict which option the person who owns this project will choose. Pick exactly one option, copying its text verbatim. Say briefly why.
You are an executor agent about to answer a product question. Below is a list of memory entries
you can open. Choose the ones worth reading for this question, at most {max_keys}. Choose none if
none apply.You are an executor agent working on a software project. You keep a memory: a single notes file
that persists between sessions. Each new session starts fresh, with that file as the only thing it
remembers. Future sessions will use it to predict how the person who owns this project decides
product questions.
You have just predicted a decision and been shown what the person actually chose, and why.
Rewrite the memory file. Write it as rules about how this person decides, not as a record of what
was decided. Each rule states:
- the rule, general enough to apply to a question you have not seen yet;
- how you know it is true: which choices support it, and whether any contradict it;
- traps: where the rule misled you, or a tempting rule that turned out wrong.
Merge, sharpen or drop rules as the evidence changes. It must not exceed {max_words} words.You are an executor agent working on a software project. You keep a memory: a single notes file
that persists between sessions. Each new session starts fresh, with that file as the only thing it
remembers. Future sessions will use it to predict how the person who owns this project decides
product questions.
You have just predicted a decision and been shown what the person actually chose, and why.
Rewrite the memory file. What you keep, drop, merge or restructure is your judgment. Keep it short
enough to stay useful: it must not exceed {max_words} words.Runs
Log
The story behind every result, step by step. Read the full log.
Threads
The full working sessions behind this page: every prompt, answer and tool call, with credentials removed.
Data
Prediction replays: share predicted, mean over repeats. Floor is chance for escalations and always answering “built” for initiatives.
| Run | Calls | n | Floor | None | Search | Memory | Structured | Dream | Promoted | Wiki |
|---|---|---|---|---|---|---|---|---|---|---|
| Run 1 | Escalations | 54 | 34% | 62% | 69% | 62% | 64% | 62% | 67% | 65% |
| Run 2 | Escalations | 54 | 34% | 59% | — | 65% | — | — | — | — |
| Run 3 | Escalations | 23 | 37% | 58% | 59% | 62% | 64% | 59% | 61% | 58% |
| Run 3 | Built or dropped | 107 | 79% | 41% | 50% | 45% | 48% | 53% | 64% | 65% |
| Run 4 | Escalations | 23 | 37% | 54% | 68% | 62% | 61% | 62% | 57% | 60% |
| Run 4 | Built or dropped | 107 | 79% | 43% | 56% | 35% | 50% | 50% | 63% | 62% |
| Run 5 | Escalations | 53 | 35% | 59% | 68% | 63% | 65% | 62% | 65% | 65% |
| Run 6 | Escalations | 59 | 36% | 61% | — | — | — | — | 69% | — |
Draft replays: per judge, the gap in share of decisions raised (memory minus none, points per initiative) with its 95% interval, initiatives better and worse, and the gap in leaning the team’s way.
| Run | Judge | n | Coverage | Gap | 95% interval | Better / worse | Leaning gap |
|---|---|---|---|---|---|---|---|
| Run 7 | Judge A | 3 | 34% → 40% | +6.1 | 0.0 to +18.2 | 1 / 0 | −8.1 |
| Run 7 | Judge B | 3 | +2.0 | 0.0 to +6.1 | 1 / 0 | 0.0 | |
| Run 8 | Judge A | 18 | 48% → 52% | +3.5 | −7.5 to +14.1 | 5 / 1 | +1.3 |
| Run 8 | Judge B | 18 | −0.5 | −12.0 to +9.7 | 6 / 4 | −0.8 |
Judged first drafts: per judge, the tickets where memory’s first draft left less to settle, the other did, or neither (a verdict that changed with the order of the drafts counts as neither); the mean score per ticket (+1, −1 or 0) with its 95% range; and how many verdicts changed with the order.
| Run | Judge | n | Memory / other / neither | Score | 95% range | Order changed |
|---|---|---|---|---|---|---|
| Run 9 | Judge A | 28 | 9 / 6 / 13 | +0.11 | −0.18 to +0.39 | 13 |
| Run 9 | Judge B | 28 | 11 / 7 / 10 | +0.14 | −0.14 to +0.43 | 10 |