← all repositories

sanbuphy/nanoAgent

A minimal AI agent (~100 lines of Python) that uses OpenAI function calling to execute bash commands, read files, and write files.

695 stars Python AgentsCoding Assistants
nanoAgent
Not currently ranked — collecting fresh signals.
star history

This repository provides a simple, educational implementation of an AI agent using OpenAI’s function calling feature. The agent operates in a loop where it receives a task, decides which tools to use among bash commands, file reading, and file writing, executes them, and repeats until the task completes. It demonstrates core agent concepts including tool use, iterative execution, and decision-making based on LLM responses.

Frequently asked

What is sanbuphy/nanoAgent?
A minimal AI agent (~100 lines of Python) that uses OpenAI function calling to execute bash commands, read files, and write files.
Is nanoAgent open source?
Yes — sanbuphy/nanoAgent is open source, released under the MIT license.
What language is nanoAgent written in?
sanbuphy/nanoAgent is primarily written in Python.
How popular is nanoAgent?
sanbuphy/nanoAgent has 695 stars on GitHub.
Where can I find nanoAgent?
sanbuphy/nanoAgent is on GitHub at https://github.com/sanbuphy/nanoAgent.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.