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.

1.6 KB
Raw Blame
import { agentChoiceCliApply } from './agent-choice-cli-apply'
import type { AgentSessionOptionCatalog, CatalogOption } from './agent-session-option-catalog-types'

const CODEBUDDY_EFFORT: CatalogOption = {
  id: 'effort',
  label: 'Reasoning effort',
  category: 'thought_level',
  kind: {
    type: 'select',
    choices: [
      { value: 'minimal', label: 'Minimal' },
      { value: 'low', label: 'Low' },
      { value: 'medium', label: 'Medium' },
      { value: 'high', label: 'High' },
      { value: 'xhigh', label: 'Extra high' },
      { value: 'max', label: 'Max' }
    ],
    defaultValue: 'medium'
  },
  apply: {
    ...agentChoiceCliApply(
      'codebuddy',
      [
        {
          kind: 'value',
          names: ['--effort'],
          lift: 'separate-and-long-equals'
        }
      ],
      '--effort'
    )
  }
}

export const CODEBUDDY_SESSION_OPTION_CATALOG: AgentSessionOptionCatalog = {
  supportsWorkerLaunchPreferences: true,
  // Stable CLI aliases let CodeBuddy resolve the account's current model choices.
  models: [
    { id: 'default-model', label: 'Default' },
    { id: 'fast-model', label: 'Fast' },
    { id: 'balanced-model', label: 'Balanced' },
    { id: 'primary-model', label: 'Primary' },
    { id: 'deep-model', label: 'Deep' }
  ].map((model) => ({ ...model, options: [CODEBUDDY_EFFORT] })),
  modelApply: {
    ...agentChoiceCliApply(
      'codebuddy',
      [
        {
          kind: 'value',
          names: ['--model'],
          lift: 'separate-and-long-equals'
        }
      ],
      '--model'
    )
  },
  unknownModelOptions: [CODEBUDDY_EFFORT]
}