AI Agent Design: Understanding “Thin Harness, Fat Skills”
The “Thin Harness, Fat Skills” principle separates lightweight agent orchestration from reusable business capabilities. This article explains how clearly defined requirements, allowlisted operations, a five-layer architecture, and measurable acceptance criteria help keep AI agents manageable, testable, and focused on completing real tasks.
1. Thin Harness, Fat Skills: An Underrated Design Principle
A useful principle in AI agent engineering is “Thin Harness, Fat Skills.” The agent’s execution and orchestration framework—the harness—should remain lightweight, retaining only essential control logic such as perception, planning, dispatch, and reflection. Business capabilities should reside in composable skills that can be tested and evolved independently.
To understand this principle, start with what makes an agent different from a single interaction with a large language model. An agent can perceive its environment, make decisions, call tools, retain memory, and refine its behavior to complete complex tasks toward a defined goal. Its distinguishing feature is goal-driven, autonomous execution in a closed loop: a model interaction produces an answer; an agent workflow aims to complete a task.
Why keep the harness thin?
The more complicated the control logic becomes, the harder the system is to manage. Agent execution already involves uncertainty. Adding extensive special cases, patchwork branches, and business-specific exceptions to the orchestration framework makes debugging and verification more difficult.
A lightweight harness has three central responsibilities:
- Interpret the goal.
- Orchestrate skills.
- Validate the outcome.
Business-specific implementation belongs in the capability layer.
Why make skills substantial?
Skills are where business value is delivered. They connect the agent to real systems through capabilities such as querying databases, creating support tickets, calling APIs, and searching knowledge bases.
Each skill should encapsulate a well-defined operation. Rich, standardized skills give the agent’s reasoning a reliable foundation for action. “Fat” does not mean that individual skills should become sprawling or monolithic; it means that substantive business logic belongs in the skill layer rather than the harness.
2. Define Requirements First: Substantial Skills Need Narrow Boundaries
Many agent projects struggle not because the model lacks capability, but because requirements are vague and scope expands beyond control. Before development begins, answer four questions:
- Why are we building this?
- Who is it for?
- What should it do?
- What must it never do?
For an e-commerce after-sales agent, requirements should be organized into three lists.
Core objectives
Identify the central problem to solve. For example:
Automatically handle returns, exchanges, refunds, and after-sales inquiries to reduce the workload on human support teams.
This is a focused objective, unlike “build an all-purpose customer service agent.”
Capability boundaries
Use an allowlist to specify permitted operations, such as:
- Looking up orders.
- Explaining after-sales policies.
- Creating return or exchange tickets.
Operations outside the allowlist should be rejected. Separately, define explicit safety boundaries for prohibited actions, such as changing order amounts, calling payment APIs, or disclosing private user information.
Measurable acceptance criteria
Avoid vague goals such as “improve the user experience.” Criteria should be verifiable through data. Example targets include:
- First-contact resolution rate for after-sales issues: at least 85%.
- Human handoff rate: no more than 15%.
- Average handling time: no more than 3 minutes.
These are example acceptance targets, not claims about achieved performance.
Three practices help prevent common mistakes:
- Do not start with a general-purpose agent. Build a minimal, end-to-end workflow for a specific domain first. Narrow initial boundaries improve control and make results easier to assess. Broader capabilities can be an iteration goal rather than the starting point.
- Use an allowlist rather than a denylist. A denylist cannot anticipate every prohibited operation. An allowlist establishes the permitted scope from the outset.
- Make objectives measurable. A goal that cannot be validated with data provides no clear acceptance standard.
Document these decisions in three deliverables:
- A requirements specification.
- A capability-boundary and safety-restriction list.
- A core evaluation metrics framework.
These documents guide implementation and provide acceptance baselines for later regression testing.
3. A Five-Layer Architecture for a Thin Harness
A practical agent architecture can be organized into five layers with distinct responsibilities.
1. Perception: Normalize incoming information
The perception layer receives user input, system events, and changes in environmental state. It converts them into a consistent, structured context.
This layer should not make business decisions. Its role is to preserve information completeness, cleanliness, and timeliness.
2. Planning and decision-making: Turn goals into tasks
Using the language model’s reasoning capabilities, the planning layer breaks a goal into a sequence of executable subtasks.
This is the central part of the harness—and a particularly important place to keep the design thin. It produces task plans rather than implementing the capabilities needed to execute them.
3. Skills: Deliver business capabilities
The skill layer performs the work that creates business value. Each skill should satisfy three requirements:
- Single responsibility: One skill addresses one category of problem.
- Standardized interfaces: Inputs and outputs have clearly defined schemas.
- Independent testability: The skill can be verified outside the main agent workflow.
The essence of substantial skills is to separate deterministic business logic from model reasoning and preserve it as reusable, engineered capabilities.
4. Memory: Supply relevant experience
The memory layer distinguishes between:
- Short-term memory: Context from the current conversation.
- Long-term memory: Information such as user preferences and previous decisions.
Retrieval mechanisms make relevant information available to the planning layer.
5. Reflection and iteration: Close the execution loop
This layer evaluates execution results. When execution fails, it can trigger a retry, choose another approach, or hand the task to a human.
Useful experience is written back to memory, creating a feedback loop for subsequent execution.
4. How to Recognize an Overgrown Harness
A practical diagnostic is to inspect the harness for large numbers of business-specific if-else branches, special-case patches, and hard-coded parameters. These are signs that business logic is leaking into the control layer.
A healthier design allows a new business scenario to be introduced with little or no harness code changes. Most changes should consist of registering new skills and updating the allowlist.
The following conceptual sketch illustrates the separation:
# Thin harness sketch: orchestration is independent of business specificsdef run_agent(goal):plan = planner.decompose(goal) # Planfor step in plan:skill = registry.match(step, whitelist) # Match an allowed skillif skill is None:return escalate_to_human() # Hand off out-of-scope tasksresult = skill.execute(step)if not result.ok:plan = planner.replan(goal, feedback=result)return verify(goal, results) # Validate task completion
The harness manages the planning, matching, execution, and reflection loop. Business knowledge remains in the skills registered with registry.
This is an architectural illustration rather than a complete implementation: result collection and the mechanics of continuing execution after replanning are not shown.
5. Conclusion
“Thin Harness, Fat Skills” is more than a slogan. It is a design principle for keeping agent systems manageable while making their capabilities reusable.
A thin harness supports debugging, verification, and more predictable behavior. Substantial skills allow business capabilities to be accumulated, reused, and evolved independently.
The practical path is to:
- Begin with narrowly scoped requirements.
- Constrain actions through an allowlist.
- Evaluate outcomes against measurable criteria.
- Encapsulate deterministic business logic in standardized skills.
- Keep reasoning and orchestration within a lightweight planning and control layer.
For organizations deploying agents in the cloud, general-purpose container platforms, object storage, and logging and monitoring services can provide a stable operational foundation for the skill layer and help reduce operational overhead.
