newsfilter
← Interviews
AI Engineer1h 1m

Build a Coding Agent Harness From an Empty Loop — Tejas Kumar, IBM

Tejas Kumar

Tutorial, Workshop
  • Work performed in the session is expected to lead to the creation of a domain-specific "harness," with complexity predicted to reduce from six to three components as companies automate functions and merge components.
  • Harnesses are anticipated to be present in every AI application, evolving from domain-specific variations (e.g., general-purpose, coding, computer use) to a future "super harness" capable of dynamically creating specialized versions by 2027–2028 and beyond, a step viewed as essential for reaching AGI.
  • Critical risks of operating without a harness include model forgetfulness causing state loss, infinite loops generating excessive tokens and compute costs, unauthorized execution of dangerous commands like file deletion, and failure to handle long-horizon tasks, with success rates for 120-step tasks predicted to rise from approximately 25% to 85% when breaking tasks into 10 phases of 12 sub-tasks.
  • Cost management strategies involve auto-compacting context around 90,000 tokens to avoid 5x price increases when prompts exceed 100k tokens with Haiku, utilizing cache control ephemeral to process only fresh tokens, and achieving estimated 2x to 3x cost savings through caching.
  • Operational constraints are predicted to include limits of 25 steps per task and 300k tokens per task, with agents configured to stop generation upon reaching these thresholds to prevent unchecked execution.
  • Guardrails will be implemented via SDKs adding tool definitions to system prompts, with agents configured to request user permission before executing tools listed in an askFirst array and yielding to users before irreversible actions.
  • Management of context windows approaching one million tokens will require defined auto-compaction points to maintain low costs, with the Anthropic Managed Agents API expected to handle compaction and loop logic server-side as a "harness as a service."
  • Software factories are expected to become viable once harnesses achieve reliable and deterministic operation, enabling automated software production without the need for manual code reading or writing by engineers.
  • Companies are advised to purchase durable execution services for reliable loops during network partitions while building custom tool registries and business logic gates, noting that evals must precede user deployment for top reliability.
  • The framework supports transitioning between domains, such as from coding to computer use, by modifying tools and guardrails while retaining core context management, caching, and loop logic, allowing cheaper models like GPT 3.5 Turbo to match the quality of expensive models like Claude Opus when harnessed correctly.
  • Demonstrations of offline functionality using IBM's Granite 4 model via Ollama and specific challenges regarding millions of query parameters in computer use agents highlight the need for custom checkpoints and budgets in complex scenarios.