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
/* Shared modal/dialog styles — consumed by both consoles via
* the @shared alias. Sits on top of tokens.css, so colors come
* from CSS variables. */
.dlg-root {
position: fixed; inset: 0;
z-index: 9000;
pointer-events: none;
}
.dlg-backdrop {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
background: rgba(15, 23, 42, 0.34);
backdrop-filter: blur(2px);
pointer-events: auto;
animation: dlg-fade-in 120ms ease-out;
}
@keyframes dlg-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.dlg-card {
width: min(440px, 92vw);
max-height: 90vh;
display: flex; flex-direction: column;
background: var(--surface, #fff);
border: 1px solid var(--line, rgba(15,23,42,.08));
border-radius: 14px;
box-shadow: 0 24px 60px rgba(15,23,42,.18), 0 4px 16px rgba(15,23,42,.08);
overflow: hidden;
animation: dlg-pop-in 140ms cubic-bezier(.2,.7,.2,1.05);
}
@keyframes dlg-pop-in {
from { transform: translateY(8px) scale(.97); opacity: 0; }
to { transform: translateY(0) scale(1); opacity: 1; }
}
.dlg-card-wide { width: min(540px, 94vw); }
/* create dialog: resource-type picker grid */
.dlg-typegrid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
margin: 2px 0 8px;
}
.dlg-type {
display: flex; flex-direction: column; align-items: center; gap: 8px;
padding: 14px 8px 11px;
border: 1px solid var(--line, rgba(15,23,42,.12));
border-radius: 11px;
background: var(--surface, #fff);
cursor: pointer;
transition: border-color .12s, background .12s, transform .04s;
}
.dlg-type:hover { background: var(--surface-2, #fafaf9); }
.dlg-type.on { border-color: var(--brand, #1a5cf5); box-shadow: 0 0 0 2px rgba(40,90,255,.16); }
.dlg-type:active { transform: translateY(1px); }
.dlg-type-ic {
width: 38px; height: 38px; border-radius: 10px;
display: inline-flex; align-items: center; justify-content: center;
}
.dlg-type-lbl {
font-size: 12px; font-weight: 550; color: var(--ink, #1c1917);
text-align: center; line-height: 1.25;
}
.dlg-h {
padding: 16px 20px 0;
}
.dlg-title {
font-size: 15px; font-weight: 600;
color: var(--ink, #1c1917);
line-height: 1.4;
}
.dlg-h-destructive .dlg-title { color: #b4460f; }
.dlg-h-error .dlg-title { color: #b4460f; }
.dlg-h-warning .dlg-title { color: #B45309; }
.dlg-h-success .dlg-title { color: #15803d; }
.dlg-b {
padding: 12px 20px 4px;
overflow-y: auto;
}
.dlg-msg {
font-size: 13px; line-height: 1.55;
color: var(--mute, #57534e);
margin-bottom: 8px;
white-space: pre-wrap;
word-break: break-word;
}
.dlg-label {
display: block;
font-size: 11px; font-weight: 600;
color: var(--mute, #57534e);
text-transform: uppercase;
letter-spacing: .04em;
margin: 10px 0 6px;
}
.dlg-input {
width: 100%;
padding: 9px 11px;
font-size: 13px;
font-family: inherit;
color: var(--ink, #1c1917);
background: var(--surface, #fff);
border: 1px solid var(--line, rgba(15,23,42,.16));
border-radius: 8px;
outline: none;
transition: border-color .12s ease, box-shadow .12s ease;
}
.dlg-input:focus {
border-color: var(--brand, #1a5cf5);
box-shadow: 0 0 0 3px rgba(40,90,255,.14);
}
.dlg-input-err {
border-color: #b4460f;
}
.dlg-input-err:focus {
box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
textarea.dlg-input { resize: vertical; min-height: 80px; line-height: 1.5; }
.dlg-help {
font-size: 11px; color: var(--mute, #57534e);
margin-top: 6px; line-height: 1.5;
}
.dlg-err {
font-size: 11px; color: #b4460f;
margin-top: 6px; line-height: 1.5;
}
.dlg-f {
display: flex; justify-content: flex-end;
gap: 8px;
padding: 14px 20px 16px;
border-top: 1px solid transparent;
}
.dlg-btn {
appearance: none; cursor: pointer;
font-family: inherit; font-size: 13px; font-weight: 500;
padding: 8px 16px;
min-width: 76px;
border-radius: 8px;
border: 1px solid transparent;
background: transparent;
color: var(--ink, #1c1917);
transition: background .12s, border-color .12s, color .12s, transform .04s;
}
.dlg-btn:focus-visible { outline: 2px solid var(--brand, #1a5cf5); outline-offset: 2px; }
.dlg-btn:active { transform: translateY(1px); }
.dlg-secondary {
border-color: var(--line, rgba(15,23,42,.18));
color: var(--ink, #1c1917);
background: var(--surface, #fff);
}
.dlg-secondary:hover { background: var(--surface-2, #fafaf9); }
.dlg-primary {
background: var(--brand, #1a5cf5);
border-color: var(--brand, #1a5cf5);
color: #fff;
}
.dlg-primary:hover {
background: var(--brand-ink, #5840E0);
border-color: var(--brand-ink, #5840E0);
}
.dlg-destructive {
background: #b4460f;
border-color: #b4460f;
}
.dlg-destructive:hover {
background: #b4460f;
border-color: #b4460f;
}