How chaitanyagiri/munder-difflin works
Munder Difflin is an Electron desktop harness that turns terminal coding CLIs into a coordinated team of agents, represented on a shared office floor. The principal workflow is to configure an agent, launch its real CLI in a pseudo-terminal, and coordinate work through Michael and the hive while agents retain memory. The README also describes voice/realtime controls, integrations and webhooks, and workspace tools. The tree and excerpts establish the UI, IPC, runtime, and feature modules; some internal wiring is inferred only where the README explicitly documents the behavior.
Main entry points: main/index.ts Main process · App.tsx App shell · preload/index.ts IPC bridge · pty.ts PTY sessions
Components 18
Desktop experience
- App shell
src/renderer/src/App.tsx - Office floor
src/renderer/src/scene/office/OfficeFloor.tsx - Agent controls
src/renderer/src/components/AgentDetailPanel.tsx - Terminal view
src/renderer/src/components/TerminalView.tsx - IPC bridge
src/preload/index.ts
Agent runtime
- Main process
src/main/index.ts - PTY sessions
src/main/pty.ts - PTY activity parser
src/renderer/src/hooks/usePtyParser.ts
Coordination and memory
- Hive coordinator
src/main/hive.ts - Agent roster
src/main/roster.ts - Agent memory
src/main/memory.ts - Local database
src/main/db.ts
Tools and integrations
- Realtime voice
src/main/realtime.ts - Integrations
src/main/integrations.ts - Webhook triggers
src/main/webhook.ts - Workspace tools
src/main/git.ts
Other components
- User
- Agent CLI
Connections 18
- User → App shell: uses
- App shell → Office floor: renders
- App shell → Agent controls: controls
- Agent controls → IPC bridge: invokes IPC
- Terminal view → IPC bridge: invokes IPC
- IPC bridge → Main process: forwards IPC
- Main process → PTY sessions: manages sessions
- PTY sessions → Agent CLI: spawns CLI
- Agent CLI → PTY sessions: streams output
- Terminal view → PTY activity parser: passes stream
- PTY activity parser → Office floor: updates activity
- Hive coordinator → Agent roster: coordinates agents
- Hive coordinator → Agent memory: uses memory
- Agent memory → Local database: indexes recall
- Main process → Realtime voice: dispatches voice
- Main process → Integrations: handles integration IPC
- Main process → Webhook triggers: starts server
- Main process → Workspace tools: handles git requests