AI Agent Memory: Why Our Systems Stopped Re-Solving the Same Problems
Why we store the working code instead of a description of it, and the benchmark that will prove it

On this page
Every business running AI automations pays a hidden tax. It never shows up as a line item, but it is in every invoice: your AI works out, from scratch, the same thing it worked out yesterday.
At Rhize we run AI systems daily. They process documents, generate client SEO reports, monitor our software stack, and summarize completed work. They perform well. But watching them closely, we noticed something almost comical. Every run, the AI re-derives the same plan, rewrites the same logic, and re-solves problems it already solved perfectly last week.
Imagine a talented line cook who invents a great dish on Monday, then shows up Tuesday with no memory of the recipe and invents it again. The food is usually good. But you are paying for invention every night, the dish varies a little each time, and occasionally an experiment misses. A restaurant runs on recipes for a reason.
We are fixing this by giving our systems what cognitive science calls procedural memory. This article covers what that means, why we are building it, and how we will know whether it works. It is the first post in a series, and the follow-up will publish our actual before-and-after numbers.
The three types of AI agent memory
People use "AI agent memory" to mean one of three different things, and the distinction matters.
- Semantic memory is what the system knows: facts, preferences, context. "This client's brand voice is conversational." Most of the memory tools we have evaluated work here.
- Episodic memory is what the system has experienced: conversation history, past sessions, logs. "Last Tuesday we discussed the pricing page."
- Procedural memory is what the system knows how to do: the skills and procedures it has already worked out. "Here is the exact, tested sequence that produces the monthly report."
The third type has the least tooling built around it, and it is the one that decides whether an AI automation behaves like a seasoned employee or a brilliant new temp every single morning.
Procedural memory is muscle memory for software: the difference between knowing about riding a bike and knowing how to ride one.
The insight: store the working code, not a description of it
Here is where most AI agent memory architecture goes wrong. When an AI works out how to do something, say a sequence that pulls analytics data, builds a report, and posts it to Slack, most systems store a description of what happened. Next time, the AI reads the description and re-implements the work.
That is like keeping a restaurant review of the dish instead of the recipe.
The better pattern already exists in two places. AI agents built to play open-ended games keep a growing library of small, tested programs and reach for one when a familiar situation comes up. Anthropic has since shipped a version of the same idea, in which an agent saves working code as a reusable skill. Both do the thing that matters: when the AI writes code that works, keep the code. Verified, versioned, and retrievable, so that the next time a similar task appears, the system runs the proven procedure instead of improvising a new one.
The AI's job then shrinks to what it is actually best at: recognizing which recipe fits, filling in today's ingredients, and handling the unexpected. The routine part stops being interesting, which is the entire point.
How it works at Rhize
Our implementation is a loop with five steps.
- Freeze. When one of our automated routines completes successfully, the working code is captured, not a summary of it.
- Version and record provenance. The code is stored with its full paper trail: which routine produced it, what inputs it ran with, what it cost, and whether it passed verification checks.
- Index. Each stored skill gets a plain-language description that is searchable by meaning rather than by keyword.
- Retrieve and re-run. When a similar task arrives, the system finds the proven skill and executes it with the new inputs.
- Self-heal. If a stored skill fails, say because a third-party service changed, the AI falls back to solving fresh, and the fix becomes the next version. The library gets stronger exactly where the world changed.
Our vault-processing routine once needed to turn hundreds of PDFs into searchable summaries. The AI wrote a small program to handle the repetitive part. That program still exists. It ran again this week, unchanged, in seconds, for pennies. That is procedural memory working before we even formalized it. What we are building makes it the norm instead of the happy accident.
Why deterministic outcomes matter for client work
The word doing the work here is deterministic: the same input reliably producing the same process.
An improvising AI produces work that varies run to run. Usually the variation is harmless. Occasionally it is not: a slightly different report structure, a metric calculated another way, a step silently skipped. For internal experiments, tolerable. For client deliverables, no.
Frozen, versioned procedures change the contract.
One honest caveat. Procedures that reach into the outside world, like rankings, analytics, and third-party platforms, cannot make the outputs deterministic, because the world moves. What becomes deterministic is the process, plus explicit verification checks that catch when the world moved underneath it.
What we're measuring (and publishing)
We don't ship architecture on vibes. Before rolling this out everywhere, we instrumented four production workflows with a two-arm benchmark: document processing, daily work summaries, software-stack monitoring, and the content pipeline that produced this article.
We are tracking wall-clock time per stage, how much AI composition each run needs, failure and manual-intervention rates, and the question that decides everything: whether stored procedures run correctly without edits. When the numbers are in, they will be the second article in this series, whichever way they point.
What this unlocks for clients
The quiet consequence of this architecture is that recurring work becomes a product instead of a performance.
Monthly SEO reporting, content production pipelines, analytics digests, review monitoring, data cleanups, anything your business does on a rhythm, can graduate from "an AI does its best each time" to "a versioned, verified procedure runs, and an AI supervises and improves it." That is the difference between hiring a gifted improviser and owning a playbook that gets sharper every month.
Recurring SEO work of the kind behind our South Jersey Glass & Door case study is exactly this sort of rhythm: the same procedure, run every month, where consistency is the product.
We are taking our own operations there first, and we think it is the standard AI automation should be held to generally.
This is part one of our procedural memory series. Part two publishes the benchmark results. You can follow along on our resources page or connect with us to be notified when the numbers land.
Appendix: how it actually works (for the technically curious)
SKILL.md) plus the executable scripts it wraps, committed to a Git-backed registry. Nothing exotic, just version control doing what version control does.Frequently Asked Questions
What is procedural memory in AI agents?
How is procedural memory different from RAG?
Does procedural memory make AI deterministic?
What business tasks benefit most from procedural memory?
Want this working in your business — not just on paper?
Book a 30-min call and we'll map exactly where your business depends on you, and what to fix first. No pitch — you leave with a plan either way.
Book a 30-min callGet insights like this in your inbox
Join our newsletter for actionable SEO, marketing, and growth strategies — no fluff, just results.
No spam. Unsubscribe anytime.