Harness Engineering: The Complete Guide for Product and Innovation Teams
Agent = Model + Harness. The model gets the headlines; the harness gets the outcomes—permissions, context, tools, checks, and the loop that turns text into verified work.
A decent model with a great harness consistently beats a great model with a bad harness—and when the harness fails, the model is rarely the only thing on trial.
Why harness engineering matters now
Prompt engineering taught teams how to phrase questions. Context engineering taught them what to put in the window. Harness engineering is the layer above both: everything around the model that lets an agent act, remember, integrate, verify, and stop safely.
The shorthand is simple: Agent = Model + Harness. Alone, a language model turns text into text. The harness is what connects that reasoning to your files, analytics, CRM, knowledge graph, approval gates, and production deliverables.
Addy Osmani put the tradeoff in one line engineers now repeat in every agent roadmap review: a decent model with a great harness beats a great model with a bad harness. The inverse is not theoretical. When agents gain terminal access without guardrails, destructive commands execute in the real world—the failure mode is the harness, not the weights.
For innovation leaders, R&D directors, and product managers shipping AI inside the enterprise, harness engineering is no longer a niche Cursor skill. It is the discipline that separates demos from systems your legal, security, and steering committees will sign.
The mental model
Picture three layers. The user or business goal sits on top: analyze a launch, map a technology landscape, run a partner outreach mission, or produce a board-ready brief. The harness wraps the model with instructions, context, skills, memory, permissions, tools, checks, and the agent loop. The model proposes plans and language. The world underneath is everything the agent touches: repositories, PostgreSQL, Neo4j, Supabase, OAuth integrations, email, and people who must approve consequential actions.
The harness is not a single file. It is the operating system for agency. Claude Code, Codex, and Cowork are harnesses out of the box. Most serious teams then build another harness on top—a Personal OS, a Team OS, a Company OS, or a Feature Harness baked into the product customers pay for.
The shift in one sentence: move from producing convincing text to completing verifiable work.
Eight components every harness needs
Public harness literature converges on eight responsibilities. They overlap in implementation—a skill can embed instructions and call tools; evals can judge the whole loop—but treating them separately keeps design honest.
Instructions — persistent rules the agent reads every run. In coding agents that is AGENTS.md or CLAUDE.md. In Axionomy missions it is product schemas, agency personas, dispatch copy, and the Unified Deliverable Contract that defines what done means for a report-tier goal.
Context — what the agent needs for this task, not everything the company knows. Retrieve relevant vault slices, memory chunks, graph adjacency, and task state. Cap injection; map-first beats dump-first. Wrong context produces fluent wrong answers faster.
Skills — playbooks loaded only when the task needs them: launch review, CRM enrichment, golden-goal regression, curator persistence. Instructions are general; skills are procedural.
Memory — durable facts across sessions: preferences, decisions, lessons, open threads. Separate durable memory from ephemeral chat. In multi-tenant products, memory must respect RLS and never leak one customer into another’s retrieval.
Permissions — what the agent may do without asking, what it may never do, and what requires human approval. Prompts that say do not delete are not security boundaries. Allowlists, sandbox flags, OAuth scopes, and approval registries enforce policy in code.
Tools — bounded actions: read a file, query metrics, search the knowledge graph, send a drafted email after approval. Prefer small typed functions over god-mode database access. MCP standardizes how external systems plug in when you outgrow bespoke adapters.
Checks — tests, schema validators, business rules, and golden eval suites that catch mistakes before users do. Never trust the model’s claim that it succeeded; verify against source data and expected shapes.
The loop — plan, act, observe, verify, recover or escalate, repeat until completion or budget exhausted. Effort level and retry budgets belong in harness design, not implied by model temperature.
Four harness tiers and Ashby’s law
Once you see harnesses, you see four zoom levels product people actually own.
Personal OS — one user, lowest variety. Your research posture, your skills, your connectors. Where most practitioners learn the ladder: add analytics MCP, then strategy context, then permissions, then evals.
Team OS — shared instructions, shared metric definitions, shared skills in version control, CI on harness changes. Innovation squads stop re-explaining the same citation standards every Monday.
Company OS — identity, audit logs, cross-functional connectors, governance. The assistant can find decisions in internal docs and propose actions across approved systems without becoming an unauthenticated admin.
Feature Harness — what ships to customers. Every strange input, concurrent session, outage, abuse pattern, and privacy edge case lands here. Ashby’s Law of Requisite Variety applies: the regulator—the harness—needs at least as much variety as the system it controls. Personal OS complexity does not transfer; customer-facing agents need proportional safety, observability, and cost controls.
Work the ladder in that order. Master a Personal OS workflow, harden it for the team, extend with company governance, then productize the slice that repeats for users.
Learning the ladder: from chat to instrumented analyst
A classic onboarding path—popularized in harness engineering writing—starts with a plain chat question: Should we expand our launch to enterprise?
Stage zero: the model answers from the prompt alone. It may call the rollout a solid launch because it cannot see your data. That is not intelligence failure; it is missing context and tools.
Stage one: connect read-only analytics via MCP or a typed tool. Now segment-level truth appears. SMB conversion holds; enterprise opt-outs spike to 6.8%. The headline the chat missed becomes the decision the committee needed. Tools are not optional decoration.
Stage two: add strategy context—thresholds, definitions of opt-out, comparison windows, security review rules for enterprise rollout. Context engineering turns metrics into decisions aligned with how your company actually decides.
Stage three: permissions and approvals. The agent may query and summarize; it may not email customers, change billing, or publish without a human gate.
Stage four: checks and golden cases. Regression tests on metric payloads, JSON schema on deliverables, eval suites on representative goals. Ship harness changes like you ship API changes.
Stage five: memory and skills so the next analyst does not rebuild the same launch-review playbook from scratch.
That ladder is harness engineering in practice—not a bigger prompt, a better surrounding system.
Who owns what: the Harness Spec
Ambiguous ownership is how agents get shell access they should not have. A practical Harness Spec assigns owners across product, engineering, and security.
Product owns task definitions, success criteria, approval UX, and which customer promises the feature harness must keep. Engineering owns tool implementations, context policy, loop orchestration, telemetry, and eval pipelines. Security owns permission models, secret handling, sandbox boundaries, and audit requirements.
The spec is living documentation: current tools and scopes, memory retention rules, eval coverage, escalation paths, and known failure modes. It is the artifact a new PM reads before proposing a new agent capability.
When something breaks, the spec tells you which of the eight components failed—context retrieval, not model IQ, is the most common surprise in production.
Building a minimal harness (vertical slice)
Do not start with eight microservices and three orchestration frameworks. Start with one bounded task, one model, one runtime, one read-only tool, and deterministic validation.
Write instructions that forbid inventing metrics and require citing tool output. Implement a single function such as get_launch_metrics with validated parameters and structured JSON return. Run an agent loop that can call only that tool. Add pytest (or equivalent) on the data layer so malformed payloads fail before the model narrates them.
Observability from day one: task id, tool calls, durations, errors, retries, approval events, and whether post-checks passed. Without traces, you are debugging vibes.
Evolving the slice: replace mocks with authorized APIs, add approval gates for writes, grow an eval set of twenty to fifty cases including missing data and adversarial inputs, deploy with cost caps and alerts, and only then consider multi-agent graphs or LangGraph-scale orchestration.
Common mistakes that look like model problems
Longer prompts used as a substitute for retrieval, validation, or access control. Tool sprawl that confuses routing. Trusting self-reported success without tests. Multi-agent topologies before a single agent completes one job reliably. Unsandboxed shell execution treated as a feature.
Fix the harness component responsible; measure regression on golden tasks; ship.
What to measure
Task success rate, factual accuracy against sources, tool success rate, recovery from transient failures, policy violation attempts, human escalation rate, cost per successful task, and end-to-end latency. High completion rate with invented financial figures is worse than lower completion with honest I cannot verify this.
How Axionomy embodies harness engineering
Axionomy is a productized Feature Harness for innovation and R&D work—not a chat skin. Think mode (Marita AI) optimizes cited research; Run mode executes multi-tool missions with human-in-the-loop approvals; Produce mode lands Unified Deliverable Contract outputs in the Workbench.
On the platform side, goal complexity scoring routes report-tier work through pipelines with finalize validators and golden eval APIs. Context policy caps vault and memory injection per mode. pgvector hybrid memory, Neo4j knowledge graph RAG, approval registries, inference telemetry, and optional sandboxed code execution are harness components shipped as infrastructure—not left to each user to reinvent in a markdown folder.
If you operate Axionomy, you are already inside a harness. Your job is to configure the upper layers: standing intents, skills, integrations in Setup, and eval expectations your organization demands.
A thirty-day learning path for your organization
Week one: one repo or workspace with clear AGENTS.md-style instructions and a repeatable task completed twice with the same quality. Week two: one real read-only data source with validation and cited answers. Week three: failure tests—missing fields, denied permissions, bad tool args—and a small golden set. Week four: metrics on success, cost, and escalations; fix the top failure before adding tools.
Deliverable at day thirty: a documented harness spec, a regression suite, and a decision on whether the workflow belongs in Personal, Team, Company, or Feature tier.
Harness readiness checklist
Foundation: define success for one task, pick one runtime, write persistent instructions. Capabilities: minimal tool set, argument validation, skills for repeat workflows. Safety: secrets out of prompts, enforced scopes, approvals on writes. Reliability: deterministic tests, traces, recovery behavior. Deployment: monitor quality and cost, regression before release, rollback plan.
Why importance keeps rising
Models commoditize. Context windows grow. Default chat UX still resets every thread. The durable moat is the harness your organization builds: proprietary graph, memory, approvals, evals, and integrations competitors cannot copy from a model release note.
Prompt and context engineering remain necessary. Harness engineering is what makes them durable across people, teams, customers, and quarters.
Further reading
For the original public framing of the eight components and four harness types, see Harness Engineering by Aakash Gupta (Product Growth newsletter, 2026): https://www.news.aakashg.com/p/harness-engineering. For Model Context Protocol: https://modelcontextprotocol.io/. For Axionomy product depth, continue with AI Agent Features in the Wild on /blog and technical setup on /docs/marita-ai.
Your next step
Pick one real decision your team makes monthly—launch review, partner scan, committee brief. Run it twice: once in raw chat, once with read-only data, explicit thresholds, and a written harness spec. The gap between those two runs is your harness roadmap.
All blog articles · Site index
Key takeaways from this section
Agent = Model + Harness
The model reasons; the harness supplies context, tools, permissions, checks, memory, and the loop that turns answers into accountable work.
Eight components, four tiers
Instructions through loop map to Personal, Team, Company, and Feature harnesses—each with more requisite variety than the last.
Verify, do not trust fluency
Golden evals, schema checks, and read-only tools prevent the headline from hiding segment-level truth—or destructive actions.
Axionomy as shipped harness
Think, Run, and Produce modes plus UDC, context policy, and approvals are harness engineering productized for innovation teams.
Ready to navigate the transition?
Axionomy connects innovation ecosystems. Join and discover how the tools that open doors are being built today.
Get Started