A small terminal coding agent written in Python
Project description
minacode
A coding agent I use, maintain, and customize, shipped as a small, focused Python package.
Safety
Use at your own risk. minacode can edit files and run shell commands in the environment where it starts. It does not provide sandbox isolation; use a container or VM when needed.
What it is
minacode does not introduce a new kind of coding agent. It combines familiar features — reading and editing files, running commands, follow-ups, sessions, diffs, MCP, and skills — into a tool I use personally.
It works on real repositories, including its own: I use minacode to build and maintain minacode. Everything ships in a small, focused Python package, so I can change the behavior directly whenever I want the workflow to work differently.
minacode is the former nanocode. It started as a single-file agent small enough to be called nano, but has since grown beyond a single file, so it now goes by minacode.
Resuming a saved session with its conversation and tool history.
Highlights
- Prompt-cache aware: stable request prefixes let supported providers reuse work and can reach 90–99% cache hit rates;
/statusshows the reported result. - Code navigation: jump to definitions, callers, and implementations with a searchable code index.
- Live follow-ups: type while the agent works;
Enterqueues a message for the next model step, whileCtrl-Cdiscards a draft or interrupts the task once the input is empty. - Anchored edits: structured edits use
line:hashanchors and reject stale file content. - Resumable sessions: conversation, tool calls, diffs, and working memory survive
-cor--resume. - Built-in diff viewer:
/diffshows the latest round and the net session result. - MCP and skills: connect Model Context Protocol servers and load Markdown instruction packs on demand.
- Provider compatibility: OpenAI-compatible APIs and Anthropic.
Install
Requires macOS or Linux, Python 3.11+, and uv.
uv tool install minacode
minacode --init-config
Add your provider to ~/.minacode/config.toml:
[provider]
active = "default"
[provider.default]
url = "https://api.deepseek.com"
key = "sk-..."
model = "deepseek-v4-flash"
Then run:
minacode
Upgrade with uv tool upgrade minacode.
Links
- Documentation — full usage guide and reference.
- Blog post — why and how it was built.
- code-symbol-index — the code index library minacode uses.
Project details
Release history Release notifications | RSS feed
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 minacode-0.12.0.tar.gz.
File metadata
- Download URL: minacode-0.12.0.tar.gz
- Upload date:
- Size: 131.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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 |
47bfc7381882d8c5faf11add3fab2cedeb15c570b31d141329c9a1cc3e4dfb57
|
|
| MD5 |
0d03b52e47d142445448d456d3d294e3
|
|
| BLAKE2b-256 |
551b50f547b78dc7a97b139bc5b984d0e680ae7fa5179aef93962550148347da
|
File details
Details for the file minacode-0.12.0-py3-none-any.whl.
File metadata
- Download URL: minacode-0.12.0-py3-none-any.whl
- Upload date:
- Size: 132.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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 |
05a0c06c67afeaf49d5d8cfbf06a2d9ca6af71114d09afb04cb01ec746daf2dc
|
|
| MD5 |
e471f03ce05779a1e0f36484326db88d
|
|
| BLAKE2b-256 |
65e7cd889f85a0c5bcc0062c966db369b93a934141637bf6396f04cf478e4341
|