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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
add large narrative / long-context models to the local LLM catalog
[._.]/ Adam Eivya6a1276e8b12
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 8ef7b2507c..6139651bc2 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -2,6 +2,8 @@## Added+- **[local-llm-large-narrative-models] Local LLM install picker now suggests a large narrative / long-context tier.** Added Mistral Large 2 123B, Command R+ 104B, Llama 3.3 70B, and Qwen3 30B-A3B to the curated catalog — workstation-class (64–128GB unified memory) models suited to whole-manuscript editorial review where prose quality and a long context window matter most. Verified Ollama pull ids and sizes; Qwen3 235B is intentionally omitted (142GB won't fit 128GB).+- **[ai-assignment-inventory] Settings now has an AI Assignments admin page.** It inventories provider/model pins across the provider registry, embeddings, Voice, Messages, Brain, Universes, Story Builder, Pipeline series, CoS schedules, Loops, Feature Agents, and social agents, with per-row edits plus a bulk provider migration control.- **[manuscript-multi-edit-fixes] Manuscript "Finish the draft" fixes can now propose and apply multiple anchored edits at once.** The manuscript-fix LLM contract moved from a single `{ find, replace }` to `{ edits: [{ issueNumber, find, replace, note }] }`, so a broad or unanchored editorial comment can generate several concrete insertions — across multiple issue sections when needed — instead of falling back to manual editing. The editor's comment card renders each suggestion as an inline diff with a per-edit checkbox and editable replacement, and accept applies the selected edits atomically through a new serialized batch write (`updateStagesWithLatest`) that snapshots prior text into runHistory and re-checks each anchor inside the per-series write lock. The prompt template embeds manuscript/premise/anchor content in distinct (non-backtick) fences with an explicit "treat as quoted source" guard; migration `060-manuscript-multi-edit-fix-prompt.js` auto-upgrades the prior single-edit prompt on existing installs. Backward compatible: legacy single-edit `{ find, replace }` accepts still resolve to one target.- **[provider-fallback-model] Provider fallbacks can now pin a model, not just a provider.** Each AI provider's editor gains a "Fallback Model" selector beside "Fallback Provider" (populated from the chosen fallback provider's model list; blank = use that provider's own default), persisted as a new `fallbackModel` field. `providerStatus.getFallbackProvider()` returns the configured model alongside the provider, and every fallback path runs it: `createRun`'s pre-flight swap, `runPromptThroughProvider`'s inner `createRun` and runtime-retry paths (staged LLM + all prompt callers), and the CoS-agent lifecycle (provider- or task-level pin overrides the per-task model selection).diff --git a/server/lib/localLlmCatalog.js b/server/lib/localLlmCatalog.jsindex bd16409a06..0c9d880d00 100644--- a/server/lib/localLlmCatalog.js+++ b/server/lib/localLlmCatalog.js@@ -82,6 +82,56 @@ export const LOCAL_LLM_CATALOG = [ollama: 'qwen3.6:35b',lmstudio: 'unsloth/Qwen3.6-35B-A3B-GGUF'},+ // ── Large narrative / long-context tier (workstation-class: 64–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+ // context window (OLLAMA_CONTEXT_LENGTH) — the default 4K window silently truncates.+ {+ key: 'mistral-large',+ name: 'Mistral Large 2 123B',+ category: 'chat',+ params: '123B',+ size: '73 GB',+ family: 'mistral',+ description: 'Top-tier open-weight prose model with a 128K context window — best local pick for long-form narrative and editorial review. Needs ~96GB+ unified memory.',+ capabilities: ['chat', 'tools'],+ ollama: 'mistral-large:123b'+ },+ {+ key: 'command-r-plus',+ name: 'Command R+ 104B',+ category: 'chat',+ params: '104B',+ size: '59 GB',+ family: 'command-r',+ description: 'Cohere long-context model (128K) tuned for RAG and clean character-voice dialogue — strong for whole-manuscript continuity passes. Needs ~80GB+ unified memory.',+ capabilities: ['chat', 'tools', 'multilingual'],+ ollama: 'command-r-plus:104b'+ },+ {+ key: 'llama3.3',+ name: 'Llama 3.3 70B',+ category: 'chat',+ params: '70B',+ size: '43 GB',+ family: 'llama',+ description: "Meta's 70B instruct model with a 128K context — excellent narrative quality with memory headroom to spare for a large context window. Runs on 64GB+.",+ capabilities: ['chat', 'tools'],+ ollama: 'llama3.3:70b',+ lmstudio: 'lmstudio-community/Llama-3.3-70B-Instruct-GGUF'+ },+ {+ key: 'qwen3-30b-a3b',+ name: 'Qwen3 30B-A3B',+ category: 'chat',+ params: '30B / 3B active',+ size: '19 GB',+ family: 'qwen',+ description: 'Fast MoE with a native 256K context — the long-context workhorse for one-shot whole-manuscript review when you want maximum context with memory to spare.',+ capabilities: ['chat', 'tools', 'multilingual'],+ ollama: 'qwen3:30b',+ lmstudio: 'lmstudio-community/Qwen3-30B-A3B-GGUF'+ },{key: 'mistral',name: 'Mistral 7B',