r/MachineLearning · · 1 min read

Agent Mini: a minimal, local-first AI agent you can actually read, understand, and extend. [P]

Mirrored from r/MachineLearning for archival readability. Support the source by reading on the original site.

It is about ~3k lines of Python, uses Ollama by default, and ships with practical tools for shell, files, web search, memory, and vision.

No LangChain. No LiteLLM. No big framework stack.
Just asyncio, httpx, and a small ReAct loop tuned for local/smaller models.

An agent that feels useful without becoming a black box. Didn't wanted to dig through framework abstractions to figure out how agents actually work, so built one small enough to read in an afternoon, but practical enough to use for real tasks.

GitHub: https://github.com/mohsinkaleem/agent-mini
PyPI: https://pypi.org/project/agent-mini/

pip install agent-mini agent-mini init agent-mini chat 

Would love feedback from anyone experimenting with local agents.

submitted by /u/Lordrovks
[link] [comments]

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from r/MachineLearning