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: move code reviewers into models
Adam Eivy5e9f281b20e0
diff --git a/client/src/App.jsx b/client/src/App.jsxindex 7e5fd18ead..add1caffe6 100644--- a/client/src/App.jsx+++ b/client/src/App.jsx@@ -328,6 +328,9 @@ export default function App() {{/* Embeddings moved into Models with the rest of the model management(#4728) — it picks a model, not a preference. */}<Route path="settings/embeddings" element={<Navigate to="/models/embeddings" replace />} />+ {/* Code Reviewer configuration moved into Models with the reviewer+ runtimes it configures; keep the old URL working for bookmarks. */}+ <Route path="settings/code-reviewers" element={<Navigate to="/models/code-reviewers" replace />} />{/* Spotify/YouTube sync feed the activity Timeline, which lives inBrain — moved alongside it so they show up in the same sidebarsection as the data they populate. */}diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsxindex b010c3e0b9..26164896f5 100644--- a/client/src/components/Layout.jsx+++ b/client/src/components/Layout.jsx@@ -295,7 +295,7 @@ export const NAV_PRESENTATION = {'/api-reference/catalog': { icon: Braces },'/settings/autofixer': { icon: Wrench },'/settings/backup': { icon: Download },- '/settings/code-reviewers': { icon: ShieldCheck },+ '/models/code-reviewers': { icon: ShieldCheck },'/settings/database': { icon: Database },'/settings/features': { icon: ListChecks },'/settings/general': { icon: Settings },diff --git a/client/src/components/Layout.test.jsx b/client/src/components/Layout.test.jsxindex b1255ede7d..205d5de76a 100644--- a/client/src/components/Layout.test.jsx+++ b/client/src/components/Layout.test.jsx@@ -130,7 +130,7 @@ describe('Layout — manifest-derived sidebar structure', () => {it('covers all sub-tabs for Settings, Digital Twin, and Messages in NAV_PRESENTATION', () => {const settingsPaths = ['/settings/general', '/settings/ai-assignments', '/settings/api-access', '/settings/autofixer',- '/settings/backup', '/settings/code-reviewers', '/settings/database', '/settings/features',+ '/settings/backup', '/settings/database', '/settings/features','/settings/security', '/settings/sharing','/settings/telegram', '/settings/voice', '/settings/mortalloom','/openclaw', '/prompts', '/ai'diff --git a/client/src/components/cos/PersistentMindVisibilityPanel.jsx b/client/src/components/cos/PersistentMindVisibilityPanel.jsxindex a0a64462cb..befa94d0eb 100644--- a/client/src/components/cos/PersistentMindVisibilityPanel.jsx+++ b/client/src/components/cos/PersistentMindVisibilityPanel.jsx@@ -27,7 +27,7 @@ const REPAIR_ACTIONS = Object.freeze({engines: { label: 'Open app settings', href: (appId) => `/apps/${encodeURIComponent(appId)}/overview?edit=1&appTab=general` },submodules: { label: 'Manage submodules', href: (appId) => `/apps/${encodeURIComponent(appId)}/submodules` },forge: { label: 'Open app Git settings', href: (appId) => `/apps/${encodeURIComponent(appId)}/git` },- reviewers: { label: 'Manage reviewers', href: () => '/settings/code-reviewers' },+ reviewers: { label: 'Manage reviewers', href: () => '/models/code-reviewers' },preflight: { label: 'Open app settings', href: (appId) => `/apps/${encodeURIComponent(appId)}/overview?edit=1&appTab=general` },});diff --git a/client/src/components/cos/PersistentMindVisibilityPanel.test.jsx b/client/src/components/cos/PersistentMindVisibilityPanel.test.jsxindex 6b0235a28c..52f342e450 100644--- a/client/src/components/cos/PersistentMindVisibilityPanel.test.jsx+++ b/client/src/components/cos/PersistentMindVisibilityPanel.test.jsx@@ -34,7 +34,7 @@ describe('PersistentMindVisibilityPanel', () => {expect(screen.getByRole('alert')).toHaveTextContent('Delegated work is blocked');expect(screen.getByRole('link', { name: /manage permissions/i })).toHaveAttribute('href', '/cos/tools');expect(screen.getByRole('link', { name: /managed apps/i })).toHaveAttribute('href', '/apps');- expect(screen.getByRole('link', { name: /manage reviewers/i })).toHaveAttribute('href', '/settings/code-reviewers');+ expect(screen.getByRole('link', { name: /manage reviewers/i })).toHaveAttribute('href', '/models/code-reviewers');expect(screen.getByRole('link', { name: /open app settings/i })).toHaveAttribute('href', '/apps/example-app/overview?edit=1&appTab=general');});diff --git a/client/src/components/cos/constants.js b/client/src/components/cos/constants.jsindex 4003cf1272..a53e6b7efe 100644--- a/client/src/components/cos/constants.js+++ b/client/src/components/cos/constants.js@@ -280,14 +280,14 @@ export function pinnedPrCompletion(metadata) {// review via the native reviewer API; CLI reviewers (claude/antigravity/codex/grok/cursor)// instruct the follow-up agent to invoke the named CLI; local-LLM reviewers// (lmstudio/ollama) route the diff through PortOS's `POST /api/code-review/local`-// endpoint, which runs the model configured on the Settings → Code Reviewers+// endpoint, which runs the model configured on the Models → Code Reviewers// page. Keep in sync with the `REVIEWER_VALUES` enum in// `server/lib/validation.js`.export const REVIEWER_OPTIONS = [{ value: 'copilot', label: 'Copilot', description: 'GitHub Copilot (GitHub-only)' },- { value: 'claude', label: 'Claude', description: 'Claude CLI reviews the PR diff (optional model on Settings → Code Reviewers; supports an Ollama-backed Claude for local-only setups)' },+ { value: 'claude', label: 'Claude', description: 'Claude CLI reviews the PR diff (optional model on Models → Code Reviewers; supports an Ollama-backed Claude for local-only setups)' },{ value: 'antigravity', label: 'Antigravity', description: 'Antigravity CLI (agy) reviews the PR diff' },- { value: 'codex', label: 'Codex', description: 'Codex CLI reviews the PR diff (optional model tier on Settings → Code Reviewers)' },+ { value: 'codex', label: 'Codex', description: 'Codex CLI reviews the PR diff (optional model tier on Models → Code Reviewers)' },{ value: 'grok', label: 'Grok', description: 'Grok Build CLI (grok) reviews the PR diff' },{ value: 'cursor', label: 'Cursor Agent', description: 'Cursor Agent CLI (cursor-agent) reviews the PR diff' },{ value: 'lmstudio', label: 'LM Studio', description: 'Local LM Studio model reviews the diff (set model on AI Providers)' },diff --git a/client/src/components/models/ModelsTabsHeader.jsx b/client/src/components/models/ModelsTabsHeader.jsxindex 9646a21f5e..e93bb185b2 100644--- a/client/src/components/models/ModelsTabsHeader.jsx+++ b/client/src/components/models/ModelsTabsHeader.jsx@@ -24,6 +24,7 @@ import RouteTabsHeader from '../ui/RouteTabsHeader';// own — no per-section flag to remember.export const TABS = [{ id: '3d', label: '3D', to: '/models/3d' },+ { id: 'code-reviewers', label: 'Code Reviewers', to: '/models/code-reviewers' },{ id: 'embeddings', label: 'Embeddings', to: '/models/embeddings' },{ id: 'llms', label: 'LLMs', to: '/models/llms' },{ id: 'loras', label: 'LoRAs', to: '/models/loras' },diff --git a/client/src/components/settings/SettingsTabsHeader.jsx b/client/src/components/settings/SettingsTabsHeader.jsxindex 3c71282c8d..3d410032e6 100644--- a/client/src/components/settings/SettingsTabsHeader.jsx+++ b/client/src/components/settings/SettingsTabsHeader.jsx@@ -14,7 +14,6 @@ export const TABS = [{ id: 'api-access', label: 'API Access', to: '/settings/api-access' },{ id: 'autofixer', label: 'Autofixer', to: '/settings/autofixer' },{ id: 'backup', label: 'Backup', to: '/settings/backup' },- { id: 'code-reviewers', label: 'Code Reviewers', to: '/settings/code-reviewers' },{ id: 'database', label: 'Database', to: '/settings/database' },{ id: 'features', label: 'Features', to: '/settings/features' },{ id: 'general', label: 'General', to: '/settings/general' },diff --git a/client/src/hooks/useCodeReviewDefaults.jsx b/client/src/hooks/useCodeReviewDefaults.jsxindex 47bc5b95c3..1d7b4699db 100644--- a/client/src/hooks/useCodeReviewDefaults.jsx+++ b/client/src/hooks/useCodeReviewDefaults.jsx@@ -11,7 +11,7 @@ const pinScalars = (source) => Object.fromEntries([...EFFORT_SELECTABLE_REVIEWERS.map((reviewer) => [`${reviewer}Effort`, source?.[`${reviewer}Effort`] || null]),]);-// Resolved "Code Review Defaults" (Settings → Code Reviewers) — used by TaskAddForm+// Resolved "Code Review Defaults" (Models → Code Reviewers) — used by TaskAddForm// and ScheduleTab's per-task-type config to seed the picker's fallback state// instead of the hardcoded `['copilot']`. Returned shape mirrors the server's// `getCodeReviewDefaults()` so a consumer can rely on the same field namesdiff --git a/client/src/pages/Models.jsx b/client/src/pages/Models.jsxindex 5e4370dfd2..812124cdfd 100644--- a/client/src/pages/Models.jsx+++ b/client/src/pages/Models.jsx@@ -6,6 +6,7 @@ import PageSkeleton from '../components/ui/PageSkeleton';import ModelsTabsHeader from '../components/models/ModelsTabsHeader';import Image3dRuntimes from '../components/models/Image3dRuntimes';import ModelStatusTab from '../components/models/ModelStatusTab';+import CodeReviewersTab from '../components/settings/CodeReviewersTab';import EmbeddingsTab from '../components/settings/EmbeddingsTab';import LocalModelAssessments from '../components/settings/LocalModelAssessments.jsx';import { LocalLlmTab } from '../components/settings/LocalLlmTab';@@ -27,6 +28,7 @@ const MediaModels = lazyWithReload(() => import('./MediaModels'));* covers every KIND of model an install manages (#4728), not just text:** - **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.* - **LLMs** — focused runtime, model-library, and abuse-guard sub-routes.* - **LoRAs** — installed image/video adapters.@@ -46,6 +48,7 @@ const MediaModels = lazyWithReload(() => import('./MediaModels'));*/const TAB_CONTENT = {'3d': Image3dRuntimes,+ 'code-reviewers': CodeReviewersTab,embeddings: EmbeddingsTab,llms: LocalLlmTab,loras: Loras,diff --git a/client/src/pages/Models.test.jsx b/client/src/pages/Models.test.jsxindex 283f6eea36..18d88a6b9e 100644--- a/client/src/pages/Models.test.jsx+++ b/client/src/pages/Models.test.jsx@@ -19,6 +19,7 @@ vi.mock('../components/settings/LocalLlmTab', () => ({vi.mock('../components/settings/EmbeddingsTab', () => ({ default: () => <div>embeddings panel</div> }));vi.mock('../components/models/Image3dRuntimes', () => ({ default: () => <div>3d runtimes panel</div> }));vi.mock('../components/models/ModelStatusTab', () => ({ default: () => <div>status panel</div> }));+vi.mock('../components/settings/CodeReviewersTab', () => ({ default: () => <div>code reviewers panel</div> }));vi.mock('./Loras', () => ({ default: () => <div>loras panel</div> }));vi.mock('./LoraTraining', () => ({ default: () => <div>training panel</div> }));vi.mock('./MediaModels', () => ({ default: () => <div>media models panel</div> }));@@ -32,6 +33,7 @@ import Models from './Models';// quietly going unrendered by a hand-maintained second list.const PANEL_MARKER = {'3d': '3d runtimes panel',+ 'code-reviewers': 'code reviewers panel',embeddings: 'embeddings panel',llms: 'llms panel',loras: 'loras panel',diff --git a/client/src/pages/Settings.jsx b/client/src/pages/Settings.jsxindex ff5d86044f..96ccac918a 100644--- a/client/src/pages/Settings.jsx+++ b/client/src/pages/Settings.jsx@@ -5,7 +5,6 @@ import { ApiAccessTab } from '../components/settings/ApiAccessTab';import { AutofixerTab } from '../components/settings/AutofixerTab';import AiAssignmentsTab from '../components/settings/AiAssignmentsTab';import { BackupTab } from '../components/settings/BackupTab';-import CodeReviewersTab from '../components/settings/CodeReviewersTab';import { DatabaseTab } from '../components/settings/DatabaseTab';import InstanceFeaturesTab from '../components/settings/InstanceFeaturesTab';import { TelegramTab } from '../components/settings/TelegramTab';@@ -43,7 +42,6 @@ export default function Settings() {case 'api-access': return <ApiAccessTab />;case 'autofixer': return <AutofixerTab />;case 'backup': return <BackupTab />;- case 'code-reviewers': return <CodeReviewersTab />;case 'database': return <DatabaseTab />;case 'features': return <InstanceFeaturesTab />;case 'security': return <SecurityTab />;diff --git a/client/src/pages/Settings.tabs.test.jsx b/client/src/pages/Settings.tabs.test.jsxindex c40663d2a6..01fe3a048b 100644--- a/client/src/pages/Settings.tabs.test.jsx+++ b/client/src/pages/Settings.tabs.test.jsx@@ -9,12 +9,7 @@ vi.mock('../services/api', () => ({getInstanceFeatures: vi.fn().mockResolvedValue({ features: [] }),}));-// The two tabs this test distinguishes between. A slug with no `case` in-// Settings.jsx falls through to the GeneralTab default, so the guard is-// "code-reviewers renders the Code Reviewers panel, not General".-vi.mock('../components/settings/CodeReviewersTab', () => ({- default: () => <div data-testid="code-reviewers-tab" />,-}));+// The remaining Settings tabs this test distinguishes between.vi.mock('../components/settings/GeneralTab', () => ({GeneralTab: () => <div data-testid="general-tab" />,}));@@ -32,21 +27,11 @@ const renderTab = (path) => render(</MemoryRouter>,);-describe('Settings — Code Reviewers tab', () => {- it('is listed in the settings sub-nav', () => {- const tab = TABS.find(t => t.id === 'code-reviewers');- expect(tab?.to).toBe('/settings/code-reviewers');- });-- it('routes /settings/code-reviewers to the Code Reviewers panel', async () => {- renderTab('/settings/code-reviewers');- await act(async () => {});- expect(screen.getByTestId('code-reviewers-tab')).toBeTruthy();- expect(screen.queryByTestId('general-tab')).toBeNull();+describe('Settings — Instance Features tab', () => {+ it('does not list Code Reviewers after it moved to Models', () => {+ expect(TABS.some(t => t.id === 'code-reviewers')).toBe(false);});-});-describe('Settings — Instance Features tab', () => {it('is listed in the settings sub-nav', () => {const tab = TABS.find(t => t.id === 'features');expect(tab?.to).toBe('/settings/features');diff --git a/client/src/services/apiCodeReview.js b/client/src/services/apiCodeReview.jsindex 22d8cd58bf..f72953780a 100644--- a/client/src/services/apiCodeReview.js+++ b/client/src/services/apiCodeReview.js@@ -2,6 +2,6 @@ import { request } from './apiCore.js';// Code Review Defaults — the global default reviewer chain + per-backend// model the Review Loop seeds from when a task/task-type doesn't pin its own.-// Surfaced on the Settings → Code Reviewers page; persisted under+// Surfaced on the Models → Code Reviewers page; persisted under// `settings.codeReview` via PUT /api/settings.export const getCodeReviewDefaults = (options) => request('/code-review/defaults', options);diff --git a/server/lib/navManifest.js b/server/lib/navManifest.jsindex 07f0dccb00..b6b34b7f0d 100644--- a/server/lib/navManifest.js+++ b/server/lib/navManifest.js@@ -266,7 +266,6 @@ const RAW_NAV_COMMANDS = [{ id: 'nav.devtools.api-explorer', path: '/api-reference/catalog', label: 'API Explorer', section: 'Dev Tools', aliases: ['api-explorer', 'api-reference', 'swagger-ui', 'rest-reference'], keywords: ['openapi', 'rest', 'endpoints', 'routes', 'agent tools', 'contracts', 'developer docs'] },{ id: 'nav.settings.autofixer', path: '/settings/autofixer', label: 'Autofixer', section: 'Settings', aliases: ['autofixer', 'settings-autofixer', 'auto-fixer'], keywords: ['crash', 'fix', 'pm2', 'repair', 'ai provider', 'restart'] },{ id: 'nav.settings.backup', path: '/settings/backup', label: 'Backup', section: 'Settings', aliases: ['backup', 'settings-backup'] },- { id: 'nav.settings.code-reviewers', path: '/settings/code-reviewers', label: 'Code Reviewers', section: 'Settings', 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.settings.database', path: '/settings/database', label: 'Database', section: 'Settings', aliases: ['settings-database', 'database'] },{ id: 'nav.settings.features', path: '/settings/features', label: 'Features', section: 'Settings', aliases: ['settings-features', 'instance-features', 'feature-usage'], keywords: ['enabled', 'disabled', 'instance', 'optional', 'participation', 'metrics', 'reminders'] },{ id: 'nav.settings.general', path: '/settings/general', label: 'General', section: 'Settings', aliases: ['settings', 'settings-general', 'general'] },@@ -277,6 +276,7 @@ const RAW_NAV_COMMANDS = [// prefix: they are opaque and stored in palette history, so renaming them// would orphan those entries — only the path, label and section move.{ id: 'nav.models.3d', path: '/models/3d', label: '3D', section: 'Models', 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', 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.settings.embeddings', path: '/models/embeddings', label: 'Embeddings', section: 'Models', 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', 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'] },