Skip to main content

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:

  • Enter — submit prompt
  • Shift+Enter — newline
  • Escape — interrupt
  • /clear — reset conversation
  • /model — switch model
  • /exit — quit

Data

All conversation history and project state is stored in:

~/.micro-cc/
  .env                              API keys (you create this)
  projects/
    {project}_{hash}/
      messages.jsonl                conversation history
      summary.json                  sliding-window summary
      project_path.txt              maps hash back to directory

Architecture

start_live_.py (CLI)                textual TUI + 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/{hash}/        conversation persistence

How it works:

  1. CLI starts FileWatcher on project dir, enters prompt loop
  2. User query → claude_loop() async generator
  3. Builds system prompt with project's CLAUDE.md + any file changes detected
  4. Calls Anthropic API with tool definitions
  5. Executes tool calls locally, loops until the model stops calling tools
  6. Yields events (thinking, tool_call, tool_result, final_text) for CLI to render
  7. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

micro_cc-0.1.4.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micro_cc-0.1.4-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file micro_cc-0.1.4.tar.gz.

File metadata

  • Download URL: micro_cc-0.1.4.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

Hashes for micro_cc-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e179d289eee461d18e48f780a036558ca6e90cc18d2cd71bf4fb4dfbfa17e47a
MD5 e8f15cda2e2e33f247b44064e5a7b184
BLAKE2b-256 aede14d5d4f38eb119b369130706587dab816e10fd14a6898e62531d4058a925

See more details on using hashes here.

File details

Details for the file micro_cc-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: micro_cc-0.1.4-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

Hashes for micro_cc-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24bf940b8c8bfcef6fc7dc8d062a16f64ed4c6c7cef90248f0660d77589adce8
MD5 f77f502364348a9a874ac8487198a08e
BLAKE2b-256 f197023ecab3b70338b786700b691c919140bfde41288b86866ca8a8b41fdce6

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