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

Uploaded Python 3

File details

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

File metadata

  • Download URL: micro_cc-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 92bcc31d7fbbdae9c2c0f4e381a05b26973a68f85102c4c1b0dc3cd2a677774d
MD5 0b54fdf5f94c32c0d91097a1b092eea7
BLAKE2b-256 785d35d87af07ba3b589d7c7b35ce71bf95637a253ab7ea1f65e3ecf922fbfb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micro_cc-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2fb1d189005894c60c70917e30a74dc127bd4965c7a915e1b4b45cffee5f5473
MD5 b8400461eea507f59bb76f5035ffc6f9
BLAKE2b-256 a621061a04459b786898c0862039fd44d426c0278226ddd982896af65f105540

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