# Repository Briefing: e10nMa2k/cc-mini
> Source: https://repoforai.com/repo/e10nMa2k/cc-mini (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/e10nMa2k/cc-mini
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: C (44/100 · Maintenance 12/35 · Adoption 20/25 · Releases 6/20 · License 6/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI, API
- **Momentum**: 985 ★ total (+4 24h / +5 7d) · 354 forks
- **When to Use**: Best for: 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. Skip if: You require verified MCP integration, bundled offline inference, a drop-in Claude Code replacement, or clear redistribution rights before evaluation.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Execution: A streaming model/tool loop sits behind an interactive REPL and a print-and-exit mode.
- Permissions: Nine base tools; reads are auto-approved, while edits, writes and Bash require confirmation by default.
- Parallelism: Plan mode delegates read-only exploration; coordinator mode adds background workers with messaging and cancellation.
- Provider integration: Native Anthropic and OpenAI-compatible clients, with a configurable OpenAI base URL.
- Continuity: Resumable local sessions, automatic context compaction and separate KAIROS cross-session memory.
- Extensions: User and project skill directories, bundled review and test workflows, and Bubblewrap isolation for Bash.
```

## Quick Start / Clone
```bash
# 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]"
```
