Harness that gives frontier models full system access — shell, filesystem, browser, MCP — running directly on the metal.
Project description
micro·cc — cognitive compute
███╗ ███╗ ██████╗ ██████╗ ███████╗██╗
████╗ ████║██╔═══██╗██╔══██╗██╔════╝██║
██╔████╔██║██║ ██║██║ ██║█████╗ ██║
██║╚██╔╝██║██║ ██║██║ ██║██╔══╝ ██║
██║ ╚═╝ ██║╚██████╔╝██████╔╝███████╗███████╗
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝
─────── on the metal ─────────────────────
Harness that gives frontier models full system access — shell, filesystem, browser, MCP — running directly on the metal. Planning, memory, and tool orchestration let models perform complex multi-step work autonomously. Point it at any project directory and go.
Install
pip install micro-cc
Environment
Create ~/.micro-cc/.env with one endpoint — set Anthropic OR LiteLLM, not both. If both are set, Anthropic takes priority.
# Anthropic (direct)
ANTHROPIC_API_KEY=sk-ant-
# OR LiteLLM (proxy to Bedrock, Azure, etc.)
LITELLM_BASE_URL=https://your-proxy.com
LITELLM_API_KEY=sk-...
# Shared
OPENAI_API_KEY=sk-proj-
SERPAPI_KEY=
Usage
microcc /path/to/your/project
Controls:
Option+Enter— submit promptEnter— newlineCtrl+C— interrupt/clear— reset conversation/exit— quit
Terminal
Recommended: iTerm2
For Option+Enter (submit) to work, configure iTerm2:
iTerm2 → Settings → Profiles → Keys → General → Left Option Key → Esc+
Shell Alias
Add to ~/.zshrc:
microcc() {
(cd ~/micro-cc && source env/bin/activate && python start_.py "$@")
}
Then: microcc /path/to/project
Architecture
start_.py (CLI) prompt_toolkit + rich rendering
│
│ async for event in claude_loop()
▼
claude_loop_.py (Core) API calls, tool execution, JSONL storage
│
│ execute_tool_call()
▼
tools/ bash_, read_, write_, edit_, glob_, grep_
│
▼
micro-cc/projects/{name}_{hash}/ conversation persistence
How it works:
- CLI starts FileWatcher on project dir, enters prompt loop
- User query →
claude_loop()async generator - Builds system prompt with project's
CLAUDE.md+ any file changes detected - Calls Anthropic API with tool definitions
- Executes tool calls locally, loops until the model stops calling tools
- Yields events (
thinking,tool_call,tool_result,final_text) for CLI to render - Saves conversation to JSONL (stripped of thinking blocks for replay)
Tools:
| Tool | Description |
|---|---|
bash_ |
Subprocess execution in project_dir, timeout support |
read_ |
Read files with line numbers, offset/limit |
write_ |
Create/overwrite files, auto-creates dirs |
edit_ |
Surgical string replacement (fails if ambiguous) |
glob_ |
Find files by pattern, sorted by mtime |
grep_ |
Regex search with context lines |
Path handling: Relative paths resolve to project_dir, absolute paths work anywhere.
File watcher: Detects external changes, injects into system prompt so the model sees what you edited.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file micro_cc-0.1.0.tar.gz.
File metadata
- Download URL: micro_cc-0.1.0.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8bddd842da3a9d47b5515d1cc27421a895fc48db1b33c5f033f5af14381080b
|
|
| MD5 |
549e2940a047957f2089af4bc3d5fbee
|
|
| BLAKE2b-256 |
9ef084f2d8e007d2582fe141da7265e9b56eee40b2b8c1723a8ea3f70a00162e
|
File details
Details for the file micro_cc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: micro_cc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625c27f3402c57a2fd2861daa558bab17f69b98aeb90261c96ab076499901fbe
|
|
| MD5 |
5057fc22c6c7e51e5086cd0bec0abbc1
|
|
| BLAKE2b-256 |
32923ceff9f369c71d83cba7bce1aae13fd794802bf4a3b8245aff9aa4d86ba4
|