Skip to main content

Minimal Coding CLI

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mini_code_cli-0.0.8.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

mini_code_cli-0.0.8.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file mini_code_cli-0.0.8.1.tar.gz.

File metadata

  • Download URL: mini_code_cli-0.0.8.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for mini_code_cli-0.0.8.1.tar.gz
Algorithm Hash digest
SHA256 b512596a989dad4080240bfa9b71402b612c851b211eb619e1446a83888569c2
MD5 6306b4060fdd541dadde879b4ccdb5f1
BLAKE2b-256 636f5b90a42f58b65c1f66fc45a5c30184c60de142d3f80887e6d65039b4132d

See more details on using hashes here.

File details

Details for the file mini_code_cli-0.0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mini_code_cli-0.0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb1f5492462ed7bfa11d138fa30bd8c73a6ef807fb0013e70f1ff6d8d280f07d
MD5 5ea3a51e092637b7a2a7addc2f6bb0c0
BLAKE2b-256 80cb58ce59f17460859aa38cac113f3ab0aecf98f876d2064cd13db3404c60a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page