Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Harness Engineering or How to Keep Agents on Track

Harness Engineering or How to Keep Agents on Track

Agentic coding works perfectly until it doesn't. That's the nature of it. There's a ton of things you can do to improve it, but to get there you need to go one layer deeper.

Agent harnesses are not magic black boxes and the key to understanding how to leverage agentic coding is understanding how it works under the hood. How does a harness work? What can you do to steer the agent?

In this talk I'll give you an intuition of how coding agents work. And what you can do to steer, to build guard rails, and to effectively reshape what has become the main way of producing code in this day and age.

Practical guidelines on giving agents senses, containing the blast radius, context and engineering, and building deterministic checks around nondeterministic behavior.

The harness matters more than the model.

Avatar for Iury Souza

Iury Souza

July 03, 2026

More Decks by Iury Souza

Other Decks in Programming

Transcript

  1. Non deterministic Coding “They’ve done studies, you know? 60% of

    the time, it works every time” - Brian Fantana (Anchorman)
  2. Non deterministic Coding •Agents are writing more and more code

    •They write solid code, until they don’t
  3. Non deterministic Coding •Agents are writing more and more code

    •They write solid code, until they don’t •New bottlenecks • Keeping code quality • Steering • Containing blast radius
  4. Non deterministic Coding •Platform Teams attempts to keep quality standards

    for developers •Harness Engineering does that for agents
  5. The Anthropic Moment •Claude Code preview: Feb 25 •Claude 3.7

    Sonnet launch •CLI-first agentic coding Feb 2025: Claude Code
  6. The Anthropic Moment •Claude Code preview: Feb 25 •Claude 3.7

    Sonnet launch •TUI / CLI based agent Feb 2025: Claude Code
  7. •Opus 4.5 •Step change in quality •Model can prompt itself

    •Improved planning mode Sep 2025: Opus The Anthropic Moment
  8. •The IDE starts losing ground •The harness was the main

    improvement Holidays: Claude Code + Opus The Anthropic Moment
  9. •The IDE starts losing ground •The harness was the main

    improvement •Competition shows up • Codex • Opencode • Amp • Pi Holidays: Claude Code + Opus The Anthropic Moment
  10. •The IDE starts losing ground •The harness was the main

    improvement •Competition shows up • Codex • Opencode • Amp • Pi •It’s not magic Holidays: Claude Code + Opus The Anthropic Moment
  11. •The IDE starts losing ground •The harness was the main

    improvement •Competition shows up • Codex • Opencode • Amp • Pi •It’s not magic •The harness matters more than the model Holidays: Claude Code + Opus The Anthropic Moment
  12. What is a harness (…) a set of straps and

    fittings used to control an animal (…) •Control
  13. What is a harness (…) a set of straps and

    fittings used to control an animal (…) •Control •Direction
  14. What is a harness (…) a set of straps and

    fittings used to control an animal (…) •Control •Direction •Constraints
  15. What is a harness (…) a set of straps and

    fittings used to control an animal (…) •Control •Direction •Constraints A horse Harness
  16. What is an agent harness It's what the LLM uses

    to navigate the world and complete tasks. An Agent Harness
  17. What is an agent harness It is what the LLM

    uses to navigate the world and complete tasks. •Makes a model useful for real work •From text replies to action An Agent Harness
  18. Should I build a Harness? Short answer: no •You can

    customize it •You can extend it •You can build infrastructure for it
  19. A minimal Agent Agent: an LLM running inside a harness

    •Instruction Layering A typical agent definition
  20. A minimal Agent Agent: an LLM running inside a harness

    •Instruction Layering •Tools A typical agent definition
  21. A minimal Agent Agent: an LLM running inside a harness

    •Instruction Layering •Tools •Permissions A typical agent definition
  22. A minimal Agent Agent: an LLM running inside a harness

    •Instruction Layering •Tools •Permissions •Context Management A typical agent definition
  23. A minimal Agent Agent: an LLM running inside a harness

    •Instruction Layering •Tools •Permissions •Context Management •Loop control A typical agent definition
  24. Make it your own Adapt it to your workflows •AGENTS.md

    •Skills •Commands •MCPs •Event Hooks
  25. Make it your own Adapt it to your workflows Pi

    Agent Extensions API •AGENTS.md •Skills •Commands •MCPs •Event Hooks
  26. Closing the Loop Give the agent senses •Observability enables self

    correction •Design agent friendly tools, CLIs/MCPs
  27. Closing the Loop Give the agent senses •Observability enables self

    correction •Design agent friendly tools, CLIs/MCPs •Favor them over raw text instructions
  28. Closing the Loop Give the agent senses •Machine Readable Output

    •Self describing schemas •Safety rails against hallucinations
  29. Closing the Loop Give the agent senses •Machine Readable Output

    •Self describing schemas •Safety rails against hallucinations •Instrument the repository for agents
  30. Context Management Give the agent a memory •Context is a

    scarce resource •A well crafted AGENTS.md + docs goes a long way
  31. Context Management Give the agent a memory •Context is a

    scarce resource •A well crafted AGENTS.md + docs goes a long way •Progressive disclosure
  32. Context Management Give the agent a memory •Context is a

    scarce resource •A well crafted AGENTS.md + docs goes a long way •Progressive disclosure •Agents ❤ file system + find + grep
  33. Context Management Give the agent a memory •Context is a

    scarce resource •A well crafted AGENTS.md + docs goes a long way •Progressive disclosure •Agents ❤ file system + find + grep
  34. Platform Engineering The tragedy of the commons An economic and

    ecological concept describing how individuals, acting strictly in their own self-interest, deplete or spoil a shared resource, ultimately ruining it for everyone
  35. Platform Engineering Dedicated Agent Infra •Fast moving environment •Agent Evals

    and benchmarking •Skills versioning and distribution •Safely expose company systems for agents •Research and Development
  36. Platform Engineering Dedicated Agent Infra •Fast moving environment •Agent Evals

    and benchmarking •Skills versioning and distribution
  37. Platform Engineering Dedicated Agent Infra •Fast moving environment •Agent Evals

    and benchmarking •Skills versioning and distribution •Safely expose company systems for agents
  38. Platform Engineering Dedicated Agent Infra •Fast moving environment •Agent Evals

    and benchmarking •Skills versioning and distribution •Safely expose company systems for agents •Research and Development
  39. •Mastering Harness engineering • Enables shipping faster • Fewer regressions

    • Lower Organizational drift •No one-size-fits-all •Start experimenting and find out what works best for your team/org Conclusion Experiment & Iterate