# Munder Difflin
### Agent harness to run an office of your clones
**Free, open source and performant.** A multi-agent harness that works with the
subscriptions you already pay for, on their hourly limits. It turns the terminal coding CLI
you already run into a clone of you, one that keeps working while you're away and
coordinates a whole office of agents on your own machine.
Wraps [Claude Code](https://claude.com/claude-code), Antigravity (Gemini), OpenAI Codex,
**xAI Grok**, **Kimi Code**, **Gemini CLI**, **Qwen**, **OpenCode**, **Crush**,
**pi.dev**, **GitHub Copilot CLI**, and **Cursor**, with bring-your-own keys and local LLMs.
Agents that message, route, and remember, coordinated by **your clone** (Michael) and
visualized as avatars at work on a shared office floor.
Electron · React · TypeScript · Pixi.js · xterm.js · node-pty
Claude Code Codex · GPT Grok · xAI Kimi Code Gemini CLI Antigravity · Gemini Qwen OpenCode Crush · Charm Pi GitHub Copilot Cursor + any custom command
Plus **bring your own keys** and **local models** through Ollama, LM Studio or vLLM. ## What it is Munder Difflin is a desktop app that wraps **real terminal-agent CLIs** as fully-capable agents, wires them into a **hive mind**, and puts **your clone** in charge. Michael is the one agent *you* talk to in order to get things done. Under the hood it runs the **fastest memory layer in the world** so every agent remembers what it learns and recalls it instantly. - **Every terminal is an agent.** Each `claude`, `agy`, `codex`, `grok`, `kimi`, `qwen`, `opencode`, `crush`, `pi`, `copilot`, or custom session runs as a real process in a pseudo-terminal (`node-pty`), byte-for-byte authentic, rendered with xterm.js. - **Every agent is an avatar.** Sessions appear as characters on a Pixi.js office floor. They walk to stations as they work, and envelopes fly desk-to-desk when they message each other. - **The hive coordinates them.** Agents read their memory and drain a mailbox; the router moves messages between inboxes; the GOD agent adjudicates, assigns, and escalates only when it needs you. - **Memory that's instant.** A markdown-first memory layer with a semantic recall index means agents remember across sessions and recall in milliseconds. ## How it works ``` you ── talk to ──► ┌─────────────┐ │ GOD agent │ orchestrator / supervisor │ (Michael's │ roster · routing · adjudication │ office) │ blackboard · task ledger └──────┬──────┘ │ assigns · routes · escalates ┌────────────────────────┼────────────────────────┐ ▼ ▼ ▼ ┌───────────┐ ┌───────────┐ ┌───────────┐ │ agent A │ message │ agent B │ message │ agent C │ │ provider │ ─────────► │ provider │ ─────────► │ provider │ │ + memory │ │ + memory │ │ + memory │ └───────────┘ └───────────┘ └───────────┘ └──────── shared hive: memory · mailbox · blackboard · log ───────┘ ``` 1. **You spawn agents**: each is a normal terminal process (`claude`, `agy`, `codex`, or custom) with its own working directory, identity, and provider-specific lifecycle. 2. **Agents collaborate through the hive**: a local git repo of plain files. They write to their own `outbox/`; the harness's router delivers into recipients' `inbox/`. No agent ever touches git (single-committer design avoids `index.lock` corruption). 3. **The GOD agent runs the floor**: it reads every request, resolves routine ones itself (keeping the system fully autonomous), and only escalates *critical* items (spend, destructive ops, scope changes) into an approvals queue you act on. 4. **Everything is visible**: you watch avatars move, envelopes fly, and the live terminal stream; you can type back into any session, browse its files, and read its git history. See [`HIVE.md`](./HIVE.md) for the full multi-agent design, [`SPEC.md`](./SPEC.md) for the terminal/event plane, and [`DESIGN.md`](./DESIGN.md) for the visual system. ## Features