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
// One spelling, so a key minted on a client and matched on the host cannot drift.
export function toAiVaultProjectKey(
projectId: string | null | undefined,
repoId?: string | null
): string | null {
if (projectId) {
// Legacy projections already use repo-prefixed ids; wrapping one again splits the key.
return projectId.startsWith('repo:') ? projectId : `project:${projectId}`
}
return repoId ? `repo:${repoId}` : null
}