Agent Memory Layer Design: Beyond Thin Harness, Fat Skills
Reusable skills give AI agents a broad set of capabilities, but repeated execution alone does not build experience. This article explains how a memory layer complements orchestration and deterministic skills, allowing agents to retain useful patterns without changing their execution contracts. It outlines four engineering concerns—writing, retrieval, consolidation, and isolation—and the cloud infrastructure that can support them.
1. What “Never Forgetting” Really Means
A common claim in agent engineering is that every new skill permanently upgrades the system: it does not degrade or forget. This captures the central value of skills—deterministic execution—but also hides an important limitation.
“Never forgetting” sounds like an advantage. Yet human memory works differently. Forgetting is not simply a defect; it is a filtering process. Important information remains, less useful details fade, and experience gradually becomes judgment, intuition, and practical ability. You do not need to remember the mechanics of every bicycle ride. You simply know how to ride. That ability is partly the result of distilling experience rather than retaining every detail.
Skills, by contrast, do not forget, but they do not distill experience either. Each invocation is a fresh execution, independent of previous invocations. A skill does not learn from being used; it repeats its defined behavior. This is the underlying gap.
2. “Fat” Means More Capabilities, Not Accumulated Experience
In “Thin Harness, Fat Skills,” fat primarily refers to the number of capabilities. Write 100 skills, and the agent has 100 capabilities. But those capabilities do not inherently connect, accumulate experience, or develop preferences from real-world use.
In this architectural model, skills behave like pure functions: the same input produces the same output. That makes execution reliable, but it also means the system does not evolve merely by running. Performing the same task 100 times does not structurally change the skill.
This is where the muscle analogy breaks down. Biological muscles change under repeated stimulation and become stronger through training. Skills are repeatedly invoked, but their implementations remain unchanged.
The missing layer is memory.
3. Harness, Skills, and Memory: A Three-Layer Architecture
The human-body analogy helps distinguish the responsibilities of the three layers:
- Harness = skeleton: Establishes structure and direction, handling orchestration, routing, and lifecycle management.
- Skills = muscles: Provide specific actions and capabilities through reusable, deterministic execution units.
- Memory = nervous system: Connects orchestration with execution, helping each task become more precise than the last.
Without a nervous system, each muscle contraction would be isolated. In an agent architecture, the memory layer provides the equivalent of structural adaptation by extracting useful patterns from completed tasks.
Those patterns might include:
- “This user prefers concise answers.”
- “In this scenario, errors tend to occur at step three.”
- “The previous run of this path was approximately 30% faster than the alternative.”
These are not new skills. They are experience-based adjustments to how existing skills are selected, contextualized, and used.
4. Memory Does Not Replace Determinism
Adding memory does not mean abandoning deterministic execution. In this model, a skill’s “never forgetting” property means that the same input produces the same output. That reliability should remain intact.
What an agent needs at the system level, however, is not always the same output. It needs to perform better when a similar situation arises again. Memory enables that improvement while preserving the underlying execution contract.
Conceptually, the two layers coexist as follows:
Skill invocation: execution = f(input) → stable resultMemory-enhanced invocation: execution = f(input) + g(experience, context) → progressively improved result
Here, g represents an experience layer around execution, not a change to the determinism of f. Before invocation, relevant historical patterns are supplied as context. After invocation, feedback from the result is distilled into new experience entries.
The skill remains stable; the surrounding system becomes better informed.
5. Four Engineering Priorities for the Memory Layer
Turning memory from a concept into a working service requires attention to four stages.
Writing: Capture reusable experience.
After a task finishes, extract structured experience rather than simply storing raw logs. Each entry should contain three elements: the characteristics of the situation, the action taken, and an evaluation of the outcome.Retrieval: Recall relevant experience.
When a new task arrives, retrieve experience based on similarity to the current situation and inject it as context. Retrieval quality directly determines whether repeated use actually improves the agent’s behavior.Consolidation: Reduce noise.
Borrow from the role of forgetting in human memory. Apply decay and merging to infrequent or low-value experience so that growing memory does not slow decision-making.Isolation: Maintain clear boundaries.
Memory is probabilistic; skills are deterministic. For high-risk operations, deterministic skill behavior should remain authoritative, with memory serving only as supporting advice.
General-purpose cloud infrastructure can support storage and execution. Object storage can hold experience entries, message queues can decouple writing from consolidation, and container platforms can provide elastic scaling for memory services. Logging and monitoring with alerts can help track retrieval hit rates and whether memory is producing meaningful improvements.
6. From Repetition to Improvement
“Thin Harness, Fat Skills” addresses capability breadth and reliable execution. It does not, by itself, address the accumulation of experience.
A memory layer completes the architecture: alongside the skeleton of orchestration and the muscles of execution, it adds a nervous system that carries useful patterns forward.
Memory does not need to change the determinism of skills. Instead, it helps the agent retain relevant experience, refine its choices, and turn repeated execution into progressive improvement. That is the key step from an agent that works to one that gets better with use.
