Agent memory

Your company’s assistant needs experience

By , CEO of Starlight Search · · 5 min read

We started agentRTX with a narrow goal. When someone corrects an agent, the agent should do it their way the next time, and the time after that. Most of our early work went into that loop: catch the correction, store it, and make sure it comes back when the same kind of task does.

A few months of experiments later, the result that surprised us was somewhere else. The memory we were building to steer behaviour turned out to be good at keeping a knowledge base accurate, too. The pass that does it runs offline, between sessions, and we call the result a self-improving knowledge base. This post explains experience and the self-improving knowledge base in plain terms, and why they matter more for an assistant that works for a whole company than for one that works for a single person.

If you want the mechanics and the benchmark numbers, we covered those in From traces to know-how: procedural memory for AI agents. This one is about what the ideas mean for a team.

What is experience?

Experience is what you get when episodic memory, the logs and traces of an agent’s runs, is passed through a judgment layer. The judgment can come from a human in the loop, an LLM, or your own evaluation. With it, the agent can consolidate what happened, decide which facts or steps were important, and build its procedural memory.

So procedural memory comes with a utility score: a score that comes from the judgment after each run.

Once you have built this procedural memory layer, you can use the utility score to give the agent the right context, or to improve the knowledge base.

How experience differs from observability

Observability tools such as LangSmith, Langfuse and OpenTelemetry collectors are built for a person debugging a system. They answer the question of what happened on a given run. Experience is built for the agent, and answers what it should do the next time a similar task comes up. The two sit side by side, and agentRTX reads its runs from whichever tracing tool you already have.

Observability compared with agent experience
ObservabilityExperience
Kind of memoryEpisodic: what happenedProcedural: what to do
UnitOne trace per runOne lesson per kind of task
Read byAn engineer, after something breaksThe agent, before it starts
JudgedNo, it is a raw recordYes, every entry has a verdict and a score
Over timeKeeps growingMerged, re-scored and retired

What is a self-improving knowledge base?

A self-improving knowledge base is one that keeps getting corrected from experience. A pass runs on a schedule, with nobody waiting on it, reads recent experience alongside the knowledge base, and edits the knowledge base. Anthropic calls a similar pass over an agent’s own notes dreaming, after the way sleep turns a day’s events into long-term memory, in their post on the components of agent memory.

On a company knowledge base, that pass spends most of its time on a handful of jobs:

  • Merging duplicates. Five slightly different notes on how to format the weekly report become one note that says it properly.
  • Settling contradictions. If two people told the assistant different discount limits, the pass keeps the more recent one, records who said it and when, and flags the pair for a person if they came from people with different authority over discounts.
  • Retiring what keeps failing. A fact whose utility score has fallen run after run is taken out of the knowledge base and kept in an archive, in case someone wants to know why it went.
  • Promoting repeated corrections. When reviewers keep fixing the same step of the same task, the fix becomes a written step in that workflow’s skill, so it no longer depends on retrieval finding it.
  • Listing gaps. Questions the assistant failed to answer several times become a short list of things nobody has written down yet, for a person to fill in.

We are careful about what it is allowed to do on its own. A wrong entry in a shared knowledge base gets trusted by every agent that reads it, so we send changes to shared knowledge to a person for approval, and we keep every merged or retired entry linked to the runs and the people it came from. That link is also what lets someone answer the question “why does the assistant think this?”, which in a company gets asked sooner or later.

Why organizational assistants need a self-improving knowledge base

A personal assistant learns from one person. Its memory rarely contradicts itself, because there is only one source, and when that person changes their mind the old preference simply stops being used.

An assistant that works for a company hears from dozens of people, about things that keep changing. Prices go up in March and the old figure is still sitting in forty threads. Someone in sales and someone in finance describe the approval process differently, and both are partly right. The person who knew which contact to call at a supplier leaves, and what they knew is spread across a year of conversations.

Left alone, that kind of memory gets worse as it grows. There are more near-duplicates and more out-of-date facts competing for the same few thousand tokens of context, so the assistant picks up the wrong version some of the time. People notice, and after the second or third wrong answer they stop asking it. A self-improving knowledge base reverses the direction: the more the assistant is used, the more corrections and verdicts the next pass has to work with, and the more accurate the knowledge base gets.

That is what we mean by an assistant building institutional knowledge, and it is a big part of why we think a company agent should be built differently from a personal one. We wrote about the governance side of that difference in Muse, Grok Bot and Pulsar.

agentRTX handles the experience layer and the pass that keeps the knowledge base improving, and works with the tracing and evaluation you already run. You can read more on the agentRTX site, or book a demo and we’ll run it on one of your workflows.

Frequently asked questions

What is a self-improving workflow?

A self-improving workflow is an automated process, usually run by an AI agent, that gets better from its own history. Each run is judged by a person, a model or an automatic check, the useful lessons are kept with a score, and a regular consolidation pass updates the workflow’s steps and the knowledge base it relies on.

What is a utility score in agent memory?

A utility score measures how useful a stored lesson has been. It goes up when runs that used the lesson succeed and down when they fail. It decides which lessons are retrieved for new tasks and which are trusted enough to go into a shared knowledge base.

Should a self-improving knowledge base change without approval?

We recommend against it for shared knowledge. A wrong entry is trusted by every agent that reads it, so changes to shared knowledge and to workflow skills should go to a person for approval, with links back to the runs and people each change came from.

Put Pulsar to work.

Start free on Pulsar Cloud, or book 30 minutes with us to see how it would run in your own environment.