aiagent.club
中文
GitHub

nanoAgent

#781 of 964 in the AI Agent Index

5 Score
Real usage
Momentum
Attention
18

About

"The question is not what you look at, but what you see." — Henry David Thoreau

The simplest way to build an agent that can interact with your system.

A minimal implementation of an AI agent using OpenAI's function calling. The agent can execute bash commands, read files, and write files.

If you want to learn more (e.g. what MCP is, and how to fetch tools in a more modern way), see:

The core is just a loop: call model → execute tools → repeat.

Recent hardening keeps the loop running even when a tool call contains malformed JSON arguments or references an unknown tool; those cases are returned to the model as explicit tool errors instead of crashing the agent.

⏺ Like a single seed that…

Across sources

691 Stars
  • Stars 691
  • Forks 246
  • Commits 11
  • Releases 0