CORE AGENTIC LOOP
ProtoAgent streams model output, executes tools, appends results, retries transient failures, and keeps going until the model can answer directly.
█▀█ █▀█ █▀█ ▀█▀ █▀█ ▄▀█ █▀▀ █▀▀ █▄ █ ▀█▀ █▀▀ █▀▄ █▄█ █ █▄█ █▀█ █▄█ ██▄ █ ▀█ █
Coding agents can feel like magic. ProtoAgent is a lean, readable implementation that pulls back the curtain, giving you the blueprint to understand and build your own.
Small enough to understand in a 20 minutes, simple enough to build yourself in an afternoon, usable enough to try out on an actual project.
ProtoAgent streams model output, executes tools, appends results, retries transient failures, and keeps going until the model can answer directly.
It can read, write, and edit files, search a repo, run shell commands with approvals, fetch docs from the web, and keep a TODO list while it works.
Writes, edits, and non-safe shell commands go through inline approvals, while a small set of dangerous shell patterns stays blocked outright.
Sessions are saved to disk with message history and TODOs, so you can quit, come back later, and keep working without starting from scratch.
Skills let you package project-specific instructions, and MCP lets you connect external tools without hardcoding them into the app.
Focused research can be pushed into child runs so the parent conversation stays lighter and easier to follow.