The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat: v2.3.2 — GLM-4.7-Flash, model loading fix, agent badge audit
PurpleDoubleD7702f245a33c
diff --git a/README.md b/README.mdindex 2ae12ec3..cd4b6742 100644--- a/README.md+++ b/README.md@@ -34,23 +34,28 @@ No cloud. No data collection. No API keys. Auto-detects 12 local backends. Your----## v2.3.0 — Current Release+## v2.3.2 — Current Release-**ComfyUI Plug & Play, 20 Model Bundles, Image-to-Image, Z-Image, FramePack I2V**+**GLM-4.7-Flash, Model Loading Fix, Agent Badge Audit, 75+ Downloadable Models**++- **GLM-4.7-Flash** — ZhipuAI's strongest 30B class model. 11 variants across uncensored (Heretic) and mainstream, IQ2 to Q8. Fits 12GB VRAM (IQ2_M). Native tool calling.+- **GLM 5.1 754B MoE** — Frontier agentic engineering model listed as cloud-available via Ollama.+- **Model Loading Fix** — Fixed 3 bugs causing "0 models loaded" in ComfyUI Create View (race condition at startup, broken auto-retry logic, stale cache after download). Models now load reliably within seconds.+- **Agent Badge Audit** — Consistent agent flags across all 75+ models. Models with native tool calling are correctly marked.+- **Removed HOT Badges** — Cleaner UI, only AGENT badges shown for tool-calling models.++### v2.3.0 Features (included)- **ComfyUI Plug & Play** — Auto-detect, one-click install, auto-start. Zero config image and video generation.-- **20 Model Bundles** — 8 image + 12 video bundles with one-click download. Verified models marked, untested show "Coming Soon".-- **Z-Image Turbo/Base** — Uncensored image model. 8-15 seconds per image. No safety filters. Text-to-Image and Image-to-Image.-- **FLUX 2 Klein** — Next-gen FLUX architecture with Qwen 3 text encoder. Fastest FLUX model.-- **Image-to-Image (I2I)** — Upload a source image, adjust denoise strength (0.0-1.0), transform with any prompt. Works with all image models (SDXL, FLUX, Z-Image).-- **Image-to-Video (I2V)** — FramePack F1 and CogVideoX support with drag & drop image upload.-- **FramePack F1** — Revolutionary I2V: runs on 6 GB VRAM via next-frame prediction.-- **Dynamic Workflow Builder** — 14 strategies. Auto-detects installed nodes and builds the correct pipeline.-- **VRAM-Aware Model Filtering** — Lightweight / Mid-Range / High-End tabs based on GPU VRAM.-- **Unified Download Manager** — Track all downloads with progress, speed, retry for failed files.+- **20 Model Bundles** — 8 image + 12 video bundles with one-click download.+- **Z-Image Turbo/Base** — Uncensored image model. 8-15 seconds per image. No safety filters.+- **FLUX 2 Klein** — Next-gen FLUX architecture with Qwen 3 text encoder.+- **Image-to-Image (I2I)** — Upload a source image, adjust denoise strength, transform with any image model.+- **Image-to-Video (I2V)** — FramePack F1, CogVideoX, SVD with drag & drop image upload.+- **Dynamic Workflow Builder** — 14 strategies. Auto-detects installed nodes.+- **Unified Download Manager** — Track all downloads with progress, speed, retry.- **Think Mode in Chat Input** — Toggle thinking mode directly from the message input area.- **Process Cleanup** — ComfyUI auto-terminates when app is closed (Windows Job Object).-- **Hardware-Aware Onboarding** — Recommends Gemma 4, Qwen 3.5, and other models based on your GPU VRAM.---@@ -176,9 +181,10 @@ Open the **Create** tab. ComfyUI is auto-detected or one-click installed. Models| Model | VRAM | Best For ||-------|------|----------|+| **GLM-4.7-Flash IQ2** | 12 GB | Strongest 30B class. Tool calling. 198K context. || **Gemma 4 E4B** | 4 GB | Lightweight, fast, great for small GPUs. || **Qwen 3.5 9B** | 8 GB | Strongest reasoning + coding at 9B. |-| **Gemma 4 27B** | 16 GB | Frontier dense model, native tools + vision. |+| **Gemma 4 31B** | 16 GB | Frontier dense model, native tools + vision. || **Qwen 3.5 35B MoE** | 16 GB | Best agentic, 256K context. SWE-bench leader. || Hermes 3 8B | 6 GB | Agent Mode. Uncensored + tool calling. || DeepSeek R1 (8B-70B) | 6-48 GB | Chain-of-thought reasoning. |diff --git a/docs/index.html b/docs/index.htmlindex 1d450046..06e20361 100644--- a/docs/index.html+++ b/docs/index.html@@ -24,7 +24,7 @@<meta name="theme-color" content="#0a0a0a"><link rel="icon" href="./favicon.png"><script type="application/ld+json">-{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Locally Uncensored","applicationCategory":"DeveloperApplication","applicationSubCategory":"Artificial Intelligence","operatingSystem":"Windows","description":"Generate anything — text, images, video. Locally. Uncensored. The only desktop app that combines AI chat, image generation, and video creation in one. No cloud, no API keys, no data collection. Free and open source.","url":"https://locallyuncensored.com/","downloadUrl":"https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.1/Locally.Uncensored_2.3.1_x64-setup.exe","softwareVersion":"2.3.0","license":"https://www.gnu.org/licenses/agpl-3.0.html","author":{"@type":"Person","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD"},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"featureList":["Plug & Play Setup with 12 Local Backend Auto-Detection","Uncensored AI Chat with 20+ Provider Presets","Codex Coding Agent with 13 MCP Tools","Multi-Provider: Ollama, LM Studio, vLLM, KoboldCpp, llama.cpp, LocalAI, Jan, OpenAI, Anthropic, OpenRouter, Groq, and more","Image Generation via ComfyUI (FLUX 2, Z-Image, SDXL)","Image-to-Image with Denoise Control","Video Generation (Wan 2.1, HunyuanVideo, LTX, AnimateDiff, FramePack)","Image-to-Video (FramePack F1, CogVideoX, SVD)","Granular Permission System","File Upload with Vision Support","Thinking Mode","A/B Model Compare","100% Offline and Private"],"screenshot":"https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png","softwareRequirements":"Any OpenAI-compatible backend (Ollama, LM Studio, vLLM, KoboldCpp, etc.) or cloud API key","memoryRequirements":"8 GB RAM minimum","storageRequirements":"6 GB for default model"}+{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Locally Uncensored","applicationCategory":"DeveloperApplication","applicationSubCategory":"Artificial Intelligence","operatingSystem":"Windows","description":"Generate anything — text, images, video. Locally. Uncensored. The only desktop app that combines AI chat, image generation, and video creation in one. No cloud, no API keys, no data collection. Free and open source.","url":"https://locallyuncensored.com/","downloadUrl":"https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.2/Locally.Uncensored_2.3.2_x64-setup.exe","softwareVersion":"2.3.0","license":"https://www.gnu.org/licenses/agpl-3.0.html","author":{"@type":"Person","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD"},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"featureList":["Plug & Play Setup with 12 Local Backend Auto-Detection","Uncensored AI Chat with 20+ Provider Presets","Codex Coding Agent with 13 MCP Tools","Multi-Provider: Ollama, LM Studio, vLLM, KoboldCpp, llama.cpp, LocalAI, Jan, OpenAI, Anthropic, OpenRouter, Groq, and more","Image Generation via ComfyUI (FLUX 2, Z-Image, SDXL)","Image-to-Image with Denoise Control","Video Generation (Wan 2.1, HunyuanVideo, LTX, AnimateDiff, FramePack)","Image-to-Video (FramePack F1, CogVideoX, SVD)","Granular Permission System","File Upload with Vision Support","Thinking Mode","A/B Model Compare","100% Offline and Private"],"screenshot":"https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png","softwareRequirements":"Any OpenAI-compatible backend (Ollama, LM Studio, vLLM, KoboldCpp, etc.) or cloud API key","memoryRequirements":"8 GB RAM minimum","storageRequirements":"6 GB for default model"}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD","sameAs":["https://github.com/PurpleDoubleD","https://reddit.com/user/GroundbreakingMall54"]}@@ -206,12 +206,12 @@ html,body{overflow-x:hidden}</nav><section class="hero">- <div class="hero-badge">v2.3.1 / Open Source / AGPL-3.0</div>+ <div class="hero-badge">v2.3.2 / Open Source / AGPL-3.0</div><h1>Your AI. Your machine.<br>No limits.</h1><p>Chat, code, generate images, create videos — all running locally. Plug & Play with 12 local backends. 13 built-in tools, coding agent. No cloud, no accounts.</p><p style="margin-top:8px"><a href="./guide/" style="color:#a78bfa;font-size:0.9rem">Getting Started Guide</a></p><div class="hero-cta">- <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.1/Locally.Uncensored_2.3.1_x64-setup.exe" class="btn btn-primary" download>Download for Windows</a>+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.2/Locally.Uncensored_2.3.2_x64-setup.exe" class="btn btn-primary" download>Download for Windows</a><a href="https://github.com/PurpleDoubleD/locally-uncensored" class="btn" target="_blank"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>View Source@@ -226,10 +226,10 @@ html,body{overflow-x:hidden}</section><section class="install reveal" id="install">- <p style="margin-bottom:1.5rem;font-size:1.1rem;color:#ededed;font-weight:600">Download v2.3.1</p>+ <p style="margin-bottom:1.5rem;font-size:1.1rem;color:#ededed;font-weight:600">Download v2.3.2</p><div style="display:flex;gap:1rem;justify-content:center;margin-bottom:2rem;flex-wrap:wrap">- <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.1/Locally.Uncensored_2.3.1_x64-setup.exe" class="btn btn-primary" style="font-size:.9rem;padding:.6rem 1.5rem" download>Windows (.exe)</a>- <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/tag/v2.3.1" class="btn" style="font-size:.9rem;padding:.6rem 1.5rem">All Downloads</a>+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.2/Locally.Uncensored_2.3.2_x64-setup.exe" class="btn btn-primary" style="font-size:.9rem;padding:.6rem 1.5rem" download>Windows (.exe)</a>+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/tag/v2.3.2" class="btn" style="font-size:.9rem;padding:.6rem 1.5rem">All Downloads</a></div><p style="color:var(--text-tertiary);font-size:.8rem">Plug & Play — choose from 20+ providers. The setup wizard auto-detects 12 local backends (Ollama, LM Studio, vLLM, KoboldCpp, Jan, GPT4All, llama.cpp, and more) or configure cloud APIs in Settings. Other platforms: <a href="https://github.com/PurpleDoubleD/locally-uncensored#-quick-start" style="color:var(--text-secondary);border-bottom:1px solid var(--border)">build from source</a>.</p></section>@@ -326,9 +326,9 @@ html,body{overflow-x:hidden}</section><section class="agent-section reveal" id="whats-new">- <div class="section-label">New in v2.3.1</div>- <h2 class="section-heading">ComfyUI Plug & Play. 20 Model Bundles. I2I + I2V.</h2>- <div class="section-desc">One-click ComfyUI install. 20 image + video bundles. Z-Image uncensored. FramePack I2V on 6 GB VRAM. Image-to-Image. Dynamic workflows. Hardware-aware onboarding.</div>+ <div class="section-label">New in v2.3.2</div>+ <h2 class="section-heading">GLM-4.7-Flash. 75+ Models. ComfyUI Plug & Play.</h2>+ <div class="section-desc">GLM-4.7-Flash in 11 variants. 75+ downloadable models with agent badges. Model loading fix. 20 image + video bundles. Z-Image uncensored. FramePack I2V. Image-to-Image.</div><div class="agent-grid"><div class="agent-card">@@ -509,7 +509,7 @@ html,body{overflow-x:hidden}<h2>Run your own AI stack. No limits.</h2><p>Free, open source, and yours to keep.</p><div class="cta-buttons">- <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.1/Locally.Uncensored_2.3.1_x64-setup.exe" class="btn btn-primary" download>Download for Windows</a>+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.3.2/Locally.Uncensored_2.3.2_x64-setup.exe" class="btn btn-primary" download>Download for Windows</a><a href="https://github.com/PurpleDoubleD/locally-uncensored" class="btn" target="_blank">View on GitHub</a></div></section>diff --git a/package.json b/package.jsonindex f2d3bf16..6630f694 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "locally-uncensored",- "version": "2.3.1",+ "version": "2.3.2","private": false,"description": "Generate anything — text, images, video. Locally. Uncensored.","license": "AGPL-3.0",diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex f22d3225..1a97c881 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -2317,7 +2317,7 @@ checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77"[[package]]name = "locally-uncensored"-version = "2.2.3"+version = "2.3.2"dependencies = ["base64 0.22.1","dirs",diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 07ddf7cd..9f0d9c05 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "locally-uncensored"-version = "2.3.1"+version = "2.3.2"description = "Private, local AI chat & image/video generation"authors = ["purpledoubled"]edition = "2021"diff --git a/src-tauri/src/commands/mod.rs b/src-tauri/src/commands/mod.rsindex b54807b1..79457430 100644--- a/src-tauri/src/commands/mod.rs+++ b/src-tauri/src/commands/mod.rs@@ -1,4 +1,5 @@pub mod agent;+pub mod claude_code;pub mod download;pub mod filesystem;pub mod install;diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rsindex e6c9be6c..8f14858e 100644--- a/src-tauri/src/main.rs+++ b/src-tauri/src/main.rs@@ -68,6 +68,13 @@ fn main() {commands::search::search_status,commands::search::install_searxng,commands::search::searxng_status,+ // Claude Code+ commands::claude_code::detect_claude_code,+ commands::claude_code::install_claude_code,+ commands::claude_code::install_claude_code_status,+ commands::claude_code::start_claude_code,+ commands::claude_code::stop_claude_code,+ commands::claude_code::send_claude_code_input,// Proxycommands::proxy::ollama_search,commands::proxy::fetch_external,diff --git a/src-tauri/src/state.rs b/src-tauri/src/state.rsindex d2278556..e26b8558 100644--- a/src-tauri/src/state.rs+++ b/src-tauri/src/state.rs@@ -53,6 +53,9 @@ pub struct AppState {pub searxng_install: Mutex<InstallState>,pub searxng_available: AtomicBool,pub python_bin: String,+ // Claude Code+ pub claude_code_process: Mutex<Option<Child>>,+ pub claude_code_install: Arc<Mutex<InstallState>>,}impl AppState {@@ -73,6 +76,9 @@ impl AppState {searxng_install: Mutex::new(InstallState::default()),searxng_available: AtomicBool::new(false),python_bin,+ // Claude Code+ claude_code_process: Mutex::new(None),+ claude_code_install: Arc::new(Mutex::new(InstallState::default())),}}}@@ -96,6 +102,21 @@ impl Drop for AppState {}}+ // Kill Claude Code process+ if let Ok(mut proc) = self.claude_code_process.lock() {+ if let Some(ref mut child) = *proc {+ let pid = child.id();+ if cfg!(target_os = "windows") {+ let _ = std::process::Command::new("taskkill")+ .args(["/pid", &pid.to_string(), "/T", "/F"])+ .output();+ } else {+ let _ = child.kill();+ }+ println!("[ClaudeCode] Stopped");+ }+ }+// Stop Whisper serverif let Ok(mut whisper) = self.whisper.lock() {whisper.stop();diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 7338a9f3..059e000f 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -1,7 +1,7 @@{"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json","productName": "Locally Uncensored",- "version": "2.3.1",+ "version": "2.3.2","identifier": "com.purpledoubled.locally-uncensored","build": {"beforeBuildCommand": "npm run build",diff --git a/src/api/backend.ts b/src/api/backend.tsindex 690344e3..868360e1 100644--- a/src/api/backend.ts+++ b/src/api/backend.ts@@ -152,6 +152,13 @@ export async function backendCall<T = any>(ollama_search: { path: "/ollama-search" },fetch_external: { path: "/local-api/proxy-download" },fetch_external_bytes: { path: "/local-api/proxy-download" },+ // Claude Code+ detect_claude_code: { path: "/local-api/detect-claude-code" },+ install_claude_code: { path: "/local-api/install-claude-code", method: "POST" },+ install_claude_code_status: { path: "/local-api/install-claude-code-status" },+ start_claude_code: { path: "/local-api/start-claude-code", method: "POST" },+ stop_claude_code: { path: "/local-api/stop-claude-code", method: "POST" },+ send_claude_code_input: { path: "/local-api/send-claude-code-input", method: "POST" },// Agent tools (Phase 1 — new commands)shell_execute: { path: "/local-api/shell-execute", method: "POST" },fs_read: { path: "/local-api/fs-read", method: "POST" },diff --git a/src/api/comfyui.ts b/src/api/comfyui.tsindex 7e3cfc76..7834fbd5 100644--- a/src/api/comfyui.ts+++ b/src/api/comfyui.ts@@ -235,6 +235,16 @@ export async function checkComfyConnection(): Promise<boolean> {}}+/** Force ComfyUI to re-scan model directories. Works on ComfyUI 2024+ with /api/refresh. */+export async function refreshComfyModels(): Promise<boolean> {+ try {+ const res = await localFetch(comfyuiUrl('/api/refresh'), { method: 'POST' })+ return res.ok+ } catch {+ return false // Older ComfyUI versions without /api/refresh — non-fatal+ }+}+// ─── System VRAM Detection ───let cachedVRAM: number | null = null@@ -269,27 +279,17 @@ async function nodeExists(nodeName: string): Promise<boolean> {}export async function getCheckpoints(): Promise<string[]> {- try {- const res = await localFetch(comfyuiUrl('/object_info/CheckpointLoaderSimple'))- if (!res.ok) return []- const data = await res.json()- return data?.CheckpointLoaderSimple?.input?.required?.ckpt_name?.[0] ?? []- } catch (err) {- console.warn('[ComfyUI] Failed to fetch checkpoints:', err)- return []- }+ const res = await localFetch(comfyuiUrl('/object_info/CheckpointLoaderSimple'))+ if (!res.ok) throw new Error(`ComfyUI /object_info/CheckpointLoaderSimple failed (HTTP ${res.status})`)+ const data = await res.json()+ return data?.CheckpointLoaderSimple?.input?.required?.ckpt_name?.[0] ?? []}export async function getDiffusionModels(): Promise<string[]> {- try {- const res = await localFetch(comfyuiUrl('/object_info/UNETLoader'))- if (!res.ok) return []- const data = await res.json()- return data?.UNETLoader?.input?.required?.unet_name?.[0] ?? []- } catch (err) {- console.warn('[ComfyUI] Failed to fetch diffusion models:', err)- return []- }+ const res = await localFetch(comfyuiUrl('/object_info/UNETLoader'))+ if (!res.ok) throw new Error(`ComfyUI /object_info/UNETLoader failed (HTTP ${res.status})`)+ const data = await res.json()+ return data?.UNETLoader?.input?.required?.unet_name?.[0] ?? []}export async function getVAEModels(): Promise<string[]> {diff --git a/src/api/discover.ts b/src/api/discover.tsindex 7f7fc7be..134b4617 100644--- a/src/api/discover.ts+++ b/src/api/discover.ts@@ -233,6 +233,16 @@ export async function installBundleComplete(bundle: ModelBundle): Promise<void>})()}+ // Force ComfyUI to re-scan model directories so new files appear in /object_info.+ // Without this, ComfyUI's cached model list stays stale on Windows.+ try {+ const { refreshComfyModels } = await import('./comfyui')+ await refreshComfyModels()+ } catch { /* non-fatal — fetchModels also calls refresh */ }++ // Dispatch event so CreateView refreshes model list+ window.dispatchEvent(new CustomEvent('comfyui-model-downloaded'))+if (errors.length > 0) {throw new Error(`Bundle install had ${errors.length} issue(s): ${errors.join('; ')}`)}@@ -344,27 +354,27 @@ function sortByRelease(models: DiscoverModel[]): DiscoverModel[] {export function getUncensoredTextModels(): DiscoverModel[] {return sortByRelease([// ── HOT: Hermes 3 ──- { name: 'Hermes 3 Llama 3.2 3B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. Lightweight.', pulls: '500K+', tags: ['3B', 'Q4_K_M', '2 GB'], updated: 'Hot', hot: true, agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.2-3B-GGUF', 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf', sizeGB: 2 },- { name: 'Hermes 3 Llama 3.1 8B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. THE agent model.', pulls: '500K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-8B-GGUF', 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf', sizeGB: 5 },- { name: 'Hermes 3 Llama 3.1 70B', description: 'NousResearch Hermes 3 70B — maximum intelligence, uncensored.', pulls: '500K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Hot', hot: true, agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-70B-GGUF', 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf', sizeGB: 42 },+ { name: 'Hermes 3 Llama 3.2 3B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. Lightweight.', pulls: '500K+', tags: ['3B', 'Q4_K_M', '2 GB'], updated: 'Hot', agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.2-3B-GGUF', 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf', sizeGB: 2 },+ { name: 'Hermes 3 Llama 3.1 8B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. THE agent model.', pulls: '500K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-8B-GGUF', 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Hermes 3 Llama 3.1 70B', description: 'NousResearch Hermes 3 70B — maximum intelligence, uncensored.', pulls: '500K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Hot', agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-70B-GGUF', 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf', sizeGB: 42 },// ── HOT: Dolphin 3 ──- { name: 'Dolphin 3 Llama 3.1 8B', description: 'Dolphin 3 — uncensored from training. Coding, math, general purpose.', pulls: '3.7M', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, released: '2024-12', downloadUrl: HF('bartowski/dolphin-2.9.4-llama3.1-8b-GGUF', 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf'), filename: 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Dolphin 3 Llama 3.1 8B', description: 'Dolphin 3 — uncensored from training. Coding, math, general purpose.', pulls: '3.7M', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', released: '2024-12', downloadUrl: HF('bartowski/dolphin-2.9.4-llama3.1-8b-GGUF', 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf'), filename: 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf', sizeGB: 5 },// ── HOT: Qwen 3.5 Abliterated ──- { name: 'Qwen 3.5 9B Abliterated', description: 'Qwen 3.5 abliterated — newest, strongest reasoning + coding.', pulls: '10K+', tags: ['9B', 'Q4_K_M', '6 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('mradermacher/Qwen3.5-9B-abliterated-GGUF', 'Qwen3.5-9B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3.5-9B-abliterated.Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Qwen 3.5 9B Abliterated', description: 'Qwen 3.5 abliterated — newest, strongest reasoning + coding.', pulls: '10K+', tags: ['9B', 'Q4_K_M', '6 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('mradermacher/Qwen3.5-9B-abliterated-GGUF', 'Qwen3.5-9B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3.5-9B-abliterated.Q4_K_M.gguf', sizeGB: 5 },// ── HOT: GPT-OSS Abliterated ──- { name: 'GPT-OSS 20B Abliterated', description: 'OpenAI GPT-OSS — abliterated open-source GPT model.', pulls: '15K+', tags: ['20B', 'Q4_K_M', '13 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('bartowski/huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-GGUF', 'huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-Q4_K_M.gguf', sizeGB: 13 },+ { name: 'GPT-OSS 20B Abliterated', description: 'OpenAI GPT-OSS — abliterated open-source GPT model.', pulls: '15K+', tags: ['20B', 'Q4_K_M', '13 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('bartowski/huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-GGUF', 'huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-Q4_K_M.gguf', sizeGB: 13 },// ── HOT: Qwen 3.5 Abliterated (larger variants) ──- { name: 'Qwen 3.5 27B Abliterated', description: 'Qwen 3.5 27B abliterated — Claude Opus-style, strongest reasoning.', pulls: '20K+', tags: ['27B', 'Q4_K_M', '16 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('mradermacher/Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated-GGUF', 'Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated.Q4_K_M.gguf'), filename: 'Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated.Q4_K_M.gguf', sizeGB: 16 },- { name: 'Qwen 3.5 35B MoE Abliterated', description: 'Qwen 3.5 35B MoE abliterated — best agentic, 256K context.', pulls: '26K+', tags: ['35B MoE', 'Q4_K_M', '22 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('mradermacher/Huihui-Qwen3.5-35B-A3B-abliterated-i1-GGUF', 'Huihui-Qwen3.5-35B-A3B-abliterated.i1-Q4_K_M.gguf'), filename: 'Huihui-Qwen3.5-35B-A3B-abliterated.i1-Q4_K_M.gguf', sizeGB: 22 },+ { name: 'Qwen 3.5 27B Abliterated', description: 'Qwen 3.5 27B abliterated — Claude Opus-style, strongest reasoning.', pulls: '20K+', tags: ['27B', 'Q4_K_M', '16 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('mradermacher/Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated-GGUF', 'Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated.Q4_K_M.gguf'), filename: 'Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated.Q4_K_M.gguf', sizeGB: 16 },+ { name: 'Qwen 3.5 35B MoE Abliterated', description: 'Qwen 3.5 35B MoE abliterated — best agentic, 256K context.', pulls: '26K+', tags: ['35B MoE', 'Q4_K_M', '22 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('mradermacher/Huihui-Qwen3.5-35B-A3B-abliterated-i1-GGUF', 'Huihui-Qwen3.5-35B-A3B-abliterated.i1-Q4_K_M.gguf'), filename: 'Huihui-Qwen3.5-35B-A3B-abliterated.i1-Q4_K_M.gguf', sizeGB: 22 },// ── HOT: Qwen3-Coder Abliterated ──- { name: 'Qwen3-Coder 30B Abliterated', description: 'Qwen3-Coder abliterated — 30B MoE (3B active), built for code agents. 256K context.', pulls: '10K+', tags: ['30B MoE', 'Q4_K_M', '19 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-02', downloadUrl: HF('mradermacher/Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated-i1-GGUF', 'Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated.i1-Q4_K_M.gguf'), filename: 'Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated.i1-Q4_K_M.gguf', sizeGB: 19 },+ { name: 'Qwen3-Coder 30B Abliterated', description: 'Qwen3-Coder abliterated — 30B MoE (3B active), built for code agents. 256K context.', pulls: '10K+', tags: ['30B MoE', 'Q4_K_M', '19 GB'], updated: 'Hot', agent: true, released: '2026-02', downloadUrl: HF('mradermacher/Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated-i1-GGUF', 'Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated.i1-Q4_K_M.gguf'), filename: 'Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated.i1-Q4_K_M.gguf', sizeGB: 19 },// ── HOT: Gemma 4 Uncensored Variants ──- { name: 'Gemma 4 31B Uncensored', description: 'Gemma 4 31B uncensored — frontier dense model, native tool calling + vision. 256K context.', pulls: '400+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('TrevorJS/gemma-4-31B-it-uncensored-GGUF', 'gemma-4-31B-it-uncensored-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-uncensored-Q4_K_M.gguf', sizeGB: 17 },- { name: 'Gemma 4 26B MoE Heretic', description: 'Gemma 4 26B MoE HERETIC — 26B brain, 4B active. Uncensored + tools + vision.', pulls: '43K+', tags: ['26B MoE', 'Q4_K_M', '16 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('nohurry/gemma-4-26B-A4B-it-heretic-GUFF', 'gemma-4-26b-a4b-it-heretic.q4_k_m.gguf'), filename: 'gemma-4-26b-a4b-it-heretic.q4_k_m.gguf', sizeGB: 16 },- { name: 'Gemma 4 31B Heretic', description: 'Gemma 4 31B HERETIC — full uncensor, native tool calling, 256K context.', pulls: '32K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('Stabhappy/gemma-4-31B-it-heretic-Gguf', 'coder3101_gemma_4_31b_it_heretic-Q4_K_M.gguf'), filename: 'coder3101_gemma_4_31b_it_heretic-Q4_K_M.gguf', sizeGB: 17 },- { name: 'Gemma 4 31B Abliterated', description: 'Gemma 4 31B abliterated — strong reasoning, Apache 2.0.', pulls: '7K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'New', hot: true, agent: true, released: '2026-04', downloadUrl: HF('LiconStudio/Gemma-4-31B-it-abliterated-GGUF', 'gemma-4-31B-it-abliterated-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-abliterated-Q4_K_M.gguf', sizeGB: 17 },+ { name: 'Gemma 4 31B Uncensored', description: 'Gemma 4 31B uncensored — frontier dense model, native tool calling + vision. 256K context.', pulls: '400+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('TrevorJS/gemma-4-31B-it-uncensored-GGUF', 'gemma-4-31B-it-uncensored-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-uncensored-Q4_K_M.gguf', sizeGB: 17 },+ { name: 'Gemma 4 26B MoE Heretic', description: 'Gemma 4 26B MoE HERETIC — 26B brain, 4B active. Uncensored + tools + vision.', pulls: '43K+', tags: ['26B MoE', 'Q4_K_M', '16 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('nohurry/gemma-4-26B-A4B-it-heretic-GUFF', 'gemma-4-26b-a4b-it-heretic.q4_k_m.gguf'), filename: 'gemma-4-26b-a4b-it-heretic.q4_k_m.gguf', sizeGB: 16 },+ { name: 'Gemma 4 31B Heretic', description: 'Gemma 4 31B HERETIC — full uncensor, native tool calling, 256K context.', pulls: '32K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('Stabhappy/gemma-4-31B-it-heretic-Gguf', 'coder3101_gemma_4_31b_it_heretic-Q4_K_M.gguf'), filename: 'coder3101_gemma_4_31b_it_heretic-Q4_K_M.gguf', sizeGB: 17 },+ { name: 'Gemma 4 31B Abliterated', description: 'Gemma 4 31B abliterated — strong reasoning, Apache 2.0.', pulls: '7K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('LiconStudio/Gemma-4-31B-it-abliterated-GGUF', 'gemma-4-31B-it-abliterated-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-abliterated-Q4_K_M.gguf', sizeGB: 17 },// ── Popular: Qwen3 Abliterated ──- { name: 'Qwen3 8B Abliterated', description: 'Qwen3 abliterated — best overall. Exceptional reasoning, coding, multilingual.', pulls: '30K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2025-05', downloadUrl: HF('mradermacher/Qwen3-8B-abliterated-GGUF', 'Qwen3-8B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3-8B-abliterated.Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Qwen3 8B Abliterated', description: 'Qwen3 abliterated — best overall. Exceptional reasoning, coding, multilingual.', pulls: '30K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2025-05', downloadUrl: HF('mradermacher/Qwen3-8B-abliterated-GGUF', 'Qwen3-8B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3-8B-abliterated.Q4_K_M.gguf', sizeGB: 5 },{ name: 'Qwen3 30B MoE Abliterated', description: 'Qwen3 30B MoE abliterated — powerful, runs like 3B active.', pulls: '30K+', tags: ['30B MoE', 'Q4_K_M', '19 GB'], updated: 'Popular', agent: true, released: '2025-05', downloadUrl: HF('mradermacher/Qwen3-30B-A3B-abliterated-GGUF', 'Qwen3-30B-A3B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3-30B-A3B-abliterated.Q4_K_M.gguf', sizeGB: 19 },// ── Popular: Llama 3.1 8B Abliterated (two quants) ──{ name: 'Llama 3.1 8B Abliterated Q5', description: 'Llama 3.1 8B abliterated — fast, reliable, great entry point. Higher quality quant.', pulls: '200K+', tags: ['8B', 'Q5_K_M', '6 GB'], updated: 'Popular', agent: true, released: '2024-07', downloadUrl: HF('bartowski/Meta-Llama-3.1-8B-Instruct-abliterated-GGUF', 'Meta-Llama-3.1-8B-Instruct-abliterated-Q5_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-abliterated-Q5_K_M.gguf', sizeGB: 6 },@@ -374,15 +384,20 @@ export function getUncensoredTextModels(): DiscoverModel[] {{ name: 'DeepSeek R1 14B Abliterated', description: 'DeepSeek R1 abliterated 14B — stronger reasoning.', pulls: '40K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('QuantFactory/DeepSeek-R1-Distill-Qwen-14B-abliterated-v2-GGUF', 'DeepSeek-R1-Distill-Qwen-14B-abliterated-v2.Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-14B-abliterated-v2.Q4_K_M.gguf', sizeGB: 9 },{ name: 'DeepSeek R1 32B Abliterated', description: 'DeepSeek R1 abliterated 32B — powerful reasoning.', pulls: '40K+', tags: ['32B', 'Q4_K_M', '19 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('bartowski/DeepSeek-R1-Distill-Qwen-32B-abliterated-GGUF', 'DeepSeek-R1-Distill-Qwen-32B-abliterated-Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-32B-abliterated-Q4_K_M.gguf', sizeGB: 19 },{ name: 'DeepSeek R1 70B Abliterated', description: 'DeepSeek R1 abliterated 70B — maximum reasoning for high-VRAM setups.', pulls: '40K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('bartowski/huihui-ai_DeepSeek-R1-Distill-Llama-70B-abliterated-GGUF', 'huihui-ai_DeepSeek-R1-Distill-Llama-70B-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_DeepSeek-R1-Distill-Llama-70B-abliterated-Q4_K_M.gguf', sizeGB: 42 },+ // ── HOT: GLM 4.7 Flash Uncensored Heretic ──+ { name: 'GLM 4.7 Flash Heretic IQ2', description: 'GLM 4.7 Flash HERETIC — 30B uncensored, fits 12GB VRAM. Strongest 30B class.', pulls: '5K+', tags: ['30B', 'IQ2_M', '10 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('DavidAU/GLM-4.7-Flash-Uncensored-Heretic-NEO-CODE-Imatrix-MAX-GGUF', 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-IQ2_M.gguf'), filename: 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-IQ2_M.gguf', sizeGB: 10 },+ { name: 'GLM 4.7 Flash Heretic Q4', description: 'GLM 4.7 Flash HERETIC — 30B uncensored, best quality/size balance.', pulls: '5K+', tags: ['30B', 'Q4_K_M', '19 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('DavidAU/GLM-4.7-Flash-Uncensored-Heretic-NEO-CODE-Imatrix-MAX-GGUF', 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-Q4_K_M.gguf'), filename: 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-Q4_K_M.gguf', sizeGB: 19 },+ { name: 'GLM 4.7 Flash Heretic Q6', description: 'GLM 4.7 Flash HERETIC — 30B uncensored, high quality quant.', pulls: '5K+', tags: ['30B', 'Q6_K', '25 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('DavidAU/GLM-4.7-Flash-Uncensored-Heretic-NEO-CODE-Imatrix-MAX-GGUF', 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-Q6_K.gguf'), filename: 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-Q6_K.gguf', sizeGB: 25 },+ { name: 'GLM 4.7 Flash Heretic Q8', description: 'GLM 4.7 Flash HERETIC — 30B uncensored, near-lossless quality.', pulls: '5K+', tags: ['30B', 'Q8_0', '32 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('DavidAU/GLM-4.7-Flash-Uncensored-Heretic-NEO-CODE-Imatrix-MAX-GGUF', 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-Q8_0.gguf'), filename: 'GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-Q8_0.gguf', sizeGB: 32 },// ── Popular: GLM 4.6 Abliterated ──- { name: 'GLM 4 9B Abliterated', description: 'GLM 4 9B abliterated — strong coding and reasoning.', pulls: '5K+', tags: ['9B', 'Q4_K_M', '5 GB'], updated: 'New', released: '2026-03', downloadUrl: HF('bartowski/glm-4-9b-chat-abliterated-GGUF', 'glm-4-9b-chat-abliterated-Q4_K_M.gguf'), filename: 'glm-4-9b-chat-abliterated-Q4_K_M.gguf', sizeGB: 5 },+ { name: 'GLM 4 9B Abliterated', description: 'GLM 4 9B abliterated — strong coding and reasoning.', pulls: '5K+', tags: ['9B', 'Q4_K_M', '5 GB'], updated: 'New', agent: true, released: '2026-03', downloadUrl: HF('bartowski/glm-4-9b-chat-abliterated-GGUF', 'glm-4-9b-chat-abliterated-Q4_K_M.gguf'), filename: 'glm-4-9b-chat-abliterated-Q4_K_M.gguf', sizeGB: 5 },// ── Popular: Gemma 3 Abliterated ──{ name: 'Gemma 3 4B Abliterated', description: 'Google Gemma 3 4B abliterated — lightweight, vision support.', pulls: '20K+', tags: ['4B', 'Q4_K_M', '2.3 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('bartowski/mlabonne_gemma-3-4b-it-abliterated-GGUF', 'mlabonne_gemma-3-4b-it-abliterated-Q4_K_M.gguf'), filename: 'mlabonne_gemma-3-4b-it-abliterated-Q4_K_M.gguf', sizeGB: 2.3 },{ name: 'Gemma 3 12B Abliterated', description: 'Google Gemma 3 12B abliterated — vision support, great quality.', pulls: '20K+', tags: ['12B', 'Q4_K_M', '8 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('bartowski/mlabonne_gemma-3-12b-it-abliterated-GGUF', 'mlabonne_gemma-3-12b-it-abliterated-Q4_K_M.gguf'), filename: 'mlabonne_gemma-3-12b-it-abliterated-Q4_K_M.gguf', sizeGB: 8 },{ name: 'Gemma 3 27B Abliterated', description: 'Google Gemma 3 27B abliterated — strong reasoning + vision.', pulls: '20K+', tags: ['27B', 'Q4_K_M', '17 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('bartowski/mlabonne_gemma-3-27b-it-abliterated-GGUF', 'mlabonne_gemma-3-27b-it-abliterated-Q4_K_M.gguf'), filename: 'mlabonne_gemma-3-27b-it-abliterated-Q4_K_M.gguf', sizeGB: 17 },// ── Popular: Qwen3 14B Abliterated (two quants) ──- { name: 'Qwen3 14B Abliterated Q4', description: 'Qwen3 14B abliterated — sweet spot of speed and intelligence.', pulls: '4K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Recent', released: '2025-05', downloadUrl: HF('bartowski/huihui-ai_Qwen3-14B-abliterated-GGUF', 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf', sizeGB: 9 },- { name: 'Qwen3 14B Abliterated Q5', description: 'Qwen3 14B abliterated — higher quality quant.', pulls: '4K+', tags: ['14B', 'Q5_K_M', '10 GB'], updated: 'Recent', released: '2025-05', downloadUrl: HF('bartowski/huihui-ai_Qwen3-14B-abliterated-GGUF', 'huihui-ai_Qwen3-14B-abliterated-Q5_K_M.gguf'), filename: 'huihui-ai_Qwen3-14B-abliterated-Q5_K_M.gguf', sizeGB: 10 },+ { name: 'Qwen3 14B Abliterated Q4', description: 'Qwen3 14B abliterated — sweet spot of speed and intelligence.', pulls: '4K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Recent', agent: true, released: '2025-05', downloadUrl: HF('bartowski/huihui-ai_Qwen3-14B-abliterated-GGUF', 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf', sizeGB: 9 },+ { name: 'Qwen3 14B Abliterated Q5', description: 'Qwen3 14B abliterated — higher quality quant.', pulls: '4K+', tags: ['14B', 'Q5_K_M', '10 GB'], updated: 'Recent', agent: true, released: '2025-05', downloadUrl: HF('bartowski/huihui-ai_Qwen3-14B-abliterated-GGUF', 'huihui-ai_Qwen3-14B-abliterated-Q5_K_M.gguf'), filename: 'huihui-ai_Qwen3-14B-abliterated-Q5_K_M.gguf', sizeGB: 10 },// ── Popular: Qwen 2.5 Abliterated ──{ name: 'Qwen 2.5 7B Abliterated', description: 'Qwen 2.5 7B abliterated — proven and reliable.', pulls: '50K+', tags: ['7B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('QuantFactory/Qwen2.5-7B-Instruct-abliterated-v2-GGUF', 'Qwen2.5-7B-Instruct-abliterated-v2.Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-abliterated-v2.Q4_K_M.gguf', sizeGB: 5 },{ name: 'Qwen 2.5 14B Abliterated', description: 'Qwen 2.5 14B abliterated — stronger reasoning.', pulls: '50K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('mradermacher/Qwen2.5-14B-Instruct-abliterated-GGUF', 'Qwen2.5-14B-Instruct-abliterated.Q4_K_M.gguf'), filename: 'Qwen2.5-14B-Instruct-abliterated.Q4_K_M.gguf', sizeGB: 9 },@@ -390,7 +405,7 @@ export function getUncensoredTextModels(): DiscoverModel[] {// ── Popular: Single-size uncensored ──{ name: 'Llama 3.3 70B Abliterated', description: 'Llama 3.3 70B abliterated — maximum intelligence for high-VRAM setups.', pulls: '15K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', agent: true, released: '2024-12', downloadUrl: HF('bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF', 'Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf'), filename: 'Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf', sizeGB: 42 },{ name: 'Mistral Small 24B Abliterated', description: 'Mistral Small 24B abliterated — powerful, strong multilingual.', pulls: '10K+', tags: ['24B', 'Q4_K_M', '14 GB'], updated: 'Recent', agent: true, released: '2024-09', downloadUrl: HF('bartowski/huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-GGUF', 'huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-Q4_K_M.gguf', sizeGB: 14 },- { name: 'Phi-4 14B Abliterated', description: 'Microsoft Phi-4 abliterated — excellent at math, logic, structured tasks.', pulls: '8K+', tags: ['14B', 'Q4_K_M', '8 GB'], updated: 'Recent', released: '2024-12', downloadUrl: HF('mradermacher/phi-4-abliterated-GGUF', 'phi-4-abliterated.Q4_K_M.gguf'), filename: 'phi-4-abliterated.Q4_K_M.gguf', sizeGB: 8 },+ { name: 'Phi-4 14B Abliterated', description: 'Microsoft Phi-4 abliterated — excellent at math, logic, structured tasks.', pulls: '8K+', tags: ['14B', 'Q4_K_M', '8 GB'], updated: 'Recent', agent: true, released: '2024-12', downloadUrl: HF('mradermacher/phi-4-abliterated-GGUF', 'phi-4-abliterated.Q4_K_M.gguf'), filename: 'phi-4-abliterated.Q4_K_M.gguf', sizeGB: 8 },{ name: 'Mistral Nemo 12B Abliterated', description: 'Mistral Nemo 12B abliterated — multilingual powerhouse.', pulls: '5K+', tags: ['12B', 'Q4_K_M', '7 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('QuantFactory/Mistral-Nemo-Instruct-2407-abliterated-GGUF', 'Mistral-Nemo-Instruct-2407-abliterated.Q4_K_M.gguf'), filename: 'Mistral-Nemo-Instruct-2407-abliterated.Q4_K_M.gguf', sizeGB: 7 },])}@@ -399,21 +414,29 @@ export function getUncensoredTextModels(): DiscoverModel[] {export function getMainstreamTextModels(): DiscoverModel[] {return sortByRelease([// ── Gemma 4 (April 2026) ──- { name: 'Gemma 4 31B', description: 'Google Gemma 4 31B — frontier dense model, native tools + vision. 256K context.', pulls: '100K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-31B-it-GGUF', 'gemma-4-31B-it-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-Q4_K_M.gguf', sizeGB: 17 },- { name: 'Gemma 4 26B MoE', description: 'Gemma 4 26B MoE — 26B brain, runs like 4B. Tools + vision. Apache 2.0.', pulls: '100K+', tags: ['26B', 'Q4_K_XL', '16 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-26B-A4B-it-GGUF', 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf'), filename: 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf', sizeGB: 16 },- { name: 'Gemma 4 E4B', description: 'Gemma 4 E4B — lightweight 4.5B, great for small GPUs.', pulls: '100K+', tags: ['4.5B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-E4B-it-GGUF', 'gemma-4-E4B-it-Q4_K_M.gguf'), filename: 'gemma-4-E4B-it-Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Gemma 4 31B', description: 'Google Gemma 4 31B — frontier dense model, native tools + vision. 256K context.', pulls: '100K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-31B-it-GGUF', 'gemma-4-31B-it-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-Q4_K_M.gguf', sizeGB: 17 },+ { name: 'Gemma 4 26B MoE', description: 'Gemma 4 26B MoE — 26B brain, runs like 4B. Tools + vision. Apache 2.0.', pulls: '100K+', tags: ['26B', 'Q4_K_XL', '16 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-26B-A4B-it-GGUF', 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf'), filename: 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf', sizeGB: 16 },+ { name: 'Gemma 4 E4B', description: 'Gemma 4 E4B — lightweight 4.5B, great for small GPUs.', pulls: '100K+', tags: ['4.5B', 'Q4_K_M', '5 GB'], updated: 'Hot', released: '2026-04', downloadUrl: HF('unsloth/gemma-4-E4B-it-GGUF', 'gemma-4-E4B-it-Q4_K_M.gguf'), filename: 'gemma-4-E4B-it-Q4_K_M.gguf', sizeGB: 5 },{ name: 'Gemma 4 E2B', description: 'Gemma 4 E2B — ultra-light 2.3B, runs on anything.', pulls: '100K+', tags: ['2.3B', 'Q4_K_M', '3 GB'], updated: 'New', released: '2026-04', downloadUrl: HF('unsloth/gemma-4-E2B-it-GGUF', 'gemma-4-E2B-it-Q4_K_M.gguf'), filename: 'gemma-4-E2B-it-Q4_K_M.gguf', sizeGB: 3 },// ── Qwen 3.5 (March 2026) ──- { name: 'Qwen 3.5 35B MoE', description: 'Qwen 3.5 35B MoE — best agentic, 256K context. SWE-bench leader.', pulls: '100K+', tags: ['35B', 'Q4_K_M', '21 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-35B-A3B-GGUF', 'Qwen3.5-35B-A3B-Q4_K_M.gguf'), filename: 'Qwen3.5-35B-A3B-Q4_K_M.gguf', sizeGB: 21 },- { name: 'Qwen 3.5 27B', description: 'Qwen 3.5 27B dense — strongest reasoning + coding.', pulls: '100K+', tags: ['27B', 'Q4_K_M', '16 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-27B-GGUF', 'Qwen3.5-27B-Q4_K_M.gguf'), filename: 'Qwen3.5-27B-Q4_K_M.gguf', sizeGB: 16 },- { name: 'Qwen 3.5 9B', description: 'Qwen 3.5 9B — excellent balance of speed and quality.', pulls: '100K+', tags: ['9B', 'Q4_K_M', '5 GB'], updated: 'New', released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-9B-GGUF', 'Qwen3.5-9B-Q4_K_M.gguf'), filename: 'Qwen3.5-9B-Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Qwen 3.5 35B MoE', description: 'Qwen 3.5 35B MoE — best agentic, 256K context. SWE-bench leader.', pulls: '100K+', tags: ['35B', 'Q4_K_M', '21 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-35B-A3B-GGUF', 'Qwen3.5-35B-A3B-Q4_K_M.gguf'), filename: 'Qwen3.5-35B-A3B-Q4_K_M.gguf', sizeGB: 21 },+ { name: 'Qwen 3.5 27B', description: 'Qwen 3.5 27B dense — strongest reasoning + coding.', pulls: '100K+', tags: ['27B', 'Q4_K_M', '16 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-27B-GGUF', 'Qwen3.5-27B-Q4_K_M.gguf'), filename: 'Qwen3.5-27B-Q4_K_M.gguf', sizeGB: 16 },+ { name: 'Qwen 3.5 9B', description: 'Qwen 3.5 9B — excellent balance of speed and quality.', pulls: '100K+', tags: ['9B', 'Q4_K_M', '5 GB'], updated: 'New', agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-9B-GGUF', 'Qwen3.5-9B-Q4_K_M.gguf'), filename: 'Qwen3.5-9B-Q4_K_M.gguf', sizeGB: 5 },// ── GPT-OSS (March 2026) ──- { name: 'GPT-OSS 20B', description: 'OpenAI GPT-OSS — open-source GPT model, strong all-rounder.', pulls: '100K+', tags: ['20B', 'Q4_K_M', '11 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('unsloth/gpt-oss-20b-GGUF', 'gpt-oss-20b-Q4_K_M.gguf'), filename: 'gpt-oss-20b-Q4_K_M.gguf', sizeGB: 11 },+ { name: 'GPT-OSS 20B', description: 'OpenAI GPT-OSS — open-source GPT model, strong all-rounder.', pulls: '100K+', tags: ['20B', 'Q4_K_M', '11 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('unsloth/gpt-oss-20b-GGUF', 'gpt-oss-20b-Q4_K_M.gguf'), filename: 'gpt-oss-20b-Q4_K_M.gguf', sizeGB: 11 },// ── Qwen3-Coder (Feb-March 2026) ──- { name: 'Qwen3-Coder 30B', description: 'Qwen3-Coder — 30B MoE coding agent (3B active). Native tool calling, 256K context.', pulls: '100K+', tags: ['30B MoE', 'Q4_K_M', '17 GB'], updated: 'New', hot: true, agent: true, released: '2026-02', downloadUrl: HF('unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF', 'Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf'), filename: 'Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf', sizeGB: 17 },- { name: 'Qwen3-Coder-Next', description: 'Qwen3-Coder-Next — 80B MoE, optimized for agentic coding.', pulls: '10K+', tags: ['80B MoE', 'Q4_K_M', '45 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3-Coder-Next-GGUF', 'Qwen3-Coder-Next-Q4_K_M.gguf'), filename: 'Qwen3-Coder-Next-Q4_K_M.gguf', sizeGB: 45 },+ { name: 'Qwen3-Coder 30B', description: 'Qwen3-Coder — 30B MoE coding agent (3B active). Native tool calling, 256K context.', pulls: '100K+', tags: ['30B MoE', 'Q4_K_M', '17 GB'], updated: 'New', agent: true, released: '2026-02', downloadUrl: HF('unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF', 'Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf'), filename: 'Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf', sizeGB: 17 },+ { name: 'Qwen3-Coder-Next', description: 'Qwen3-Coder-Next — 80B MoE, optimized for agentic coding.', pulls: '10K+', tags: ['80B MoE', 'Q4_K_M', '45 GB'], updated: 'Hot', agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3-Coder-Next-GGUF', 'Qwen3-Coder-Next-Q4_K_M.gguf'), filename: 'Qwen3-Coder-Next-Q4_K_M.gguf', sizeGB: 45 },+ // ── GLM 4.7 Flash (April 2026) ──+ { name: 'GLM 4.7 Flash IQ2', description: 'ZhipuAI GLM 4.7 Flash — strongest 30B class model. Fits 12GB VRAM. 198K context.', pulls: '50K+', tags: ['30B', 'IQ2_M', '10 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('bartowski/zai-org_GLM-4.7-Flash-GGUF', 'zai-org_GLM-4.7-Flash-IQ2_M.gguf'), filename: 'zai-org_GLM-4.7-Flash-IQ2_M.gguf', sizeGB: 10 },+ { name: 'GLM 4.7 Flash Q2', description: 'ZhipuAI GLM 4.7 Flash — 30B, low VRAM quant. 198K context.', pulls: '50K+', tags: ['30B', 'Q2_K_L', '11 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('bartowski/zai-org_GLM-4.7-Flash-GGUF', 'zai-org_GLM-4.7-Flash-Q2_K_L.gguf'), filename: 'zai-org_GLM-4.7-Flash-Q2_K_L.gguf', sizeGB: 11 },+ { name: 'GLM 4.7 Flash Q3', description: 'ZhipuAI GLM 4.7 Flash — 30B, balanced quality. 198K context.', pulls: '50K+', tags: ['30B', 'Q3_K_M', '14 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('bartowski/zai-org_GLM-4.7-Flash-GGUF', 'zai-org_GLM-4.7-Flash-Q3_K_M.gguf'), filename: 'zai-org_GLM-4.7-Flash-Q3_K_M.gguf', sizeGB: 14 },+ { name: 'GLM 4.7 Flash Q4', description: 'ZhipuAI GLM 4.7 Flash — 30B, recommended quality. 198K context.', pulls: '50K+', tags: ['30B', 'Q4_K_M', '18 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('bartowski/zai-org_GLM-4.7-Flash-GGUF', 'zai-org_GLM-4.7-Flash-Q4_K_M.gguf'), filename: 'zai-org_GLM-4.7-Flash-Q4_K_M.gguf', sizeGB: 18 },+ { name: 'GLM 4.7 Flash Q5', description: 'ZhipuAI GLM 4.7 Flash — 30B, high quality. 198K context.', pulls: '50K+', tags: ['30B', 'Q5_K_M', '22 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('bartowski/zai-org_GLM-4.7-Flash-GGUF', 'zai-org_GLM-4.7-Flash-Q5_K_M.gguf'), filename: 'zai-org_GLM-4.7-Flash-Q5_K_M.gguf', sizeGB: 22 },+ { name: 'GLM 4.7 Flash Q6', description: 'ZhipuAI GLM 4.7 Flash — 30B, near-lossless. 198K context.', pulls: '50K+', tags: ['30B', 'Q6_K', '25 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('bartowski/zai-org_GLM-4.7-Flash-GGUF', 'zai-org_GLM-4.7-Flash-Q6_K.gguf'), filename: 'zai-org_GLM-4.7-Flash-Q6_K.gguf', sizeGB: 25 },+ { name: 'GLM 4.7 Flash Q8', description: 'ZhipuAI GLM 4.7 Flash — 30B, maximum quality. 198K context.', pulls: '50K+', tags: ['30B', 'Q8_0', '32 GB'], updated: 'New', agent: true, released: '2026-04', downloadUrl: HF('bartowski/zai-org_GLM-4.7-Flash-GGUF', 'zai-org_GLM-4.7-Flash-Q8_0.gguf'), filename: 'zai-org_GLM-4.7-Flash-Q8_0.gguf', sizeGB: 32 },// ── GLM 5.1 (April 2026) ──- { name: 'GLM 5.1 754B MoE', description: 'ZhipuAI GLM 5.1 — 754B MoE (40B active). Frontier agentic engineering model. MIT license. Needs multi-file download via CLI.', pulls: '50K+', tags: ['754B MoE', 'IQ2_M', '236 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', url: 'https://huggingface.co/unsloth/GLM-5.1-GGUF', canPull: false, sizeGB: 236 },+ { name: 'GLM 5.1 754B MoE', description: 'ZhipuAI GLM 5.1 — 754B MoE (40B active). Frontier agentic engineering model. MIT license. Needs multi-file download via CLI.', pulls: '50K+', tags: ['754B MoE', 'IQ2_M', '236 GB'], updated: 'Hot', agent: true, released: '2026-04', url: 'https://huggingface.co/unsloth/GLM-5.1-GGUF', canPull: false, sizeGB: 236 },// ── DeepSeek R1 (Jan-Jun 2025) ──{ name: 'DeepSeek R1 Qwen3 8B', description: 'DeepSeek R1 distilled into Qwen3 8B — chain-of-thought reasoning.', pulls: '2M+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2025-06', downloadUrl: HF('unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF', 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf', sizeGB: 5 },{ name: 'DeepSeek R1 Qwen 14B', description: 'DeepSeek R1 distilled into Qwen 14B — stronger reasoning.', pulls: '2M+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF', 'DeepSeek-R1-Distill-Qwen-14B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-14B-Q4_K_M.gguf', sizeGB: 9 },@@ -432,13 +455,13 @@ export function getMainstreamTextModels(): DiscoverModel[] {// ── Phi 4 (Dec 2024) ──{ name: 'Phi-4 14B', description: 'Microsoft Phi-4 — excellent at math, logic, structured tasks.', pulls: '500K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', agent: true, released: '2024-12', downloadUrl: HF('bartowski/phi-4-GGUF', 'phi-4-Q4_K_M.gguf'), filename: 'phi-4-Q4_K_M.gguf', sizeGB: 9 },// ── Llama 3.3 / 3.1 ──- { name: 'Llama 3.3 70B', description: 'Meta Llama 3.3 70B — maximum intelligence for high-end setups.', pulls: '1M+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', released: '2024-12', downloadUrl: HF('bartowski/Llama-3.3-70B-Instruct-GGUF', 'Llama-3.3-70B-Instruct-Q4_K_M.gguf'), filename: 'Llama-3.3-70B-Instruct-Q4_K_M.gguf', sizeGB: 42 },- { name: 'Llama 3.1 8B', description: 'Meta Llama 3.1 8B — fast, reliable, great entry point.', pulls: '1M+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('bartowski/Meta-Llama-3.1-8B-Instruct-GGUF', 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Llama 3.3 70B', description: 'Meta Llama 3.3 70B — maximum intelligence for high-end setups.', pulls: '1M+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', agent: true, released: '2024-12', downloadUrl: HF('bartowski/Llama-3.3-70B-Instruct-GGUF', 'Llama-3.3-70B-Instruct-Q4_K_M.gguf'), filename: 'Llama-3.3-70B-Instruct-Q4_K_M.gguf', sizeGB: 42 },+ { name: 'Llama 3.1 8B', description: 'Meta Llama 3.1 8B — fast, reliable, great entry point.', pulls: '1M+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2024-07', downloadUrl: HF('bartowski/Meta-Llama-3.1-8B-Instruct-GGUF', 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf', sizeGB: 5 },// ── Mistral ──{ name: 'Mistral Small 24B', description: 'Mistral Small — fast, multilingual, native tool calling.', pulls: '300K+', tags: ['24B', 'Q4_K_M', '14 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('bartowski/Mistral-Small-24B-Instruct-2501-GGUF', 'Mistral-Small-24B-Instruct-2501-Q4_K_M.gguf'), filename: 'Mistral-Small-24B-Instruct-2501-Q4_K_M.gguf', sizeGB: 14 },{ name: 'Mistral Nemo 12B', description: 'Mistral Nemo 12B — multilingual powerhouse.', pulls: '300K+', tags: ['12B', 'Q4_K_M', '7 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('bartowski/Mistral-Nemo-Instruct-2407-GGUF', 'Mistral-Nemo-Instruct-2407-Q4_K_M.gguf'), filename: 'Mistral-Nemo-Instruct-2407-Q4_K_M.gguf', sizeGB: 7 },// ── Qwen 2.5 ──- { name: 'Qwen 2.5 7B', description: 'Qwen 2.5 7B — proven and reliable all-rounder.', pulls: '100K+', tags: ['7B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2024-09', downloadUrl: HF('bartowski/Qwen2.5-7B-Instruct-GGUF', 'Qwen2.5-7B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-Q4_K_M.gguf', sizeGB: 5 },+ { name: 'Qwen 2.5 7B', description: 'Qwen 2.5 7B — proven and reliable all-rounder.', pulls: '100K+', tags: ['7B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('bartowski/Qwen2.5-7B-Instruct-GGUF', 'Qwen2.5-7B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-Q4_K_M.gguf', sizeGB: 5 },])}@@ -619,7 +642,6 @@ export function getImageBundles(): ModelBundle[] {name: 'FLUX.1 [schnell] FP8 (Fast & Modern)',description: 'State-of-the-art image gen. 1-4 steps for fast results. Complete package with all required encoders.',tags: ['FLUX', 'Fast', 'FP8', '1024px'],- hot: true,verified: true,totalSizeGB: 21,vramRequired: '8-10 GB',@@ -700,7 +722,6 @@ export function getImageBundles(): ModelBundle[] {name: 'FLUX 2 Klein 4B (Next-Gen)',description: 'Latest FLUX architecture. Fastest FLUX model with stunning quality. Includes Qwen 3 text encoder.',tags: ['FLUX 2', 'Fast', '1024px'],- hot: true,verified: true,totalSizeGB: 11.1,vramRequired: '8-10 GB',@@ -734,7 +755,6 @@ export function getImageBundles(): ModelBundle[] {name: 'Z-Image Turbo (Uncensored, Fast)',description: 'Explicitly uncensored image model. 8-15 seconds per image. No safety filters. Text-to-Image and Image-to-Image.',tags: ['Z-Image', 'Uncensored', 'Fast', '1024px'],- hot: true,uncensored: true,verified: true,totalSizeGB: 19.3,@@ -895,7 +915,6 @@ export function getVideoBundles(): ModelBundle[] {name: 'Wan 2.1 — 1.3B (Lightweight)',description: 'Best for 8-10 GB VRAM GPUs. Generates 480p video. Fast and lightweight.',tags: ['Wan 2.1', '480p', 'Fast'],- hot: true,uncensored: true,verified: true,totalSizeGB: 9.2,@@ -1032,7 +1051,6 @@ export function getVideoBundles(): ModelBundle[] {name: 'AnimateDiff Lightning',description: 'Ultra-fast 4-step animation on any SD1.5 checkpoint. Great for quick iterations. Needs an SD1.5 base model.',tags: ['AnimateDiff', '512x512', 'Lightning'],- hot: true,verified: true,totalSizeGB: 2.8,vramRequired: '6-8 GB',@@ -1157,7 +1175,6 @@ export function getVideoBundles(): ModelBundle[] {name: 'FramePack F1 (Image-to-Video)',description: 'Revolutionary I2V: runs on 6 GB VRAM via next-frame prediction. Upload an image, get a video. Uses HunyuanVideo backbone.',tags: ['FramePack', 'I2V', 'Low VRAM'],- hot: true,uncensored: true,verified: true,totalSizeGB: 27.0,diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsxindex 1a07d1cb..11d8326a 100644--- a/src/components/chat/ChatInput.tsx+++ b/src/components/chat/ChatInput.tsx@@ -17,6 +17,7 @@ interface Props {pendingApproval?: AgentToolCall | nullonApprove?: () => voidonReject?: () => void+ disabled?: boolean}function fileToImageAttachment(file: File): Promise<ImageAttachment> {@@ -32,7 +33,7 @@ function fileToImageAttachment(file: File): Promise<ImageAttachment> {})}-export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApprove, onReject }: Props) {+export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApprove, onReject, disabled }: Props) {const [input, setInput] = useState('')const [images, setImages] = useState<ImageAttachment[]>([])const [isDragOver, setIsDragOver] = useState(false)@@ -65,7 +66,7 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onAppconst handleSend = () => {const trimmed = input.trim()- if ((!trimmed && images.length === 0) || isGenerating) return+ if ((!trimmed && images.length === 0) || isGenerating || disabled) returnonSend(trimmed || '(image)', images.length > 0 ? images : undefined)setInput('')setImages([])@@ -186,9 +187,10 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApponChange={(e) => setInput(e.target.value)}onKeyDown={handleKeyDown}onPaste={handlePaste}- placeholder={isDragOver ? "Drop images here..." : isTranscribing ? "Transcribing..." : isVoiceRecording ? "Recording..." : "Message..."}+ placeholder={disabled ? "Claude Code not installed" : isDragOver ? "Drop images here..." : isTranscribing ? "Transcribing..." : isVoiceRecording ? "Recording..." : "Message..."}+ disabled={disabled}rows={1}- className="flex-1 bg-transparent resize-none text-gray-800 dark:text-gray-200 placeholder-gray-400 dark:placeholder-gray-600 focus:outline-none text-[0.75rem] leading-relaxed max-h-[200px]"+ className="flex-1 bg-transparent resize-none text-gray-800 dark:text-gray-200 placeholder-gray-400 dark:placeholder-gray-600 focus:outline-none text-[0.75rem] leading-relaxed max-h-[200px] disabled:opacity-50"/>{/* Think toggle */}diff --git a/src/components/chat/ChatModeTabs.tsx b/src/components/chat/ChatModeTabs.tsxindex db85410c..de8fc30e 100644--- a/src/components/chat/ChatModeTabs.tsx+++ b/src/components/chat/ChatModeTabs.tsx@@ -1,10 +1,11 @@-import { MessageSquare, Code } from 'lucide-react'+import { MessageSquare, Code, Terminal } from 'lucide-react'import { useCodexStore } from '../../stores/codexStore'import type { ChatMode } from '../../types/codex'const TABS: { mode: ChatMode; label: string; icon: typeof Code; disabled?: boolean; tag?: string }[] = [{ mode: 'lu', label: 'LU', icon: MessageSquare },{ mode: 'codex', label: 'Codex', icon: Code },+ { mode: 'claude-code', label: 'Claude Code', icon: Terminal, tag: 'Ollama 0.14+' },]export function ChatModeTabs() {diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex 4ff07167..342a5eb2 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -22,6 +22,7 @@ import { exportConversation } from '../../lib/chat-export'import { PermissionOverrideBar } from './PermissionOverrideBar'import { RealtimeCounter } from './RealtimeCounter'import { CodexView } from './CodexView'+import { ClaudeCodeView } from './ClaudeCodeView'import { useCodexStore } from '../../stores/codexStore'export function ChatView() {@@ -90,9 +91,10 @@ export function ChatView() {transition={{ duration: 0.25, ease: 'easeOut' }}><div className="flex-1 flex flex-col min-w-0 relative">- {/* Codex mode */}{chatMode === 'codex' ? (<CodexView />+ ) : chatMode === 'claude-code' ? (+ <ClaudeCodeView />) : (<>{/* Top bar — compact (LU mode) */}<div className="flex items-center gap-1.5 px-2 pt-0.5">diff --git a/src/components/create/CreateView.tsx b/src/components/create/CreateView.tsxindex a08d20dc..3dc01202 100644--- a/src/components/create/CreateView.tsx+++ b/src/components/create/CreateView.tsx@@ -111,7 +111,7 @@ interface ComfyStatus {export function CreateView() {const {connected, imageModels, videoModels, samplerList, schedulerList,- videoBackend, modelsLoaded, checkConnection, fetchModels, runPreflight, generate, cancel,+ videoBackend, modelsLoaded, modelLoadError, checkConnection, fetchModels, runPreflight, generate, cancel,} = useCreate()const { mode, setMode, imageSubMode, error, preflightReady, preflightErrors, preflightWarnings, videoModel, i2vImage, setI2vImage, i2iImage, setI2iImage, denoise, setDenoise } = useCreateStore()@@ -625,6 +625,8 @@ export function CreateView() {samplerList={samplerList}schedulerList={schedulerList}modelsLoaded={modelsLoaded}+ modelLoadError={modelLoadError}+ onRetryModels={fetchModels}/></div>diff --git a/src/components/create/ParamPanel.tsx b/src/components/create/ParamPanel.tsxindex e77d4fbe..01a37b0d 100644--- a/src/components/create/ParamPanel.tsx+++ b/src/components/create/ParamPanel.tsx@@ -12,6 +12,8 @@ interface Props {samplerList: string[]schedulerList: string[]modelsLoaded: boolean+ modelLoadError?: string | null+ onRetryModels?: () => void}const IMG_SIZE_PRESETS_SD15 = [@@ -59,7 +61,7 @@ const TYPE_BADGE: Record<ModelType, { label: string; color: string }> = {unknown: { label: 'Model', color: 'bg-white/10 text-gray-400' },}-export function ParamPanel({ imageModels, videoModels, samplerList, schedulerList, modelsLoaded }: Props) {+export function ParamPanel({ imageModels, videoModels, samplerList, schedulerList, modelsLoaded, modelLoadError, onRetryModels }: Props) {const store = useCreateStore()const isVideo = store.mode === 'video'const isI2I = store.mode === 'image' && store.imageSubMode === 'img2img'@@ -158,13 +160,24 @@ export function ParamPanel({ imageModels, videoModels, samplerList, schedulerLis{/* Model */}<div><label className={lbl}>{isVideo ? (videoSubTab === 'i2v' ? 'I2V Model' : 'Video Model') : 'Image Model'}</label>- {!modelsLoaded ? (+ {modelLoadError ? (+ <div className="space-y-1">+ <div className="px-2.5 py-1.5 rounded-lg bg-red-500/10 border border-red-500/20 text-red-400 text-[10px]">+ {modelLoadError}+ </div>+ {onRetryModels && (+ <button onClick={onRetryModels} className="text-[9px] text-gray-500 hover:text-gray-300 transition-colors">+ Retry+ </button>+ )}+ </div>+ ) : !modelsLoaded ? (<div className="px-2.5 py-1.5 rounded-lg bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/8 text-gray-400 dark:text-gray-600 text-[10px] animate-pulse">- Loading...+ Loading models from ComfyUI...</div>) : models.length === 0 ? (<div className="px-2.5 py-1.5 rounded-lg bg-yellow-500/5 border border-yellow-500/10 text-yellow-400 text-[10px]">- No models found+ No models found. Download models in the Model Manager.</div>) : (<>diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsxindex 91ff98b3..8e4527b5 100644--- a/src/components/layout/Sidebar.tsx+++ b/src/components/layout/Sidebar.tsx@@ -1,6 +1,6 @@import { useState } from 'react'import { motion, AnimatePresence } from 'framer-motion'-import { Plus, Search, Trash2, Edit3, Check, X, MessageSquare, Code } from 'lucide-react'+import { Plus, Search, Trash2, Edit3, Check, X, MessageSquare, Code, Terminal, ChevronDown } from 'lucide-react'import { useChatStore } from '../../stores/chatStore'import { useUIStore } from '../../stores/uiStore'import { useModelStore } from '../../stores/modelStore'@@ -9,9 +9,9 @@ import { useCodexStore } from '../../stores/codexStore'import { formatDate, truncate } from '../../lib/formatters'import type { ChatMode } from '../../types/codex'-const MODE_TABS: { mode: ChatMode; label: string; icon: typeof Code; disabled?: boolean; tag?: string }[] = [- { mode: 'lu', label: 'LU', icon: MessageSquare },+const CODING_MODES: { mode: ChatMode; label: string; icon: typeof Code; disabled?: boolean; tag?: string }[] = [{ mode: 'codex', label: 'Codex', icon: Code },+ { mode: 'claude-code', label: 'Claude Code', icon: Terminal, disabled: true, tag: 'soon' },]export function Sidebar() {@@ -24,6 +24,10 @@ export function Sidebar() {const [search, setSearch] = useState('')const [editingId, setEditingId] = useState<string | null>(null)const [editTitle, setEditTitle] = useState('')+ const [codingDropdownOpen, setCodingDropdownOpen] = useState(false)++ const isCodingMode = chatMode === 'codex' || chatMode === 'claude-code'+ const activeCodingMode = CODING_MODES.find(m => m.mode === chatMode)// Filter conversations by current modeconst modeConversations = conversations.filter(c => (c.mode || 'lu') === chatMode)@@ -61,31 +65,70 @@ export function Sidebar() {exit={{ width: 0, opacity: 0 }}transition={{ duration: 0.15 }}>- {/* Mode Tabs (LU | Codex) */}+ {/* Mode Tabs (Chat | Code) */}<div className="flex items-center gap-0.5 px-2 pt-2 pb-1">- {MODE_TABS.map(({ mode, label, icon: Icon, disabled, tag }) => {- const isActive = chatMode === mode- return (- <button- key={mode}- onClick={() => { if (!disabled) { setChatMode(mode); setActiveConversation(null); setView('chat') } }}- disabled={disabled}- className={`flex items-center gap-1 px-2 py-1 rounded text-[0.6rem] font-medium transition-all flex-1 justify-center ${- isActive- ? 'bg-gray-200 dark:bg-white/10 text-gray-900 dark:text-white border border-gray-300 dark:border-white/15'- : disabled- ? 'text-gray-400 dark:text-gray-700 cursor-default'- : 'text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 border border-transparent'- }`}- >- <Icon size={9} />- <span className="relative">- {label}- {tag && <span className="absolute inset-0 flex items-center justify-center text-[0.4rem] text-red-500 dark:text-red-400 font-bold bg-gray-50/80 dark:bg-[#0a0a0a]/80">{tag}</span>}- </span>- </button>- )- })}+ {/* Chat tab */}+ <button+ onClick={() => { setChatMode('lu'); setActiveConversation(null); setView('chat'); setCodingDropdownOpen(false) }}+ className={`flex items-center gap-1 px-2 py-1 rounded text-[0.6rem] font-medium transition-all flex-1 justify-center ${+ !isCodingMode+ ? 'bg-gray-200 dark:bg-white/10 text-gray-900 dark:text-white border border-gray-300 dark:border-white/15'+ : 'text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 border border-transparent'+ }`}+ >+ <MessageSquare size={9} />+ <span>Chat</span>+ </button>++ {/* Code tab — always opens dropdown */}+ <div className="relative flex-1">+ <button+ onClick={() => setCodingDropdownOpen(!codingDropdownOpen)}+ className={`flex items-center gap-1 px-2 py-1 rounded text-[0.6rem] font-medium transition-all w-full justify-center ${+ isCodingMode+ ? 'bg-gray-200 dark:bg-white/10 text-gray-900 dark:text-white border border-gray-300 dark:border-white/15'+ : 'text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 border border-transparent'+ }`}+ >+ <Code size={9} />+ <span>Code</span>+ <ChevronDown size={7} className={`opacity-40 transition-transform ${codingDropdownOpen ? 'rotate-180' : ''}`} />+ </button>++ {/* Dropdown — glass effect, compact */}+ {codingDropdownOpen && (+ <>+ <div className="fixed inset-0 z-40" onClick={() => setCodingDropdownOpen(false)} />+ <div className="absolute left-0 top-full mt-0.5 z-50 rounded-lg bg-white/90 dark:bg-white/[0.06] backdrop-blur-xl border border-gray-200/50 dark:border-white/[0.08] shadow-lg overflow-hidden whitespace-nowrap min-w-[120px]">+ {CODING_MODES.map(({ mode, label, icon: Icon, disabled, tag }) => (+ <button+ key={mode}+ onClick={() => {+ if (disabled) return+ setChatMode(mode)+ setActiveConversation(null)+ setView('chat')+ setCodingDropdownOpen(false)+ }}+ className={`flex items-center gap-1.5 w-full px-2 py-1 text-[0.55rem] transition-colors ${+ disabled+ ? 'text-gray-400/40 dark:text-gray-600/60 cursor-default'+ : chatMode === mode+ ? 'bg-gray-200/60 dark:bg-white/10 text-gray-900 dark:text-white'+ : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/60 dark:hover:bg-white/[0.06]'+ }`}+ >+ <Icon size={9} />+ <span className="relative">+ {label}+ {tag && <span className="absolute -top-2 left-0 right-0 text-[0.35rem] text-red-400/70 font-medium text-center">{tag}</span>}+ </span>+ </button>+ ))}+ </div>+ </>+ )}+ </div></div>{/* Search */}diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex a0394d44..023e8b2f 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -17,6 +17,8 @@ import { MCPServerSettings } from './MCPServerSettings'import { WorkflowList } from '../agents/WorkflowList'import { WorkflowBuilder } from '../agents/WorkflowBuilder'import { useUpdateStore } from '../../stores/updateStore'+import { useClaudeCodeStore, CLAUDE_CODE_RECOMMENDED_MODELS } from '../../stores/claudeCodeStore'+import { backendCall } from '../../api/backend'import { ArrowUpCircle } from 'lucide-react'// ── Collapsible Section ─────────────────────────────────────────@@ -266,6 +268,71 @@ function ComfyUISettings() {)}+// ── Claude Code Settings ────────────────────────────────────────++function ClaudeCodeSettings() {+ const installed = useClaudeCodeStore((s) => s.installed)+ const version = useClaudeCodeStore((s) => s.version)+ const { settings, updateSettings } = useSettingsStore()+ const [detecting, setDetecting] = useState(false)++ async function handleDetect() {+ setDetecting(true)+ try {+ const result = await backendCall<{ installed: boolean; version: string; path: string }>('detect_claude_code')+ useClaudeCodeStore.getState().setInstalled(result.installed, result.version, result.path)+ } catch { /* ignore */ }+ setDetecting(false)+ }++ return (+ <div className="space-y-3">+ {/* Status */}+ <div className="flex items-center gap-2 text-[0.65rem]">+ <span className="flex items-center gap-1">+ <span className={`w-1.5 h-1.5 rounded-full ${installed ? 'bg-green-500' : 'bg-red-500'}`} />+ <span className="text-gray-500">{installed ? `Installed (${version || 'unknown'})` : 'Not installed'}</span>+ </span>+ <button onClick={handleDetect} disabled={detecting} className="text-[0.55rem] text-gray-500 hover:text-gray-300 transition-colors">+ {detecting ? 'Detecting...' : 'Re-detect'}+ </button>+ </div>++ {/* Model selector */}+ <div className="space-y-1">+ <label className="text-[0.6rem] text-gray-500">Model</label>+ <select+ value={settings.claudeCodeModel}+ onChange={(e) => updateSettings({ claudeCodeModel: e.target.value })}+ className="w-full text-[0.65rem] px-2 py-1 rounded bg-white dark:bg-white/5 border border-gray-200 dark:border-white/10 text-gray-800 dark:text-gray-200"+ >+ <option value="">Auto (default)</option>+ {CLAUDE_CODE_RECOMMENDED_MODELS.map(m => (+ <option key={m.name} value={m.name}>{m.label} — {m.reason}</option>+ ))}+ </select>+ </div>++ {/* Auto-approve toggle */}+ <InlineToggle+ label="Auto-approve all permissions"+ enabled={settings.claudeCodeAutoApprove}+ onChange={() => updateSettings({ claudeCodeAutoApprove: !settings.claudeCodeAutoApprove })}+ icon={<Shield size={10} className="text-amber-400" />}+ />+ {settings.claudeCodeAutoApprove && (+ <p className="text-[0.5rem] text-amber-400/70 ml-4">+ Warning: This allows Claude Code to execute any tool without asking. Use with caution.+ </p>+ )}++ <p className="text-[0.5rem] text-gray-600">+ Requires Ollama 0.14+ for local Anthropic API compatibility.+ </p>+ </div>+ )+}+// ── Main Component ──────────────────────────────────────────────export function SettingsPage() {@@ -360,6 +427,11 @@ export function SettingsPage() {<ComfyUISettings /></Section>+ {/* ── Claude Code ────────────────────────────── */}+ <Section title="Claude Code">+ <ClaudeCodeSettings />+ </Section>+{/* ── Voice ──────────────────────────────────── */}<Section title="Voice"><div className="flex items-center gap-3 text-[0.65rem]">diff --git a/src/hooks/useCreate.ts b/src/hooks/useCreate.tsindex 67eaf5d1..ad687e07 100644--- a/src/hooks/useCreate.ts+++ b/src/hooks/useCreate.ts@@ -2,6 +2,7 @@ import { useState, useCallback, useRef, useEffect } from 'react'import { v4 as uuid } from 'uuid'import {checkComfyConnection,+ refreshComfyModels,getImageModels,getVideoModels,getSamplers,@@ -37,6 +38,7 @@ export function useCreate() {const [schedulerList, setSchedulerList] = useState<string[]>([])const [videoBackend, setVideoBackend] = useState<VideoBackend>('none')const [modelsLoaded, setModelsLoaded] = useState(false)+ const [modelLoadError, setModelLoadError] = useState<string | null>(null)const pollRef = useRef<ReturnType<typeof setInterval> | null>(null)const abortRef = useRef<AbortController | null>(null)@@ -72,8 +74,23 @@ export function useCreate() {}}, [])+ const zeroModelRetries = useRef(0)+const fetchModels = useCallback(async () => {+ setModelLoadError(null)try {+ // Check connection first — if ComfyUI is down, don't waste time on model queries+ const comfyOk = await checkComfyConnection()+ if (!comfyOk) {+ setModelLoadError('ComfyUI is not running. Start it from Settings or wait for auto-start.')+ return+ }++ // Force ComfyUI to re-scan model directories before querying.+ // This fixes the case where models were downloaded while ComfyUI was running+ // and its internal cache hasn't updated yet.+ await refreshComfyModels()+const [imgModels, vidModels, samplers, schedulers, vBackend, _nodeInfo] = await Promise.all([getImageModels(),getVideoModels(),@@ -87,6 +104,26 @@ export function useCreate() {setSamplerList(samplers)setSchedulerList(schedulers)setVideoBackend(vBackend)++ // If ComfyUI is connected but returns 0 models, do NOT set modelsLoaded — keep retrying.+ // ComfyUI may still be scanning directories (race condition on startup).+ if (imgModels.length === 0 && vidModels.length === 0) {+ zeroModelRetries.current+++ if (zeroModelRetries.current <= 12) {+ // Still retrying — ComfyUI might not be done scanning yet+ console.log(`[useCreate] 0 models found, retry ${zeroModelRetries.current}/12...`)+ setModelLoadError('ComfyUI is loading models... This can take a moment after startup.')+ // Don't set modelsLoaded — auto-retry will keep running+ } else {+ // Give up retrying — show actionable error+ setModelsLoaded(true)+ setModelLoadError('ComfyUI is running but found 0 models. Make sure models are in ComfyUI/models/ subfolders (checkpoints/, diffusion_models/). Try Refresh or restart ComfyUI in Settings.')+ }+ return+ }++ // Models found — reset retry counter and mark loaded+ zeroModelRetries.current = 0setModelsLoaded(true)const state = useCreateStore.getState()@@ -118,6 +155,7 @@ export function useCreate() {setTimeout(() => runPreflight(), 100)} catch (err) {console.error('[useCreate] Failed to fetch models:', err)+ setModelLoadError(`Failed to load models: ${err instanceof Error ? err.message : 'ComfyUI API error'}`)}}, [runPreflight])@@ -131,6 +169,20 @@ export function useCreate() {return () => window.removeEventListener('comfyui-model-downloaded', handler)}, [fetchModels])+ // Auto-retry model loading when ComfyUI reconnects OR when 0 models found (startup race)+ useEffect(() => {+ if (!modelLoadError) return // No error — nothing to retry+ if (modelsLoaded) return // modelsLoaded + error = gave up after max retries, don't loop+ const retryInterval = setInterval(async () => {+ const ok = await checkComfyConnection()+ if (ok) {+ console.log('[useCreate] Retrying model fetch...')+ fetchModels()+ }+ }, 3000)+ return () => clearInterval(retryInterval)+ }, [modelLoadError, modelsLoaded, fetchModels])+const generate = useCallback(async () => {const state = useCreateStore.getState()const {@@ -555,6 +607,7 @@ export function useCreate() {schedulerList,videoBackend,modelsLoaded,+ modelLoadError,checkConnection,fetchModels,runPreflight,diff --git a/src/lib/constants.ts b/src/lib/constants.tsindex 88776903..5919c50e 100644--- a/src/lib/constants.ts+++ b/src/lib/constants.ts@@ -18,6 +18,10 @@ export const DEFAULT_SETTINGS: Settings = {searchProvider: 'auto',braveApiKey: '',tavilyApiKey: '',+ // Claude Code+ claudeCodeModel: '',+ claudeCodeAutoApprove: false,+ claudeCodePath: '',}export const BUILT_IN_PERSONAS: Persona[] = [diff --git a/src/lib/model-compatibility.ts b/src/lib/model-compatibility.tsindex fccd2354..7cfe0886 100644--- a/src/lib/model-compatibility.ts+++ b/src/lib/model-compatibility.ts@@ -79,6 +79,30 @@ export function isThinkingCompatible(modelName: string | null): boolean {return THINKING_COMPATIBLE.some(f => baseName.startsWith(f))}+/**+ * Models recommended for Claude Code (Anthropic API compat via Ollama 0.14+).+ * These models handle agentic tool-use loops well with the Claude Code CLI.+ */+const CLAUDE_CODE_COMPATIBLE = [+ 'glm5', 'glm-5', 'glm4.7', 'glm-4.7',+ 'qwen3.5-coder', 'qwen3-coder',+ 'qwen3.5', 'qwen3',+ 'hermes3', 'hermes-3', 'hermes',+ 'deepseek-v3', 'deepseek-v2.5',+ 'gemma4', 'gemma3',+]++/**+ * Check if a model works well with Claude Code via Ollama 0.14+.+ * Only relevant for Ollama provider since Claude Code uses Anthropic API format.+ */+export function isClaudeCodeCompatible(modelName: string | null): boolean {+ if (!modelName) return false+ const name = modelName.toLowerCase()+ const baseName = name.replace(/^[^/]+\//, '').replace(/:.*$/, '').replace(/-abliterated/g, '').replace(/-uncensored/g, '')+ return CLAUDE_CODE_COMPATIBLE.some(f => baseName.startsWith(f))+}+export type ToolCallingStrategy = 'native' | 'template_fix' | 'hermes_xml'/**diff --git a/src/stores/chatStore.ts b/src/stores/chatStore.tsindex e659bab6..a93dbfa1 100644--- a/src/stores/chatStore.ts+++ b/src/stores/chatStore.ts@@ -8,7 +8,7 @@ import { createSafeStorage } from '../lib/storage-quota'interface ChatState {conversations: Conversation[]activeConversationId: string | null- createConversation: (model: string, systemPrompt: string, mode?: 'lu' | 'codex' | 'openclaw') => string+ createConversation: (model: string, systemPrompt: string, mode?: 'lu' | 'codex' | 'openclaw' | 'claude-code') => stringdeleteConversation: (id: string) => voidrenameConversation: (id: string, title: string) => voidsetActiveConversation: (id: string | null) => void@@ -31,7 +31,7 @@ export const useChatStore = create<ChatState>()(const id = uuid()const conversation: Conversation = {id,- title: mode === 'codex' ? 'Codex Chat' : 'New Chat',+ title: mode === 'codex' ? 'Codex Chat' : mode === 'claude-code' ? 'Claude Code' : 'New Chat',messages: [],model,systemPrompt,diff --git a/src/types/chat.ts b/src/types/chat.tsindex 1f038b63..2da8206d 100644--- a/src/types/chat.ts+++ b/src/types/chat.ts@@ -27,7 +27,7 @@ export interface Conversation {messages: Message[]model: stringsystemPrompt: string- mode?: 'lu' | 'codex' | 'openclaw'+ mode?: 'lu' | 'codex' | 'openclaw' | 'claude-code'createdAt: numberupdatedAt: number}diff --git a/src/types/codex.ts b/src/types/codex.tsindex 6e89ecf8..10fc3cdb 100644--- a/src/types/codex.ts+++ b/src/types/codex.ts@@ -1,4 +1,4 @@-export type ChatMode = 'lu' | 'codex' | 'openclaw'+export type ChatMode = 'lu' | 'codex' | 'openclaw' | 'claude-code'export type CodexEventType = 'instruction' | 'file_change' | 'terminal_output' | 'reasoning' | 'error' | 'done'diff --git a/src/types/settings.ts b/src/types/settings.tsindex e9630225..838ca697 100644--- a/src/types/settings.ts+++ b/src/types/settings.ts@@ -12,6 +12,10 @@ export interface Settings {searchProvider: SearchProviderbraveApiKey: stringtavilyApiKey: string+ // Claude Code+ claudeCodeModel: string+ claudeCodeAutoApprove: boolean+ claudeCodePath: string}export interface Persona {