GitHub 仓库

sanbuphy/nanoAgent

Python 首次收录 2026-03-03 更新于 2026-07-16 查看源 ↗

GitHub 仓库 中按Star排名第 646 / 共 783

689 Star

If you can read ~100 lines of Python, you understand agents.

项目介绍

"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…

摘自 github.com/sanbuphy/nanoAgent

最新指标

Star 689 2026-07-16
Fork 244 2026-07-16
提交 11 2026-07-16
发布 0 2026-07-16
Watcher 1 2026-07-16
开放 issue 1 2026-07-16
开放 PR 0 2026-07-16