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
export const LATENCY_TARGET_MS = 300;
// Platform-specific response budget approved for lower-spec Windows hosts.
export const LATENCY_LIMIT_MS = process.platform === 'win32' ? 800 : 500;
// First-request setup has a separate, approved budget on lower-spec Windows hosts.
export const FIRST_REQUEST_LATENCY_LIMIT_MS = process.platform === 'win32' ? 700 : LATENCY_LIMIT_MS;
export interface LatencySample {
elapsedMs: number;
phases?: Array<{ phase: string; ms: number }>;
}
/** Shared by main-process integration and Electron interaction tests. Only
* bounded metric/phase names and durations belong here, never request data. */
export function checkLatencyBudget(metric: string, sample: LatencySample, limitMs = LATENCY_LIMIT_MS): void {
const { elapsedMs, phases = [] } = sample;
if (!Number.isFinite(elapsedMs) || elapsedMs < 0) {
throw new Error('Invalid latency measurement');
}
if (elapsedMs > LATENCY_TARGET_MS) {
console.warn('[latency-warning]', JSON.stringify({
metric, elapsed_ms: elapsedMs, target_ms: LATENCY_TARGET_MS,
limit_ms: limitMs, phases,
}));
}
if (elapsedMs > limitMs) {
throw new Error(`${metric} took ${elapsedMs.toFixed(1)} ms (budget ${limitMs} ms)`);
}
}