an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(windows): resolve claude binary on Windows (where.exe + win32 PATH fallbacks); release v0.1.8
Chaitanya Giri04c84c865d83
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9f3da8fe..89314d07 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,6 +6,11 @@ All notable changes to this project are documented here. The format is based on## [Unreleased]+## [0.1.8] — 2026-06-05++### Fixed+- **Windows agent spawn.** Launching an agent on Windows failed with `cannot create process, error code: 2` (ENOENT) because binary and PATH resolution were Unix-only (`SHELL`/`/bin/zsh`, `-ilc`, `which`, and Unix-only fallback paths). Windows now resolves `claude` via `where`, checks the standard Windows install locations (`%APPDATA%\npm\claude.cmd`, `%LOCALAPPDATA%\Programs\claude`, `%USERPROFILE%\.claude\local`), uses the process `PATH` directly (no login-shell probe), and recognizes Windows-style (`\`) absolute paths. macOS and Linux resolution is unchanged; the Unix fallbacks now also include `~/.volta/bin`.+## [0.1.7] — 2026-06-04### Addeddiff --git a/RELEASE.md b/RELEASE.mdindex 80e1c633..ce2167e8 100644--- a/RELEASE.md+++ b/RELEASE.md@@ -1,4 +1,4 @@-# Munder Difflin v0.1.7+# Munder Difflin v0.1.8**A local hive of Claude Code agents that run themselves** — messaging, routing, andremembering, coordinated by a GOD orchestrator you talk to. Local-first and open source.@@ -7,9 +7,8 @@ remembering, coordinated by a GOD orchestrator you talk to. Local-first and open----## What's new in 0.1.7-- Slack → Michael's queue — paste a message in a Slack channel and it lands in Michael's queue, exactly as if you typed it. Off by default; every request is signing-secret verified.-- Native approvals — human-in-the-loop moved to native Claude Code permission prompts (approvable from your phone via `/remote-control`); the old in-app approvals panel and its re-queue bug are gone.+## What's new in 0.1.8+- Windows agent spawn fix — launching an agent on Windows failed with "cannot create process, error code: 2" (ENOENT) because binary/PATH resolution was Unix-only. Windows now finds `claude` via `where` and the standard install locations (`%APPDATA%\npm`, `%LOCALAPPDATA%\Programs\claude`, `%USERPROFILE%\.claude\local`) and uses the process PATH directly — no shell probe. macOS/Linux behavior is unchanged (with an added `~/.volta/bin` fallback).See the [CHANGELOG](https://github.com/chaitanyagiri/munder-difflin/blob/main/CHANGELOG.md) for full detail.@@ -23,22 +22,22 @@ Apple Silicon and Intel.### 🍎 macOS| Build | File ||---|---|-| Universal (Apple Silicon + Intel) | [`Munder-Difflin-0.1.7-mac-universal.dmg`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.7-mac-universal.dmg) |+| Universal (Apple Silicon + Intel) | [`Munder-Difflin-0.1.8-mac-universal.dmg`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.8-mac-universal.dmg) |### 🪟 Windows| Build | File ||---|---|-| Installer (x64) — *recommended* | [`Munder-Difflin-0.1.7-win-x64-setup.exe`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.7-win-x64-setup.exe) |-| Portable (x64, no install) | [`Munder-Difflin-0.1.7-win-x64-portable.exe`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.7-win-x64-portable.exe) |+| Installer (x64) — *recommended* | [`Munder-Difflin-0.1.8-win-x64-setup.exe`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.8-win-x64-setup.exe) |+| Portable (x64, no install) | [`Munder-Difflin-0.1.8-win-x64-portable.exe`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.8-win-x64-portable.exe) |### 🐧 Linux| Build | File ||---|---|-| AppImage (x86_64) | [`Munder-Difflin-0.1.7-linux-x86_64.AppImage`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.7-linux-x86_64.AppImage) |+| AppImage (x86_64) | [`Munder-Difflin-0.1.8-linux-x86_64.AppImage`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/Munder-Difflin-0.1.8-linux-x86_64.AppImage) |### 📦 Source-[Source code (zip)](https://github.com/chaitanyagiri/munder-difflin/archive/refs/tags/v0.1.7.zip) ·-[Source code (tar.gz)](https://github.com/chaitanyagiri/munder-difflin/archive/refs/tags/v0.1.7.tar.gz)+[Source code (zip)](https://github.com/chaitanyagiri/munder-difflin/archive/refs/tags/v0.1.8.zip) ·+[Source code (tar.gz)](https://github.com/chaitanyagiri/munder-difflin/archive/refs/tags/v0.1.8.tar.gz)> **Verify your download:** [`SHA256SUMS.txt`](https://github.com/chaitanyagiri/munder-difflin/releases/latest/download/SHA256SUMS.txt) — then `shasum -a 256 -c SHA256SUMS.txt` (macOS/Linux) or `Get-FileHash` (Windows).diff --git a/docs/index.html b/docs/index.htmlindex 5b5f50fc..bb45135b 100644--- a/docs/index.html+++ b/docs/index.html@@ -943,7 +943,7 @@// download picker — pick macOS / Windows / Linux, click starts the download(function () {var REPO = 'chaitanyagiri/munder-difflin';- var REL = '0.1.7'; // fallback version; live links are resolved from the GitHub API below+ var REL = '0.1.8'; // fallback version; live links are resolved from the GitHub API belowvar BASE = 'https://github.com/' + REPO + '/releases/latest/download/';var PLATFORMS = [{ key: 'mac', icon: '🍎', os: 'macOS', sub: 'Universal · Apple Silicon + Intel', match: 'mac-universal.dmg', file: 'Munder-Difflin-' + REL + '-mac-universal.dmg' },diff --git a/package-lock.json b/package-lock.jsonindex a758e5b6..d1a8524e 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "munder-difflin",- "version": "0.1.7",+ "version": "0.1.8","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "munder-difflin",- "version": "0.1.7",+ "version": "0.1.8","hasInstallScript": true,"dependencies": {"@codemirror/lang-css": "^6.3.1",diff --git a/package.json b/package.jsonindex a6561fd9..98c5e1b3 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "munder-difflin",- "version": "0.1.7",+ "version": "0.1.8","private": true,"description": "Local multi-agent harness for Claude Code: autonomous agents that message, route, and remember — coordinated by a GOD orchestrator and visualized as avatars at work.","main": "out/main/index.js",diff --git a/src/main/pty.ts b/src/main/pty.tsindex f8aafec8..d4b2a386 100644--- a/src/main/pty.ts+++ b/src/main/pty.ts@@ -54,8 +54,31 @@ export class PtyManager {* common install locations. Needed because Electron's spawn env on* macOS launches without the user's interactive shell PATH. */private resolveCommand(command: string): string {- if (command.includes('/')) return command;- // Try `which` against an interactive shell so we pick up nvm/asdf/brew paths.+ // Already an absolute/relative path (Unix `/` or Windows `\`) — pass through.+ if (command.includes('/') || command.includes('\\')) return command;+ if (process.platform === 'win32') {+ // `where` is the Windows equivalent of `which`; runs via cmd.exe (shell:true).+ try {+ const res = spawnSync('where', [command], { encoding: 'utf8', timeout: 3000, shell: true });+ const path = (res.stdout ?? '').trim().split(/\r?\n/)[0];+ if (path && existsSync(path)) return path;+ } catch { /* fall through */ }+ // Common Windows install locations (npm global = %APPDATA%\npm\<cmd>.cmd).+ const appData = process.env.APPDATA ?? '';+ const localAppData = process.env.LOCALAPPDATA ?? '';+ const home = process.env.USERPROFILE ?? process.env.HOME ?? '';+ const winCandidates = [+ `${appData}\\npm\\${command}.cmd`,+ `${appData}\\npm\\${command}`,+ `${localAppData}\\Programs\\claude\\${command}.exe`,+ `${home}\\.claude\\local\\${command}.cmd`,+ `${home}\\.claude\\local\\${command}`+ ];+ for (const c of winCandidates) if (existsSync(c)) return c;+ // Last resort — let node-pty try; will fail with ENOENT if missing.+ return command;+ }+ // macOS / Linux — `which` against an interactive shell so we pick up nvm/asdf/brew paths.try {const res = spawnSync(process.env.SHELL ?? '/bin/zsh', ['-ilc', `which ${command}`], {encoding: 'utf8',@@ -69,7 +92,8 @@ export class PtyManager {`/opt/homebrew/bin/${command}`,`/usr/local/bin/${command}`,`${process.env.HOME ?? ''}/.local/bin/${command}`,- `${process.env.HOME ?? ''}/.claude/local/${command}`+ `${process.env.HOME ?? ''}/.claude/local/${command}`,+ `${process.env.HOME ?? ''}/.volta/bin/${command}`];for (const c of candidates) if (existsSync(c)) return c;// Last resort — let node-pty try; will fail with ENOENT if missing.@@ -87,6 +111,8 @@ export class PtyManager {try {// Build a user-shell PATH so child can resolve subprocess deps.const userPath = (() => {+ // Windows has no interactive login-shell PATH problem — use the process PATH directly.+ if (process.platform === 'win32') return process.env.PATH || '';try {const res = spawnSync(process.env.SHELL ?? '/bin/zsh', ['-ilc', 'echo -n "$PATH"'], {encoding: 'utf8',diff --git a/src/main/shellEnv.ts b/src/main/shellEnv.tsindex 2bda40a1..646c0bb7 100644--- a/src/main/shellEnv.ts+++ b/src/main/shellEnv.ts@@ -12,6 +12,11 @@ let cachedPath: string | null = null;/** The user's interactive-shell PATH, queried once and cached for the session. */export function userShellPath(): string {if (cachedPath !== null) return cachedPath;+ // Windows has no interactive login-shell PATH problem — use the process PATH directly.+ if (process.platform === 'win32') {+ cachedPath = process.env.PATH || '';+ return cachedPath;+ }try {const res = spawnSync(process.env.SHELL ?? '/bin/zsh', ['-ilc', 'echo -n "$PATH"'], {encoding: 'utf8',@@ -27,7 +32,28 @@ export function userShellPath(): string {/** Resolve a bare command (e.g. 'claude') against the user's PATH + common* install locations. Returns the input unchanged if it already looks like a path. */export function resolveCommand(command: string): string {- if (command.includes('/')) return command;+ // Already an absolute/relative path (Unix `/` or Windows `\`) — pass through.+ if (command.includes('/') || command.includes('\\')) return command;+ if (process.platform === 'win32') {+ // `where` is the Windows equivalent of `which`; runs via cmd.exe (shell:true).+ try {+ const res = spawnSync('where', [command], { encoding: 'utf8', timeout: 3000, shell: true });+ const path = (res.stdout ?? '').trim().split(/\r?\n/)[0];+ if (path && existsSync(path)) return path;+ } catch { /* fall through */ }+ const appData = process.env.APPDATA ?? '';+ const localAppData = process.env.LOCALAPPDATA ?? '';+ const home = process.env.USERPROFILE ?? process.env.HOME ?? '';+ const winCandidates = [+ `${appData}\\npm\\${command}.cmd`,+ `${appData}\\npm\\${command}`,+ `${localAppData}\\Programs\\claude\\${command}.exe`,+ `${home}\\.claude\\local\\${command}.cmd`,+ `${home}\\.claude\\local\\${command}`+ ];+ for (const c of winCandidates) if (existsSync(c)) return c;+ return command;+ }try {const res = spawnSync(process.env.SHELL ?? '/bin/zsh', ['-ilc', `which ${command}`], {encoding: 'utf8',@@ -40,7 +66,8 @@ export function resolveCommand(command: string): string {`/opt/homebrew/bin/${command}`,`/usr/local/bin/${command}`,`${process.env.HOME ?? ''}/.local/bin/${command}`,- `${process.env.HOME ?? ''}/.claude/local/${command}`+ `${process.env.HOME ?? ''}/.claude/local/${command}`,+ `${process.env.HOME ?? ''}/.volta/bin/${command}`];for (const c of candidates) if (existsSync(c)) return c;return command;