Mini pi
A minimal coding agent in python.
For the past month I have been exploring how to create an agent from scratch without frameworks, and I have also been digging into how to do evaluations. You can see the experiment artifacts here: https://gitlab.com/nik-55/llm-systems
Based on what I learned there, I want to build a harness that works and stays small. The goal is to keep it readable. Currently it follows the tau architecture
The current state:
- No AI slop, and around 1700 lines of code
- Streaming responses
- 4 tools (read, write, bash, edit)
- Sandboxing using bwrap on Linux
- Interruption handling
- Session persistence
- A few basic commands (/clear, /session, /resume, /exit)
- REPL only for now
Setup
- clone the repo
- install the tool using
uv tool install . - export the environment variables:
export OPENAI_API_KEY=
export OPENAI_BASE_URL=
export MODEL=
- run
minipifrom any of your project
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mini_pi_agent-0.1.0.tar.gz.
File metadata
- Download URL: mini_pi_agent-0.1.0.tar.gz
- Upload date:
- Size: 123.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc5f536c646b44568ad7e71b46c2b4cfc306eb982a332d63ab602d6a319b4d8f
|
|
| MD5 |
0ad213ba8c743f80098c0bbf24a8b571
|
|
| BLAKE2b-256 |
0003601798f54b9ac934521602e22a979115e3133b932e810fb928c58ddde641
|
File details
Details for the file mini_pi_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mini_pi_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 133.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc67bc19cdb2c5494192b78ba744e87e53dea39c6f20f34af10804f466e5d8d6
|
|
| MD5 |
d0cd8bd2f1ec0a19bd661db74b8f782f
|
|
| BLAKE2b-256 |
cfba3317e86a77193bf49215c9040e7e4cb939aa07ef95eb5248529de9a55615
|