Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.
TypeScript agent-teamagentic-aiai-agentsai-assistantclaude-codecodexcursorelectrongrokgrok-bot-alternativelinuxlocal-firstmacosmcpmulti-agentopenclaw-alternativeopencodewindows
Tuca proposes agents on Gemini models too (#50)
Eduardo Machadofe8bea230eae
diff --git a/src/core/tuca.ts b/src/core/tuca.tsindex dada590..60e1f7c 100644--- a/src/core/tuca.ts+++ b/src/core/tuca.ts@@ -69,14 +69,14 @@ export const PROPOR_AGENTE: ToolDef = {}}-// The models agents can run on now: the listed ones of a ready plan, and what OpenCode and Pi list.+// The models agents can run on now: the listed ones of a ready plan, and what OpenCode, Pi and Gemini list.export function availableModels(s: Pick<Settings, 'engines'>, listed: Partial<Record<string, string[]>> = {}): { id: string; label: string }[] {// Codex's own catalog when there is one (newest first); the app's list otherwise.const codex = listed['codex']?.length ? listed['codex'].map((slug) => modelInfo(codexValue(slug)) ?? { id: slug, engine: 'codex' as const, label: slug, hint: '' }) : undefinedconst plan = [...MODELS.filter((m) => m.engine !== 'codex' || !codex), ...(codex ?? []).map((m) => ({ ...m, id: codexValue(m.id) }))].filter((m) => s.engines[m.engine].loggedIn && s.engines[m.engine].route !== 'gateway').map((m) => ({ id: m.id, label: `${ENGINES[m.engine].label} · ${m.label}` }))- const own = (['opencode', 'pi'] as const).flatMap((e) => (s.engines[e].loggedIn ? (listed[e] ?? []).slice(0, 12).map((name) => ({ id: `${e}:${name}`, label: `${ENGINES[e].label} · ${name}` })) : []))+ const own = (['opencode', 'pi', 'gemini'] as const).flatMap((e) => (s.engines[e].loggedIn ? (listed[e] ?? []).slice(0, 12).map((name) => ({ id: `${e}:${name}`, label: `${ENGINES[e].label} · ${name}` })) : []))return [...plan, ...own]}diff --git a/test/codex-models.test.ts b/test/codex-models.test.tsindex e521a2c..57cc085 100644--- a/test/codex-models.test.ts+++ b/test/codex-models.test.ts@@ -45,3 +45,14 @@ describe("Codex's own catalog", () => {expect(availableModels(s).map((m) => m.id)).toEqual(['gpt-5.6-luna', 'gpt-5.6-terra', 'gpt-5.6-sol'])})})++describe("Tuca's list of models", () => {+ it('includes the Gemini models when the Gemini CLI is signed in', () => {+ const off = { installed: false, loggedIn: false }+ const s = { engines: { claude: off, codex: off, opencode: off, pi: off, gemini: { installed: true, loggedIn: true, route: 'providers' } } } as unknown as Pick<Settings, 'engines'>+ expect(availableModels(s, { gemini: ['gemini-2.5-pro', 'gemini-2.5-flash'] })).toEqual([+ { id: 'gemini:gemini-2.5-pro', label: 'Gemini CLI · gemini-2.5-pro' },+ { id: 'gemini:gemini-2.5-flash', label: 'Gemini CLI · gemini-2.5-flash' }+ ])+ })+})