I Built an AI Agent Harness in Go
Hello there! I've been using AI tools a lot lately. ChatGPT, Claude, local models with Ollama. They're great for answering questions, but I wanted something that could actually do things. Search th...

Source: DEV Community
Hello there! I've been using AI tools a lot lately. ChatGPT, Claude, local models with Ollama. They're great for answering questions, but I wanted something that could actually do things. Search the web, run code, save notes. Not just talk about it. So I started building nevinho, a personal AI agent that lives in my Discord DMs. You send it a message, it figures out what tools to use, and it gets things done. All from my phone. I wrote it in Go and I want to walk through how it works, what I got right, and what I still need to fix. Why Go I wanted a single binary I could drop on any machine and run. No runtime, no virtualenv, no node_modules. Go gives me that. The standard library covers most of what I needed. HTTP clients, JSON encoding, crypto, process execution. I only pulled in three external dependencies: discordgo for the bot, godotenv for config, and golang.org/x/net for HTML parsing. Go also makes concurrency explicit. Each user gets their own mutex, tool execution has panic re