"AI agent" gets thrown around so much I figured I should just build one instead of reading more threads about it. The core idea turned out to be small: you put Claude in a loop and hand it some tools. It picks a tool, you run it, you hand back the result, and it keeps going until it has an answer.

Code is here if you want to skip ahead: claude-research-agent.

What it can do

Give it a task and it works out the steps on its own. Mine can:

search the web (no API key for this part, it just hits DuckDuckGo's HTML page)