AI Engineer World's Fair 2026

Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl

Dru Knox· Tessl20:31

Loading slides…

Read the talk

Harness Engineering: How to Build a Software Factory

Selected presentation frame from Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl at 35 secondsOpen full source frame
Opening slide: “Harness engineering — The new core skill for agentic developers.”

Dru Knox explains how cheap development checks, deeper PR review and feedback-driven improvements can turn coding agents into a system engineers build and maintain—one workflow at a time.

From a talk by Dru Knox

At a glance

Ideas worth remembering

  • Autonomy measures how much correction an agent needs; automation measures how much work can proceed without manual verification. Improve both while tracking product quality.

  • Run cheap checks during development, expensive checks on PRs, and a meta loop across logs, reviews and user feedback to improve future attempts.

  • Shared issues, sandboxed agent runs and PR comments make human corrections available for later analysis; reusable skills distribute what the team learns.

  • A recurring task such as a flaky-test hunt can become a skill and an automated workflow, reducing the separate effort required to start each run.

When agents write the product, engineers build the factory

A coding agent can finish a task correctly and still require a human to inspect every line. That distinction is the starting point for Dru Knox, head of product and design at Tessl. His approach to harness engineering assumes a team already uses coding agents, often in several sessions at once, and gets reasonably good results on easy and medium-complexity tasks. The next problem is making that success repeatable without constant intervention.

Knox uses “software factory” for an agentic system in which agents create everything shipped to users, while engineers build the system that produces it. This is a working definition, rather than a settled industry term. Engineering work shifts toward internal tools, workflows and checks that make the factory more autonomous, more automated and better at producing useful software.

Selected presentation frame from Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl at 175 secondsOpen full source frame
Slide defining a software factory as an agentic system whose final product is created by agents.

Three dimensions explain the progression:

  • Autonomy: How often must a person correct the code or nudge the agent toward the right approach?
  • Automation: How much work can proceed without a person manually reviewing and verifying the result? An agent that regularly solves tasks in one attempt can still have low automation if nobody trusts its output yet.
  • Quality: How good is the resulting product? User analytics, test quality and test coverage remain relevant even as the method of producing software changes.

The intended order is to improve autonomy, then automation, while holding quality steady. The eventual payoff, in Tessl’s view, is higher quality: additional capacity can go toward neglected bug fixes, better tests, architectural refactors and experiments. That is an expectation about what a factory enables, rather than a demonstrated quality gain in this recording. It depends on using the new capacity for those improvements, rather than spending it entirely on more features.

The same division of work can broaden participation. People outside technical roles can contribute ideas and explore them through the system, while engineers concentrate on the machinery everyone uses to ship. The factory therefore changes collaboration as well as coding speed.

0:120:42
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

0:12 · section reference included

Put checks where their cost makes sense

Harness engineering builds the loops that automate work and improve the factory. Knox also notes the emerging name “loop engineering.” The useful distinction is where each loop runs: during development, after a pull request appears, or across the history of many attempts.

  • Inner loop—correct while building: Before the agent opens a PR, checks should be fast and cheap enough to run repeatedly. They catch problems and guide corrections without waiting for a human. This primarily improves autonomy.
  • Outer loop—build confidence in the PR: Once a PR exists, more expensive and exhaustive checks can replace work a reviewer would otherwise do. Agentic QA and mutation testing to examine test-suite quality are Knox’s examples. The agent then iterates on their results.
  • Meta loop—improve future attempts: Outside an individual development task, inspect agent logs, PRs, issues and user feedback. Find mistakes that reached users or required human correction, then change the inner and outer loops to catch them earlier.

Where does a correction go after the current PR is fixed? The diagram separates feedback that repairs this attempt from feedback that changes future attempts. Inner and outer checks help the agent finish the current work; the meta loop uses the accumulated evidence to improve those checks. Without that return path, the team can keep correcting the same failure.

Selected presentation frame from Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl at 492 secondsOpen full source frame
Diagram of inner, outer and meta loops, with the meta loop highlighted.

Repair the attempt, then improve the loops

Inner loopCurrent attempt — The agent builds and runs cheap, frequent checks before opening a PR.
Outer loopCurrent attempt — Run expensive PR checks; the agent iterates on their results.
Logs, PRs, issues and user feedbackAcross attempts — Capture escaped mistakes and human corrections.
Meta loopAcross attempts — Find recurring failures and improve the development and review loops.
Cheap checks operate during development; deeper checks operate on PRs. Evidence from both, together with user feedback, guides changes to future checks.
Read the diagram as text
  • Inner loop. Current attempt — The agent builds and runs cheap, frequent checks before opening a PR.
  • Outer loop. Current attempt — Run expensive PR checks; the agent iterates on their results.
  • Logs, PRs, issues and user feedback. Across attempts — Capture escaped mistakes and human corrections.
  • Meta loop. Across attempts — Find recurring failures and improve the development and review loops.
  • Inner loop → Outer loop: Open the PR.
  • Inner loop → Logs, PRs, issues and user feedback: Agent logs.
  • Outer loop → Logs, PRs, issues and user feedback: PRs and human corrections.
  • Logs, PRs, issues and user feedback → Meta loop: Inspect failures.
  • Meta loop → Inner loop: Improve early correction.
  • Meta loop → Outer loop: Improve PR checks.
6:166:46
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

6:16 · section reference included

The improvement work competes with the feature deadline

These loops are easy to name and difficult to maintain. Practices change quickly enough that keeping up can become a research job: read papers and blogs, adopt an approach, then discover that it has become an anti-pattern. A team needs time for revisiting its methods, rather than treating its first harness as finished.

A more persistent problem is scheduling. Agent failures emerge while a feature is underway, and neither their form nor the time needed to fix them is predictable. Improving the harness competes directly with shipping that feature. Skip the improvement and the agent stays stuck; invest in it and the deadline may slip. This explains why a useful correction can remain a one-off human intervention instead of becoming a reusable workflow.

Selected presentation frame from Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl at 632 secondsOpen full source frame
Slide listing challenges including unplanned work, competing shipping demands and poor signal visibility.

Even a team that makes time may lack the evidence it needs. The failure history sits in local agent logs, on individual machines or in someone’s memory. Improvement loops require workflows that save those interactions in places other tools can inspect.

8:599:29
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

8:59 · section reference included

Make agent work visible before trying to optimize it

Knox organizes the implementation into three layers: a control plane, agent-ready infrastructure and improvement loops. These are his proposed categories and ordering. The control plane comes first because the rest of the system needs a readable history of what agents and humans did.

Selected presentation frame from Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl at 738 secondsOpen full source frame
Slide introducing three layers for building a software factory: control plane, agent IT and improvement loops.

At Tessl, work begins as an issue, goes to a headless agent running in a sandbox, and becomes a PR. Engineers correct the agent through PR comments. Human involvement remains, but it now leaves a record: the original request, the proposed implementation and the corrections are available for later analysis. Moving the conversation changes what the meta loop can learn.

The control plane needs three capabilities:

  • Start work: Track issues and use them to initiate agent tasks.
  • Review work: Give engineers a shared review interface; GitHub PR review is the straightforward example.
  • Distribute improvements: Store and share workflows or playbooks through a skills registry or a shared GitHub repository, so a correction can help agents beyond the original session.
11:1611:23
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

11:16 · section reference included

Give the agent the environment the work actually requires

The second layer is “agent IT.” Moving work from a developer’s machine into an agent environment exposes dependencies that local setup has concealed. A CLI may exist without usable credentials. An internal service may lack appropriate API access. The agent may need to click through the product or execute the code it changes. Knox’s warning is blunt: “it’s worse than you think.”

The work spans documented company workflows, access to internal services, production logs and a suitable execution environment. Each brings its own decisions: service access requires governance, while production-log access raises compliance questions. These requirements are company-specific and become visible as agents try to produce code without someone stepping in.

Once that foundation works, improvement loops become the ongoing investment. Scheduled repository sweeps can find problems; playbooks can encode recurring development practices; repeated tasks can become automations. The important return path is from observed output to a changed workflow. If an agent makes a mistake while adding a CLI feature, update the CLI-feature playbook so later attempts receive the correction before they repeat it.

12:5113:21
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

12:51 · section reference included

Turn a recurring flaky-test hunt into an automated workflow

Tessl’s product approach is to make this transition through small, repeatable improvements. Knox’s image for the alternative is “one massive snake eating the moose all at once.” Tessl aims to carry the burden of keeping harness practices current while letting teams choose components for their own stack. The techniques described earlier do not require Tessl.

For the control plane, Tessl provides a skills registry that publishes and versions workflows, with security and quality reviews and controls over who can publish or update them. At presentation time, its issue-tracker integration focused on Linear tickets triggering GitHub workflows. Code-review tools support both general standards and targeted checks; Knox describes a registry workflow being assessed for security, quality and its effect on agent output.

Tessl Agent addresses the scheduling problem by inspecting PRs and issues for repeated work. The concrete example is a weekly hunt for flaky tests. Instead of requiring someone to notice the repetition and separately make time to automate it, the agent identifies the pattern, turns the workflow into a skill and sets it up in a GitHub Action. The observable change in this example is how the task starts: a recurring manual activity becomes an automated workflow. It is an illustrative workflow, without a reported before-and-after reliability result.

Selected presentation frame from Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl at 1089 secondsOpen full source frame
Tessl Agent slide showing a code-editor example and a list of improvement-loop tasks.

How does that discovered task become an agent run that can produce a reviewable change? The diagram follows the workflow from historical evidence to a skill, then to execution and a PR. The skill carries the procedure; the automation supplies the recurring execution; the sandbox and GitHub access let the agent perform the work and discuss its result.

Tessl Launch runs a skill as an automated workflow with a selected coding agent. Knox names Codex, Claude Code and Gemini as options for coding tasks, alongside Tessl Agent. Execution happens in a sandbox with appropriate permissions, can be long-running, and uses GitHub tokens to open PRs and respond to comments. This connects the reusable procedure to the same shared review process that made agent work inspectable in the first place.

Prebuilt maintenance workflows cover architecture quality, code duplication, test-suite quality and security vulnerabilities. Their role is to lower the effort needed to begin regular scans and receive proposed improvements. The adoption unit stays small: find an improvement, codify one workflow, distribute it, then run it repeatedly.

From repeated work to an automated agent run

PR and issue historyTessl Agent finds the recurring weekly flaky-test hunt.
Workflow skillCodify the repeated procedure for reuse.
Automated workflowSet up a GitHub Action; select an agent for execution.
Sandboxed agentRun with appropriate permissions and GitHub tokens.
PR and commentsThe agent proposes changes and responds to review.
The flaky-test example illustrates discovering a recurring task and packaging it as a skill; Launch supplies agent execution and PR interaction.
Read the diagram as text
  • PR and issue history. Tessl Agent finds the recurring weekly flaky-test hunt.
  • Workflow skill. Codify the repeated procedure for reuse.
  • Automated workflow. Set up a GitHub Action; select an agent for execution.
  • Sandboxed agent. Run with appropriate permissions and GitHub tokens.
  • PR and comments. The agent proposes changes and responds to review.
  • PR and issue history → Workflow skill: Identify and codify repeated work.
  • Workflow skill → Automated workflow: Automate the procedure.
  • Automated workflow → Sandboxed agent: Run the selected agent.
  • Sandboxed agent → PR and comments: Open a PR and respond.
15:2115:51
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

15:21 · section reference included

Measure less intervention alongside product quality

The closing metrics turn the factory idea into something a team can track:

  • Fewer manual takeovers: Agents need less rescue to complete the work.
  • Fewer human PR comments: Less corrective review is needed before accepting changes.
  • More PRs initiated without human input: The system starts more work itself, indicating greater automation.
  • Steady, then improving quality: The product must continue to meet its quality standard as human involvement falls, with improvement as the subsequent goal.
Selected presentation frame from Harness Engineering: How to Build a Software Factory — Dru Knox, Tessl at 1195 secondsOpen full source frame
Closing slide listing manual takeovers, human PR comments, automated PRs and quality signals.

Read these measures together. Fewer comments can indicate progress when checks provide the confidence reviewers previously supplied; quality measures determine whether that confidence is justified. The practical path is one workflow at a time, with the saved history of each attempt helping improve the next.

19:393:30
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

19:39 · section reference included

Resources

Transcript download
Full transcript

Loading transcript…