Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat(llm): recommend a verified no-tools reviewer model

[._.]/ Adam Eivy2f43f02c1d62
diff --git a/client/src/components/settings/LocalLlmTab.test.jsx b/client/src/components/settings/LocalLlmTab.test.jsx
index 21d8e200dc..4418227bc4 100644
--- a/client/src/components/settings/LocalLlmTab.test.jsx
+++ b/client/src/components/settings/LocalLlmTab.test.jsx
@@ -469,6 +469,31 @@ describe('LocalLlmTab recommendations', () => {
await waitFor(() => expect(screen.getByText('Qwen3.8 27B')).toBeTruthy());
});
+ it('highlights the catalog recommendation for the Security Scan', async () => {
+ getLocalLlmCatalog.mockResolvedValue({
+ models: [{
+ id: 'gemma3:27b',
+ key: 'gemma3-27b-it',
+ name: 'Gemma 3 27B IT',
+ category: 'general',
+ recommendedFor: ['general', 'reasoning'],
+ featured: {
+ label: 'Recommended for Security Scan',
+ description: 'A verified local text model without native tool capability.',
+ },
+ params: '27B',
+ size: '17 GB',
+ description: 'Long-context local analysis.',
+ capabilities: ['chat', 'vision'],
+ }],
+ });
+
+ await renderTab('library');
+
+ expect(await screen.findByText('Recommended for Security Scan')).toBeInTheDocument();
+ expect(screen.getByText('A verified local text model without native tool capability.')).toBeInTheDocument();
+ });
+
it('offers redownload on an already-installed catalog card', async () => {
installLocalLlmModel.mockResolvedValue({ success: true });
getLocalLlmCatalog.mockResolvedValue({
diff --git a/server/lib/localLlmCatalog.js b/server/lib/localLlmCatalog.js
index 811410f819..c2d6cabde8 100644
--- a/server/lib/localLlmCatalog.js
+++ b/server/lib/localLlmCatalog.js
@@ -292,10 +292,31 @@ export const LOCAL_LLM_CATALOG = [
size: '12 GB',
family: 'gpt-oss',
description: 'Open-weights 20B model — the default local thinking model.',
- capabilities: ['chat', 'reasoning'],
+ capabilities: ['chat', 'reasoning', 'tools'],
ollama: 'gpt-oss:20b',
lmstudio: 'lmstudio-community/gpt-oss-20b-GGUF'
},
+ {
+ key: 'gemma3-27b-it',
+ name: 'Gemma 3 27B IT',
+ category: 'general',
+ recommendedFor: ['general', 'reasoning'],
+ featured: {
+ label: 'Recommended for Security Scan',
+ description: 'Purpose-specific pick for reviewing untrusted contributor diffs: long-context local text analysis in the verified Ollama build, with no native tool capability to expose.'
+ },
+ params: '27B',
+ size: '17 GB',
+ family: 'gemma',
+ description: "Google's Gemma 3 27B instruction model — long-context local analysis for code-review findings without native tool calling.",
+ note: 'The Security Scan verifies Ollama capabilities before every run and remains read-only; Hugging Face’s official Gemma repository requires accepting its terms.',
+ repository: 'google/gemma-3-27b-it',
+ gated: true,
+ capabilities: ['chat', 'vision'],
+ context: 131072,
+ ollama: 'gemma3:27b',
+ lmstudio: 'lmstudio-community/gemma-3-27b-it-GGUF'
+ },
// ── Large general-purpose / long-context tier (32–128GB unified memory) ──
// Best suited for whole-manuscript editorial review, where prose quality and a
// long context window matter most. To actually fit the manuscript, raise Ollama's
diff --git a/server/lib/localLlmCatalog.test.js b/server/lib/localLlmCatalog.test.js
index 981ea85cbc..cc8f6326c3 100644
--- a/server/lib/localLlmCatalog.test.js
+++ b/server/lib/localLlmCatalog.test.js
@@ -165,6 +165,21 @@ describe('localLlmCatalog', () => {
it('ships the refreshed local models for reasoning, coding, and multilingual categories', () => {
const ollama = getCatalog('ollama');
expect(ollama.find((m) => m.key === 'deepseek-r1-8b')?.id).toBe('deepseek-r1:8b');
+ expect(ollama.find((m) => m.key === 'gemma3-27b-it')).toMatchObject({
+ id: 'gemma3:27b',
+ category: 'general',
+ recommendedFor: expect.arrayContaining(['general', 'reasoning']),
+ featured: { label: 'Recommended for Security Scan' },
+ repository: 'google/gemma-3-27b-it',
+ gated: true,
+ capabilities: ['chat', 'vision'],
+ contextLength: 131072,
+ });
+ expect(ollama.find((m) => m.key === 'gemma3-27b-it').capabilities).not.toContain('tools');
+ // Gemma 4 is newer, but its native function-calling capability makes it
+ // ineligible for the read-only Security Scan model pin.
+ expect(ollama.find((m) => m.key === 'gemma4-12b').capabilities).toContain('tools');
+ expect(ollama.find((m) => m.key === 'gpt-oss-20b').capabilities).toContain('tools');
expect(ollama.find((m) => m.key === 'qwen2.5-coder-7b')?.id).toBe('qwen2.5-coder:7b');
expect(ollama.find((m) => m.key === 'phi-4-14b')?.id).toBe('phi4');
expect(ollama.find((m) => m.key === 'aya-expanse-8b')?.id).toBe('aya-expanse:8b');