How kowshikkodumuri/munder-difflin works
Munder Difflin is a local-first Electron desktop app for running terminal coding agents as a coordinated team. Users configure providers and a hive, give work to Michael (the orchestrator), and monitor agent sessions on an office floor; agents use shared memory and messaging while running in real pseudo-terminals. The README also describes voice interaction, integrations, and scheduled or webhook-triggered work. Source excerpts establish some process and trigger wiring, but many subsystem implementations were not sampled, so uncertain links are omitted or marked unverified.
Main entry points: index.ts Electron main · hive.ts Hive orchestrator · App.tsx Desktop UI · pty.ts PTY sessions
Components 24
Desktop experience
- Desktop UI
src/renderer/src/App.tsx - Provider settings
src/renderer/src/components/AiEnginesSettings.tsx - Office floor
src/renderer/src/scene/office/OfficeFloor.tsx - IPC bridge
src/preload/index.ts
Agent coordination
- Electron main
src/main/index.ts - Hive configuration
src/main/config.ts - Hive orchestrator
src/main/hive.ts - Agent memory
src/main/memory.ts - Knowledge recall
src/main/knowledge.ts - Agent hooks
src/main/hooks.ts
Agent runtime
- Provider catalog
src/shared/agentProvider.ts - PTY sessions
src/main/pty.ts - Agent CLIs
- Local workspace
src/main/fs.ts
Work extensions
- Trigger contracts
src/shared/triggers.ts - Webhook server
src/main/webhook.ts - Voice actions
src/main/realtimeActions.ts - Integrations
src/shared/integrations.ts - Analytics
src/main/analytics.ts - Telemetry
src/main/telemetry.ts - Usage tracking
src/main/usage.ts - App updater
src/main/updater.ts
Other components
- User
- Webhook callers
Connections 25
- User → Desktop UI: gives work
- Desktop UI → Office floor: shows agents
src/renderer/src/App.tsx - Desktop UI → Provider settings: configures engines
- Desktop UI → IPC bridge: requests actions
- IPC bridge → Electron main: invokes IPC
- Electron main → Hive configuration: reads settings
src/main/index.ts - Electron main → Hive orchestrator: coordinates agents
src/main/index.ts - Electron main → PTY sessions: starts sessions
src/main/index.ts - PTY sessions → Provider catalog: uses provider commands
- PTY sessions → Agent CLIs: runs processes
- Hive orchestrator → Agent memory: uses long-term memory
- Hive orchestrator → Knowledge recall: recalls knowledge
- Hive orchestrator → Agent hooks: uses agent hooks
- Hive orchestrator → Agent CLIs: routes agent work
- Electron main → Local workspace: serves workspace files
src/main/index.ts - Electron main → Webhook server: starts webhook server
src/main/index.ts - Webhook callers → Webhook server: posts work
src/main/webhook.ts - Webhook server → Hive orchestrator: submits messages
src/main/index.ts - Electron main → Voice actions: dispatches voice actions
src/main/index.ts - Electron main → Trigger contracts: validates trigger data
src/main/index.ts - Electron main → Integrations: uses integration definitions
src/main/index.ts - Electron main → Analytics: records activity
src/main/index.ts - Electron main → Telemetry: records telemetry
src/main/index.ts - Electron main → Usage tracking: tracks usage
src/main/index.ts - Electron main → App updater: manages updates
src/main/index.ts