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
feat: add Claude Haiku 5.5 to Claude Code presets, pricing, and model comparison
[._.]/ Adam Eivy15b3010c5c26
diff --git a/data.reference/model-comparison.json b/data.reference/model-comparison.jsonindex 4c3e7aec54..d7842287ff 100644--- a/data.reference/model-comparison.json+++ b/data.reference/model-comparison.json@@ -55571,6 +55571,70 @@"quota": null,"notes": "Anthropic published Message Batches pricing for Claude Sonnet 5.5 (/MTok base input, /MTok output). 24h turnaround window."},+ {+ "id": "anthropic-claude-haiku-5.5-pricing-2026-10-07-standard",+ "provider": "Anthropic",+ "model": "claude-haiku-5.5",+ "effort": "unspecified",+ "configuration": "Claude API (first-party) standard endpoint; base input / output tokens, prompts up to 100,000 tokens",+ "billing": "api",+ "benchmark": "Official API pricing (2026-10-07)",+ "quality": null,+ "costPerTask": null,+ "inputPerMillion": {+ "value": 0.1,+ "source": {+ "url": "https://platform.claude.com/docs/en/models/haiku-5-5/overview",+ "retrievedAt": "2026-10-07T00:00:00Z",+ "methodology": "Publisher list price, USD per million uncached input tokens (prompts up to 100,000 tokens), read from the official model page."+ }+ },+ "outputPerMillion": {+ "value": 0.5,+ "source": {+ "url": "https://platform.claude.com/docs/en/models/haiku-5-5/overview",+ "retrievedAt": "2026-10-07T00:00:00Z",+ "methodology": "Publisher list price, USD per million output tokens (prompts up to 100,000 tokens), read from the official model page."+ }+ },+ "reasoningPerMillion": null,+ "responseSeconds": null,+ "tokensPerSecond": null,+ "quota": null,+ "notes": "Anthropic published list price for Claude Haiku 5.5 ($0.10/MTok input, $0.50/MTok output for prompts up to 100K tokens; $0.50/$2.50 above 100K). Cache reads ($0.01/MTok) and cache writes ($0.125/MTok 5m, $0.20/MTok 1h) are separate token classes not represented by this schema. Reasoning tokens are not separately priced, so reasoningPerMillion is null. No quality, latency or throughput is published on this source."+ },+ {+ "id": "anthropic-claude-haiku-5.5-pricing-2026-10-07-batch",+ "provider": "Anthropic",+ "model": "claude-haiku-5.5",+ "effort": "unspecified",+ "configuration": "Claude API (first-party) Message Batches endpoint (50% discount); prompts up to 100,000 tokens",+ "billing": "api",+ "benchmark": "Official API pricing (2026-10-07)",+ "quality": null,+ "costPerTask": null,+ "inputPerMillion": {+ "value": 0.05,+ "source": {+ "url": "https://platform.claude.com/docs/en/models/haiku-5-5/overview",+ "retrievedAt": "2026-10-07T00:00:00Z",+ "methodology": "Publisher batch price, USD per million uncached input tokens (prompts up to 100,000 tokens), read from the official model page."+ }+ },+ "outputPerMillion": {+ "value": 0.25,+ "source": {+ "url": "https://platform.claude.com/docs/en/models/haiku-5-5/overview",+ "retrievedAt": "2026-10-07T00:00:00Z",+ "methodology": "Publisher batch price, USD per million output tokens (prompts up to 100,000 tokens), read from the official model page."+ }+ },+ "reasoningPerMillion": null,+ "responseSeconds": null,+ "tokensPerSecond": null,+ "quota": null,+ "notes": "Anthropic published Message Batches pricing for Claude Haiku 5.5 (50% off base input and output)."+ },{"id": "aa-v4.3.2-anthropic-claude-sonnet-5.5-max","provider": "Anthropic",diff --git a/data.reference/providers.json b/data.reference/providers.jsonindex 7eaecb2b85..9d2854c9e9 100644--- a/data.reference/providers.json+++ b/data.reference/providers.json@@ -95,6 +95,7 @@"claude-opus-5-5","claude-fable-5-1","claude-sonnet-5-5",+ "claude-haiku-5-5","claude-haiku-4-5-20251001","claude-sonnet-5","claude-opus-5",@@ -105,7 +106,7 @@"claude-sonnet-4-6"],"defaultModel": "claude-opus-5-5",- "lightModel": "claude-haiku-4-5-20251001",+ "lightModel": "claude-haiku-5-5","mediumModel": "claude-sonnet-5","heavyModel": "claude-opus-5-5","ultraModel": "claude-fable-5-1",@@ -906,6 +907,7 @@"claude-opus-5-5","claude-fable-5-1","claude-sonnet-5-5",+ "claude-haiku-5-5","claude-haiku-4-5-20251001","claude-sonnet-5","claude-opus-5",@@ -916,7 +918,7 @@"claude-sonnet-4-6"],"defaultModel": "claude-opus-5-5",- "lightModel": "claude-haiku-4-5-20251001",+ "lightModel": "claude-haiku-5-5","mediumModel": "claude-sonnet-5","heavyModel": "claude-opus-5-5","ultraModel": "claude-fable-5-1",diff --git a/scripts/generate-provider-samples.js b/scripts/generate-provider-samples.jsindex c97e274725..e119ae8fb0 100644--- a/scripts/generate-provider-samples.js+++ b/scripts/generate-provider-samples.js@@ -151,6 +151,7 @@ const TUPLES = ['claude-opus-5-5','claude-fable-5-1','claude-sonnet-5-5',+ 'claude-haiku-5-5','claude-haiku-4-5-20251001','claude-sonnet-5','claude-opus-5',@@ -160,7 +161,7 @@ const TUPLES = ['claude-opus-4-6','claude-sonnet-4-6',],- defaultModel: 'claude-opus-5-5', lightModel: 'claude-haiku-4-5-20251001', mediumModel: 'claude-sonnet-5', heavyModel: 'claude-opus-5-5', ultraModel: 'claude-fable-5-1',+ defaultModel: 'claude-opus-5-5', lightModel: 'claude-haiku-5-5', mediumModel: 'claude-sonnet-5', heavyModel: 'claude-opus-5-5', ultraModel: 'claude-fable-5-1',timeout: 900000, enabled: true,},},@@ -198,6 +199,7 @@ const TUPLES = ['claude-opus-5-5','claude-fable-5-1','claude-sonnet-5-5',+ 'claude-haiku-5-5','claude-haiku-4-5-20251001','claude-sonnet-5','claude-opus-5',@@ -207,7 +209,7 @@ const TUPLES = ['claude-opus-4-6','claude-sonnet-4-6',],- defaultModel: 'claude-opus-5-5', lightModel: 'claude-haiku-4-5-20251001', mediumModel: 'claude-sonnet-5', heavyModel: 'claude-opus-5-5', ultraModel: 'claude-fable-5-1',+ defaultModel: 'claude-opus-5-5', lightModel: 'claude-haiku-5-5', mediumModel: 'claude-sonnet-5', heavyModel: 'claude-opus-5-5', ultraModel: 'claude-fable-5-1',timeout: 900000, enabled: true,},},diff --git a/scripts/migrations/424-claude-haiku-5-5.js b/scripts/migrations/424-claude-haiku-5-5.jsnew file mode 100644index 0000000000..e063d40359--- /dev/null+++ b/scripts/migrations/424-claude-haiku-5-5.js@@ -0,0 +1,52 @@+/**+ * Add Claude Haiku 5.5 to the Claude Code CLI/TUI model lists.+ *+ * `setup-data.js` never updates existing provider records, so installs keep+ * their prior list until this runs. Insert `claude-haiku-5-5` after+ * `claude-sonnet-5-5` (or at the front when absent) without disturbing user+ * curation, and move `lightModel` only when it is still the shipped Haiku 4.5+ * default.+ */++import { readProvidersDoc, writeJsonAtomic } from './_lib.js';++const TARGET_IDS = ['claude-code', 'claude-code-tui'];+const NEW_ID = 'claude-haiku-5-5';+const PREVIOUS_LIGHT = new Set(['claude-haiku-4-5', 'claude-haiku-4-5-20251001']);++export default {+ async up({ rootDir }) {+ const doc = await readProvidersDoc({ rootDir });+ if (!doc.ok) {+ if (doc.reason === 'no-file') console.log('📄 data/providers.json not present — skipping (fresh install seeds catalog from data.reference)');+ else console.warn(`⚠️ data/providers.json: ${doc.reason}, skipping Haiku 5.5 add`);+ return { ok: false, reason: doc.reason, updated: 0 };+ }++ const { config, providers, path } = doc;+ const touched = [];+ for (const id of TARGET_IDS) {+ const provider = providers[id];+ if (!provider || !Array.isArray(provider.models)) continue;+ let changed = false;+ if (!provider.models.includes(NEW_ID)) {+ const at = provider.models.indexOf('claude-sonnet-5-5');+ provider.models.splice(at === -1 ? 0 : at + 1, 0, NEW_ID);+ changed = true;+ }+ if (PREVIOUS_LIGHT.has(provider.lightModel)) {+ provider.lightModel = NEW_ID;+ changed = true;+ }+ if (changed) touched.push(id);+ }++ if (touched.length === 0) {+ console.log('✅ data/providers.json: Claude Haiku 5.5 already present — no change');+ return { ok: true, reason: 'already-current', updated: 0 };+ }+ await writeJsonAtomic(path, config);+ console.log(`📝 data/providers.json: added Claude Haiku 5.5 to ${touched.join(', ')}`);+ return { ok: true, reason: 'updated', updated: touched.length };+ },+};diff --git a/scripts/migrations/424-claude-haiku-5-5.test.js b/scripts/migrations/424-claude-haiku-5-5.test.jsnew file mode 100644index 0000000000..8b908d7746--- /dev/null+++ b/scripts/migrations/424-claude-haiku-5-5.test.js@@ -0,0 +1,43 @@+/**+ * Test for migration 424 — add Claude Haiku 5.5 to Claude Code providers.+ */+import { describe, it, expect, beforeEach, afterEach } from 'vitest';+import { mkdtempSync, rmSync, writeFileSync, readFileSync, mkdirSync } from 'fs';+import { tmpdir } from 'os';+import { join } from 'path';++import migration from './424-claude-haiku-5-5.js';++const claude = (overrides = {}) => ({+ models: ['claude-opus-5-5', 'claude-fable-5-1', 'claude-sonnet-5-5', 'claude-haiku-4-5-20251001', 'claude-sonnet-5'],+ lightModel: 'claude-haiku-4-5-20251001',+ ...overrides,+});++describe('migration 424 — Claude Haiku 5.5', () => {+ let rootDir;+ const path = () => join(rootDir, 'data/providers.json');+ const write = (providers) => writeFileSync(path(), `${JSON.stringify({ providers }, null, 2)}\n`);+ const read = () => JSON.parse(readFileSync(path(), 'utf-8')).providers;++ beforeEach(() => {+ rootDir = mkdtempSync(join(tmpdir(), 'mig424-'));+ mkdirSync(join(rootDir, 'data'));+ });+ afterEach(() => rmSync(rootDir, { recursive: true, force: true }));++ it('inserts Haiku 5.5 after Sonnet 5.5 and moves the shipped light model, idempotently', async () => {+ write({ 'claude-code': claude(), 'claude-code-tui': claude() });+ expect((await migration.up({ rootDir })).updated).toBe(2);+ const p = read()['claude-code'];+ expect(p.models.slice(2, 4)).toEqual(['claude-sonnet-5-5', 'claude-haiku-5-5']);+ expect(p.lightModel).toBe('claude-haiku-5-5');+ expect((await migration.up({ rootDir })).reason).toBe('already-current');+ });++ it('keeps a user-pinned light model', async () => {+ write({ 'claude-code': claude({ lightModel: 'claude-sonnet-5' }) });+ await migration.up({ rootDir });+ expect(read()['claude-code'].lightModel).toBe('claude-sonnet-5');+ });+});diff --git a/scripts/prune-model-comparison-seed.js b/scripts/prune-model-comparison-seed.jsindex 9b2089d2da..29bbf26009 100644--- a/scripts/prune-model-comparison-seed.js+++ b/scripts/prune-model-comparison-seed.js@@ -31,7 +31,7 @@ const providersPath = join(root, 'data.reference/providers.json');* purpose; this is not a place to re-accumulate the full index.*/export const FRONTIER_ANCHORS = [- 'claude-fable-5.1', 'claude-fable-5', 'claude-opus-5.5', 'claude-sonnet-5.5', 'gpt-6-luna', 'gpt-6-sol',+ 'claude-fable-5.1', 'claude-fable-5', 'claude-opus-5.5', 'claude-sonnet-5.5', 'claude-haiku-5.5', 'gpt-6-luna', 'gpt-6-sol',];diff --git a/server/lib/aiToolkit/defaults/providers.sample.json b/server/lib/aiToolkit/defaults/providers.sample.jsonindex e057495183..8c28dc4ea8 100644--- a/server/lib/aiToolkit/defaults/providers.sample.json+++ b/server/lib/aiToolkit/defaults/providers.sample.json@@ -95,6 +95,7 @@"claude-opus-5-5","claude-fable-5-1","claude-sonnet-5-5",+ "claude-haiku-5-5","claude-haiku-4-5-20251001","claude-sonnet-5","claude-opus-5",@@ -105,7 +106,7 @@"claude-sonnet-4-6"],"defaultModel": "claude-opus-5-5",- "lightModel": "claude-haiku-4-5-20251001",+ "lightModel": "claude-haiku-5-5","mediumModel": "claude-sonnet-5","heavyModel": "claude-opus-5-5","ultraModel": "claude-fable-5-1",@@ -906,6 +907,7 @@"claude-opus-5-5","claude-fable-5-1","claude-sonnet-5-5",+ "claude-haiku-5-5","claude-haiku-4-5-20251001","claude-sonnet-5","claude-opus-5",@@ -916,7 +918,7 @@"claude-sonnet-4-6"],"defaultModel": "claude-opus-5-5",- "lightModel": "claude-haiku-4-5-20251001",+ "lightModel": "claude-haiku-5-5","mediumModel": "claude-sonnet-5","heavyModel": "claude-opus-5-5","ultraModel": "claude-fable-5-1",diff --git a/server/lib/modelPricing.js b/server/lib/modelPricing.jsindex 2b420f8e4b..87a0b99ecb 100644--- a/server/lib/modelPricing.js+++ b/server/lib/modelPricing.js@@ -34,6 +34,7 @@ export const PRICING_AS_OF = '2026-09-01';// Newer model launch rates are tracked separately so the baseline date above// does not imply that every vendor's pricing was re-verified on that date.const MODEL_RATE_AS_OF = Object.freeze({+ 'claude-haiku-5-5': '2026-10-07','claude-sonnet-5-5': '2026-09-28','claude-opus-5-5': '2026-09-23','gpt-6.1-sol': '2026-09-29',@@ -92,6 +93,8 @@ const EXACT_RATES = {'claude-sonnet-5': [2.0, 10.0],'claude-sonnet-4-6': [3.0, 15.0],'claude-sonnet-4-5': [3.0, 15.0],+ // Haiku 5.5 base tier (prompts <=100k tokens); >100k is $0.50/$2.50 and not modeled.+ 'claude-haiku-5-5': [0.1, 0.5],'claude-haiku-4-5': [1.0, 5.0],// OpenAI (Codex CLI). GPT-6 Sol/Luna and updated GPT-5.6 Sol/Luna rates were// verified against the 2026-09-22 model launch:@@ -159,6 +162,7 @@ const FAMILY_RULES = [{ test: /opus/i, rateModel: OPUS_MODEL_IDS[0] },{ test: /sonnet[-.]?5/i, rateModel: 'claude-sonnet-5' },{ test: /sonnet/i, rateModel: 'claude-sonnet-4-5' },+ { test: /haiku-5/i, rateModel: 'claude-haiku-5-5' },{ test: /haiku/i, rateModel: 'claude-haiku-4-5' },{ test: /codex/i, rateModel: 'gpt-5.3-codex' },// `gpt-oss-*` is open-weights and hosted cheaply everywhere — it must win overdiff --git a/server/lib/modelPricing.test.js b/server/lib/modelPricing.test.jsindex ae860957fc..730d788efe 100644--- a/server/lib/modelPricing.test.js+++ b/server/lib/modelPricing.test.js@@ -7,6 +7,8 @@ describe('resolveModelRates', () => {expect(r).toMatchObject({ rateModel: 'claude-opus-4-8', inputPer1M: 5, outputPer1M: 25, matched: 'exact' });const r5 = resolveModelRates('claude-code', 'claude-opus-5');expect(r5).toMatchObject({ rateModel: 'claude-opus-5', inputPer1M: 5, outputPer1M: 25, matched: 'exact' });+ const rh55 = resolveModelRates('claude-code', 'claude-haiku-5-5');+ expect(rh55).toMatchObject({ rateModel: 'claude-haiku-5-5', inputPer1M: 0.1, outputPer1M: 0.5, matched: 'exact' });const rs55 = resolveModelRates('claude-code', 'claude-sonnet-5-5');expect(rs55).toMatchObject({ rateModel: 'claude-sonnet-5-5', inputPer1M: 2, outputPer1M: 10, matched: 'exact' });});