agentloop
AgentLoop is a Claude agent starter project built on Anthropic's official SDK and Next.js. Its core code is about 150 lines and fully implements streaming output and the tool-calling loop. It does not rely on any framework, nor does it include a huge SaaS template; after cloning, you can deploy it by adding an API key. The project uses the MIT license and provides two example tools (get current time, calculate) as well as a single-function extension point, making it easy for developers to add custom tools. In addition, the author also provides a free Agent Token Profiler tool for analyzing the token consumption of an agent in each round of conversation, and has published research on the token cost of open-source AI agents. AgentLoop Pro is a paid version that provides fixes for eight common problems in production environments, using a pay-as-you-go model starting at $9.