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

chore([issue-1802]): renumber migration 148 → 149 (148 taken by concurrent cd-treatment-catalog-cast on main)

Adam Eivy95d9b020f06d
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index f90a087ec3..d230a1add7 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -8,7 +8,7 @@
## AI Providers
- **[issue-1801] "Test" now finds your CLI provider on Windows.** Testing a CLI/TUI provider (e.g. `claude`) on Windows always failed with `Command 'claude' not found in PATH` even when the command worked fine from a terminal. The test resolved the command with the Unix-only `which` tool, which doesn't exist on Windows — so the check itself errored and was misreported as a missing command. It now uses `where` on Windows (and `which` elsewhere), and runs the version probe against the exact resolved executable, so the test correctly succeeds when your provider is installed. (Closes #1801)
-- **[issue-1802] Run local Ollama models that actually edit files with the new "OpenCode Ollama" provider.** Ollama models are trained against the OpenAI tool-calling format, so under the Claude harness they often *describe* a file edit as JSON without ever applying it — the model "responds" but nothing changes on disk. **OpenCode Ollama** drives the `opencode` agent against your local Ollama daemon instead, speaking the OpenAI-compatible protocol natively, so the same local models reliably read, write, and edit files in headless agent tasks. It's disabled by default; enable it, hit **Refresh Models** to pull your tool-use-capable Ollama models, pick a default model, and run. Tool approvals are auto-allowed for unattended execution, and the Ollama connection is configured for you (no `opencode.json` to hand-write). It arrives on the AI Providers page after `./update.sh` (migration `148-opencode-ollama-providers.js` adds it to existing installs) and appears under **Load Samples** on fresh installs. Requires the `opencode` CLI on your PATH. (Closes #1802)
+- **[issue-1802] Run local Ollama models that actually edit files with the new "OpenCode Ollama" provider.** Ollama models are trained against the OpenAI tool-calling format, so under the Claude harness they often *describe* a file edit as JSON without ever applying it — the model "responds" but nothing changes on disk. **OpenCode Ollama** drives the `opencode` agent against your local Ollama daemon instead, speaking the OpenAI-compatible protocol natively, so the same local models reliably read, write, and edit files in headless agent tasks. It's disabled by default; enable it, hit **Refresh Models** to pull your tool-use-capable Ollama models, pick a default model, and run. Tool approvals are auto-allowed for unattended execution, and the Ollama connection is configured for you (no `opencode.json` to hand-write). It arrives on the AI Providers page after `./update.sh` (migration `149-opencode-ollama-providers.js` adds it to existing installs) and appears under **Load Samples** on fresh installs. Requires the `opencode` CLI on your PATH. (Closes #1802)
- **[issue-1776] Run CoS agent tasks on a local model with the new "Claude Ollama" provider (CLI + TUI).** If your only LLM is Ollama or LM Studio, you couldn't run file-writing agent tasks — those providers return plain text with no Read/Write/Edit harness. **Claude Ollama** runs the full Claude Code harness on top of your local model: it's a `claude` CLI/TUI pre-wired to your Ollama daemon, and its **Refresh Models** pulls the installed Ollama models filtered to the **tool-use-capable** ones the agent loop depends on. It now ships in **two variants** — **Claude Ollama (local model)** (`cli`, headless) and **Claude Ollama TUI (local model)** (`tui`, interactive) — and **both arrive on the AI Providers page after `./update.sh`** (migration `146-claude-ollama-providers.js` adds them to existing installs and renames the earlier "Clawed Ollama" sample, preserving your settings; previously it lived only in the toolkit sample and never reached the merge path). The task form offers **only coding providers** — raw Ollama / LM Studio / kimi are excluded (with an inline advisory pointing you to Claude Ollama when they're all you have), and a server-side guard rejects an API provider that slips into the spawn path instead of silently writing nothing. Includes a copy-ready global `~/.claude/settings.json` example and a setup guide with the tool-use model caveat. (`data.reference/providers.json`, `server/lib/aiToolkit/`, `scripts/migrations/146-claude-ollama-providers.js`, `docs/features/claude-ollama.md`, `docs/examples/`)
## Dashboard
diff --git a/scripts/migrations/148-opencode-ollama-providers.js b/scripts/migrations/149-opencode-ollama-providers.js
similarity index 100%
rename from scripts/migrations/148-opencode-ollama-providers.js
rename to scripts/migrations/149-opencode-ollama-providers.js
diff --git a/scripts/migrations/148-opencode-ollama-providers.test.js b/scripts/migrations/149-opencode-ollama-providers.test.js
similarity index 91%
rename from scripts/migrations/148-opencode-ollama-providers.test.js
rename to scripts/migrations/149-opencode-ollama-providers.test.js
index bb73a7d2c2..963f33d2b3 100644
--- a/scripts/migrations/148-opencode-ollama-providers.test.js
+++ b/scripts/migrations/149-opencode-ollama-providers.test.js
@@ -1,6 +1,6 @@
/**
- * Test for migration 148 — add the OpenCode Ollama CLI + TUI shipped providers
- * to existing installs. Picked up by server/vitest.config.js's
+ * Test for migration 149 — add the OpenCode Ollama CLI provider to existing
+ * installs. Picked up by server/vitest.config.js's
* `../scripts/**\/*.test.js` glob.
*/
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
@@ -8,17 +8,17 @@ import { mkdtempSync, rmSync, writeFileSync, readFileSync, mkdirSync, existsSync
import { tmpdir } from 'os';
import { join } from 'path';
-import migration from './148-opencode-ollama-providers.js';
+import migration from './149-opencode-ollama-providers.js';
const writeJson = (path, value) => writeFileSync(path, JSON.stringify(value, null, 2) + '\n');
const readJson = (path) => JSON.parse(readFileSync(path, 'utf-8'));
-describe('migration 148 — OpenCode Ollama providers', () => {
+describe('migration 149 — OpenCode Ollama providers', () => {
let rootDir;
let providersPath;
beforeEach(() => {
- rootDir = mkdtempSync(join(tmpdir(), 'migration-148-'));
+ rootDir = mkdtempSync(join(tmpdir(), 'migration-149-'));
mkdirSync(join(rootDir, 'data'), { recursive: true });
providersPath = join(rootDir, 'data/providers.json');
});