Skip to content
Agentic Levels
Start hereLevelsTracksPromptsAbout
Get my levelGet my level

  • Start hereYour first useful task with AI.
  • Level quiz8 questions. No AI needed.
  • Fluency ScoreYour Level and a score, from your own AI.

  • LevelsThe 11 levels, in order.
  • LessonsShort lessons, filter by level.
  • TracksGuided paths by tool, role or goal.
  • Set up your AI tool
  • Starter packFree files that help AI remember.

  • PromptsReady prompts to copy and adapt.
  • ChatGPT vs Claude vs GeminiPick the right one for the job.
  • How-tos
  • ReferenceCommands for Claude Code, Codex, Antigravity.
  • ResourcesHand-picked reading and tools.

  • Your progress
  • Your next moveAn interview that picks your next skill.
  • Your next lessonsThe next lessons at your level.
  • Updates

  • Pricing
  • About
  • FAQ & Feedback
  • Work with us
  • How we handle your data
Sign inPreferences
AboutPricingHow-tosPromptsStarter packMy stackHow we handle your data

© 2026 Fuentes Studio

PrivacyTermsRefundsAccessibilityAI content policyCredits
yourCouncil
Ready to help
✦

What do you want to understand?

Ask anything about what you're learning.

←Level 8
  1. Levels
  2. ›Level 8
  3. ›Harness Engineering 101
8

Deep dive · Jump here anytime when you want more on this idea · Free

Harness Engineering 101

Building systems that make AI reliable

After this, you'll be able to describe what a harness adds beyond tools, identify the three pillars (observability, spec-as-test, autonomous loops), and pick the first piece to build for your own setup.

Before you start

You'll want a working sense of Your First MCP Server before this lesson wraps those tools in the feedback loops that make autonomous runs verifiable.

The idea

At Level 7 you gave the agent tools. At Level 8 you give it a feedback loop. Harness engineering is the infrastructure that lets the agent see what it built, run its own tests, and iterate without you watching every step. Automated tests, pre-commit hooks, linters, and CI pipelines the agent can trigger, read, and respond to on its own.

Worked example

Before and after

Level 7 setup: agent refactors a module, you come back and manually run the test suite. Takes 20 minutes of your time per run. Level 8 setup: agent refactors the module, triggers the test suite via MCP, reads the output, fixes the two failing tests, and opens a PR only after green. You review one PR instead of babysitting four iterations. Same agent, different harness, 80% less your time per task.

The difference from Level 7 is not capability. It is autonomy. A Level 7 agent can act. A Level 8 agent can verify that its actions worked. That changes what 'done' means. You are no longer the final checker. The harness is.

Observability is the first thing to build: structured logs for every agent action, trace IDs that link inputs to outputs, and an audit trail you can replay when a run goes wrong. Without this, debugging a run that failed three hours ago is close to impossible. With it, you find the exact step where things broke.

Specification-as-test is the Level 8 testing pattern: write the expected outputs before the agent runs, then verify the agent's output against those specifications. This catches 'did the agent do what I specified' failures that unit tests miss entirely. It is the agent equivalent of writing tests before writing code.

The SprintLessons for Level 8 cover wiring test suites into agent runs, building a replay-from-logs capability, and setting up cost tracking per task. This lesson is the frame. The ceiling here is that the agent still runs tasks one at a time, sequentially, on your machine. Running many agents in parallel without supervision is Level 9.

Try it (5 min)

Paste this into Claude

I want to start building a harness around one task I run with Claude regularly. The task is: [describe one repeatable task, e.g. 'refactor a module', 'fix failing tests', 'update API types across files']. Help me design the first version of a harness for it. Specifically: (1) Write 3-5 spec criteria that define what 'done' looks like in concrete, checkable terms. (2) Tell me which tool or check Claude can run to verify each criterion (test runner, linter, grep, type-check). (3) Describe how Claude should respond when a criterion fails: revise and re-check, or surface the failure to me. Do not run the task yet. Just design the loop.

Check yours against

  • Each spec criterion is binary and checkable without judgment, not 'the code is clean'
  • Every criterion has a specific tool or command Claude can invoke to verify it
  • The plan describes what happens when a check fails: which criteria trigger revision, which require human review
  • Building observability after the first failure instead of before. The first run you scale is the one that fails silently.
  • Treating a passing test suite as full verification. Tests check what you specified, not whether the feature works end-to-end.
  • Skipping spec-as-test on tasks that feel simple. Vague specs on simple tasks still produce vague outputs.
  • Letting the harness loop run forever on a hard bug. Set a cap of 3-4 cycles, then look at the trace.
  • Removing your review step once the harness works. The harness verifies the agent. You verify the harness.

When this breaks

  • Breaks when the harness has no replay capability because debugging a run that failed three hours ago requires reconstructing what the agent did, and without trace IDs the timeline is gone.
  • Breaks when success criteria require human judgment because the agent cannot close its own loop on 'is this code clean enough' the way it can close it on 'do tests pass'.
  • Breaks when you scale loops before adding observability because parallel failures multiply silently and you only notice when production breaks.

AI can help with this

Use AI to apply this lesson to your current work. Share your situation, ask for one concrete next step, and check the answer against this test: Identify one task you run regularly, write 3-5 binary spec criteria for it, and name the specific tool or command that verifies each one.

You can now

✓

Identify one task you run regularly, write 3-5 binary spec criteria for it, and name the specific tool or command that verifies each one.

Try it from memory

Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.

Without scrolling up, pick a task you run regularly with Claude, not the one from your exercise. Write three yes-or-no criteria for 'done', and name how each one gets checked.

One good answer: 'Task: update the prices on my shop's product page. 1 Every price matches the price sheet. 2 No other text changed. 3 The page builds with no errors. Checks: compare to the sheet, read the diff, run the build.' If yours has a yes-or-no check on every criterion, it holds. Rewrite any criterion that has none.

Key takeaways

A harness lets the agent verify its own output. You move from checking every change to reviewing PRs, because the loop closes itself.

  1. 1A harness lets the agent verify its own output. You review PRs, not individual code changes
  2. 2Observability first: structured logs, trace IDs, and replay capability before you trust any autonomous run
  3. 3Specification-as-test: define expected outputs before the agent runs, then check against them
  4. 4Background execution only makes sense once the harness exists. Otherwise you come back to undetected failures.

Was this helpful?

← Back to Level 8