Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
// Test-only module boundary observation, installed before the normal app boot.
// Keep Electron's package entry, paths and boot sequence unchanged.
const Module = require('node:module');
const path = require('node:path');
const target = path.resolve(__dirname, '../../../src/main/features/html_preview.ts');
const load = Module._load;
let installing = false;
Module._load = function (request, parent, isMain) {
const result = load.apply(this, arguments);
if (!installing && !globalThis.__previewRecovery
&& /(?:^|[/\\])html_preview(?:\.ts)?$/.test(request)
&& Module._resolveFilename(request, parent) === target) {
installing = true;
try {
globalThis.__previewRecovery = require('./preview-recovery-main.ts').observePreviewRecovery();
} finally {
installing = false;
}
return require.cache[target].exports;
}
return result;
};