HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
feat(ui): built-ins hold their catalog order — Codex, Claude Code, Hermes, Pi
richard-epsilla9ac0a2de1cf9
diff --git a/gateway/app.py b/gateway/app.pyindex f088e84c..db356fc1 100644--- a/gateway/app.py+++ b/gateway/app.py@@ -10854,6 +10854,16 @@ _BASE_CATALOG: dict[str, dict] = {("WebSearch", "WebSearch"), ("Task", "Task (subagents)")],"tool_enforcement": "hard",},+ "hermes": {+ "label": "Hermes", "backend": "hermes", "status": "ready",+ "system_prompt": ("You are Hermes, a self-improving autonomous agent. You work on a real "+ "project workspace with shell and file access, complete tasks end to end, "+ "and build a persistent memory and skill library from what you learn."),+ "tools": [("terminal", "Terminal"), ("read_file", "File Read"), ("write_file", "File Write"),+ ("patch", "Patch"), ("search_files", "Search"), ("web_search", "Web Search"),+ ("web_extract", "Web Extract")],+ "tool_enforcement": "instruction",+ },"pi": {"label": "Pi", "backend": "pi", "status": "ready","system_prompt": ("You are Pi, a minimal autonomous coding agent. You operate on a real "@@ -10865,16 +10875,6 @@ _BASE_CATALOG: dict[str, dict] = {("edit", "Edit")],"tool_enforcement": "hard",},- "hermes": {- "label": "Hermes", "backend": "hermes", "status": "ready",- "system_prompt": ("You are Hermes, a self-improving autonomous agent. You work on a real "- "project workspace with shell and file access, complete tasks end to end, "- "and build a persistent memory and skill library from what you learn."),- "tools": [("terminal", "Terminal"), ("read_file", "File Read"), ("write_file", "File Write"),- ("patch", "Patch"), ("search_files", "Search"), ("web_search", "Web Search"),- ("web_extract", "Web Extract")],- "tool_enforcement": "instruction",- },}# Bases this server can execute. Derived from the catalog above so the two cannot disagree —diff --git a/ui/src/lib/harness.ts b/ui/src/lib/harness.tsindex 05c84292..8d809f6f 100644--- a/ui/src/lib/harness.ts+++ b/ui/src/lib/harness.ts@@ -61,16 +61,16 @@ export const OOB: OobHarness[] = [models: ['claude-opus-5', 'claude-fable-5', 'claude-opus-4.8', 'claude-sonnet-5', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5'], defaultModel: 'claude-opus-4.8', moreModels: 0,systemPrompt: 'You are Claude Code, an agentic coding assistant. You work on a real local git working tree with bash, edit files, run tests, and use sub-agents to complete engineering tasks end to end.',tools: [], skills: [] },- { id: 'pi', name: 'Pi', version: 'v0.84.2', backend: 'pi', status: 'ready',- // Multi-family like Hermes: the gpt + claude catalogs (placeholder until /v1/models lands).- models: ['gpt-5.4', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4-mini', 'gpt-5.2', 'claude-opus-5', 'claude-fable-5', 'claude-opus-4.8', 'claude-sonnet-5', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.6-flash', 'deepseek-v4-pro', 'kimi-k3', 'qwen3.7-max'], defaultModel: 'gpt-5.4', moreModels: 0,- systemPrompt: 'You are Pi, a minimal autonomous coding agent. You operate on a real git workspace, reading, writing and editing files and running bash to complete the task end to end.',- tools: [], skills: [] },{ id: 'hermes', name: 'Hermes', version: 'v0.19.0', backend: 'hermes', status: 'ready',// Multi-family: Hermes runs any frontier model, the gpt + claude catalogs, default gpt-5.5.models: ['gpt-5.5', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-opus-5', 'claude-fable-5', 'claude-opus-4.8', 'claude-sonnet-5', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.6-flash', 'deepseek-v4-pro', 'kimi-k3', 'glm-5.2', 'qwen3.7-max'], defaultModel: 'gpt-5.5', moreModels: 0,systemPrompt: 'You are Hermes, a self-improving autonomous agent. You work on a real project workspace with shell and file access, complete tasks end to end, and build a persistent memory and skill library from what you learn, getting more capable the longer you run.',tools: [], skills: [] },+ { id: 'pi', name: 'Pi', version: 'v0.84.2', backend: 'pi', status: 'ready',+ // Multi-family like Hermes: the gpt + claude catalogs (placeholder until /v1/models lands).+ models: ['gpt-5.4', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4-mini', 'gpt-5.2', 'claude-opus-5', 'claude-fable-5', 'claude-opus-4.8', 'claude-sonnet-5', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.6-flash', 'deepseek-v4-pro', 'kimi-k3', 'qwen3.7-max'], defaultModel: 'gpt-5.4', moreModels: 0,+ systemPrompt: 'You are Pi, a minimal autonomous coding agent. You operate on a real git workspace, reading, writing and editing files and running bash to complete the task end to end.',+ tools: [], skills: [] },];export const oobById = (id: string) => OOB.find((o) => o.id === id) || null;diff --git a/ui/src/lib/revamp-data.ts b/ui/src/lib/revamp-data.tsindex 1f2af99d..d1f7d843 100644--- a/ui/src/lib/revamp-data.ts+++ b/ui/src/lib/revamp-data.ts@@ -149,7 +149,15 @@ export async function fetchHarnessRows(): Promise<{ rows: HarnessRow[]; all: Trastats: statsFor(byHarness.get(c.id) || []),});}- rows.sort((a, b) => (b.stats.lastActivity || 0) - (a.stats.lastActivity || 0));+ // Customs first (the things you made, most recently active on top); built-ins after, in+ // their fixed catalog order. Activity-sorting the built-ins made the list reshuffle under+ // you — whichever base you had just tried jumped the queue.+ const oobIndex = new Map(OOB.map((o: OobHarness, i: number) => [o.id, i]));+ rows.sort((a, b) => {+ if (a.kind !== b.kind) return a.kind === 'custom' ? -1 : 1;+ if (a.kind === 'builtin') return (oobIndex.get(a.id) ?? 99) - (oobIndex.get(b.id) ?? 99);+ return (b.stats.lastActivity || 0) - (a.stats.lastActivity || 0);+ });return { rows, all };}