The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
/* The Phaser pane's frame: Harness's light chrome (the desktop app's palette) around a dark stage. */
:root {
color-scheme: light;
--bg: #ffffff; --panel: #f9f9f8; --card: #f3f3f2; --hover: #ececea;
--line: rgba(0, 0, 0, .06); --guide: rgba(0, 0, 0, .16);
--ink: #1a1a18; --ink2: #62615b; --faint: #8e8d86;
--accent: #2f5bea; --accent-soft: rgba(47, 91, 234, .10);
--ok: #15803d; --warn: #b45309; --err: #b3261e; --err-soft: #fbeceb;
--stage: #0d0e12; --stage2: #17191f;
--mono: ui-monospace, SFMono-Regular, Menlo, monospace;
--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--bg: #1c1c1e; --panel: #202022; --card: #2a2a2d; --hover: #323236;
--line: rgba(255, 255, 255, .08); --guide: rgba(255, 255, 255, .14);
--ink: #f5f5f5; --ink2: #a8a8a2; --faint: #6e6e68;
--accent: #6d8cf5; --accent-soft: rgba(109, 140, 245, .16);
--ok: #3fb950; --warn: #ffb020; --err: #f2544b; --err-soft: #3a2220;
--stage: #08090b; --stage2: #121317;
}
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 13px/1.35 var(--sans); -webkit-font-smoothing: antialiased; }
body { display: grid; grid-template-rows: 44px 1fr 30px; }
button { font: inherit; color: inherit; }
kbd { font: 11px/1 var(--mono); padding: 2px 5px; border-radius: 4px; background: var(--card); border: 1px solid var(--guide); border-bottom-width: 2px; color: var(--ink); white-space: nowrap; }
.grow { flex: 1 1 auto; }
.muted { color: var(--faint); }
/* ── toolbar ─────────────────────────────────────────────────────────── */
#bar { display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); min-width: 0; z-index: 20; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
#title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.is-running { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.dot.is-paused { background: var(--warn); }
.dot.is-error { background: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }
.dot.is-loading { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fps { font: 11px/1 var(--mono); color: var(--ink2); padding: 3px 6px; border-radius: 5px; background: var(--card); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fps:empty { display: none; }
.fps.low { color: var(--warn); } .fps.bad { color: var(--err); }
.tools { display: flex; align-items: center; gap: 2px; flex: none; }
.sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn.icon { width: 30px; padding: 0; justify-content: center; }
.btn:hover { background: var(--hover); }
.btn:active { background: var(--guide); }
.btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.select { border: 1px solid var(--guide); height: 28px; padding: 0 6px 0 8px; }
.btn.select [data-icon="chevron"] svg { width: 12px; height: 12px; opacity: .6; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .label { font-weight: 500; }
@media (max-width: 900px) { .btn .label { display: none; } #pause, #debug { width: 30px; padding: 0; justify-content: center; } }
@media (max-width: 560px) { #presetName { display: none; } #help, .sep { display: none; } }
.menu-wrap { position: relative; }
.menu { position: absolute; top: 34px; right: 0; min-width: 250px; padding: 5px; background: var(--bg); border: 1px solid var(--guide); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); z-index: 40; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 7px 9px; border: 0; background: transparent; border-radius: 6px; text-align: left; cursor: pointer; }
.menu button:hover { background: var(--hover); }
.menu button .check { width: 14px; color: var(--accent); flex: none; }
.menu button .dim { color: var(--faint); margin-left: auto; font: 11px var(--mono); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
/* ── stage ───────────────────────────────────────────────────────────── */
#stage { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, var(--stage2), var(--stage)); display: grid; place-items: center; min-height: 0; }
#stage.native { overflow: auto; place-items: start center; }
#box { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
#game { display: block; border: 0; background: #000; width: 100%; height: 100%; transform-origin: 0 0; }
#stage.framed #game { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 50px rgba(0, 0, 0, .55); }
#stage.device #game { border-radius: 22px; box-shadow: 0 0 0 9px #202227, 0 0 0 10px rgba(255, 255, 255, .10), 0 24px 60px rgba(0, 0, 0, .6); }
#stage.focused.framed #game, #stage.focused.device #game { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; }
#device { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 11px/1 var(--mono); color: rgba(255, 255, 255, .45); pointer-events: none; }
.overlay { position: absolute; inset: 0; z-index: 5; }
.center { display: grid; place-content: center; justify-items: center; gap: 12px; color: rgba(255, 255, 255, .72); font-size: 13px; text-align: center; padding: 24px; }
#loading { background: var(--stage); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .14); border-top-color: rgba(255, 255, 255, .8); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.paused { border: 0; background: rgba(8, 9, 12, .55); backdrop-filter: blur(2px) saturate(.7); -webkit-backdrop-filter: blur(2px) saturate(.7); cursor: pointer; color: #fff; }
.paused .big svg { width: 54px; height: 54px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.paused .big-label { font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.paused .small { font-size: 12px; opacity: .65; }
.hud { position: absolute; top: 10px; left: 10px; z-index: 6; min-width: 190px; max-width: calc(100% - 20px); padding: 8px 10px; border-radius: 8px; background: rgba(10, 11, 14, .78); border: 1px solid rgba(255, 255, 255, .08); color: #d7dbe4; font: 11px/1.55 var(--mono); pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud b { color: #fff; font-weight: 600; }
.hud .k { color: #8b93a5; display: inline-block; min-width: 62px; }
.hud .scene { display: flex; gap: 6px; align-items: center; }
.hud .st { font-size: 9.5px; padding: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, .1); color: #aab2c3; text-transform: uppercase; letter-spacing: .04em; }
.hud .st.running { background: rgba(63, 185, 80, .22); color: #7ee08f; }
.hud .st.paused, .hud .st.sleeping { background: rgba(255, 176, 32, .2); color: #ffc65c; }
.hud .bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); margin: 3px 0 5px; overflow: hidden; }
.hud .bar i { display: block; height: 100%; background: #7ee08f; }
/* ── errors ──────────────────────────────────────────────────────────── */
.error { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 18px; background: rgba(8, 9, 12, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.error.soft { place-items: end center; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.error.soft .error-card { pointer-events: auto; max-height: 58%; }
.error.stale .error-card { opacity: .55; }
.error-card { width: min(760px, 100%); max-height: 100%; overflow: auto; background: var(--bg); color: var(--ink); border-radius: 12px; border-top: 3px solid var(--err); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.error-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 4px 14px; }
.error-head > [data-icon] svg { width: 18px; height: 18px; color: var(--err); margin-top: 1px; }
.error-kind { font-weight: 600; color: var(--err); }
.error-where { font: 12px/1.4 var(--mono); color: var(--ink2); word-break: break-all; }
.error-message { margin: 6px 14px 10px; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.error-frame { margin: 0 14px 10px; padding: 10px 0; font: 12px/1.55 var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: auto; white-space: pre; }
.error-frame .ln { display: block; padding: 0 12px; }
.error-frame .ln.hit { background: var(--err-soft); }
.error-frame .no { display: inline-block; min-width: 3.2em; color: var(--faint); user-select: none; }
.error-frame .caret { color: var(--err); font-weight: 700; }
details { margin: 0 14px 10px; font-size: 12px; color: var(--ink2); }
details pre { font: 11px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; margin: 6px 0 0; color: var(--ink2); }
summary { cursor: pointer; }
.error-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px 14px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 12px; }
.btn.ghost:hover { background: var(--hover); }
.error-foot .btn { border: 1px solid var(--guide); height: 28px; }
.error-foot .btn.primary { border-color: transparent; }
/* ── toast, help, full screen ────────────────────────────────────────── */
.toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9; max-width: calc(100% - 32px); padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .96); color: #1a1a18; font-size: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .18s ease-out; }
.toast b { font-weight: 600; } .toast code { font: 11.5px var(--mono); color: #62615b; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } }
.help { position: absolute; top: 10px; right: 10px; z-index: 12; width: min(330px, calc(100% - 20px)); padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--guide); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); font-size: 12px; }
.help-title { font-weight: 600; margin-bottom: 8px; }
.help dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; align-items: center; }
.help dt { white-space: nowrap; } .help dd { margin: 0; color: var(--ink2); }
.exit-full { position: absolute; top: 10px; right: 10px; z-index: 11; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 6px 8px 6px 10px; background: rgba(20, 21, 25, .72); color: #fff; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .25s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.exit-full svg { width: 14px; height: 14px; }
.exit-full kbd { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
body.immersive .exit-full.show, .exit-full:hover { opacity: 1; }
body.immersive { grid-template-rows: 0 1fr 0; }
body.immersive #bar, body.immersive #status { visibility: hidden; }
/* ── status bar ──────────────────────────────────────────────────────── */
#status { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 8px; background: var(--panel); border-top: 1px solid var(--line); min-width: 0; font-size: 12px; color: var(--ink2); overflow: hidden; }
.focus { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 3px 6px; border-radius: 6px; cursor: pointer; color: var(--accent); font-weight: 500; white-space: nowrap; flex: none; }
.focus:hover { background: var(--hover); }
.focus .pip { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.focus.on { color: var(--ok); cursor: default; }
.focus.on .pip { animation: none; }
.focus.on:hover { background: transparent; }
.controls { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.controls .what { color: var(--faint); margin-right: 2px; }
.controls kbd { font-size: 10.5px; }
.info { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
@media (max-width: 700px) { .info { display: none; } }
@media (max-width: 520px) { .controls { display: none; } }
[data-icon] { display: inline-flex; }
body.immersive #stage #game { border-radius: 0 !important; box-shadow: none !important; outline: none !important; }
body.immersive #device { display: none; }