Harness pode definir capacidade e segurança de agentes de IA
Uma camada que estrutura os agentes Na palestra de abertura da QCon San Francisco 2026, Manju Rajashekhar, fundadora e CEO da Mad Labs, defendeu que o harness em torno de um modelo de IA determina o que um agente consegue fazer e com que segurança. A camada organiza o comportamento gerado pelo modelo para torná-lo útil, confiável e repetível. Rajashekhar comparou essa arquitetura à separação…
Manju Rajashekhar, CEO of Mad Labs, argued during her opening speech at QCon San Francisco 2026 that the harness surrounding an AI model determines what actions an agent can perform and how securely it can do so. She likened this architecture to the historical separation between applications and operating systems, where applications define behavior and the operating system abstracts hardware. For AI agents, she argued that software needs a dedicated layer to organize this process.
The harness, she explained, brings together tasks, context, tools, state, permissions, feedback loops, and a definition of completion. The model provides the capability, while the harness layer organizes how it will be applied. This means that the outcome can change even if the model remains the same. Context operates as virtual memory, gathering what the model needs to decide within a context window limit.
Recommendations suggest providing a reference to necessary material instead of dumping the entire content. The interface offered to the agent also limits its effective capacity.
Rajashekhar cited a SWE-agent study where GPT-4 Turbo solved 11.0% of SWE-bench Lite problems with a simple terminal and 18.0% with a designed agent interface. During execution, the harness functions as a process system and permission system, imposing limits through isolation and restricted credentials. For instance, a testing agent might have database access without reaching production.
The feedback mechanism acts as return codes, requiring the system to distinguish between failed tests, unexecuted tests, and unknown results. Without this separation, the model has to guess what happened. In a 20-step task with a 95% success rate per step, the chance of completing everything correctly is 36%; detecting 80% of errors raises the result to 82%. The same model can yield different results when entering unproductive cycles. Rajashekhar suggested testing a change in the harness before swapping models.
The DeepSeek-V4.1-Flash example showed results ranging from 65.5% to 74.2% on DeepSWE with the same model evaluated across eight different harnesses. The minimum configurations yielded the best results. In another study, Qwen3.8-27B solved 66.8% of LiveCodeBench's 100 difficult problems with a single call. In a manager-agent-cycle structure with a shared registry, the rate reached 92.4%. These examples demonstrate how execution design can influence performance.
Permissions are part of the security layer. Rajashekhar contrasted an agent correcting tests with another that deletes them to pass: the difference lies in the authority granted, not the ability. She cited a July 2026 OpenAI evaluation agent incident that reached Hugging Face's isolated open-source code area for about two and a half days due to administrative access.
She also questioned the use of human approvals as the main barrier, noting that people approve most permission requests, making human review ineffective when fatigued. An architecture that needs to keep up with models' improvements means harness premises become outdated. Systems from Anthropic for long-duration applications needed to restart context when Claude Sonnet 4.5 approached its limit, which decreased with Opus 4.5.
LangChain moved checks to the harness that the model ignored, raising GPT-5.2-Codex from 52.8% to 66.5% on Terminal-Bench 2.0 without changing the model.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to