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: refresh local LLM catalog with DeepSeek-R1 8B, Qwen2.5-Coder 7B, Phi-4 14B, and Aya Expanse 8B

[._.]/ Adam Eivy4366909c9c08
diff --git a/client/src/utils/providers.js b/client/src/utils/providers.js
index 98670239a6..3630c26d85 100644
--- a/client/src/utils/providers.js
+++ b/client/src/utils/providers.js
@@ -549,7 +549,7 @@ export const isVisionCapableCliProvider = (provider) =>
export const isToolUseModel = (id) =>
typeof id === 'string' && id.length > 0 &&
// Mirror of TOOL_USE_RE in server/lib/localModelHeuristics.js — keep in lockstep.
- /qwen|llama-?3\.[1-9]|llama-?4|mistral|mixtral|ministral|codestral|devstral|magistral|command-?r|command-?a|north-mini-code|firefunction|functionary|watt-tool|hermes|functiongemma|glm-?4|granite-?[34]|(?:^|[-_/:])gemma-?4|gpt-oss|nemotron|olmo-?3|lfm2|ornith|muse-glimmer|nex-n2|smollm2|dflash|deepseek-v3|deepseek-r1|deepseek-v4/i.test(id);
+ /qwen|llama-?3\.[1-9]|llama-?4|mistral|mixtral|ministral|codestral|devstral|magistral|command-?r|command-?a|north-mini-code|firefunction|functionary|watt-tool|hermes|functiongemma|glm-?4|granite-?[34]|(?:^|[-_/:])gemma-?4|gpt-oss|nemotron|olmo-?3|lfm2|ornith|muse-glimmer|nex-n2|smollm2|dflash|deepseek-v3|deepseek-r1|deepseek-v4|phi-?4/i.test(id);
/**
* Agent-picker tool-use annotation for a model id. Agent / CoS tasks (the CD
diff --git a/server/lib/aiToolkit/providers.js b/server/lib/aiToolkit/providers.js
index 3ebc753045..d11c707588 100644
--- a/server/lib/aiToolkit/providers.js
+++ b/server/lib/aiToolkit/providers.js
@@ -159,7 +159,7 @@ const TOOL_USE_RE = new RegExp([
'lfm2', 'ornith', 'muse-glimmer', 'nex-n2',
'smollm2',
'dflash',
- 'deepseek-v3', 'deepseek-r1', 'deepseek-v4',
+ 'deepseek-v3', 'deepseek-r1', 'deepseek-v4', 'phi-?4',
].join('|'), 'i');
/**
diff --git a/server/lib/localLlmCatalog.js b/server/lib/localLlmCatalog.js
index 24d04c49f3..f3ed9fdf79 100644
--- a/server/lib/localLlmCatalog.js
+++ b/server/lib/localLlmCatalog.js
@@ -408,6 +408,33 @@ export const LOCAL_LLM_CATALOG = [
ollama: 'olmo-3.1:32b-instruct',
lmstudio: 'lmstudio-community/Olmo-3.1-32B-Instruct-GGUF'
},
+ {
+ key: 'deepseek-r1-8b',
+ name: 'DeepSeek-R1 8B',
+ category: 'reasoning',
+ recommendedFor: ['reasoning', 'lightweight'],
+ params: '8B',
+ size: '4.9 GB',
+ family: 'deepseek',
+ description: "DeepSeek's open reasoning model distilled into an 8B Llama architecture — explicit chain-of-thought thinking for math, logic, and complex reasoning.",
+ capabilities: ['chat', 'reasoning'],
+ ollama: 'deepseek-r1:8b',
+ lmstudio: 'lmstudio-community/DeepSeek-R1-Distill-Llama-8B-GGUF'
+ },
+ {
+ key: 'phi-4-14b',
+ name: 'Phi-4 14B',
+ category: 'reasoning',
+ recommendedFor: ['reasoning', 'general'],
+ params: '14B',
+ size: '9.1 GB',
+ family: 'phi',
+ description: "Microsoft's 14B open model with strong reasoning, math, and synthetic data quality — fits easily on 16GB machines.",
+ capabilities: ['chat', 'reasoning', 'tools'],
+ context: 16384,
+ ollama: 'phi4',
+ lmstudio: 'lmstudio-community/phi-4-GGUF'
+ },
{
key: 'gemma4-31b',
name: 'Gemma 4 31B',
@@ -469,6 +496,20 @@ export const LOCAL_LLM_CATALOG = [
repository: 'Qwen/Qwen3-Coder-30B-A3B-Instruct',
ollama: 'qwen3-coder:30b'
},
+ {
+ key: 'qwen2.5-coder-7b',
+ name: 'Qwen2.5-Coder 7B',
+ category: 'coding',
+ recommendedFor: ['coding'],
+ params: '7B',
+ size: '4.7 GB',
+ family: 'qwen',
+ description: "Alibaba's 7B open coding model — excellent code generation, multi-file editing, and tool use for 8–16GB laptops.",
+ capabilities: ['chat', 'code', 'tools'],
+ context: 131072,
+ ollama: 'qwen2.5-coder:7b',
+ lmstudio: 'lmstudio-community/Qwen2.5-Coder-7B-Instruct-GGUF'
+ },
{
key: 'ornith-9b',
name: 'Ornith 1.0 9B',
@@ -638,6 +679,20 @@ export const LOCAL_LLM_CATALOG = [
ollama: 'qwen3-vl:30b',
lmstudio: 'lmstudio-community/Qwen3-VL-30B-A3B-Instruct-GGUF'
},
+ // ── Multilingual tier ──
+ {
+ key: 'aya-expanse-8b',
+ name: 'Aya Expanse 8B',
+ category: 'multilingual',
+ recommendedFor: ['multilingual', 'chat'],
+ params: '8B',
+ size: '5.1 GB',
+ family: 'aya',
+ description: "Cohere For AI's flagship open multilingual model covering 23 languages with high-fidelity translation and localized dialogue.",
+ capabilities: ['chat', 'multilingual'],
+ ollama: 'aya-expanse:8b',
+ lmstudio: 'lmstudio-community/Aya-Expanse-8B-GGUF'
+ },
// ── Text embeddings ──
// PortOS's memory/recall pipeline expects 768-dimension vectors
// (EMBEDDING_DIM in server/services/embeddings.js) — every entry below
diff --git a/server/lib/localLlmCatalog.test.js b/server/lib/localLlmCatalog.test.js
index c4940ee41d..981ea85cbc 100644
--- a/server/lib/localLlmCatalog.test.js
+++ b/server/lib/localLlmCatalog.test.js
@@ -161,6 +161,14 @@ describe('localLlmCatalog', () => {
it('never lists an Ollama `:cloud` tag — those manifests carry no local weights', () => {
expect(LOCAL_LLM_CATALOG.every((e) => !/(?:^|:)cloud$/.test(e.ollama || ''))).toBe(true);
});
+
+ 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 === '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');
+ });
});
describe('searchCatalog', () => {
diff --git a/server/lib/localModelHeuristics.js b/server/lib/localModelHeuristics.js
index 695bf0512a..51f5a8a37e 100644
--- a/server/lib/localModelHeuristics.js
+++ b/server/lib/localModelHeuristics.js
@@ -187,7 +187,7 @@ const TOOL_USE_RE = new RegExp([
'lfm2', 'ornith', 'muse-glimmer', 'nex-n2',
'smollm2',
'dflash',
- 'deepseek-v3', 'deepseek-r1', 'deepseek-v4',
+ 'deepseek-v3', 'deepseek-r1', 'deepseek-v4', 'phi-?4',
].join('|'), 'i');
/**
diff --git a/server/lib/localModelHeuristics.test.js b/server/lib/localModelHeuristics.test.js
index ee620cb086..09c76228c5 100644
--- a/server/lib/localModelHeuristics.test.js
+++ b/server/lib/localModelHeuristics.test.js
@@ -30,6 +30,9 @@ describe('localModelHeuristics', () => {
'north-mini-code-1.0',
'olmo-3.1:32b-instruct',
'nemotron-3-nano:4b',
+ 'phi4',
+ 'deepseek-r1:8b',
+ 'qwen2.5-coder:7b',
]) {
expect(isToolUseModel(id), id).toBe(true);
}