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
- requirements: nodejs, python and uv
- see python package here
- install the tool using
uv tool install mini-pi-agent - 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.1.tar.gz.
File metadata
- Download URL: mini_pi_agent-0.1.1.tar.gz
- Upload date:
- Size: 136.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72896b3cff055164a26dd5958ac3e1287f35a7b0f6f8e56e4f6653cca25c7b27
|
|
| MD5 |
1ec73d93dffb62389135563d5e5664b8
|
|
| BLAKE2b-256 |
37519de3ef2854f48a5ad075ac44dd04aa2762f0b94b7c5851b09662ec64f209
|
Provenance
The following attestation bundles were made for mini_pi_agent-0.1.1.tar.gz:
Publisher:
publish.yml on nik-55/mini-pi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mini_pi_agent-0.1.1.tar.gz -
Subject digest:
72896b3cff055164a26dd5958ac3e1287f35a7b0f6f8e56e4f6653cca25c7b27 - Sigstore transparency entry: 2835011342
- Sigstore integration time:
-
Permalink:
nik-55/mini-pi@3f4381bf47ab3f58036b0b2f4e14efc6525fb918 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/nik-55
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3f4381bf47ab3f58036b0b2f4e14efc6525fb918 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mini_pi_agent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mini_pi_agent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 148.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c955208df122e02f391fad79e90e41a5844eb64c421dc79ce73cce060b9159d
|
|
| MD5 |
724eef6ff4bc864f660fa43e816a3d46
|
|
| BLAKE2b-256 |
53dcf44860bda2293e9454212054aa8f426889ec39021d01d8a4866656441b68
|
Provenance
The following attestation bundles were made for mini_pi_agent-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on nik-55/mini-pi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mini_pi_agent-0.1.1-py3-none-any.whl -
Subject digest:
4c955208df122e02f391fad79e90e41a5844eb64c421dc79ce73cce060b9159d - Sigstore transparency entry: 2835011363
- Sigstore integration time:
-
Permalink:
nik-55/mini-pi@3f4381bf47ab3f58036b0b2f4e14efc6525fb918 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/nik-55
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3f4381bf47ab3f58036b0b2f4e14efc6525fb918 -
Trigger Event:
push
-
Statement type: