Skip to content

armgit / orca

Public Imported from GitHub
0

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.

664 B
Raw Blame
import type { AgentChildWorkKind } from './agent-status-child-work'

/** Share SDK local_agent/local_bash/monitor and hook subagent/teammate/shell classification so both lanes agree which tasks are agents. */
export function classifyClaudeBackgroundTaskKind(taskType: unknown): AgentChildWorkKind {
  switch (taskType) {
    case 'local_agent':
    case 'local_subagent':
    case 'subagent':
    case 'teammate':
      return 'agent'
    case 'local_workflow':
      return 'workflow'
    case 'local_bash':
    case 'shell':
    case 'background_shell':
      return 'command'
    case 'monitor':
      return 'monitor'
    default:
      return 'unknown'
  }
}