---
title: "Discussion on \"I Built an Agent Harness by Hand. The Loop Was Tiny. The Five Bugs Were Not.\" | Hashnode"
description: "Discussion on \"I Built an Agent Harness by Hand. The Loop Was Tiny. The Five Bugs Were Not.\". An agent harness is a while-loop, a dispatcher, and a growing message list. The loop you can read in one sitting. The bugs in how you hand tool results back are what actually cost me an afternoon."
url: "https://hashnode.com/posts/i-built-an-agent-harness-by-hand-the-loop-was-tiny-the-five-bugs-were-not/6a886120c9a4d7b2af2f401f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I Built an Agent Harness by Hand. The Loop Was Tiny. The Five Bugs Were Not.](https://kartiknvjk.hashnode.dev/i-built-an-agent-harness-by-hand-the-loop-was-tiny-the-five-bugs-were-not?utm_source=hashnode&utm_medium=feed)

An agent harness is a while-loop, a dispatcher, and a growing message list. The loop you can read in one sitting. The bugs in how you hand tool results back are what actually cost me an afternoon.

Aug 21 · 8 min read · kartiknvjk.hashnode.dev  
Read the article

-   [#agent-harness-python](https://hashnode.com/tag/agent-harness-python)
-   [#build-an-agent-harness](https://hashnode.com/tag/build-an-agent-harness)
-   [#coding-agent-harness](https://hashnode.com/tag/coding-agent-harness)
-   [#agent-harness](https://hashnode.com/tag/agent-harness)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

@kartik-nvj

  
[View profile](https://hashnode.com/@kartik-nvj)

AI Developer | Making AI reliable, trustworthy & accessible to everyone | Active community contributor

I write when an idea won't leave me alone 🧠 Building AI agents and the tools to build AI agents. Love connecting AI with other fields and yapping about all of them. Follow along if that's your kind of thing.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
