Skip to main content

A minimal coding agent cli

No bloat, no dependencies, no tracking, no telemetry...

Purpose: A no bloat, minimal coding cli, to enjoy experimenting and researching...

Getting started:

Installation (from pypi)

pip3 install mini-code-cli

Run agent:

  1. Basic usage: (get local LLM running (e.g. via SGLang or Vllm))
mini-code #run the agent using `localhost:30000/v1` model
  1. Custom API based model:
export MINI_CODE_API_KEY="sk-YOUR_API_KEY"
mini-code --url "https://api.deepseek.com" --model "deepseek-v4-flash"

Auto-mode, Agent.md, Shell Enabled mode and a specific allowed dir:

mini-code --enable-shell --auto-mode --agent-md "./skill.md" --allowed-dir "./" --ask-permission --system-prompt "Your awesome new system prompt..."
  • auto-mode: the agent will continue querying the LLM and executing tools, until no more tool calls are possible
  • agent.md: this will read an agent.md file with the specified name (e.g. ./skill.md)
  • shell-enabled: Be careful: This will allow the agent to execute shell commands. Specifically, there is no permission checks.
  • allowed-dir: this specifies which dirs the agent can read and write from, that does not stop the shell comands!
  • ask-permission: asks user permission before every tool call.
  • system-prompt: you can override the default prompt by using a string. (Not Agent.md is always appended after the system prompt.)
  1. Try a prompt:
Write an agent.md file for me that helps an LLM write efficient triton kernels, given a reference implementation.
  1. Get help:
mini-code --help
Agent loop for interacting with a language model

options:
  -h, --help            show this help message and exit
  --url URL             API host
  --max-tokens MAX_TOKENS
                        Maximum tokens for LLM response
  --temperature TEMPERATURE
                        Temperature for LLM
  --model MODEL         Model name
  --api-key API_KEY     API key for authentication. If not set, it tries to find it in env variable: MINI_CODE_API_KEY.
  --cache-dir CACHE_DIR
                        The cache dir for the session histories.
  --system-prompt SYSTEM_PROMPT
                        Replace system prompt, with a custom system prompt.
  --auto-mode           Whether to run the agent in `auto-mode'. Or default: `manual-mode'.
  --agent-md AGENT_MD   If the agent should use an agent-md file... (it will added after system message.)
  --prompt PROMPT       An initial prompt from the user...
  --ask-permission      Ask for permission before any tool call.
  --allowed-dir ALLOWED_DIR
                        Allowed directory for file operations
  --enable-shell        Allow shell execution. Default: False

(C) Nikolai Rozanov, 2026 - Present

Release files for mini-code-cli 0.0.8.2

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

Source distribution (sdist)

Source distribution for mini-code-cli 0.0.8.2
File Size Uploaded
mini_code_cli-0.0.8.2.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mini-code-cli 0.0.8.2
File Interpreter ABI Platform
mini_code_cli-0.0.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 25.6 kB

Release files / mini_code_cli-0.0.8.2.tar.gz

Download URL mini_code_cli-0.0.8.2.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7550aedfcc2129fc6d289c67b3e85809cc380e00ab9a073c0745918686520e6d
BLAKE2b-256 checksum
How to use checksums
ce9d90e4d85159d27c611b5995c65fc6db745507d150f2fa825b02e526a7030c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / mini_code_cli-0.0.8.2-py3-none-any.whl

Download URL mini_code_cli-0.0.8.2-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
633cc2a402a1970a88328cd9e5c1d7ede986ae205a0e63721f125a4559eb6000
BLAKE2b-256 checksum
How to use checksums
57ffe2480d9a8a4b8a5cedf96b3b22cc592de12a9133e58d89d66ffba71010ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.0.8.2 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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