Use your subscription: Claude Code · Codex CLI · Grok · Muse · Antigravity
Python 3.11+ · Zero runtime dependencies · CLI + macOS desktop app · MIT License
mash (Multi Agent Super Harness) lets you send a task to a pair of agents (one implementer and one reviewer) rather than a single agent. The result is higher quality output because of the forced review. The implementer and reviewer pass work back and forth over plain Markdown logs until the reviewer writes Blockers: No.
mash uses Claude Code CLI, Codex CLI, agy (Antigravity CLI), grok CLI and muse CLI so you can use your existing subscriptions. Mash runs these first-party CLIs inside a deterministic Python loop, keeping your auth, skills, plugins, and MCP servers intact.
GUI
Real mash desktop app session on macOS (React frontend + mash serve, Codex implementing, Muse reviewing, 125s run sped up to 30s): multi-project sidebar showing the completed CLI task, live Codex usage bars, @ file autocomplete, real-time turn strip, and Muse's open-redirect audit closing on Blockers: No.
CLI
Real mash CLI session on macOS (Codex implementing, Grok reviewing, 346s run trimmed and sped up to 30s): Codex implements a thread-safe sliding-window rate limiter and tests, Grok audits it in a separate session, runs unittest, reports non-blocking notes, and finishes on Blockers: No.
Quick start
Install on macOS with Homebrew (Apple Silicon, macOS 14.0+)
Homebrew installs both the macOS desktop app (/Applications/mash.app) and the mash CLI command. Always use the full cask name diffen/mash/mash-harness, and put Homebrew's bin directory (/opt/homebrew/bin) before /usr/bin on your login shell PATH so python3 resolves to Homebrew Python 3.11 or later.
brew tap diffen/mash brew trust --cask diffen/mash/mash-harness brew install --cask diffen/mash/mash-harness mash --version open -a mash
- First launch: macOS can block the app because it cannot verify the developer. Confirm that you installed mash from
diffen/mash/mash-harness(or downloaded the DMG from the public Releases page), then open System Settings > Privacy & Security > Open Anyway. Homebrew also applies quarantine to its downloads. - Upgrade: Quit
mash(Command-Q) first so Homebrew does not replace the app during active turns:brew update brew upgrade --cask diffen/mash/mash-harness mash --version
- Uninstall:
brew uninstall --cask diffen/mash/mash-harnessremoves the app andmashcommand while leaving~/.mashintact. - Direct DMG download & bug reports: Download the macOS DMG from Releases and report issues at diffen/homebrew-mash/issues.
Install or run from source (macOS or Linux)
CLI
Requires Python 3.11+.
# Install into your Python environment python3 -m pip install . # Or run straight from the repo without installing python3 -m mash # Or build a single-file zipapp (stdlib only; still requires Python 3.11+) python3 scripts/build_zipapp.py ./dist/mash --workspace /path/to/your/repo
Desktop app (GUI)
To build on macOS, install Python 3.11 or later, Node.js (20.19 or later in the 20.x series, or 22.12 or later), rustup, and the Xcode Command Line Tools (xcode-select --install). Rustup selects the Rust version in rust-toolchain.toml. The app uses python3 from your login shell PATH. Set MASH_PYTHON to use a different Python executable. Tauri build prerequisites
Quit mash if it is open. Run this command from the repo root to build, install, and open ~/Applications/mash.app.
./scripts/copy_to_applications.sh --skip-tests
The script builds from a copy of your source and installs the app without sudo. Add --no-open to install without opening the app.
To build an app bundle without installing it, run these commands from the repo root.
cd gui
npm ci
npm run desktop:build -- --bundles appThe build puts mash.app in gui/src-tauri/target/release/bundle/macos/. The app contains the mash backend and uses your installed Python.
First run
Start mash inside any project folder (or pass --workspace /path/to/repo):
On first launch, mash detects your installed provider CLIs, asks you to pick an implementer and reviewer, and saves the choices to ~/.mash/config.toml. Use /roles all to pick specific models and reasoning efforts, or override them for a single run:
mash --implementer claude --implementer-model sonnet --implementer-effort high \
--reviewer codex --reviewer-effort mediumType your task at mash> (you can reference workspace files with @path or @"path with spaces" and recall the last 1,000 lines with Up/Down arrows):
mash> Audit @api/auth.py for session fixation and add regression tests
Want to kick the tires offline without touching any provider quota?
python3 -m mash --implementer test --reviewer test
The test agent writes scripted protocol logs and finishes the loop with Blockers: No without implementing your task — use it to explore the harness, and switch to a real provider for actual work.
Supported providers
Install and sign in to whichever first-party CLIs you already use. Mix any two providers — or use the same provider and model for both roles (mash still runs two isolated sessions).
| Provider | Host protocol | Model & effort discovery | Notes |
|---|---|---|---|
Claude Code (claude) |
claude -p bidirectional stream-json |
Live discovery + --effort |
Supports Provider default (your config) and Claude recommended (default alias). |
Codex CLI (codex) |
codex app-server --listen stdio:// |
model/list + reasoning effort |
Applies model_reasoning_effort at session start and effort on each turn/start. |
Grok (grok) |
grok agent --no-leader stdio (ACP) |
ACP config options + effort check | Requires Grok 1.0.30+. Workspace-scoped host filesystem relay. |
Muse (muse) |
muse serve over MSP |
Live model selection | Tested on Muse Code 1.2.1 (macOS arm64). Explicit effort values are rejected until per-model support is verified. |
Antigravity (antigravity) |
agy acp |
ACP models + thinking levels | Sign in to agy. See Antigravity ACP setup. |
Test agent (test) |
Built-in offline host | — | Deterministic scripted agent for trying mash or running tests without accounts. |
Check your local provider setup any time:
mash doctor # Check CLI versions and permission relay support mash doctor --deep # Run a tiny live turn through each installed host (uses quota)
Why mash?
- Single agents grade their own homework. Even running the same model in two separate sessions catches bugs the implementer rationalized away. Pairing two different providers — say, Claude Code implementing and Codex reviewing — catches even more.
- Deterministic harness, zero LLM glue. Mash is plain Python, not an agent-of-agents. Control flow depends on exactly one line:
Blockers: YesorBlockers: Noat the top of the review log. - Uses the subscriptions and setups you already have. Mash talks to each provider's native interactive host protocol (not one-shot
execwrappers or raw API keys). Your local config, skills, plugins, and MCP servers work out of the box. - Peers, not boss and subordinate. Neither role outranks the other. A blocker is a reasoned request, not an order. When the implementer and reviewer disagree — or hit a product decision — either agent calls its native user-question tool, mash prompts you mid-turn, and your decision is injected into both roles.
- Zero runtime dependencies. The CLI and
mash serverun on the Python 3.11+ standard library alone.scripts/build_zipapp.pypackages mash into a single zipapp (dist/mash) that still requires Python 3.11+.
Key workflows
Start as a chat, upgrade to a review (/review)
Not every question needs a two-agent review loop. Set the reviewer to none (--reviewer none, /roles reviewer → none, or None (chat) in the desktop app) to get a fast single-agent chat at mash chat> with no protocol logs and no review limit.
When a quick chat turns into a real change, upgrade it in place:
mash chat> /review Check edge cases around token expiry
Mash asks you to pick a reviewer and review limit, has the implementer write a cumulative implementation log of the chat result, and starts the full review loop in the same conversation.
In the desktop app, Enter sends a chat message and Shift-Enter inserts a newline. Mash stores chat history in chat/ inside the external conversation directory and creates nothing under .mash/exchange/ until you add a reviewer.
Native questions, permissions, and /yolo
- Permissions stay interactive. Tool approvals pass straight through to you and are never written into Markdown logs.
- Yolo mode (
--yolo,--permission-mode bypass, or/yolo) approves tool actions one at a time without prompting. Toggle it back off mid-conversation with/yolo off. For safety,config.tomlcannot enable yolo globally. - Questions always reach you. Even in yolo mode, intercepted native user-question tools pause and ask you directly (numbered choices, multi-select with commas, or free text) and share your answer with both agents.
Mid-flight control, resume, and reopen
- Stop a turn without losing progress:
Ctrl-Ccancels only the active turn and returns you to the prompt with workspace edits intact.Ctrl-Cat the prompt exits mash (and prints resume instructions if an incomplete conversation is active). - Swap models mid-conversation: Stop a turn and run
/roles implementeror/roles reviewerto switch providers, models, or reasoning effort (e.g., if you hit a usage cap). The new session automatically receives the task, accepted logs, saved user answers, and notice of any partial work. - Pick up later (
/resume): Restores saved conversation settings (ignoring startup flags), repairs any missing workspace exchange logs from canonical history, and resumes exact provider sessions when available. - Continue finished work (
/reopen TEXT): Reopens a completed conversation with follow-up instructions delivered to both roles (great for addressing non-blocking feedback or adding a follow-up with full context). - Review cap (
--max-reviews N): Defaults to 7 accepted reviews. If blockers still remain at the limit, mash asks whether to add more reviews, accept with blockers, or abort.
Desktop app (macOS)
The desktop app and CLI share your saved conversations. You can continue a task or chat in either interface. Open each conversation in only one interface at a time.
Highlights:
- Multi-project sidebar with concurrent conversations across projects, favorites (stars), hide/show filtering, and persistent multi-drafts.
- Live timeline + single-line turn strip showing streaming agent activity, blocker status pills, formatted Markdown logs, and configurable local file links (Show in Finder by default, Visual Studio Code, Cursor, Zed, Windsurf, Sublime Text, or Copy path — editors jump straight to the cited line for regular files, while Finder reveals the file and handles folders, app bundles, or unavailable editors as fallback).
- Inline prompts &
@filementions for tool permissions, native user questions, and workspace file references. - Provider usage summaries right in the New Task and Providers views, plus macOS notifications, dock badges, and optional completion/input chimes (
Cmd+,Preferences).
See the Homebrew install instructions or build the app from source.
Interactive commands
| Command | Action |
|---|---|
/roles |
Show current role assignments. |
/roles implementer |
Change the implementer provider, model, and reasoning effort. |
/roles reviewer |
Change the reviewer provider, model, and reasoning effort. |
/roles all |
Configure both roles before starting a new conversation. |
/save-defaults |
Save current role choices to ~/.mash/config.toml (preserves comments and other keys). |
/max-reviews [N] |
Show or set the total accepted-review limit. During an incomplete conversation, N must exceed the current limit. Chats refuse /max-reviews N. |
/status |
Show workspace, roles, models, efforts, yolo state, turn, and review counts. |
/implementer [TEXT] |
Start the implementer turn (with optional instructions for this turn). |
/reviewer [TEXT] |
Start the reviewer turn (with optional instructions for this turn). |
/clarify TEXT |
Save a note delivered once to both roles on their next turn. |
/clear, /new |
Abort the current incomplete task, or leave a chat saved (use /resume to continue it). |
/abort |
Abort the current incomplete task (refused in a chat — use /clear to leave). |
/resume |
Pick an incomplete conversation or chat for this workspace. |
/reopen TEXT |
Continue a completed conversation with follow-up instructions for both roles. |
/yolo / /yolo off |
Turn automatic one-action tool approvals on or off. |
/review [TEXT] |
In a chat: attach a reviewer and transition into the review loop. |
/help |
Show command help. |
Configuration & storage
Personal config (~/.mash/config.toml) & effort precedence
All sections are optional. Unknown keys raise an error, and mash never loads project-local config files.
schema_version = 1 [roles] implementer = "claude" reviewer = "codex" implementer_model = "" reviewer_model = "" implementer_effort = "" reviewer_effort = "" [conversation] max_reviews = 7 ctrl_c_cleanup_seconds = 10 [permissions] mode = "relay"
- Set
reviewer = "none"in[roles]to default to chat mode. - Optional
[agents.claude],[agents.codex],[agents.grok],[agents.muse],[agents.antigravity], and[agents.test]sections acceptmodel,effort, and the matchingpreset. - Effort precedence:
/roles→ CLI flag →[roles]key →[agents.<provider>]key → provider default. An empty effort string ("") in[roles]selects the provider default and does not fall through to[agents.<provider>]. Explicit effort values are validated against the model's supported levels before any task prompt is sent. - Yolo cannot be set in
config.toml— pass--yolo/--permission-mode bypassor use/yolo.
Saved conversations, exchange logs, and debug mode
Mash stores canonical state outside your repo under ~/.mash (override with --state-dir DIR or MASH_STATE_DIR; personal config stays at ~/.mash/config.toml). Files are written with owner-only permissions.
Each conversation directory contains:
conversation.json— effective settings, provider session IDs, turn state, and acceptance records.history/turn-NNN-implementation-log.mdandhistory/turn-NNN-review-log.md— canonical accepted pair for each turn (orchat/for chats before a reviewer is added).events.ndjsonand*-wire.ndjson— full prompts, agent output, questions, permission decisions, and process results.
Inside the workspace, agents read and write turn logs under <workspace>/.mash/exchange/<conversation-id>/history/. Mash retains role-written logs there without auto-pruning in v1. Full prompts appear on screen only with mash --debug, though they are always saved externally. Mash filters terminal control sequences before display; it does not redact secrets from provider output or saved records.
Manage saved conversations from the CLI:
mash conversations list mash conversations delete CONVERSATION_ID mash conversations list --state-dir /absolute/path/to/state
Deletion displays both the canonical directory and the workspace exchange directory, requires confirmation, and leaves .mash/.gitignore and other conversations untouched.
Provider-specific notes (Claude, Codex, Grok, Muse, Antigravity)
- Model & effort discovery:
/rolesqueries each provider once per command (20-second timeout, no task prompt sent): Claude initialization +get_settings, Codexmodel/list+config/read, and Grok/Antigravity ACP session config options. - Grok (1.0.30+): Mash forces permission requests per session without editing your Grok config. For Grok's host filesystem methods (
fs/write_text_file, etc.), writes are restricted to the workspace (including.mash/exchange/) and reads also allow Grok user/bundled skills, Claude user skills/plugin cache, and shared skills in~/.agents/skills(honoringGROK_HOMEandCLAUDE_CONFIG_DIR). Shell writes are not governed by that allow-list and go through normal permission prompts. Writes targeting only the running role's assigned log are auto-approved; a single Write or exact Edit approval is reused once for the matching file operation. If you grant a Grok session-level approval and later run/yolo off, mash resets the Grok session to clear the grant while carrying forward accepted logs and user instructions. - Antigravity: Runs
agy acpwith your signed-in account and relays native forms/questions and one-action yolo approvals. If Antigravity cannot read a saved session, mash preserves its ID so you can retry or swap the role. - Muse: Runs
muse serveover MSP. Live release checks passed with Muse Code 1.2.1 on macOS arm64 (permissions, native questions, yolo toggling, cancellation, exact session resume, model selection, workspace log exchange, and reviewer cleanup). Keep effort at provider default — mash rejects explicit Muse effort values until per-model support is verified.
License
MIT — see LICENSE.

