qybaihe/mu

mu (μ): most of what a coding agent decides isn't code. mu hands 40 kinds of yes/no calls to a small model: fewer wasted tokens, fewer approvals on autopilot, fewer runs that stop halfway. Built on pi.

What it solves

Coding agents normally use a large model for every decision, which wastes tokens and attention. mu takes the opposite approach: most decisions during a session are simple yes/no calls, so it hands 41 kinds of them to a small, fast judge model. This reduces cost, speeds up responses, and avoids the common problem of approving every command on autopilot.

How it works

mu is built on pi, a coding agent, and adds a "judgment kernel." The agent loop contains 41 decision points where the judge is asked one bounded question at a time — e.g., "Does this command match the task?" or "Is the work really done?" The judge gives a probability for each answer. Depending on the mode, the verdict either takes effect (active), is logged but does nothing (shadow), or is turned off. Decision points cover input framing, context management (what to include, what to drop), tool safety (approvals, prompt injection), turn completion, and teamwork (subagent routing). The judge can be a hosted model like Jev, a local model like mude, a classifier from Hugging Face, or any LLM, and they can be chained in tiers (e.g., local first, fallback to hosted).

Who it's for

Developers who want a more efficient coding agent that saves tokens and makes decisions transparent. You can use it via mu on the command line (Node.js) or the desktop app for macOS, Windows, or Linux. It's especially useful for teams that want to audit every decision via a local ledger, or who prefer a privacy-friendly judge that runs on their own machine.

Highlights

  • Measured +9.5 points on Terminal-Bench 2.1 (68.2% vs 58.7% passing attempts, same model and tasks).
  • 41 decision points; 34 act out of the box, all can be shadowed or turned off.
  • Shadow mode lets you compare judges before relying on one.
  • The local judge model mude runs on your Mac and keeps all judged content private.
  • Handles long tool outputs chunk by chunk, filters test-log repetition, catches prompt injections, and stops unfinished runs from ending early.

Related

  • Dispatch
  • Project
  • Dispatch
  • Project
  • Project