Skip to content

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.

fix(ui): pi's own words in the base picker, pi in the base filter, AGENTS.md label

richard-epsilla4efa2b0c823d
diff --git a/ui/src/app/(app)/harnesses/[id]/page.tsx b/ui/src/app/(app)/harnesses/[id]/page.tsx
index 48834128..23a1f411 100644
--- a/ui/src/app/(app)/harnesses/[id]/page.tsx
+++ b/ui/src/app/(app)/harnesses/[id]/page.tsx
@@ -166,7 +166,7 @@ export default function HarnessSettingsPage() {
<section className="form-section">
<div><h3>Agent instructions</h3><p>Persistent role, conventions, constraints, and output contract loaded on every Task.</p></div>
<div className="field-stack">
- <div className="field"><label htmlFor="hsInstructions">{['codex', 'hermes'].includes(base?.id || draft?.base || '') ? 'AGENTS.md' : 'CLAUDE.md'}</label>
+ <div className="field"><label htmlFor="hsInstructions">{['codex', 'hermes', 'pi'].includes(base?.id || draft?.base || '') ? 'AGENTS.md' : 'CLAUDE.md'}</label>
<textarea id="hsInstructions" rows={7} disabled={readOnly}
value={oob ? oob.systemPrompt : (draft?.systemPrompt || '')}
onChange={(e) => upd({ systemPrompt: e.target.value })} />
diff --git a/ui/src/app/(app)/harnesses/page.tsx b/ui/src/app/(app)/harnesses/page.tsx
index 88db26e9..8c83e016 100644
--- a/ui/src/app/(app)/harnesses/page.tsx
+++ b/ui/src/app/(app)/harnesses/page.tsx
@@ -51,6 +51,9 @@ export default function HarnessesPage() {
const b = baseOf(r).toLowerCase();
if (baseFlt === 'codex') return b.includes('codex');
if (baseFlt === 'hermes') return b.includes('hermes');
+ // 'pi' must be an exact-ish match: substring would also catch every base that merely
+ // contains the letters (nothing today, but 'claude' teaches the lesson cheaply).
+ if (baseFlt === 'pi') return b === 'pi' || b.startsWith('pi ');
return b.includes('claude');
})
.filter((r) => healthFlt === 'all' || (healthFlt === 'review') === isDegraded(r));
@@ -83,6 +86,7 @@ export default function HarnessesPage() {
<option value="all">All Base Harnesses</option>
<option value="codex">Codex</option>
<option value="claude">Claude Code</option>
+ <option value="pi">Pi</option>
<option value="hermes">Hermes</option>
</select>
<select className="select" aria-label="Filter Harnesses by health" value={healthFlt} onChange={(e) => setHealthFlt(e.target.value)}>
@@ -152,7 +156,9 @@ export default function HarnessesPage() {
? 'Best for repository work, code changes, shell commands, and generated files.'
: o.id === 'hermes'
? 'Self-improving agent that builds memory and skills across Tasks, best for evolving, long-running work.'
- : 'Best for long-context analysis, document workflows, and structured review.'}</span></span>
+ : o.id === 'pi'
+ ? 'Minimal, steerable harness with four core tools, best when you want a lean agent you can shape.'
+ : 'Best for long-context analysis, document workflows, and structured review.'}</span></span>
<span className="base-choice-models">{oobDefaultModel(o)} default</span>
</label>
))}