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: retire duplicate models/harnesses page in favor of ai/harnesses
Adam Eivyb0e6eaeb67d3
diff --git a/client/src/App.jsx b/client/src/App.jsxindex 5d892039bc..8496564ca4 100644--- a/client/src/App.jsx+++ b/client/src/App.jsx@@ -392,6 +392,9 @@ export default function App() {a bookmark on the old pill lands on the new page instead of LLMsrendering an unknown sub-view. */}<Route path="models/llms/runtimes" element={<Navigate to="/models/llms-runtimes" replace />} />+ {/* Harnesses folded into the AI Providers harnesses view (/ai/harnesses);+ retires the duplicate /models/harnesses page while keeping bookmarks working. */}+ <Route path="models/harnesses" element={<Navigate to="/ai/harnesses" replace />} />{/* A tab's drill-down (today: the LoRA dataset workbench) renders throughModels itself, so it keeps the section header and tab bar — seeTAB_DETAIL there. */}diff --git a/client/src/App.modelRoutes.test.jsx b/client/src/App.modelRoutes.test.jsxindex a01f9c40ae..215309fcfa 100644--- a/client/src/App.modelRoutes.test.jsx+++ b/client/src/App.modelRoutes.test.jsx@@ -44,6 +44,7 @@ it.each([['/ai/connections/abc-123', '/ai/services/abc-123'],['/ai/harnesses/claude/connections', '/ai/harnesses/claude'],['/ai/harnesses/claude/connections/abc-123', '/ai/services/abc-123'],+ ['/models/harnesses', '/ai/harnesses'],])('redirects the retired %s to %s', async (from, to) => {render(<MemoryRouter initialEntries={[from]}><App /></MemoryRouter>);expect(await screen.findByTestId('ai-location')).toHaveTextContent(to);diff --git a/client/src/components/models/HarnessesTab.jsx b/client/src/components/models/HarnessesTab.jsxdeleted file mode 100644index b9303a64bb..0000000000--- a/client/src/components/models/HarnessesTab.jsx+++ /dev/null@@ -1,340 +0,0 @@-import { useCallback, useEffect, useState } from 'react';-import {- AlertTriangle,- ArrowUpCircle,- CheckCircle2,- Download,- ExternalLink,- Loader2,- RefreshCw,- Trash2,-} from 'lucide-react';-import { getHarnesses, refreshHarnessModels } from '../../services/api';-import { useConfirmDelete } from '../../hooks/useConfirmDelete';-import Banner from '../ui/Banner.jsx';-import Pill from '../ui/Pill';-import RuntimeInstallModal from '../install/RuntimeInstallModal';-import InlineConfirmRow from '../ui/InlineConfirmRow';--/**- * Models → Harnesses: the coding-agent CLIs/TUIs this install drives.- *- * A harness is one binary — `opencode`, `kilo`, `openchamber`, `claude`,- * `codex`, `agy`, `grok`, `kimi`, `cursor-agent` — that several provider- * records share. The Providers- * page could already install a MISSING one from its card, but nothing showed- * which version was installed, whether it was stale, how to update it, or which- * models this install of it actually knows about. So an OpenCode months behind- * upstream looked identical to a current one, and the only fix was a terminal.- *- * This page owns that lifecycle end to end. Every action is a click here — none- * of it runs on boot, and the model refresh reads the vendor's own catalog- * rather than calling an AI provider (root AGENTS.md, AI Provider Usage Policy).- */--// One row per action rather than two key-aligned tables, so a fourth action is-// one entry instead of two edits that must stay in step.-const ACTION_COPY = {- install: {- title: 'Install harness',- description: 'Installing the CLI and putting it on PortOS\'s PATH…',- done: 'Installed.',- },- update: {- title: 'Update harness',- description: 'Updating the CLI in place. Providers using it keep their settings.',- done: 'Update finished.',- },- uninstall: {- title: 'Remove harness',- description: 'Removing the CLI. Providers that use it will show as needing setup.',- // The modal's default footer says "is ready", which would sit directly under- // a log line saying the CLI was just deleted.- done: 'Removed.',- },-};--/** `1 provider` / `2 providers` — said three times on this page. */-const plural = (n, word) => `${n} ${word}${n === 1 ? '' : 's'}`;--/**- * The one-line availability verdict. `Pill` rather than hand-rolled tone- * classes, so this reads identically to the same fact on a provider card- * (`ProviderRuntimeStatus`).- */-function StatusBadge({ harness }) {- if (!harness.installed) return <Pill tone="muted" size="xs" icon={AlertTriangle}>Not installed</Pill>;- if (harness.updateAvailable) return <Pill tone="warning" size="xs" icon={ArrowUpCircle}>Update available</Pill>;- return <Pill tone="success" size="xs" icon={CheckCircle2}>Installed</Pill>;-}--/**- * The version line. `null` on either side means NOT KNOWN, never zero — an- * offline install shows the version it has and simply says nothing about the- * latest, rather than implying it is current or stale.- */-function VersionLine({ harness }) {- if (!harness.installed) return null;- return (- <div className="mt-1 flex flex-wrap items-center gap-x-3 text-[11px] text-gray-500">- <span>Installed {harness.version || 'version unknown'}</span>- {harness.latestVersion && <span>Latest {harness.latestVersion}</span>}- {harness.package && <span className="font-mono">{harness.package}</span>}- </div>- );-}--/** Which provider records ride on this harness, and how many are switched on. */-function ProviderSummary({ providers }) {- if (providers.length === 0) {- return <p className="mt-2 text-[11px] text-gray-500">No providers use this harness.</p>;- }- const enabled = providers.filter((provider) => provider.enabled);- return (- <p className="mt-2 text-[11px] text-gray-500">- {plural(providers.length, 'provider')}- {enabled.length > 0 && <> · {enabled.length} enabled: {enabled.map((provider) => provider.name).join(', ')}</>}- </p>- );-}--function HarnessCard({ harness, onAction, onRefreshModels, refreshing, refreshResult }) {- const canRefreshModels = harness.listsModels && harness.installed;- // Removal takes providers offline, so the row asks first — inline, per the- // no-`window.confirm` convention. `useConfirmDelete` is the shared- // single-row-armed state this page would otherwise hand-roll.- const { isConfirming, requestDelete, cancelDelete, confirmDelete } = useConfirmDelete();- return (- <div className="rounded-lg border border-port-border bg-port-card p-4">- <div className="flex flex-wrap items-start justify-between gap-3">- <div className="min-w-0">- <div className="flex items-center gap-2">- <h2 className="text-sm font-semibold text-white">{harness.label}</h2>- <span className="rounded bg-port-bg px-1.5 py-0.5 font-mono text-[11px] text-gray-400">{harness.command}</span>- </div>- <VersionLine harness={harness} />- <ProviderSummary providers={harness.providers} />- {harness.docsUrl && (- <a- href={harness.docsUrl}- target="_blank"- rel="noreferrer"- className="mt-2 inline-flex items-center gap-1 text-[11px] text-gray-500 hover:text-port-accent"- >- <ExternalLink className="h-3 w-3" /> Vendor docs- </a>- )}- </div>-- <div className="flex shrink-0 flex-col items-end gap-2">- <StatusBadge harness={harness} />- <div className="flex flex-wrap justify-end gap-2">- {!harness.installed && (- <button- type="button"- disabled={!harness.installable}- title={harness.installable ? undefined : harness.blockedReason}- onClick={() => onAction(harness, 'install')}- className="inline-flex items-center gap-1.5 rounded-md bg-port-accent px-3 py-1.5 text-xs font-medium text-white hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-50"- >- <Download className="h-3.5 w-3.5" /> Install- </button>- )}- {harness.installed && harness.updatable && (- <button- type="button"- onClick={() => onAction(harness, 'update')}- className="inline-flex items-center gap-1.5 rounded-md border border-port-border px-3 py-1.5 text-xs font-medium text-gray-200 hover:border-port-accent hover:text-white"- >- <ArrowUpCircle className="h-3.5 w-3.5" /> Update- </button>- )}- {canRefreshModels && (- <button- type="button"- disabled={refreshing}- onClick={() => onRefreshModels(harness)}- className="inline-flex items-center gap-1.5 rounded-md border border-port-border px-3 py-1.5 text-xs font-medium text-gray-200 hover:border-port-accent hover:text-white disabled:opacity-50"- >- {refreshing- ? <Loader2 className="h-3.5 w-3.5 animate-spin" />- : <RefreshCw className="h-3.5 w-3.5" />}- Refresh models- </button>- )}- {harness.installed && harness.removable && (- <button- type="button"- onClick={() => requestDelete(harness.id)}- className="inline-flex items-center gap-1.5 rounded-md border border-port-border px-3 py-1.5 text-xs font-medium text-gray-400 hover:border-port-error hover:text-port-error"- >- <Trash2 className="h-3.5 w-3.5" /> Remove- </button>- )}- </div>- </div>- </div>-- {!harness.installable && harness.blockedReason && !harness.installed && (- <Banner tone="warning" className="mt-3">{harness.blockedReason}</Banner>- )}-- {isConfirming(harness.id) && (- <InlineConfirmRow- className="mt-3"- autoFocus- aria-label={`Remove ${harness.label}`}- question={`Remove ${harness.label}? ${plural(harness.providers.length, 'provider')} use \`${harness.command}\` and will show as needing setup until it is reinstalled — their settings are kept.`}- confirmText="Remove"- onConfirm={() => confirmDelete(() => onAction(harness, 'uninstall'))}- onCancel={cancelDelete}- />- )}-- {refreshResult && (- <Banner tone={refreshResult.ok ? 'success' : 'warning'} className="mt-3">- {refreshResult.message}- </Banner>- )}- </div>- );-}--export default function HarnessesTab() {- const [harnesses, setHarnesses] = useState([]);- const [loading, setLoading] = useState(true);- const [error, setError] = useState(null);- // `{ harness, action }` while the SSE modal is open; null = closed.- const [pendingAction, setPendingAction] = useState(null);- // A SET, not one slot: two rows can refresh at once, and a single slot lets- // the first completion re-enable the second row's button mid-flight.- const [refreshingIds, setRefreshingIds] = useState(() => new Set());- // Keyed by harness id so one row's outcome cannot overwrite another's.- const [refreshResults, setRefreshResults] = useState({});-- const load = useCallback(async ({ fresh = false } = {}) => {- setError(null);- // The server owns its own error toast suppression; this page renders the- // failure inline with a Retry, so a thrown request must not blank the list.- const data = await getHarnesses({ fresh, silent: true }).catch((err) => {- setError(err?.message || 'Could not load harnesses.');- return null;- });- if (data) setHarnesses(Array.isArray(data.harnesses) ? data.harnesses : []);- setLoading(false);- }, []);-- useEffect(() => { load(); }, [load]);-- const handleRefreshModels = async (harness) => {- setRefreshingIds((prev) => new Set(prev).add(harness.id));- // Drop any banner from this row's previous refresh, so a stale outcome- // cannot sit under the row while a new probe is running.- setRefreshResults((prev) => {- const { [harness.id]: _dropped, ...rest } = prev;- return rest;- });- const result = await refreshHarnessModels(harness.id, { silent: true })- .then((data) => ({- // A 200 carrying `reason` is a PARTIAL success — one credential's probe- // failed while another answered (see server/services/harnesses.js).- ok: !data.reason,- message: [- `${data.models.length} models from ${harness.command} → ${plural(data.updated.length, 'provider')} updated.`,- data.reason,- ].filter(Boolean).join(' '),- }))- .catch((err) => ({ ok: false, message: err?.message || 'Could not read the model list.' }));- setRefreshResults((prev) => ({ ...prev, [harness.id]: result }));- setRefreshingIds((prev) => {- const next = new Set(prev);- next.delete(harness.id);- return next;- });- // Deliberately no reload: the refresh writes `models` and `defaultModel`,- // and this page shows neither — the banner above already reports what- // changed. Re-reading would cost a probe sweep to render the same rows.- };-- return (- <div className="mx-auto max-w-4xl space-y-4">- <div className="flex flex-wrap items-start justify-between gap-3">- <p className="max-w-2xl text-sm text-gray-400">- The coding-agent CLIs and TUIs this install drives. Install, update, or remove one here,- and refresh the model list a harness reports so the providers that use it offer the right models.- </p>- <button- type="button"- onClick={() => load({ fresh: true })}- className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-port-border px-3 py-1.5 text-xs font-medium text-gray-200 hover:border-port-accent hover:text-white"- >- <RefreshCw className="h-3.5 w-3.5" /> Re-check- </button>- </div>-- {loading && (- <div className="flex items-center gap-2 text-sm text-gray-400">- <Loader2 className="h-4 w-4 animate-spin" /> Loading harnesses…- </div>- )}-- {error && !loading && (- <Banner tone="error" icon={AlertTriangle}>- <div className="flex items-center justify-between gap-3">- <span>{error}</span>- <button- type="button"- onClick={() => load({ fresh: true })}- className="shrink-0 rounded-md border border-port-error/50 px-3 py-1 text-xs hover:bg-port-error/20"- >- Retry- </button>- </div>- </Banner>- )}-- {!loading && !error && (- <div className="space-y-3">- {harnesses.length === 0 && <p className="text-sm text-gray-500">No harnesses are registered.</p>}- {harnesses.map((harness) => (- <HarnessCard- key={harness.id}- harness={harness}- onAction={(target, action) => setPendingAction({ harness: target, action })}- onRefreshModels={handleRefreshModels}- refreshing={refreshingIds.has(harness.id)}- refreshResult={refreshResults[harness.id]}- />- ))}- </div>- )}-- {/* Install, update and remove all stream through the shared modal — one- child, one single-flight guard, and closing the modal cancels the run. */}- <RuntimeInstallModal- open={!!pendingAction}- runtime={pendingAction?.harness?.id}- label={pendingAction?.harness?.label}- title={pendingAction ? ACTION_COPY[pendingAction.action].title : undefined}- description={pendingAction ? ACTION_COPY[pendingAction.action].description : undefined}- doneText={pendingAction ? ACTION_COPY[pendingAction.action].done : undefined}- installUrlBase="/api/harnesses/action"- params={pendingAction ? { action: pendingAction.action } : undefined}- streamMethod="POST"- onClose={() => setPendingAction(null)}- // Re-read the list, but LEAVE THE MODAL OPEN — its terminal frame is the- // result ("…is up to date (1.19.0)", "…has been removed"), and clearing- // `pendingAction` here unmounts it the instant that frame arrives, so a- // removal and a no-op update look identical: a modal that blinks shut.- // The user closes it, matching every other caller of this modal.- //- // `load()`, not `load({ fresh: true })`: the stream already re-probed the- // acted-on harness with `fresh` on the server and wrote that into the- // status cache, and clicking Install cannot have changed what npm has- // published — a fresh read here would spend five registry round trips to- // render identical numbers.- onComplete={() => load()}- />- </div>- );-}diff --git a/client/src/components/models/HarnessesTab.test.jsx b/client/src/components/models/HarnessesTab.test.jsxdeleted file mode 100644index 2abbc1fc98..0000000000--- a/client/src/components/models/HarnessesTab.test.jsx+++ /dev/null@@ -1,172 +0,0 @@-import { describe, it, expect, vi, beforeEach } from 'vitest';-import { render, screen, fireEvent, waitFor } from '@testing-library/react';-import HarnessesTab from './HarnessesTab';--const getHarnesses = vi.fn();-const refreshHarnessModels = vi.fn();-vi.mock('../../services/api', () => ({- getHarnesses: (...a) => getHarnesses(...a),- refreshHarnessModels: (...a) => refreshHarnessModels(...a),-}));--// Stub the shared install modal — the real one opens a stream. Assert only the-// runtime and action it was opened with, which is the whole contract this page-// has with it.-vi.mock('../install/RuntimeInstallModal', () => ({- default: ({ open, runtime, params, title, onComplete }) => (open ? (- <div data-testid="install-modal">- {title} · {runtime} · {params?.action}- <button type="button" data-testid="complete" onClick={onComplete}>complete</button>- </div>- ) : null),-}));--const harness = (overrides = {}) => ({- id: 'opencode',- label: 'OpenCode CLI',- command: 'opencode',- installed: true,- version: '1.18.27',- latestVersion: '1.18.27',- updateAvailable: false,- updatable: true,- removable: true,- listsModels: true,- installable: true,- blockedReason: null,- package: 'opencode-ai',- docsUrl: 'https://example.invalid/docs',- providers: [{ id: 'opencode-zen-cli', name: 'OpenCode Zen CLI', type: 'cli', enabled: true, usesHarnessCatalog: true }],- ...overrides,-});--beforeEach(() => {- vi.clearAllMocks();- getHarnesses.mockResolvedValue({ harnesses: [harness()] });-});--describe('HarnessesTab', () => {- it('shows the installed and latest versions', async () => {- render(<HarnessesTab />);- expect(await screen.findByText('OpenCode CLI')).toBeInTheDocument();- expect(screen.getByText(/Installed 1\.18\.27/)).toBeInTheDocument();- expect(screen.getByText(/Latest 1\.18\.27/)).toBeInTheDocument();- });-- it('flags a stale install and still offers Update on a current one', async () => {- getHarnesses.mockResolvedValue({ harnesses: [harness({ updateAvailable: true, latestVersion: '1.19.0' })] });- render(<HarnessesTab />);- expect(await screen.findByText('Update available')).toBeInTheDocument();- expect(screen.getByRole('button', { name: /Update/ })).toBeInTheDocument();- });-- // A version the banner could not parse must not read as "out of date" — the- // row says what it knows and nothing more.- it('says version unknown rather than implying staleness', async () => {- getHarnesses.mockResolvedValue({ harnesses: [harness({ version: null, latestVersion: null })] });- render(<HarnessesTab />);- expect(await screen.findByText(/version unknown/)).toBeInTheDocument();- expect(screen.queryByText('Update available')).not.toBeInTheDocument();- });-- it('opens the shared stream modal with the chosen action', async () => {- render(<HarnessesTab />);- fireEvent.click(await screen.findByRole('button', { name: /Update/ }));- expect(await screen.findByTestId('install-modal')).toHaveTextContent('opencode · update');- });-- it('offers Install, not Update, when the harness is missing', async () => {- getHarnesses.mockResolvedValue({ harnesses: [harness({ installed: false, version: null })] });- render(<HarnessesTab />);- expect(await screen.findByRole('button', { name: /Install/ })).toBeInTheDocument();- expect(screen.queryByRole('button', { name: /Update/ })).not.toBeInTheDocument();- expect(screen.queryByRole('button', { name: /Refresh models/ })).not.toBeInTheDocument();- });-- it('disables Install and explains why when the host cannot run one', async () => {- getHarnesses.mockResolvedValue({ harnesses: [harness({- installed: false, installable: false, blockedReason: 'npm is not on PortOS\'s PATH.',- })] });- render(<HarnessesTab />);- expect(await screen.findByRole('button', { name: /Install/ })).toBeDisabled();- expect(screen.getByText(/npm is not on PortOS/)).toBeInTheDocument();- });-- // Removing a harness takes providers offline, so it asks first — inline, per- // the no-`window.confirm` convention.- it('confirms a removal inline before opening the stream', async () => {- render(<HarnessesTab />);- fireEvent.click(await screen.findByRole('button', { name: /Remove/ }));- expect(screen.queryByTestId('install-modal')).not.toBeInTheDocument();- expect(screen.getByText(/1 provider use/)).toBeInTheDocument();-- // Two "Remove" buttons are on screen once the row opens (the trigger and the- // confirm) — take the one inside the confirmation row.- const [, confirm] = screen.getAllByRole('button', { name: 'Remove' });- fireEvent.click(confirm);- expect(await screen.findByTestId('install-modal')).toHaveTextContent('opencode · uninstall');- });-- it('reports how many providers a model refresh updated, without re-reading the list', async () => {- refreshHarnessModels.mockResolvedValue({ models: ['opencode/a', 'opencode/b'], updated: ['opencode-zen-cli'] });- render(<HarnessesTab />);-- fireEvent.click(await screen.findByRole('button', { name: /Refresh models/ }));-- expect(await screen.findByText(/2 models from opencode → 1 provider updated/)).toBeInTheDocument();- // The refresh writes `models`/`defaultModel`; this page shows neither, so a- // reload would spend a probe sweep to render identical rows.- expect(getHarnesses).toHaveBeenCalledTimes(1);- });-- it('re-reads the list after a lifecycle action, without forcing a registry read', async () => {- render(<HarnessesTab />);- fireEvent.click(await screen.findByRole('button', { name: /Update/ }));- fireEvent.click(screen.getByTestId('complete'));-- // `fresh` bypasses the npm-registry cache too, and clicking Update cannot- // have changed what npm has published.- await waitFor(() => expect(getHarnesses).toHaveBeenCalledTimes(2));- expect(getHarnesses).toHaveBeenLastCalledWith(expect.objectContaining({ fresh: false }));- // The modal's terminal frame IS the result ("…is up to date (1.19.0)").- // Unmounting it on completion makes a removal and a no-op update look- // identical — a modal that blinks shut with nothing said.- expect(screen.getByTestId('install-modal')).toBeInTheDocument();- });-- // The harness is probed once per bootstrap credential, so a 200 can carry a- // `reason`: one credential answered and another did not. Reporting that as a- // clean success hides a record the refresh left alone.- it('does not claim success when one credential’s probe failed', async () => {- refreshHarnessModels.mockResolvedValue({- models: ['opencode/a'],- updated: ['opencode-zen-cli'],- reason: '`token-cli opencode models` returned no models.',- });- render(<HarnessesTab />);-- fireEvent.click(await screen.findByRole('button', { name: /Refresh models/ }));-- expect(await screen.findByText(/token-cli opencode models` returned no models/)).toBeInTheDocument();- expect(screen.getByText(/1 models from opencode → 1 provider updated/)).toBeInTheDocument();- });-- it('renders a refusal reason verbatim instead of a generic failure', async () => {- refreshHarnessModels.mockRejectedValue(new Error('Sign in to OpenCode CLI in a terminal.'));- render(<HarnessesTab />);-- fireEvent.click(await screen.findByRole('button', { name: /Refresh models/ }));-- expect(await screen.findByText('Sign in to OpenCode CLI in a terminal.')).toBeInTheDocument();- });-- it('renders a load failure with a retry', async () => {- getHarnesses.mockRejectedValue(new Error('Could not reach the server.'));- render(<HarnessesTab />);- expect(await screen.findByText('Could not reach the server.')).toBeInTheDocument();-- getHarnesses.mockResolvedValue({ harnesses: [harness()] });- fireEvent.click(screen.getByRole('button', { name: 'Retry' }));- expect(await screen.findByText('OpenCode CLI')).toBeInTheDocument();- });-});diff --git a/client/src/components/models/ModelComparison.jsx b/client/src/components/models/ModelComparison.jsxindex 5dff51b456..cb7b488082 100644--- a/client/src/components/models/ModelComparison.jsx+++ b/client/src/components/models/ModelComparison.jsx@@ -1596,7 +1596,7 @@ export default function ModelComparison() {<p className="text-sm text-port-text-muted my-2">Model-name matches are references only, not measurements of this endpoint. Quantization, local hardware, harnessesand billing may differ. Refresh model lists in{' '}- <Link className="text-port-accent-text underline" to="/models/harnesses">+ <Link className="text-port-accent-text underline" to="/ai/harnesses">Harnesses</Link>{' '}or{' '}diff --git a/client/src/components/providers/ProviderHarnessesTab.jsx b/client/src/components/providers/ProviderHarnessesTab.jsxindex b94d612aca..5644ce0004 100644--- a/client/src/components/providers/ProviderHarnessesTab.jsx+++ b/client/src/components/providers/ProviderHarnessesTab.jsx@@ -1,6 +1,6 @@import { useEffect, useMemo, useRef, useState } from 'react';import { Link, useNavigate } from 'react-router';-import { CheckCircle2, Download, ExternalLink, Gauge, PowerOff, TerminalSquare } from 'lucide-react';+import { CheckCircle2, Download, Gauge, PowerOff, TerminalSquare } from 'lucide-react';import toast from '../ui/Toast';import Pill from '../ui/Pill';import Banner from '../ui/Banner';@@ -21,9 +21,8 @@ import ProviderCredentialBootstraps from './ProviderCredentialBootstraps';** Read from the shared composition catalog (`useProviderCatalog`), so a toggle* here is one write plus one cache invalidation, and every open picker's- * compose flow reflects it without a reload. Install/update/remove of the- * binary itself stays on Models → Harnesses; this card offers the install a- * missing binary needs and links there for the rest.+ * compose flow reflects it without a reload. This card offers the install a+ * missing binary needs when available.*//** How the enablement verdict reads under the switch. */@@ -111,9 +110,6 @@ function HarnessCard({{harness.detected === false && runtime && !runtime.installable && runtime.blockedReason && (<span className="text-gray-500">{runtime.blockedReason}</span>)}- <Link to="/models/harnesses" className="text-port-accent hover:underline inline-flex items-center gap-1">- Versions & updates <ExternalLink className="w-3 h-3" aria-hidden="true" />- </Link>{QUOTA_TRACKED.has(harness.id) && (<Link to="/devtools/quota-burn" className="text-port-accent hover:underline inline-flex items-center gap-1"><Gauge className="w-3 h-3" aria-hidden="true" /> Quotadiff --git a/client/src/components/providers/ProviderRuntimeStatus.jsx b/client/src/components/providers/ProviderRuntimeStatus.jsxindex 830206c240..fc4d2a8c7e 100644--- a/client/src/components/providers/ProviderRuntimeStatus.jsx+++ b/client/src/components/providers/ProviderRuntimeStatus.jsx@@ -51,7 +51,7 @@ export default function ProviderRuntimeStatus({ runtime, onInstall, optional = f`manageUrl` — Models → LLMs for the catalog apps, Models → Runtimesfor the servers. */}{!manageUrl && (- <Link to="/models/harnesses" className="text-[11px] text-gray-500 hover:text-port-accent">+ <Link to="/ai/harnesses" className="text-[11px] text-gray-500 hover:text-port-accent">Manage harness</Link>)}diff --git a/client/src/lib/navPresentation.js b/client/src/lib/navPresentation.jsindex 3a775f7999..2b7a47c4ed 100644--- a/client/src/lib/navPresentation.js+++ b/client/src/lib/navPresentation.js@@ -90,7 +90,6 @@ import {Clapperboard,PersonStanding,Box,- Blocks,Boxes,Gamepad2,Waypoints,@@ -227,7 +226,6 @@ export const NAV_PRESENTATION = {'/meatspace/settings': { icon: Settings },'/models/3d': { icon: Boxes },'/models/embeddings': { icon: Braces },- '/models/harnesses': { icon: Blocks },'/models/llms': { icon: Cpu },'/models/llms-runtimes': { icon: Server },'/models/loras': { icon: Sparkles },diff --git a/client/src/pages/Models.jsx b/client/src/pages/Models.jsxindex d12e0a728a..4604503cc6 100644--- a/client/src/pages/Models.jsx+++ b/client/src/pages/Models.jsx@@ -8,7 +8,6 @@ import Image3dRuntimes from '../components/models/Image3dRuntimes';import ModelStatusTab from '../components/models/ModelStatusTab';import SubscriptionsTab from '../components/models/SubscriptionsTab';import CodeReviewersTab from '../components/settings/CodeReviewersTab';-import HarnessesTab from '../components/models/HarnessesTab';import EmbeddingsTab from '../components/settings/EmbeddingsTab';import LocalModelAssessments from '../components/settings/LocalModelAssessments.jsx';import { LocalLlmTab } from '../components/settings/LocalLlmTab';@@ -33,7 +32,6 @@ const MediaModels = lazyWithReload(() => import('./MediaModels'));* - **3D** — image-to-3D runtime install/repair (TRELLIS.2, Pixal3D).* - **Code Reviewers** — the review-loop chain and its model/effort pins.* - **Embeddings** — the embedding model backing pgvector search.- * - **Harnesses** — the coding-agent CLIs/TUIs, their versions and model lists.* - **LLMs** — the model-library and abuse-guard sub-routes (the weights).* - **Runtimes** — the local model servers, their lifecycle and downloads.* - **LoRAs** — installed image/video adapters.@@ -59,7 +57,6 @@ const TAB_CONTENT = {'3d': Image3dRuntimes,'code-reviewers': CodeReviewersTab,embeddings: EmbeddingsTab,- harnesses: HarnessesTab,llms: LocalLlmTab,'llms-runtimes': LocalLlmRuntimesView,loras: Loras,diff --git a/client/src/pages/Models.test.jsx b/client/src/pages/Models.test.jsxindex 29e13e95d0..2df88f9f21 100644--- a/client/src/pages/Models.test.jsx+++ b/client/src/pages/Models.test.jsx@@ -22,7 +22,6 @@ vi.mock('../components/models/Image3dRuntimes', () => ({ default: () => <div>3dvi.mock('../components/models/ModelStatusTab', () => ({ default: () => <div>status panel</div> }));vi.mock('../components/models/SubscriptionsTab', () => ({ default: () => <div>subscriptions panel</div> }));vi.mock('../components/settings/CodeReviewersTab', () => ({ default: () => <div>code reviewers panel</div> }));-vi.mock('../components/models/HarnessesTab', () => ({ default: () => <div>harnesses panel</div> }));vi.mock('../components/models/ModelComparison', () => ({ default: () => <div>comparison panel</div> }));vi.mock('./Loras', () => ({ default: () => <div>loras panel</div> }));vi.mock('./LoraTraining', () => ({ default: () => <div>training panel</div> }));@@ -40,7 +39,6 @@ const PANEL_MARKER = {'3d': '3d runtimes panel','code-reviewers': 'code reviewers panel',embeddings: 'embeddings panel',- harnesses: 'harnesses panel',llms: 'llms panel','llms-runtimes': 'runtimes panel',loras: 'loras panel',diff --git a/docs/AI_PROVIDERS.md b/docs/AI_PROVIDERS.mdindex 73f2db7f0d..077bc705f1 100644--- a/docs/AI_PROVIDERS.md+++ b/docs/AI_PROVIDERS.md@@ -30,7 +30,7 @@ The stored records, **grouped by harness** and ordered within a group by readine### Harnesses (`/ai/harnesses`)-One card per registry harness: the **enable switch** (the user's word; a harness with no word follows whether its binary is detected on PATH; `direct` is always on), the detected version, the methods it runs, how many switched-on services it can reach, the install a missing binary needs, and — for a program that signs into its own vendor — the subscription service only it can reach, with that service's readiness and a link to it. Sign-in itself (the ChatGPT device flow, for instance) stays on the preset card. Updates, removal and the harness's own model listing stay on Models → Harnesses. A toggle here is one write plus a catalog invalidation, so an open picker's compose flow reflects it without a reload.+One card per registry harness: the **enable switch** (the user's word; a harness with no word follows whether its binary is detected on PATH; `direct` is always on), the detected version, the methods it runs, how many switched-on services it can reach, the install a missing binary needs, and — for a program that signs into its own vendor — the subscription service only it can reach, with that service's readiness and a link to it. Sign-in itself (the ChatGPT device flow, for instance) stays on the preset card. A toggle here is one write plus a catalog invalidation, so an open picker's compose flow reflects it without a reload.**Credential bootstraps** sits under the cards, collapsed until one exists: the launch wrappers a composite's `+<slug>` suffix names (`<command> <args…> <harness-name> [<separator>] <harness args>`), with the per-harness name map a wrapper may use (`claude` → `claude-code`). Saving never spawns anything; the wrapper runs only when a composite naming it executes.diff --git a/server/lib/navManifest.js b/server/lib/navManifest.jsindex 5267077e93..4f9a90cffa 100644--- a/server/lib/navManifest.js+++ b/server/lib/navManifest.js@@ -96,7 +96,7 @@ const RAW_NAV_COMMANDS = [// own URL so a card can be linked and reached from ⌘K and voice; the retired// Backend Connections drawer (#6369) redirects onto Services.{ id: 'nav.settings.providers', path: '/ai/presets', label: 'Providers', section: 'Models', tabId: 'providers', previousPaths: ['/ai'], aliases: ['providers', 'ai-providers', 'presets', 'ai-presets', 'provider-presets'], keywords: ['preset', 'harness', 'service', 'model', 'effort', 'compose', 'compatibility matrix', 'default provider'] },- { id: 'nav.ai.harnesses', path: '/ai/harnesses', label: 'AI Harnesses', section: 'Models', aliases: ['ai-harnesses', 'provider-harnesses', 'harness-enablement', 'credential-bootstraps', 'bootstraps'], keywords: ['enable harness', 'disable harness', 'claude code', 'codex', 'opencode', 'pi', 'direct api', 'cli', 'tui', 'bootstrap', 'launch wrapper', 'sign in', 'quota'] },+ { id: 'nav.ai.harnesses', path: '/ai/harnesses', label: 'Harnesses', section: 'Models', previousPaths: ['/models/harnesses'], aliases: ['harnesses', 'harness', 'ai-harnesses', 'agent-harnesses', 'coding-clis', 'cli-harnesses', 'provider-harnesses', 'harness-enablement', 'credential-bootstraps', 'bootstraps'], keywords: ['enable harness', 'disable harness', 'claude code', 'codex', 'opencode', 'pi', 'direct api', 'cli', 'tui', 'bootstrap', 'launch wrapper', 'sign in', 'quota', 'antigravity', 'agy', 'grok', 'kimi', 'cursor', 'install cli', 'update cli', 'upgrade', 'version', 'refresh models'] },{ id: 'nav.ai.services', path: '/ai/services', label: 'AI Services', section: 'Models', previousPaths: ['/ai/connections', '/ai/connections/:connectionId'], aliases: ['ai-services', 'services', 'provider-services', 'backends', 'connections', 'backend-connections', 'provider-connections', 'harness-connections'], keywords: ['endpoint', 'api key', 'plan', 'free', 'paid', 'subscription', 'model catalog', 'refresh catalog', 'ollama', 'nvidia', 'openrouter', 'add service'] },{ id: 'nav.settings.fleet-llm', path: '/ai/fleet', label: 'Fleet LLM Setup', section: 'Settings', aliases: ['fleet-llm', 'gpu-host', 'remote-ai-provider'], keywords: ['3090', 'tailscale', 'vllm', 'qwen', 'coding model', 'dedicated host'] },@@ -319,7 +319,6 @@ const RAW_NAV_COMMANDS = [{ id: 'nav.models.comparison', path: '/models/comparison', label: 'Comparison', section: 'Models', tabId: 'comparison', aliases: ['model-comparison', 'model-cost', 'model-intelligence'], keywords: ['benchmark', 'effort', 'cost', 'quota', 'compare', 'intelligence'] },{ id: 'nav.models.3d', path: '/models/3d', label: '3D', section: 'Models', tabId: '3d', aliases: ['3d-runtimes', 'image-to-3d-runtimes', 'trellis-install', 'pixal3d-install'], keywords: ['trellis', 'pixal3d', 'install', 'repair', 'runtime', 'mesh', 'image to 3d', 'on-device'] },{ id: 'nav.models.code-reviewers', path: '/models/code-reviewers', label: 'Code Reviewers', section: 'Models', tabId: 'code-reviewers', previousPaths: ['/settings/code-reviewers'], aliases: ['code-reviewers', 'settings-code-reviewers', 'code-review', 'review-defaults', 'reviewers'], keywords: ['review loop', 'reviewer chain', 'codex', 'copilot', 'ollama', 'stop mode', 'max rounds', 'defaults'] },- { id: 'nav.models.harnesses', path: '/models/harnesses', label: 'Harnesses', section: 'Models', tabId: 'harnesses', aliases: ['harnesses', 'harness', 'agent-harnesses', 'coding-clis', 'cli-harnesses'], keywords: ['opencode', 'claude code', 'codex', 'antigravity', 'agy', 'grok', 'kimi', 'cursor', 'install cli', 'update cli', 'upgrade', 'version', 'refresh models'] },{ id: 'nav.settings.embeddings', path: '/models/embeddings', label: 'Embeddings', section: 'Models', tabId: 'embeddings', previousPaths: ['/settings/embeddings'], aliases: ['settings-embeddings', 'embeddings', 'embedding'], keywords: ['vector', 'pgvector', 'semantic search', 'nomic', 'ollama', 'lm studio'] },{ id: 'nav.settings.local-llm', path: '/models/llms', label: 'LLMs', section: 'Models', tabId: 'llms', previousPaths: ['/settings/local-llm'], aliases: ['local-llm', 'local-llms', 'llms', 'models-llms', 'ollama', 'lm-studio', 'lmstudio'], keywords: ['ollama', 'lm studio', 'local model', 'local llm', 'gguf', 'pull model', 'install model', 'migrate', 'switch backend', 'llama.cpp'] },{ id: 'nav.models.llms.abuse', path: '/models/llms/abuse', label: 'Abuse Guard', section: 'Models', aliases: ['abuse-guard', 'model-abuse', 'model-abuse-guard', 'prompt-guard', 'prompt guard'], keywords: ['classifier', 'prompt injection', 'security scan', 'llama prompt guard', 'install guard'] },