Thin Harness, Fat Skills: A Practical Design Principle for AI Agents
A widely adopted agent-engineering principle is “thin harness, fat skills”: keep the orchestration layer light and put most of the system’s capability in well-defined skills. This article explains the three-layer architecture, how knowledge skills differ from script skills, and engineering practices for skill interfaces, granularity, versioning, and evaluation.
What “Thin Harness, Fat Skills” Means
In agent engineering, a design principle that is increasingly accepted is “Thin Harness, Fat Skills.” The idea is simple: the harness—the framework around the model—should stay as thin as possible. It should only handle infrastructure such as scheduling, context management, and tool invocation. Development effort, intelligence, and product value should live in the skills layer.
A useful software analogy is the operating system: the harness is like a kernel plus a task scheduler; skills are the applications that run on top. A polished kernel has little value without a rich application ecosystem. Agent work should therefore not aim to make the framework do everything. The priority is developing, organizing, and accumulating skills.
A Three-Layer Architecture
Under this principle, a typical agent system can be described in three layers.
1. Bottom layer: model and runtime
This layer provides LLM inference, context windows, and tool-calling protocols. It is usually supplied by general infrastructure, so developers rarely implement it themselves.
2. Middle layer: thin harness
The harness should do only four things:
- Session and context management: conversation history, truncation, and compression
- Skill registration and dispatch: invoking the skill the model chooses
- The execution loop: think–act–observe iteration
- Generic fallbacks: timeouts, retries, permission checks, and similar safety mechanisms
Keeping the harness thin is deliberate. The more complex it becomes, the more it couples to a specific business, and the harder it is to reuse or evolve. The harness should behave like a standard, stable socket—not custom furniture rebuilt for every project.
3. Top layer: fat skills
This is where most of the work belongs. Each skill is like a callable function with a clear input, output, and responsibility. How rich the skill layer is largely determines what the agent can actually do.
Two Kinds of Skills: Knowledge vs. Scripts
A detail that is easy to miss—and often the most important—is a strict split between two skill types.
1. Knowledge skills (working in latent space)
These skills exist as natural-language documents, typically structured Markdown. They describe the process, caveats, and judgment criteria for a class of tasks—for example, how to write a proper API document, or in what order a code review should inspect which dimensions.
They work by injecting the document into context so the model’s language and reasoning abilities are guided in text. Generalization happens in latent space. Results can be creative and flexible, but they are also probabilistic and non-deterministic.
2. Script skills (deterministic execution)
For tasks with clear logic, fixed steps, and low tolerance for error, write deterministic programs: format conversion, batch renaming, data validation, calling a fixed API, and similar work. Each run is fully reproducible and does not depend on the model improvising.
3. Why the distinction matters
Many weak agent systems mix the two. They ask the model to perform deterministic steps that should be scripts—wasting compute and remaining unreliable—or they use rigid scripts for problems that need flexible judgment, losing generalization. A practical test:
- Does the result require flexible judgment? Use a knowledge skill.
- Do the steps need 100% reproducibility? Write a script.
- Is the task repeated often with a fixed input/output pattern? Script it.
In software terms, this is a blend of Software 1.0 and Software 2.0: scripts are explicit human-written rules (1.0); knowledge skills activate learned model capabilities through text (2.0). A strong agent system combines both.
Engineering Practices
1. Treat a skill as an interface; write the spec first
Each skill needs clear metadata: name, when to use it, input/output contracts, and what to do on failure. That “spec” is what the model uses for dispatch. The more precise it is, the more likely the right skill is called.
2. Keep skill granularity moderate
One skill should map to one independently testable unit of work. Too large, and the document becomes long and the model loses the point. Too small, and dispatch is frequent and context balloons.
3. Push deterministic logic into scripts
If a script can do it, do not make the model re-reason it. That improves reliability and cuts cost. Let knowledge skills decide and scripts execute.
4. Version and evaluate skills
Skill documents are assets you iterate on. Maintain them like code: track changes, and use an evaluation set to check whether a rewrite actually raises task success rate.
5. Stabilize the harness; iterate skills quickly
Harness changes affect every skill, so treat them carefully. The skill layer should encourage fast experiments. A stable kernel with a living ecosystem is the engineering outcome this principle aims for.
Closing
“Thin harness, fat skills” is a value judgment: an agent’s intelligence is not in framework code, but in carefully organized skill assets. A thin harness buys generality and stability; fat skills buy capability and value. For teams building agents, adding more framework features is often the wrong move. Ask instead whether the skill library is rich enough, the docs are clear enough, and the boundary between knowledge and scripts is drawn sharply enough. That is usually what sets the ceiling.
