{"id":50528396,"url":"https://github.com/microclaw/microcode","last_synced_at":"2026-06-03T10:30:32.567Z","repository":{"id":361748226,"uuid":"1236867352","full_name":"microclaw/microcode","owner":"microclaw","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-01T03:57:03.000Z","size":1199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-01T05:24:09.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microclaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T16:43:08.000Z","updated_at":"2026-06-01T03:57:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/microclaw/microcode","commit_stats":null,"previous_names":["microclaw/microcode"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/microclaw/microcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microclaw%2Fmicrocode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microclaw%2Fmicrocode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microclaw%2Fmicrocode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microclaw%2Fmicrocode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microclaw","download_url":"https://codeload.github.com/microclaw/microcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microclaw%2Fmicrocode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33860961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-03T10:30:31.605Z","updated_at":"2026-06-03T10:30:32.561Z","avatar_url":"https://github.com/microclaw.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microcode\n\n**A coding agent that stays out of your way.**\n\n[![Latest release](https://img.shields.io/github/v/release/microclaw/microcode?style=flat-square)](https://github.com/microclaw/microcode/releases)\n[![License](https://img.shields.io/github/license/microclaw/microcode?style=flat-square)](LICENSE)\n![Rust 2021](https://img.shields.io/badge/rust-edition%202021-orange?style=flat-square)\n![Platforms](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-blue?style=flat-square)\n\n*Silent inside your project. Asks only when leaving it. Runs `cargo check` after every edit.*\n\n\u003cbr clear=\"right\"\u003e\n\n---\n\n\u003e [!NOTE]\n\u003e **This is a test/experimental project.** It is not actively maintained, and there are no plans to continue development for the foreseeable future. Feel free to explore the code, but don't expect updates, fixes, or support.\n\n---\n\n## Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/microclaw/microcode/main/install.sh | bash\n```\n\nThat detects your OS/arch, pulls the latest release binary from GitHub, and drops it in `~/.local/bin` (or `/usr/local/bin` if writable). Re-run any time to upgrade.\n\nOr from source: `cargo install --path .`\n\n## 30-second tour\n\n```bash\ncd path/to/your/rust/project\nmicrocode init                                # one-time: writes .microcode/config.toml + MICROCODE.md\nmicrocode                                     # interactive — runs setup wizard if no API key yet\nmicrocode run \"fix every clippy warning\"      # one-shot\nmicrocode -y run \"rewrite the auth module\"    # fully unattended (--skip-permission)\n```\n\nFirst run with no API key drops you into a wizard:\n\n```\n[1] Anthropic (Claude)        — direct API\n[2] OpenAI                    — direct API\n[3] OpenAI-compatible         — Together / Fireworks / OpenRouter / DeepSeek / ...\n[4] Local (no API key)        — Ollama / vLLM / LM Studio\n```\n\nPick one, paste your key (or skip for local models), and you're chatting.\n\n## Why microcode\n\n\u003e Most coding agents prompt you on every mutating call. That makes sense for a foreign agent visiting your machine — but microcode is *yours*, running *in your project*. So it shouldn't ask twice.\n\nThree opinionated bets, none of which are individually new, but which together feel different:\n\n### 1. Permission by location, not by every call\n\n| Operation | Inside the project | Outside the project | With `--skip-permission` |\n|---|---|---|---|\n| `read` / `ls` / `glob` / `grep` | silent | silent | silent |\n| `write` / `edit` | **silent** | prompts | silent |\n| `bash` (cwd-scoped) | silent (subject to deny patterns) | n/a | silent |\n\nHard `deny` patterns (`bash:sudo *`, `bash:rm -rf /*`) always win. The result: zero prompts during normal work, one prompt the moment something would touch a path outside your project root.\n\n### 2. The Rust compiler is in the loop\n\nEvery `write` / `edit` on a `.rs` file automatically triggers `cargo check --message-format=json -q`. The diagnostics get appended to **the same tool result the model just received** — not at some later \"now run tests\" turn. The model never gets to forget it broke the build.\n\n```\n✓ edit src/auth.rs (1 replacement)\n\n--- cargo verifier ---\ncargo check FAILED (1.4s, 2 error(s))\n  error: cannot find function `frobnicate` in this scope [src/auth.rs:42:5]\n  error: mismatched types [src/auth.rs:18:9]\n```\n\nThe system prompt tells the model: *do not declare a task done while the verifier shows errors.* Empirically, this kills the most common failure mode of every other agent — silently leaving a syntax error and continuing.\n\n### 3. Bring your own model\n\n```toml\n[provider]\nkind = \"openai\"\nbase_url = \"http://localhost:11434/v1\"   # Ollama — no auth needed\nmodel    = \"qwen3-coder:30b\"\n```\n\nAnthropic + any OpenAI-compatible endpoint: OpenAI, OpenRouter, DeepSeek, Together, Fireworks, Groq, Ollama, vLLM, LM Studio. See [`docs/providers.md`](docs/providers.md) for cookbook entries.\n\n## Features\n\n- **Streaming** responses. Text deltas render token-by-token.\n- **Cargo verifier** hook — automatic on every `.rs` edit.\n- **Optional cargo test hook** — opt-in, runs after N edits or on `/test`.\n- **`/cost`** — live USD estimate using a built-in price table (override per-model).\n- **`/fork`**, **`/switch`**, **`/branches`** — cheap in-memory conversation forks.\n- **MCP** integration — any stdio MCP server, namespaced as `mcp__server__tool`.\n- **Per-session journal** — `.microcode/journal/\u003ctimestamp\u003e.md`, auditable.\n- **Project context** — `MICROCODE.md` auto-injected into the system prompt.\n- **One static binary** — ~6 MB, ~50 ms cold start, 9 runtime crates.\n\n## How it differs\n\n| | Claude Code | Codex CLI | Aider | **microcode** |\n|---|---|---|---|---|\n| Provider(s) | Anthropic | OpenAI | many | Anthropic + any OpenAI-compatible |\n| Compiler in the loop | model decides | model decides | model decides | **automatic for `.rs` edits** |\n| Default friction | per-call confirms | sandbox + approval | `--yes` flag | **silent in-cwd, ask only on escape** |\n| MCP | yes | partial | no | yes (stdio) |\n| Footprint | ~390 MB | ~140 MB | ~80 MB | **~30 MB** |\n\nThe trade is honest: microcode does less. It does what it does with more visible feedback.\n\n## Documentation\n\n- [`USAGE.md`](USAGE.md) — Day-to-day reference.\n- [`docs/architecture.md`](docs/architecture.md) — Module map and data flow.\n- [`docs/design-journal.md`](docs/design-journal.md) — Why each decision was made, in order.\n- [`docs/providers.md`](docs/providers.md) — Pointing microcode at any LLM endpoint.\n- [`docs/tools.md`](docs/tools.md) — Tool catalogue.\n- [`DEVELOPMENT.md`](DEVELOPMENT.md) — Build, test, layout, releasing.\n- [`CONTRIBUTING.md`](CONTRIBUTING.md) — How to send a patch.\n\n## Releasing\n\nMaintainer flow — single command, gated by a clean tree on `main`:\n\n```bash\n./deploy.sh --minor      # bumps version, tags, pushes; CI builds + uploads\n./deploy.sh --dry-run    # preview only\n```\n\n[`.github/workflows/release.yml`](.github/workflows/release.yml) builds for `aarch64-apple-darwin`, `x86_64-apple-darwin`, `x86_64-unknown-linux-gnu`, and `aarch64-unknown-linux-gnu` on every `v*` tag, then attaches `.tar.gz` + `.sha256` per target to the GitHub release.\n\n## License\n\nMIT. See [`LICENSE`](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroclaw%2Fmicrocode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicroclaw%2Fmicrocode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroclaw%2Fmicrocode/lists"}