Checking how many agents are working

How this works
Contatti
← Blog
A cinematic photograph of a brass robot waking at an empty desk beside a shelf of closed notebooks it has not opened, in teal and steel with a warm amber light, the AMARBARO mark and wordmark centred over it.
✎post del blog

Why AI agents forget, and what memory fixes

The short version

In our 2026-11-07 test of 1,090 matched turns, showing agents a memory line of likely files changed repeat reads by no amount we could detect (file recall 0.383 with the line against 0.393 without, p = 0.80).

What this is about

Imagine a colleague who wakes up each morning with no memory of yesterday. They are smart and fast. But every day you must explain the project again, or they will redo old work and repeat old mistakes.

That is an AI agent. This article explains why, what a written memory can fix, and where it does not help. It includes a test of ours that came out flat, because the flat results teach more than the good ones.

Why it matters

If you use an agent for more than one session, forgetting is its biggest cost. It re-reads files it already read. It tries ideas you already ruled out. It repeats a mistake you fixed last week.

Memory is the fix people reach for first. Memory works, but not as automatically as it sounds.

How it works: why agents forget

An agent has a context: the text the model can see right now. Everything in the agent's head is in that context. When a session ends, the context is gone. The next session starts with only what you hand it.

Two things make it worse. First, the context has a size limit. A long session fills it, and older parts get cut or squeezed. Second, the model has no habit of its own. It does not think "I should check my notes." You have to make that happen.

On our machine, our coding assistants start each task with empty context. They have a shell and a file system, and that is all.

What written memory fixes

Writing things down outside the model fixes the first problem. The notes live in files. They survive the end of the session. A new session can read them.

Our system, BrainNet, keeps dated notes and finds them with a search. Our rule is that before an agent says what caused a problem that might have history, it must look in the notes first. We made that rule after a real case: an agent spent hours re-deriving a graphics card fault and had a person reboot hardware. The answer, a small change to the card's voltage, was already written in three older notes. The agent read one, missed the other two and guessed before it looked.

So memory fixes two things: facts that would be lost, and wasted hours repeating old work.

What memory does not fix

Memory only helps if the agent reads it and follows it. That is a different problem, and a harder one.

We tried to help the agent with a small prediction model. It watched which files, notes and skills an agent touched, and when a new turn started, it showed a short line of the five items the agent probably needed next. We called it the memory line.

On paper it won. In offline tests, about 60 percent of the already-seen files an agent touched next were in its top five. The usual rule, recency plus frequency, got about 53 percent.

Then we ran it live. The model was fine, but the path between the model and the agent lost information. After we fixed that, we ran a proper test: the line was switched on for a random half of turns and off for the other half. The test had 1,090 matched turns, 559 with the line and 531 without.

measure line on line off
repeat reads per read 0.281 0.245
file recall 0.383 0.393

None of the differences was close to significant. Our honest reading: the agents did not follow the line. The test was also too small to see a modest drop in repeat reads, so it cannot prove there was no effect at all.

What to take from this

Three plain lessons for anyone using agents.

  1. Written memory is necessary. Without it, every session starts at zero.
  2. A hint is a wish. If memory only suggests, the agent may ignore it. A hint that wins an offline test can still change nothing in daily use.
  3. Test it in use. Measure what the agent does with and without the memory, not only how good the memory looks by itself.

The next article in this series covers the stronger option: turning a rule from a request into a check that blocks the action.

A simple memory you can start today

You do not need our system. Here is a small version.

  1. Keep one folder of notes, one note per thing you did, each with a date.
  2. At the start of a session, tell the agent in one line: "Read the notes about this topic before you start, and tell me what they say or say that none exist."
  3. At the end, ask the agent to write one short note about what it did, including what failed.

Step 2 is the important one. It is the rule, spoken out loud. It costs one sentence and removes the most expensive kind of repeat.

Glossary

  • Context: the text a model can see in one go. It is the agent's working memory and it disappears when the session ends.
  • Session: one run of an agent from start to finish.
  • Recall at five: out of the files the agent needed next, the share that were among the five shown. Higher is better.
  • A/B test: running two versions at once on random turns, to see whether one does better.
  • Significant: unlikely to be chance. A small test often cannot tell a real effect from noise.

Try it

  • Look at the tool. Our context proxy ctxd is a different answer to the same problem: it keeps the original text of old turns in a local store and hands the agent a short summary, so it can look back up what it needs. Read its project page to see how that works.
  • Run the habit. Use the three-step note routine above on your next two sessions with any AI assistant. After the second session, compare: did it repeat work from the first?
  • Ask about it. Post your result on gllm.forum and see what others do.

Commenti

Ancora nessun commento.

Accedi per commentare.