Agent Design Principles: Why a Thin Harness and Fat Skills Need a Memory Layer
The "Thin Harness, Fat Skills" principle has become a widely cited structural guideline in agent engineering: keep orchestration, state management, and tool-calling logic in a minimal scheduling layer, and push domain knowledge and executable steps into many clearly bounded skill modules. This article explains the hidden limitation of that principle—skills never forget, but they also never learn—and proposes reintroducing memory as a third architectural element alongside the harness (skeleton) and skills (muscle). It covers what memory should store, a four-step execution-to-write-back loop, a minimal port interface, and common pitfalls with governance requirements.
1. The Hidden Trap: Determinism Is Not Growth
“Thin Harness, Fat Skills” is a structural principle that has been repeated often in agent engineering over the past couple of years. Its core claim is clear: converge complex orchestration, state management, and tool-calling logic into a scheduling layer (the Harness) that is as thin as possible, and precipitate domain knowledge and executable steps into a large number of clearly bounded capability modules (Skills). The division is attractive from an engineering standpoint—a thin framework is easy to replace and test, and many skills are needed to cover long-tail scenarios.
But the principle hides a semantic trap that is easy to miss: capability modules are expected to “never forget.” The same input always produces the same output, which is indeed a property that reliability engineering dreams of. The problem is that a system that never forgets and human memory are two completely different things.
Human memory forgets, and forgetting is not a defect but a filtering mechanism: high-frequency, important experience is retained, occasional noisy detail fades, and memory is ultimately compressed into tendencies, intuitions, and craft. You do not need to remember the angle of every failed attempt when you first learned to ride a bike; you only need to “know how to ride.” That “knowing how” is exactly what forgetting has distilled for you.
Capability modules are the opposite: they do not forget, but they also do not distill. Every invocation is a fresh execution with no causal accumulation from the previous one. Nothing is “learned” from use; there is only “repetition.” So the “fat” in Fat Skills is essentially stacking along the quantity dimension—write 100 capability modules and the agent formally has 100 capabilities, but those capabilities are isolated from each other, with no association, no precipitation, and no tendency grown out of real usage.
This is precisely the layer missing from the common three-layer division of agents: memory.
2. Redrawing the Three Layers: Skeleton, Muscle, and Nerves
Comparing an agent to the human body makes the responsibility boundaries intuitive:
- Harness (scheduling framework) = skeleton. It determines overall structure, posture, and direction of movement, and handles session orchestration, permission checks, failure retries, context assembly, and observability instrumentation.
- Skills (capability modules) = muscle. They determine strength, speed, and concrete actions, and turn the standard steps of a task category into reusable, testable execution units.
- Memory (memory layer) = nervous system. It connects skeleton and muscle, feeding past execution results back as biases for future execution so that the next action is more precise than the last.
Muscle without a nervous system contracts in isolation every time. A human doing 100 squats grows muscle because tissue undergoes structural change under repeated stimulus; a capability module executing 100 similar tasks changes nothing internally. The memory layer is what performs this “structural change”: extracting tendencies from each task, such as “this user prefers a short conclusion first,” “step three is the most error-prone in this kind of scenario,” or “this execution path was about 30% faster than the other one last time.” These tendencies are not new capability modules; they are empirical fine-tuning grown on top of existing capabilities.
It is worth stressing that the memory layer does not break the thin-framework principle. It is a set of sidecar capabilities—read/write interfaces, retrieval strategies, decay and merge rules—attached to the scheduling layer through a standard protocol, rather than pushing business branches back inside the framework.
3. The Opposite of “Never Forgetting” Is Not “Always Forgetting”
“Never forgetting” in the original principle points to the determinism of capability modules: same input, same output. This is the foundation of engineering reliability and should not be weakened. But what an agent really needs is not “always the same output” but “better than last time for the same class of scenario.” The latter does not depend on determinism; it depends on memory.
The two can be roughly expressed as:
Skills : each call = f(input) -> constant resultMemory : each call = f(input, retrieve(state)) -> progressively optimized result
The key design constraint here is that memory may only change “selection, ordering, parameters, and prompt assembly”; it must not change the deterministic logic inside a capability module. Otherwise testability and rollbackability collapse at the same time. In other words, memory should act at the policy layer, not the implementation layer.
4. What Memory Should Store: Four Kinds of Engineerable Experience
Implementing “memory” as a single whole usually fails, because it cannot be verified. A more workable approach is to split it into four observable, evaluable types:
- Factual memory: stable facts in task context, such as the business meaning of an API field, data definitions, or constraint thresholds. It can be explicitly written and explicitly invalidated.
- Preference memory: stable interaction-level tendencies, such as output length, glossary, code style, or whether unit tests are needed. It has few samples but a large impact.
- Procedural memory: statistical experience about execution paths, such as which branch a task category should prefer, which step needs extra validation, and average latency and failure rate. It only becomes meaningful with enough samples.
- Counter-example memory: failure cases and avoidance strategies, such as a certain input class always triggering a timeout, or a certain parameter combination producing ambiguity. Its value is very high but it must be strictly de-identified.
The four types differ in write thresholds, lifecycles, and conflict handling. Mixing them in one table quickly drowns useful signal in retrieval noise.
5. The Loop: A Four-Step Pipeline from Execution to Write-Back
For the memory layer to compound, it must form a loop rather than passively store data.
execute -> extract -> merge/decay -> retrieve and inject -> execute again
- Extract: after a task ends, an independent, low-temperature induction step produces structured experience entries instead of stuffing the entire raw conversation into storage. Raw text is data; entries are knowledge.
- Merge and decay: merge semantically equivalent entries, and down-weight or expire entries that have not been hit for a long time, so memory does not grow without bound. This step is equivalent to “controlled forgetting.”
- Retrieve and inject: when a new task starts, retrieve a small number of high-confidence entries by scene similarity and inject them at the prompt assembly stage. The injection volume must have an upper bound; otherwise context is crowded out by history and success rate drops.
- Evaluation feedback: use an offline evaluation set to regress the difference between “memory on” and “memory off”; only entry types that are stably positive are allowed to increase their injection ratio.
An illustrative interface can stay minimal to keep the framework “thin”:
class MemoryPort:def extract(self, trace) -> list[MemoryItem]: ...def merge(self, items: list[MemoryItem]) -> None: ...def recall(self, scene: Scene, k: int = 5) -> list[MemoryItem]: ...
The scheduling layer depends only on this set of protocols. The actual storage can sit on a relational database, a vector retrieval service, or object storage—replaceable implementation details.
6. Common Pitfalls and Governance Points
- Pitfall 1: treating raw logs as memory. Logs serve troubleshooting; memory serves decision-making. Their goals differ, and reusing one for the other quickly degrades retrieval quality.
- Pitfall 2: indiscriminate full injection. Context is a scarce resource; injection must be “few and accurate,” with priority and conflict-resolution rules preserved.
- Pitfall 3: letting memory rewrite capability logic. Once allowed, regression testing and canary rollback both stop working.
- Governance points: memory entries need source, confidence, scope of effect, and expiration time; cross-tenant scenarios require isolation and de-identification; preference memory needs a user-visible, clearable entry point, which is the basis for compliance and trust.
7. Conclusion
“Thin Harness, Fat Skills” addresses capability coverage and engineering maintainability, but it cannot answer “how does an agent get better with use?” Introducing the memory layer as an independent third element—using controlled forgetting to distill experience and retrieval injection to bias policy—delivers growth while preserving determinism. The skeleton determines how steadily it stands, the muscle determines how fast it runs, and the nervous system determines whether each run costs less effort than the last. With all three in place, an agent moves from “repeatable” to “accumulative.”
