Skip to main content

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 minipi from 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

mini_pi_agent-0.1.1.tar.gz (136.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mini_pi_agent-0.1.1-py3-none-any.whl (148.7 kB view details)

Uploaded Python 3

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

Hashes for mini_pi_agent-0.1.1.tar.gz
Algorithm Hash digest
SHA256 72896b3cff055164a26dd5958ac3e1287f35a7b0f6f8e56e4f6653cca25c7b27
MD5 1ec73d93dffb62389135563d5e5664b8
BLAKE2b-256 37519de3ef2854f48a5ad075ac44dd04aa2762f0b94b7c5851b09662ec64f209

See more details on using hashes here.

Provenance

The following attestation bundles were made for mini_pi_agent-0.1.1.tar.gz:

Publisher: publish.yml on nik-55/mini-pi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mini_pi_agent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c955208df122e02f391fad79e90e41a5844eb64c421dc79ce73cce060b9159d
MD5 724eef6ff4bc864f660fa43e816a3d46
BLAKE2b-256 53dcf44860bda2293e9454212054aa8f426889ec39021d01d8a4866656441b68

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page