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
/**
* Release process-wide main-process caches before deleting a per-test
* workspace. Windows does not allow unlinking SQLite databases while a
* connection is still open, and search can retain delayed flush timers.
*/
export async function drainMainRuntimeForTest(): Promise<void> {
// `flushAll` settles deferred chat writes and releases the chat store's
// SQLite handle, which Windows needs before the workspace can be removed.
try {
const searchIndexer = await import('../../src/main/features/search/indexer');
await searchIndexer.flushAll();
}
finally {
const kbVector = await import('../../src/main/features/kb_vector');
kbVector.closeAllKb();
}
}