Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
// Shared renderer IPC/install contract; keep one protocol version for server and per-agent services.
export const AGENT_HOOK_TARGETS = [
'claude',
'openclaude',
'codex',
'qoder',
'qoder-cn',
'qwen-code',
'codebuddy',
'gemini',
'antigravity',
'amp',
'cursor',
'droid',
'command-code',
'grok',
'copilot',
'hermes',
'devin',
'kimi',
'muse',
'zcode',
'dsh',
'jcode',
'kiro'
] as const
export type AgentHookTarget = (typeof AGENT_HOOK_TARGETS)[number]
export type AgentHookInstallState = 'installed' | 'not_installed' | 'partial' | 'error' | 'skipped'
export type AgentHookInstallSkipReason =
| 'agent_disabled'
| 'cli_not_found'
| 'cli_presence_unknown'
| 'hooks_disabled'
export type AgentHookInstallStatus = {
agent: AgentHookTarget
state: AgentHookInstallState
configPath: string
managedHooksPresent: boolean
detail: string | null
skipReason?: AgentHookInstallSkipReason
}
// Reserve version bumps for wire changes. Endpoint files are additive; no durable pre-rollout v1 fleet needs distinguishing, and Cursor scripts rewrite on install. Mismatches warn about stale scripts.
export const ORCA_HOOK_PROTOCOL_VERSION = '1' as const
// Why: absence means the listener predates raw-JSON metadata headers, so managed scripts must keep using form posts.
export const ORCA_HOOK_RAW_JSON_TRANSPORT = 'raw-json-v1' as const