MCPcopy Index your code
hub / github.com/e10nMa2k/cc-mini

github.com/e10nMa2k/cc-mini @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
943 symbols 3,553 edges 83 files 286 documented · 30%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cc-mini

Ultra-light Harness scaffolding for AI agents

Agentic  ·  Built to Extend  ·  From Claude Code

The entire core is ~1000 lines of Python


NEW: Buddy — AI Companion with Custom Sprites

Your coding companion lives in the terminal. Type /buddy to hatch it. Supports custom ASCII species — bring your own Pikachu!

Custom Pikachu buddy companion

Full Buddy docs →


Features

Core

  • Interactive REPL with streaming output, command history, slash command autocomplete
  • Agentic tool loop — Claude calls tools autonomously until the task is complete
  • 6 built-in tools: Read, Edit, Write, Glob, Grep, Bash
  • Permission system — reads auto-approved, writes/bash ask for confirmation
  • Session persistence — auto-save conversations, /resume to continue later
  • Context compression — auto-compact when approaching token limits
  • Anthropic + OpenAI compatible — works with any compatible API endpoint

Advanced (from unreleased Claude Code features)

Feature Description Docs
Coordinator Mode Background workers for parallel research and implementation docs →
Buddy Tamagotchi AI pet with personality, stats, mood, and speech bubbles docs →
KAIROS Memory Cross-session memory with auto-consolidation docs →
Skills One-command workflows: /review, /commit, /test, /simplify docs →
Sandbox Bubblewrap isolation for bash commands docs →

Quick Start

Requirements

  • Python 3.10+ (3.11+ recommended)
  • An API key for Anthropic or any OpenAI-compatible provider

Install

# 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]"

Set API Key

# Anthropic
export ANTHROPIC_API_KEY=sk-ant-...

# Or OpenAI-compatible
export CC_MINI_PROVIDER=openai
export OPENAI_API_KEY=sk-...
export OPENAI_BASE_URL=https://your-gateway.example.com/v1

Run

cc-mini                              # Interactive REPL
cc-mini "what tests exist?"          # One-shot prompt
cc-mini -p "summarize this codebase" # Print and exit
cc-mini --auto-approve               # Skip permission prompts
cc-mini --resume 1                   # Resume previous session
cc-mini --coordinator                # Coordinator mode

First Session Demo

cc-mini

> list all python files in this project
↳ Glob(**/*.py) ✓
Found 12 Python files...

> read engine.py and explain the tool loop
↳ Read(src/core/engine.py) ✓
The submit() method implements an agentic loop...

> /buddy
Hatching your companion...
✨ SHINY LEGENDARY DUCK
Glitch Quack hatched! ★★★★★

> /buddy mood
Glitch Quack's mood:
  Happy      ████████████████░░░░  65 (high)
  Bored      ██████████░░░░░░░░░░  50 (neutral)

> /review
Running skill: /review…
↳ Bash(git diff) … ✓ done
## Code Review: no issues found ✓

Full configuration docs →


Tools

Tool Description Permission
Read Read file contents auto-approved
Glob Find files by pattern auto-approved
Grep Search file contents auto-approved
Edit Edit file (string replacement) requires confirmation
Write Write/create file requires confirmation
Bash Run shell command requires confirmation

Coordinator mode adds: Agent (spawn worker), SendMessage (continue worker), TaskStop (stop worker). See coordinator docs.


Slash Commands

Command Description
/help Show all available commands
/compact Compress conversation context
/resume Resume a past session
/history List saved sessions
/clear Clear conversation, start new session
/skills List all available skills
/buddy Companion pet — hatch, pet, stats, mood
/buddy help Show all buddy commands and gameplay guide
/review Code review (skill)
/commit Git commit (skill)
/test Run tests (skill)
/simplify Review and fix code (skill)

Type / to see autocomplete suggestions.


Project Structure

src/core/
├── main.py           # CLI entry point + REPL
├── engine.py         # Streaming API loop + tool execution
├── llm.py            # LLM client (Anthropic + OpenAI)
├── config.py         # Configuration (CLI, env, TOML)
├── context.py        # System prompt builder
├── commands.py       # Slash command system
├── session.py        # Session persistence
├── compact.py        # Context compression
├── coordinator.py    # Coordinator mode
├── worker_manager.py # Background worker lifecycle
├── skills.py         # Skill loader and registry
├── skills_bundled.py # Built-in skills (simplify, review, commit, test)
├── memory.py         # KAIROS memory system
├── permissions.py    # Permission checker
├── cost_tracker.py   # Token usage tracking
├── _keylistener.py   # Esc/Ctrl+C detection
├── sandbox/          # Bubblewrap sandbox subsystem
├── tools/            # Tool implementations
└── buddy/            # AI companion pet system

Running Tests

pytest tests/ -v
pytest tests/ -v -k "not integration"  # skip bwrap tests

Documentation

Topic Link
Configuration (API keys, TOML, CLI flags) docs/configuration.md
Buddy (AI companion pet) docs/buddy.md
Coordinator Mode (background workers) docs/coordinator.md
KAIROS Memory System docs/memory.md
Skills (custom workflows) docs/skills.md
Sandbox (bash isolation) docs/sandbox.md

Core symbols most depended-on inside this repo

_value
called by 33
src/core/llm.py
_b
called by 30
src/core/buddy/poke_game/badges.py
_loc
called by 24
src/core/buddy/poke_game/world.py
get_companion
called by 16
src/core/buddy/companion.py
get_skill
called by 15
src/core/skills.py
exit
called by 15
src/core/plan.py
register_skill
called by 14
src/core/skills.py
update
called by 14
src/core/main.py

Shape

Function 428
Method 396
Class 116
Route 3

Languages

Python100%

Modules by API surface

tests/test_skills.py53 symbols
src/core/llm.py42 symbols
src/core/main.py41 symbols
tests/test_buddy_mood.py37 symbols
tests/test_sandbox_command_matcher.py33 symbols
tests/test_sandbox_manager.py26 symbols
src/core/engine.py25 symbols
tests/test_tools.py23 symbols
tests/test_buddy_companion.py22 symbols
tests/test_sandbox_wrapper.py21 symbols
src/core/tools/ask_user.py20 symbols
tests/test_cost_tracker.py19 symbols

For agents

$ claude mcp add cc-mini \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact