e10nMa2k/cc-mini
A Python terminal harness for API-backed coding agents with local tools.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
cc-mini is a Python terminal agent that runs tools locally and delegates inference to a model API. The cc-mini entry point maps to tui.app:main; tui/query.py handles submission and streaming display. In core/engine.py, the engine streams responses, dispatches model-requested tools through the tool and permission layers, and feeds results back into subsequent model turns.
core/llm.py houses the Anthropic and OpenAI clients. The package declares anthropic, openai and httpx, with prompt_toolkit for terminal input, rich for rendering and python-dotenv for environment configuration. The Tool/ToolResult interface separates implementations in src/tools from the loop. Skills and worker orchestration live in src/features; the exposed extension points are Python tools and user or project skills, not a verified MCP client or server.
Key Capabilities & Differentiators
The REPL has streaming output, history and slash-command completion; -p supports print-and-exit use. The nine base tools cover file reads and searches, edits and writes, Bash, user questions and plan-mode transitions. Under default permissions, reads and searches are auto-approved; edits, writes and Bash require confirmation. Plan mode delegates parallel exploration to read-only subagents, while coordinator mode adds Agent, SendMessage and TaskStop for background workers.
Sessions auto-save and can be resumed with /resume; automatic compaction manages the active context near token limits, while KAIROS handles cross-session memory. User and project skills provide shortcuts such as /review, /test, /commit and /simplify. The two API paths are native Anthropic and OpenAI-compatible; an OpenAI-compatible gateway must work with the streaming and tool-call behavior the loop depends on, not just plain-text completion.
Trade-offs & Limitations
Compared with adopting Claude Code, the practical reason to choose cc-mini is to inspect or change the Python tool loop, add project skills or route requests through a compatible gateway. Similar commands and workflows do not make it a drop-in replacement. Iterative tool calls and parallel workers can increase request volume and token use; actual latency and cost depend on the endpoint, model and task.
Permission prompts are not a filesystem sandbox: reads are allowed by default, and --auto-approve removes confirmation prompts. Bubblewrap is a separate Bash control, not evidence that every tool or worker is sandboxed. Files read locally can become model context sent to the configured endpoint, and retained sessions and memory need their own data-handling rules. No license is specified in the supplied metadata; verify permission before production adoption or redistribution.
Hardware & Deployment Guide
Use Python 3.11 or later: pyproject.toml sets that minimum despite the setup text mentioning 3.10. An editable checkout can be installed with pip install -e ".[dev]"; the dev extra includes pytest and pytest-asyncio. Configure ANTHROPIC_API_KEY for Anthropic, or set CC_MINI_PROVIDER=openai and OPENAI_API_KEY for an OpenAI-compatible provider, with OPENAI_BASE_URL for a custom gateway and CC_MINI_MODEL when overriding the model.
The CLI, tool execution and state are local; model turns still need a reachable endpoint. A self-hosted compatible gateway is an option, but this package does not itself provide offline inference. There is no local VRAM requirement when inference is remote; shell commands and parallel workers still consume host resources. Bash sandboxing depends on Bubblewrap (bwrap). Sessions, memory and plans are stored under ~/.config/cc-mini/. Package metadata gives version 0.1.0, but no GitHub release is listed, so that version alone does not establish a release cadence.
Developers who want to inspect or modify a terminal coding agent for repository exploration, routine edits and tests, or custom skills backed by an Anthropic or OpenAI-compatible endpoint.
You require verified MCP integration, bundled offline inference, a drop-in Claude Code replacement, or clear redistribution rights before evaluation.
Quick Start & Installation
# One-line install (recommended) curl -fsSL https://raw.githubusercontent.com/e10nMa2k/cc-mini/main/install.sh | bash # Or manual git clone https://github.com/e10nMa2k/cc-mini.git cd cc-mini pip install -e ".[dev]"
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| cc-mini ★ | 985 | +5 | Python | — | A Python terminal harness for API-backed coding agents with local tools. |
| oh-my-pi | 40.5k | +497 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust coding agent with MCP tools and local or hosted models, embeddable via ACP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/e10nMa2k/cc-mini.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about cc-mini
How do I connect a model gateway, and is it an MCP integration?
Does cc-mini need a GPU, and what should I size locally?
Can a company self-host and redistribute cc-mini?
When would I choose cc-mini over Claude Code?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy