Beyond Thin Harness and Fat Skills: The Missing Memory Layer in AI Agents

    Skills give agents durable, deterministic capabilities, but they do not learn from use. This article argues that a memory layer is the missing piece in the thin-harness, fat-skills architecture: it turns execution history into reusable tendencies without breaking skill reliability, covering a three-layer mental model, three kinds of memory, a retrieve–inject–execute–extract loop, write and forget policies, and how to measure whether memory actually improves agents.

    “Never forget” sounds inspiring—and hides a trap

    A common claim is that every skill is a permanent upgrade: the system does not degrade and does not forget. That is fair as a description of skills. “Never forget,” however, is only an advantage from one angle. From another, it is a limitation.

    Human memory forgets, and forgetting is a filter, not a defect. The brain keeps frequent, important patterns and lets details fade so experience becomes bias, intuition, and craft. You do not need the exact steering angle of every turn; you need to know how to drive. That “knowing how” is what forgetting helps extract.

    Skills are different. They do not forget, and they also do not distill. Each call is a stateless, fresh run: the same input always yields the same output, unrelated to the last run. Nothing is learned from experience; the system only repeats precisely.

    In a thin harness plus fat skills design, “fat” is fat only in count. A hundred skills mean a hundred abilities, with no linkage, no accumulation, and no tendencies that grow from use. That is the missing layer in many three-layer agent stacks: memory.

    Skeleton, muscle, and nerves: a fuller mental model

    If an agent is like a body, the three layers map as follows:

    • Harness = skeleton. It sets structure, posture, and direction: task planning, intent routing, context management, tool orchestration, and recovery. It should stay thin and outsource concrete ability.
    • Skills = muscle. They set force, speed, and specific actions: standardized I/O capability units. They should stay fat in the sense of breadth.
    • Memory = nervous system. It connects skeleton and muscle so each movement is more precise than the last. It turns execution history into reusable tendencies.

    Muscle without nerves contracts in isolation. A hundred squats grow muscle because tissue changes under repeated stimulus. A skill module that runs the same task a hundred times does not change inside. The memory layer is that structural change: extract tendencies from each task—“this user prefers short answers,” “this scenario often fails at step three,” “this path is about 30% faster than the other.”

    These tendencies are not new skills. They are experience fine-tunes on top of existing skills.

    Determinism is not all an agent needs

    A reasonable objection: skills’ “never forget” is determinism—same input, same output—and that is how engineering reliability is earned. The claim is true, but it covers only half the need.

    Agents also need “the same scene, done better than last time.” That comes from memory, not determinism. The difference can be written as:

    1. Skills: result = f(input) # pure function, constant result
    2. Memory: result = f(input; retrieved_history) # execution with experience context, gradual improvement

    Memory must not break skill determinism. Skills stay stateless, testable, and reproducible. Memory acts before the call (inject experience context, adjust parameters, choose a path) and after it (extract and write new experience). Reliability and growth stay decoupled.

    What memory means in engineering: three types and one loop

    Landing a memory layer starts by splitting three kinds of memory:

    1. Episodic memory. Concrete traces: session preferences, where a task failed, actual latency and cost of a path. Highest value, highest noise—raw material.
    2. Semantic memory. Facts and domain knowledge distilled from many episodes, e.g. “this kind of report job should validate the data time range first.” More stable; how the agent “knows the business better with use.”
    3. Procedural memory. Tendencies about how to act: tool preference, step shortcuts, planning templates for a class of requests. This directly shapes the next run.

    The runtime loop is retrieve → inject → execute → extract → write → decay/evict. Sketch of a dispatch cycle:

    1. def run_task(task):
    2. # 1. Retrieve: recall similar historical experience
    3. context = memory.retrieve(task, top_k=5)
    4. # 2. Inject: experience as planning context (do not change skill internals)
    5. plan = harness.plan(task, memory_context=context)
    6. # 3. Execute: skills stay stateless and deterministic
    7. result = skills[plan.skill].invoke(plan.args)
    8. # 4. Extract and write: store reusable patterns, not full logs
    9. memory.write(extract_episode(task, plan, result))
    10. return result

    Retrieval quality decides whether memory is useful; write filters and forgetting decide whether it stays healthy.

    What to write and what to forget: selection beats accumulation

    The easiest failure is treating “remember everything” as the goal. Unfiltered memory becomes a noise warehouse: retrieval is polluted, contradictory preferences coexist, and performance drops. More reasonable practices include:

    • Selective writes. Keep reusable patterns: stable user preferences, attributable failures, path latency/cost comparisons, tool fitness. Raw logs and inconclusive traces belong in logging, not memory.
    • Importance scores. Weight retention, e.g. score = α·access_frequency + β·recency + γ·task_similarity.
    • Time decay. Memories that are rarely recalled lose weight and may be evicted—an analog of a forgetting curve.
    • Conflict resolution. When old and new memories clash, decide by timestamp, confidence, and evidence so the agent is not both “likes detail” and “likes brevity.”
    • Anti-pollution. Stricter write rules for wrong conclusions (e.g. only distill a lesson after repeated similar failures), and periodic regression tasks to catch memory-induced regression.

    Boundary: memory produces tendencies, not skill substitutes

    Keep the boundary or the architecture tilts:

    • Memory yields tendencies (“this usually works better”), not rules (“must do this”). Tendencies affect planning and parameters; skills still execute.
    • When a tendency is repeatedly validated and stable, it may become a default inside a skill or a new skill—but only after evaluation, not as a backdoor that rewrites behavior at will.
    • Memory without skills has nowhere to act; memory without a harness has no direction. All three layers are required: thin harness + fat skills + living memory.

    How to verify that memory actually helps

    “Gets better with use” needs measurement, not vibe. Common metrics:

    • Task success rate on a fixed set, memory on vs off;
    • Human intervention rate (corrections / takeovers);
    • Average latency and cost, from better path and tool choice;
    • Context utilization: whether recalled memory actually changed plan and execution, not idle injection;
    • Regression health: replay historical tasks to detect pollution or stale conclusions.

    A practical control: same agent, same skill set, only memory read/write toggled, same task sequence, then compare the metrics above.

    Closing

    The appeal of “every skill is a permanent upgrade” is determinism. Determinism helps you not be wrong; it does not make you better. Skills do not forget, so they do not distill. An agent’s value is turning repetition into experience and experience into tendency. Skeleton gives direction, muscle gives force, nerves make each action more precise than the last. Add memory, and the agent can actually grow.