Skip to main content

minu

A very small agent harness for local models. One tool (sh) and a system prompt of about 86 tokens.

uv tool install minu              # or: pipx install minu   (needs Python 3.13; uv fetches it for you)
minu                              # run it in any project folder

Upgrade with uv tool upgrade minu, remove with uv tool uninstall minu. Sessions are saved in ~/.minu/.

minu                              # opens the model picker
minu --hf LiquidAI/LFM3-1.7B-GGUF
minu --mlx mlx-community/Qwen3-1.7B-4bit
minu --ollama gemma3:4b
minu --url http://localhost:8080           # server that's already running

-y runs commands without asking. --native uses the server's tool-call API instead of ```sh blocks.

Models

ctrl+o (or /model) opens the picker. It has:

  • the GGUF and MLX models in your Hugging Face cache, plus your Ollama models
  • ⬇ download from Hugging Face: search, or paste org/repo, then pick a size. For vision repos the mmproj file is downloaded too.
  • ⬇ pull from Ollama: any name from ollama.com/library, with progress shown in the status bar.

Switching models stops the old server and starts the new one. The chat stays.

✕ delete a model (in the picker, or /delete) lists your downloaded models with their size on disk. It asks before deleting (the default is "keep it"). For GGUF it removes that quant, plus the whole repo (mmproj, cache entry) once no weights are left in it; MLX repos are removed whole; Ollama models go through ollama's API. A loaded model is stopped first. esc cancels a download.

If something is missing, minu offers to install it (it always asks first):

needed for tool install
GGUF llama-server brew install llama.cpp
MLX (Apple Silicon only) mlx_lm uv tool install mlx-lm
HF downloads hf uv tool install huggingface_hub
Ollama ollama brew install ollama / ollama.com install script

If Ollama is installed but not running, minu starts ollama serve itself and stops it when you quit.

Images

Put an image path in your message (dragging a file into the terminal pastes its path): what's in ~/Desktop/shot.png? The image is shown in the chat and sent to the model. That needs a vision model: GGUF repos with an mmproj (marked [vision] in the picker), or an Ollama vision model such as gemma3:4b. MLX models are text only. Image files the model mentions in its answer are shown too, and /view path.png shows any image. Images render as real pixels in Kitty, Ghostty, WezTerm and iTerm2, and as colored blocks in other terminals.

Sessions

Each chat is saved to ~/.minu/sessions/<project>/<timestamp>.jsonl (one folder per project path, e.g. -Users-me-code-app): a {"meta": …} line, then one message per line. Set MINU_HOME to move ~/.minu. Sessions from older versions in ./.minu/sessions still show up in /resume. /resume opens a session picker · minu -c continues the latest one · minu -r FILE opens a specific file · /new (or ctrl+n) starts a new session.

Keys

enter send · ctrl+j newline · ctrl+o model · ctrl+y auto-run · esc stop · ctrl+n new session · ctrl+c quit Type / for a menu of commands (↑/↓ to move, tab to complete, enter to run, esc to close): /new /model /delete /resume /search <query> /fetch <url> /view <img> /auto /clear /exit

Web

The model can search on its own (minu-search "q", minu-fetch URL in its shell). You can also do it yourself: /search <query> gets results and the model answers from them; /fetch <url> reads a page and the model summarizes it. Search tries DuckDuckGo first, then Wikipedia's API. DuckDuckGo sometimes rate-limits; for search that never gets blocked, point minu at your own SearXNG instance: MINU_SEARXNG=http://localhost:8888. Env: MINU_CTX (llama.cpp context, default 16384), MINU_HOME (default ~/.minu), OLLAMA_HOST, HF_HOME. Server log: ~/.cache/minu/server.log.

Development

git clone https://github.com/mr-jones123/minu && cd minu
uv tool install -e .              # global `minu` that runs your checkout (changes to src/ apply right away)
uv run minu                       # or run it from the repo
uv build                          # sdist + wheel into dist/

Releasing to PyPI

Publishing runs in GitHub Actions (.github/workflows/publish.yml) with PyPI Trusted Publishing, so no token is stored. One-time setup: on pypi.org → Your account → Publishing → Add a pending publisher: project minu, owner mr-jones123, repo minu, workflow publish.yml, environment pypi. Then for each release:

uv version --bump patch           # or minor / major; edits pyproject.toml
git commit -am "release v$(uv version --short)" && git tag v$(uv version --short) && git push --follow-tags

CI builds, smoke-tests the wheel, checks the tag matches the version, and uploads.

Code layout (src/minu/, the minu package)

file what it does
cli.py command-line flags, plus minu search / minu fetch for the agent's shell
config.py paths, limits, system prompts, banner
app.py the TUI: layout, status bar, input handling
agent.py agent loop: stream a reply, run its command, send the output back
model_flows.py model picker, HF/Ollama downloads, install offers, loading
sessions.py saving and resuming ~/.minu/sessions/<project>/*.jsonl
server.py starting llama-server / mlx_lm / Ollama and streaming chat
models.py finding local models and searching Hugging Face
tools.py the sh tool, web search/fetch, parsing commands from replies
images.py attaching images and showing them
installs.py finding tools and their install commands
widgets.py input box, list picker, text prompt

License

MIT, see LICENSE.

Metadata

Release files for minu 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minu 0.1.0
File Size Uploaded Provenance Actions
minu-0.1.0.tar.gz 24.2 kB Without provenance Details for minu-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for minu 0.1.0
File Interpreter ABI Platform Actions
minu-0.1.0-py3-none-any.whl Python 3 none any Details for minu-0.1.0-py3-none-any.whl

Total release size: 53.2 kB

Release files / minu-0.1.0.tar.gz

Download URL minu-0.1.0.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
60323f179abefed175f92c63060c8f1b8addb6eaebb43d4ed43ab57e51ee1a71
BLAKE2b-256 checksum
How to use checksums
9f7f90b61c0f2037392e76511fe9cc7099e75cddfa7e91489b421e7183709b3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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":true}

Release files / minu-0.1.0-py3-none-any.whl

Download URL minu-0.1.0-py3-none-any.whl
Size 28.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c656b8272152d1be3f73f4a85b49d741b60ed733720862236a2b851acc005c57
BLAKE2b-256 checksum
How to use checksums
3679ffce22a4a258a61ae1cf8df0c13b0275f255f9c76aca3668e5642ff7a86e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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":true}

Security for minu 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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