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
// Share the `tool: input` line across agent rows, child rows and activity threads.
type AgentToolPreviewFields = { toolName?: string | null; toolInput?: string | null }
/** Only OSC 7501 programs may show bare input as their message; an agent’s orphaned tool argument needs a tool name. */
export function agentToolPreviewInput(
entry: AgentToolPreviewFields,
allowsBareInput: boolean
): string {
const toolInput = entry.toolInput?.trim() ?? ''
return entry.toolName?.trim() || allowsBareInput ? toolInput : ''
}
export function formatAgentToolPreviewLine(
entry: AgentToolPreviewFields,
allowsBareInput: boolean
): string {
const toolName = entry.toolName?.trim() ?? ''
const toolInput = agentToolPreviewInput(entry, allowsBareInput)
if (toolName && toolInput) {
return `${toolName}: ${toolInput}`
}
return toolName || toolInput
}