AI Engineer Code Summit 2026

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

Tejas Kumar· IBM1:01:19

About this talk

Tejas Kumar builds a TypeScript coding agent that initially cannot read its own repository. Adding tools makes it capable enough to delete the project. The workshop develops permissions, usage budgets, context management and task phases, then puts the same machinery to work with a local IBM Granite model and a browser.

  • This harness uses two loops. The outer loop accepts tasks. The inner loop calls the model, executes requested tools and appends their results until the model stops requesting tools.
  • Enforce permissions and usage budgets in application code. Return refusals and tool failures to the model so it can respond to what actually happened.
  • Limit oversized tool results, cache repeated prompt prefixes and choose a compaction threshold that accounts for pricing. Truncation and compaction change what the model sees, while caching can make unchanged history cheaper to process.
  • A subagent can be a tool that runs the existing agent loop with a fresh history. A focused brief and a short, checked result give the lead agent a way to divide longer jobs.
  • Changing the model and changing the domain are separate engineering decisions. Granite reused the file tools locally. Browser automation reused the surrounding machinery with a different registry and permission policy.
  • Consider buying durable execution while retaining the tools, approval rules, task phases and budgets that encode your business. Evaluate actual outcomes before trusting the resulting system to work unattended.

Chapters

  1. 0:00Introduction and workshop goal
  2. 3:00Tools, context and guardrails
  3. 6:26What fails without a harness
  4. 8:28Why harnesses are domain specific
  5. 11:18Starting with an empty conversation loop
  6. 17:09Adding file access and the agent tool loop
  7. 22:09Building a tool registry
  8. 26:26Usage budgets and permission gates
  9. 32:33Context management, caching and compaction
  10. 38:24Comparing cached and uncached requests
  11. 42:19Phases and subagents for longer tasks
  12. 45:50Running the harness locally with IBM Granite
  13. 48:40Changing domains: browser tools
  14. 52:15Build versus buy: managed harnesses
  15. 56:18Practical takeaways and evaluation
  16. 58:46Software factories and future harnesses
Transcript download
Full transcript

Loading transcript…