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.2.tar.gz (12.5 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.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mini_code_cli-0.0.8.2.tar.gz
  • Upload date:
  • Size: 12.5 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.2.tar.gz
Algorithm Hash digest
SHA256 7550aedfcc2129fc6d289c67b3e85809cc380e00ab9a073c0745918686520e6d
MD5 da9887bbc08012b38a15d785798c04f1
BLAKE2b-256 ce9d90e4d85159d27c611b5995c65fc6db745507d150f2fa825b02e526a7030c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mini_code_cli-0.0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 633cc2a402a1970a88328cd9e5c1d7ede986ae205a0e63721f125a4559eb6000
MD5 e55b734e80eca25c65596326b3790477
BLAKE2b-256 57ffe2480d9a8a4b8a5cedf96b3b22cc592de12a9133e58d89d66ffba71010ac

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