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
import { z } from 'zod'
import { requiredString } from './rpc-param-primitives'
import { ORCHESTRATION_FLEET_PAGE_MAX } from '../orchestration-fleet-projection'
export const WorkerDispatchParams = z.object({ dispatch: requiredString('Missing --dispatch') })
export const WorkerRetainParams = WorkerDispatchParams.strict()
export const WORKER_TERMINAL_LIST_STATES = [
'active',
'reclaimable',
'retained',
'release_pending',
'release_unknown',
'released'
] as const
export const WorkerListParams = z.object({
run: z.string().min(1).optional(),
terminalState: z.enum(WORKER_TERMINAL_LIST_STATES).optional(),
cursor: z.string().min(1).max(2_048).optional(),
limit: z.number().int().min(1).max(ORCHESTRATION_FLEET_PAGE_MAX).optional(),
includeRemote: z.boolean().optional(),
paginate: z.boolean().optional()
})