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.