Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

minacode

minacode editing code and running tools

A terminal coding agent I use, maintain, and customize, shipped as a self-contained 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 one self-contained 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; it is no longer small, or a single file, so it now goes by minacode.

minacode resuming a saved session

Resuming a saved session with its conversation and tool history.

Highlights

  • Worker delegation: hand a bounded task to a second in-process session on its own provider with /worker; the Delegate tool keeps worker context across delegations until reset.
  • Forced reply language: /language or [runtime] language pins the reply language for the session.
  • Smarter retries: exponential backoff with jitter and provider Retry-After, shown as a live retrying phase with a countdown.
  • Prompt-cache aware: stable request prefixes let supported providers reuse work and can reach 90–99% cache hit rates; /status shows the reported result.
  • Code navigation: jump to definitions, callers, and implementations with a searchable code index.
  • Live follow-ups: type while the agent works; Enter queues a message for the next model step, while Ctrl-C discards a draft or interrupts the task once the input is empty.
  • Anchored edits: structured edits use line:hash anchors and reject stale file content.
  • Resumable sessions: conversation, tool calls, diffs, and working memory survive -c or --resume.
  • Built-in diff viewer: /diff shows the latest round and the net session result.
  • MCP and skills: connect Model Context Protocol servers and load Markdown instruction packs on demand.
  • Provider-side web search: opt in to a provider's own search tool (OpenAI, Qwen, Anthropic, Z.AI) and see each search and its sources in the transcript.
  • 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.

Metadata

Release files for minacode 0.36.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 minacode 0.36.0
File Size Uploaded Provenance Actions
minacode-0.36.0.tar.gz 376.3 kB Without provenance Details for minacode-0.36.0.tar.gz

Built distribution (wheel)

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

Total release size: 787.0 kB

Release files / minacode-0.36.0.tar.gz

Download URL minacode-0.36.0.tar.gz
Size 376.3 kB
Tags Source
SHA-256 checksum
How to use checksums
add03b3d06216b286d63b42e84f9987efefb6c951cd5c55fd0a74641d4fcadac
BLAKE2b-256 checksum
How to use checksums
68d1d2de47ed527c4c101282b7c89c6e7533c56adec8c8ae943f9a10cd64fb2f
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / minacode-0.36.0-py3-none-any.whl

Download URL minacode-0.36.0-py3-none-any.whl
Size 410.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
742d7c64186768ae5c899ef200de985eff4bb5865371b5dcaab9e92fac825deb
BLAKE2b-256 checksum
How to use checksums
ff879cb3897f71536f50723a84089509fdb29333b07fa5bb75a379d4354d54c2
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for minacode 0.36.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
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