IA
Build your own agent harness, part 7: how do you approve a change you can't see?
Last time, our harness became the security boundary: read-only commands run freely, everything else waits for your approval. And we ended on a frustration. Ask the agent to add a comment to a file, and you get something like this to approve: sed -i '1i // ...' Agent.java Can you tell what the file will look like afterwards? With a one-liner, maybe. With a real edit in the middle of a file, a regular...
10 nov. 2026 β 9 minute(s) readBuild your own agent harness, part 6: the harness is the security boundary
Last time, we gave the model a shell. One bash tool, and our agent could explore, count, compile, run anything. With a comment on top that said it all: "No safeguard yet: the model can run ANY command on this machine." I promised an answer. Here it is π And let's start with what does not work: asking nicely. You could write in the system prompt "never delete anything", "always...
3 nov. 2026 β 11 minute(s) readBuild your own agent harness, part 5: give the model a shell
Last time, one while turned our chat into an agent. It explored a project on its own, file after file, and summarized it. Proud moment π₯² But look at how it did it: with two tools, list_files and read_file. Two Java methods. Want the agent to search for a word? A new method. Count lines? Another one. Run the tests? Yet another one. Every new capability means new code in the harness. Unlessβ¦ a single tool...
29 oct. 2026 β 8 minute(s) readBuild your own agent harness, part 4: one while turns a chat into an agent
Last time, we left things broken. On purpose, I promise π Our model learned to ask for a tool, our harness ran it and sent the result back. One round trip. And when the model wanted a second one, we simply stopped listening: the answer was null. The code comment even said it: "Step 4 turns this if into a while". Well, here we are. And this tiny change is, I think, the most...
28 oct. 2026 β 8 minute(s) readBuild your own agent harness, part 3: the model never runs anything
So far, our harness is a list we resend, and we know what it costs. Nice. But let's face it, our model is still a chatterbox. It produces text, from a history we send, and that's all. Ask it what time it is: it has no idea. Ask it to read a file: it can't. Nothing outside that text exists for it. And yet, the agents I use every day read my...
26 oct. 2026 β 8 minute(s) read