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

Uploaded Python 3

File details

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

File metadata

  • Download URL: micro_cc-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4ad4250e63e1fde18b84e015cbb3f8335277a2bef9bdf513aee4901b137016b6
MD5 14e8d2714d135c190c1b1bd80d93534e
BLAKE2b-256 9a16e37307d265785e30e298a0842800d10bf1c1bc1b9967b98f02bc37eb13c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micro_cc-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73aadc1e7c396f4bedaf9b5794d4af277401bef34eb7ebf716df90533fac6123
MD5 ab0195521089897308867501f5600931
BLAKE2b-256 b1ac87a348af518c20a83d35ffa9f465c0c3a20aa18b94c5a3bc80eff0d82cf5

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