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 { decodeAgentChildWorkViews } from '../../../src/shared/agent-status-child-work-view-wire'
import { decodeAgentSubagentsField } from '../../../src/shared/agent-status-subagent-snapshot'
import { buildRunningAgentChildRowModels } from '../../../src/shared/running-agent-child-rows'
import type { RuntimeWorktreeAgentRow } from '../../../src/shared/runtime-types'
/** Read the optional catalog fields permissively, including hosts with no child roster. */
export function worktreeAgentChildRows(agent: RuntimeWorktreeAgentRow, live: boolean) {
return buildRunningAgentChildRowModels(
{
children: decodeAgentChildWorkViews(agent.children),
subagents: decodeAgentSubagentsField(agent.subagents)
},
{
parentEvidenceFresh: agent.subagentObservation === 'live',
transportObservation: live ? 'live' : 'unverifiable',
parentObservedAt: agent.updatedAt,
hostClockOffsetMs: 0
}
)
}