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.6.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.6-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: micro_cc-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 a55d1b6d4bfdf781d4126540ff6540c520466044286c6a40d27702169f13bee9
MD5 04ee4121661868d51efdcec58412085c
BLAKE2b-256 ffb0d770d6507f430309341d780622da48ac20d87e32500024d2d58f7c133d57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micro_cc-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cfdd63853534ce44d38d32f02ae491c30af05e63d1266ffff079c1200a2ebae6
MD5 47b84c3ca634e60feab630d1746141d5
BLAKE2b-256 a753c67b1c7b6d7618a81165147ae776be12a73bdf86a592715619883547d19a

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