AI Agent Design: Thin Harness, Fat Skills, and the Missing Memory Layer
The “Thin Harness, Fat Skills” principle helps organize reliable agent capabilities, but it does not explain how agents improve through use. This article examines the missing memory layer: what it should retain, how extraction, consolidation, retrieval, and decay form a feedback loop, and how to preserve reproducibility while accumulating experience. It also outlines common implementation pitfalls and metrics for evaluating whether memory actually improves performance.
1. A Sound Principle, Not a Complete Architecture
“Thin Harness, Fat Skills” has become a widely cited design principle in AI agent engineering. Its central argument is straightforward: keep the orchestration framework thin, responsible only for intent recognition, task orchestration, context assembly, and result consolidation. Package domain capabilities into skill modules that can be described and tested independently.
The engineering benefits are clear. A thinner harness makes behavior more predictable and troubleshooting less costly. Richer skills broaden capability coverage without requiring changes to the core framework.
The problem lies in what teams infer from this principle. Many treat it as a complete design philosophy: write enough skills, at sufficient granularity, and the agent will keep getting better. That assumption hides a trap behind a seemingly desirable property: “never forgetting.”
In this framing, never forgetting means consistently producing the same output for the same input. That is useful in engineering: it enables replay, regression testing, and auditing. Reliability depends on such consistency. But a system that never forgets is fundamentally different from human memory. Confusing determinism with the ability to improve is the core misunderstanding.
2. Forgetting Is a Distillation Mechanism
Human memory forgets, but forgetting is not merely accidental information loss. It acts as a filter. Frequent, valuable information that recurs across contexts is retained and reinforced, while rare, local, one-off details fade. Over time, this filtering compresses specific experiences into tendencies, intuition, and practical skill.
You do not need to remember the exact handlebar angle or pedal position from your first bicycle ride. You need to know how to ride. That ability is not a longer memory; it is a shorter, more abstract, more transferable rule distilled from experience.
Skill modules work differently. They do not forget, but they do not distill experience either. Each invocation is a fresh execution, with no causal connection to the previous one. A skill does not learn through use; it repeats its defined behavior.
In this sense, “fat” skills grow through the addition of capabilities. Write 100 skills, and the agent gains 100 capabilities. Those capabilities remain side by side, without necessarily reinforcing one another or developing tendencies from real-world use.
This is the layer missing from many agent architectures: memory.
3. Skeleton, Muscles, and Nerves: A Three-Layer Model
A human-body analogy makes the responsibilities of the three layers easy to distinguish:
- Harness = skeleton. It determines structure, posture, and direction. It supports capabilities but does not generate force.
- Skills = muscles. They determine strength, speed, and the range of specific actions. They provide the actual execution capability.
- Memory = nervous system. It connects the skeleton and muscles, feeding errors from one action into the next.
Without a feedback system, each skill execution remains isolated. Performing 100 squats does not build muscle simply because the movement repeats; repeated stimulation induces structural changes in the tissue. Likewise, executing a skill on 100 similar tasks produces no structural improvement if there is no feedback path.
The memory layer provides that path. It extracts reusable tendencies from completed tasks, such as:
- “This user prefers short answers, with the conclusion before the details.”
- “The third step in this type of task is particularly error-prone; validate its prerequisites earlier.”
- “In the previous measured run, this execution path was roughly 30% faster than the alternative.”
These are not new skills. They are experience-based adjustments to how existing skills are used.
4. What the Memory Layer Should Retain
Memory is not a logging layer. Logs record what happened; memory captures what to do differently next time.
The selection criterion is transferability: retain only conclusions that can change future behavior. In practice, useful memory falls into four categories:
- Preferences. Interaction style, output format, terminology, and level of detail. These are relatively stable, inexpensive to capture, and immediately useful.
- Scenario constraints. Implicit prerequisites, boundary conditions, and mandatory validation steps for a class of tasks. These help prevent repeated mistakes.
- Failure patterns. Steps that failed, approaches that were rejected, and reasons for rollbacks. These can be especially valuable, but also require the strongest safeguards against memory contamination.
- Execution-path efficiency. Comparisons of latency, success rates, and resource costs across different paths. These inform strategy selection during orchestration.
Conversely, the following should generally stay out of memory:
- Intermediate artifacts from a single task.
- Facts that can be read directly from the current system state.
- Highly time-sensitive information that will quickly become stale.
- Vague evaluations that cannot be linked to a specific behavior.
5. Implementation: A Four-Stage Feedback Loop
For memory to affect behavior, it needs a complete feedback loop. Without all four stages, it risks becoming little more than a log.
Extract
After a task finishes, perform a structured review and produce concise lessons rather than retaining the raw execution trace. Each entry should include its type, scope, confidence, and source task identifier.
Consolidate
Merge similar entries, remove duplicates, resolve conflicts, and generalize where appropriate. Multiple observations that a user prefers short answers should converge into one stronger rule, not accumulate as separate records.
Retrieve
Retrieve relevant entries using the current task’s scenario tags, while limiting how much memory enters the context. Memory is valuable because the right information is recalled—not because every stored entry is injected.
Decay
Assign entries validity periods and track feedback on their use. Entries that remain unverified for a long time, or are contradicted by later evidence, should lose weight or be removed. Without decay, memory becomes a source of noise.
The following pseudocode illustrates the structure without relying on any platform-specific interface:
def run_task(task, harness, skills, memory):ctx = memory.retrieve(task.scene, top_k=5) # Retrieve relevant entries; limit context sizeplan = harness.plan(task, ctx) # Thin harness: orchestration onlyresult = skills.execute(plan, ctx) # Fat skills: execution onlylesson = extract_lesson(task, result) # Distill lessons rather than record tracesif lesson and lesson.confidence > THRESHOLD:memory.consolidate(lesson) # Deduplicate and resolve conflictsmemory.decay(now=task.ts) # Remove stale entriesreturn result
6. Memory Does Not Require Abandoning Determinism
Adding memory does not mean giving up deterministic behavior. Deterministic skills remain a foundation of reliability: consistent outputs for the same inputs make regression testing and staged rollouts possible.
The objective is not simply “always produce the same output.” It is “perform better than last time in the same type of scenario.” Determinism supports the former; memory supports the latter. These properties can be layered rather than substituted for one another:
- Skills: each invocation executes a function, with a consistent result for the same inputs.
- Memory: each invocation executes a function with accumulated experience supplied as context, enabling progressive improvement.
The recommended approach is to isolate these responsibilities. Keep the skill layer stateless and replayable, following a pure-function model. Inject memory as an explicit input, and make memory versions snapshotable and reversible.
This preserves testability while allowing experience to accumulate. The execution can remain reproducible for a given input and memory snapshot, even as later memory versions guide different behavior.
7. Common Anti-Patterns and Evaluation Metrics
Several implementation mistakes can undermine the memory layer:
- Treating memory as a log. Long entries without a defined scope rarely match retrieval needs and consume valuable context space.
- Accumulating entries without decay. Early, incorrect conclusions persist and continue to distort decisions.
- Leaking preferences across users. Promoting an individual preference into a global rule causes output-style drift. Memory should be isolated by user, tenant, and scenario.
- Using memory as a substitute for skills. Trying to compensate for missing capabilities through memory produces unpredictable, irreproducible behavior.
- Skipping the evaluation loop. Without controlled comparisons, improvements cannot be distinguished from random variation.
At minimum, track three groups of metrics:
- First-attempt success rate for comparable tasks.
- Average number of rework iterations.
- Memory-entry retrieval hit rate and retirement rate.
A persistently low memory hit rate suggests a problem with lesson extraction or retrieval strategy. It does not, by itself, show that the memory layer is unnecessary.
Conclusion
“Thin Harness, Fat Skills” addresses how capabilities should be organized. A memory layer addresses how those capabilities improve through experience.
The former makes an agent reliable; the latter allows it to accumulate useful lessons. Ignoring the filtering value of forgetting can leave a system with many capabilities but no meaningful progression. Adding the missing feedback layer turns isolated skill executions into practices that experience can continuously refine.
