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
merge: keep the hive running behind the Windows lock screen (#18)
Chaitanya Giri0f6d04653ba8
diff --cc src/main/index.tsindex fe623369,73dd014e..c252f570--- a/src/main/index.ts+++ b/src/main/index.ts@@@ -1,6 -1,6 +1,6 @@@- import { app, BrowserWindow, clipboard, dialog, ipcMain, screen, shell, Notification } from 'electron';-import { app, BrowserWindow, clipboard, dialog, ipcMain, powerSaveBlocker, shell } from 'electron';++import { app, BrowserWindow, clipboard, dialog, ipcMain, powerSaveBlocker, screen, shell, Notification } from 'electron';import { spawn } from 'node:child_process';-import { rmSync, existsSync, readFileSync, readdirSync } from 'node:fs';+import { rmSync, existsSync, readFileSync, readdirSync, statSync, cpSync } from 'node:fs';import { join, resolve, sep } from 'node:path';import { PtyManager, type SpawnOptions } from './pty';import {@@@ -655,11 -322,9 +680,13 @@@ ipcMain.handle('pty:spawn', async (_evt// Remember which agent owns this PTY so closing the tab can archive it. A// live terminal means active — ensureAgent above already cleared `archived`.if (opts.hive?.id) ptyToAgent.set(opts.id, opts.hive.id);+ // Pre-accept Claude Code's bypass-mode warning + folder-trust dialog so the+ // agent (spawned with --permission-mode bypassPermissions) doesn't stall on an+ // interactive prompt it can't answer and exit code 1. Best-effort, never blocks.+ try { ensureClaudePermissionsAccepted(opts.cwd); } catch { /* never block spawn */ }- return ptyManager.spawn(opts);+ const res = ptyManager.spawn(opts);- syncKeepAwake();++ syncKeepAwake(); // arm the power-save blocker while ≥1 agent PTY is alive (#18)+ return res;});ipcMain.handle('pty:write', (_evt, id: string, data: string) => {if (typeof id !== 'string' || typeof data !== 'string') return { ok: false, error: 'invalid args' };