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

Uploaded Python 3

File details

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

File metadata

  • Download URL: micro_cc-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a06073e3b7162563d07f7506b0fd681d91589800b39630f9f79e6191f8e799e7
MD5 ae88bed6993752cd9fd536ff86b0dc51
BLAKE2b-256 a2a86474c7adbd3c12c83501d2353e2348d4f7232e7a7170a7b692a5b6990a2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micro_cc-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d20ebc950f7b334cd3837c002534053f0bde0fc4ba3cdf745dbb56f873ed8023
MD5 f54486dd4a864ae1e296585716783b38
BLAKE2b-256 831e49ba87eed918f64647081e40662ce10536dbbbeeee8615086bcd12e37846

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