Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

769 B
Raw Blame
import { AGENTS, type AgentKind, type ModelList, type RunnerStatus } from '@/lib/agents/catalog';
import { formatWhen } from '@/lib/format-when';

/** The daemon's list when it sent a usable one, the catalog's otherwise. */
export function offered({ kind, models }: RunnerStatus): ModelList {
  return models && Array.isArray(models.ids) && models.ids.length ? models : { ids: AGENTS[kind].models, from: 'catalog' };
}

export function describeList(kind: AgentKind, { ids, from, at, error }: ModelList): string {
  const source = from === 'cli' && at !== undefined ? `${ids.length} listed by ${AGENTS[kind].bin} · ${formatWhen(at)}` : 'built-in list';
  if (!error) return source;
  return from === 'cli' ? `${source} · last read failed` : `${source} · ${error}`;
}