Skip to content

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.

9.3 KB
Raw Blame
<!DOCTYPE html>
<html lang="en">
<head>
  <base href="$FLUTTER_BASE_HREF">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Your Harness workspace. Connect to your machines and work with your agents from the browser.">
  <meta name="theme-color" content="#141414">
  <meta name="referrer" content="no-referrer">
  <link rel="manifest" href="manifest.json">
  <!-- Drawn by docs/branding/app-logo/render-app-icon.swift; bump ?v= when the logo changes,
       since browsers keep a favicon long after its file is replaced. -->
  <link rel="icon" href="favicon.ico?v=5" sizes="16x16 32x32 48x48">
  <link rel="apple-touch-icon" href="icons/apple-touch-icon.png?v=5">
  <title>Harness</title>
  <!-- The app's script, first and at high priority: the loader in flutter_bootstrap.js waits for
       it, so it runs while the engine downloads instead of after. The website moves the href into
       the release's folder, where the loader asks for it (website/scripts/harness-web-assets.mjs).
       It marks itself done: from the cache it can finish before the loader's script is parsed,
       and a load event fired before anyone listened would leave the loader waiting forever. -->
  <link rel="preload" href="main.dart.js" as="script" fetchpriority="high" id="harness-main-preload"
        onload="this.dataset.done = 'loaded'" onerror="this.dataset.done = 'failed'">
  <!-- The page the visitor sees until Flutter's first frame: the app is megabytes of script
       and WebAssembly, so on a phone this is all there is for seconds. Plain HTML and CSS,
       nothing to fetch. It follows the palette the app will open in (Graphite, or the light
       Paper/Mist the visitor chose), not the system theme, which the app does not read. -->
  <style>
    html, body { margin: 0; height: 100%; background: #141414; color: #dedede; }
    html[data-theme="light"], html[data-theme="light"] body { background: #fafaf9; color: #1f1f1d; }
    #harness-splash {
      position: fixed; inset: 0; z-index: 1;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 20px; background: inherit;
      font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    }
    #harness-splash img { width: 72px; height: 72px; border-radius: 16px; }
    #harness-splash p { margin: 0; opacity: 0.72; animation: harness-splash-breath 1.8s ease-in-out infinite; }
    @keyframes harness-splash-breath { 50% { opacity: 0.38; } }
    @media (prefers-reduced-motion: reduce) { #harness-splash p { animation: none; } }
  </style>
  <noscript><style>#harness-splash { display: none; }</style></noscript>
  <script>
    (function () {
      // Same key and ids as AppearancePrefsStore on this origin (appearance_prefs_store.dart,
      // HarnessFileStore web prefix); the light palettes are Paper and Mist (color_palette.dart).
      try {
        var palette = localStorage.getItem('harness.web.v1.app_color_palette');
        if (palette === 'paper' || palette === 'mist') document.documentElement.dataset.theme = 'light';
      } catch (e) { /* storage blocked: the app opens in Graphite too */ }
    })();
  </script>
</head>
<body>
  <noscript>Enable JavaScript to open your Harness workspace.</noscript>
  <div id="harness-splash" role="status">
    <img alt="" width="72" height="72" src="data:image/webp;base64,UklGRtwKAABXRUJQVlA4WAoAAAAQAAAAXwAAXwAAQUxQSLQAAAABcFTbttM86gy88EWwEAIiqgYspY9YGPkC6KT3M04iwkzbNon2jkCKQO61VbrS0xHgpFepsuWpfrLrjiC7XeI/IaqPOOvoEVbZHoG2pXX/szpCrexbiiPW4oaw59KHIuI1R7CNJxIf0cbiHtgc3KBl0wbZEW62prPWdPREZzri/fvPDwwm/PG7Er+L8bsev0vyuyq+C/O7Nr7L43cF/F0EftdB36XwdzVPtVW6puyC1g93QQJWUDggAgoAALApAJ0BKmAAYAA+bSyRRiQiIaEtWIzwgA2JbACtKZb+k/hn1uHmvVfir+Kvys3D/QbqIa3tM/jew/0GeYB+R3pafqB7gPMB5sf+m9WX+e9QD/Af7frI/61/wvYA/Y/0xv3h+E7+4/9j0n7oJ0X/rvMordtRr4/9if1HlR4B8AL2JuyoAPzb+1f6/jJ+qHmqf7TjPqAH5v/53929dz6a8930V/6vcL/nP9u9Mv2dftz7Kv7cqR4KJkJMKHORvjWdbJlAwvvpCjxFMPXcd/lS4a7rGIWhbqS2BgKQj69PUbsMAOkA7Zei8Giyt+Zfo96UZpAAFGxRzFjx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A7q1G7zdUBaYa37lqptyyhRaNY3+VTs8GDUQ+Q4fpiCtgSIfHkZPnjU7dGLSV7QeTAf7C87gk4qVNFqZPVXstIrAad7+5lEjju71DEC1sJy0DMVMA1qW5t5784fLblhjXgNSn5lubee/OHy25YOigv11UqCTBMP3uy2Iv9BnnposIg7D6QznkM1O+4GWDvKZrLPDh6wphgJ3bCdrCzVitemqJYWKRP9Uwmje1cogvXLDFAc8JPKObMTOKRAoEOFYbpjpinBHv0671mFKYHmYZ6lUTJWeunhBBxdy1OcaC0JDKUEfErGdqDxD8iuOOc7nwglz+D4r+P+A1khg3xdBhV1sMozhNyKTdqO0CeT85uonBJGCs2xfrOwpME8QesvOLde84O67QD8LLX+NPE52CE40Te2IMpwjHWVr8C14w4mrxg9J3wN1f0Fk/46PhYuKlRpENAc84CYrvBGOhUaIYf5b4405FSPzVdwc1nOCgBBUIbvfZG06m8kwaNtB2DFa/JyVYOWCdpLKXCPka0LLseBS74VwgBZ9lb5kFH1AOQyw90ckGn9H0Vv81uToMo9EOyVT/PU7q8vPl//3SJXzfP7QAfkoTmZLlJDCL9wZLvdUT9u+0gH4datP/iY94JeY7LxGrfG+wb1EjPOWeHdepQytMXUug1WNtjGpEEYiVfmQE41E78+xeAMrXlsftX6Am4B5d6S8XWs6xkXNYoRHa4jgW9wF3j5d1Uq9q2rnFMXvcsnATWOEptEEyl7Ma4nIjLJeAvi703ghjjlxfloSwoDuGuTyzSUIwUTwNLpHEqn1NBHz3OSqQ2iSM1bhTvAqOk8YOdbPW6/JoKhYZw9F3qyVM3XTtG0/rqIqIt59+lii8Zyg6Z33QidLkHj2CSHm4ss3CxeAvOZggAAAA==">
    <p>Opening Harness…</p>
  </div>
  <script>
    // Flutter fires this on window when its first frame is on screen.
    window.addEventListener('flutter-first-frame', function () {
      var splash = document.getElementById('harness-splash');
      if (splash) splash.remove();
    }, { once: true });
  </script>
  <!-- iOS Safari zooms the page when an input under 16px takes focus, and
       Flutter's hidden editing input takes the terminal's smaller font: a tap
       on the tab menu zoomed the whole app. maximum-scale=1 stops that
       auto-zoom; iOS ignores it for pinch, so zooming by hand still works.
       Flutter swaps in its own viewport tag (maximum-scale=5) at startup, so
       the tag is re-pinned whenever one lands. Other platforms keep Flutter's. -->
  <script>
    (function () {
      var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) ||
        (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
      if (!iOS) return;
      var content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0';
      function pin() {
        document.querySelectorAll('meta[name="viewport"]').forEach(function (meta) {
          if (meta.content !== content) meta.content = content;
        });
      }
      pin();
      new MutationObserver(pin).observe(document.head, { childList: true });
      // The app is one fixed canvas laid out for the screen minus the keyboard (ViewRoom). When
      // the keyboard comes up again after it was dismissed, Safari pans the page to reveal the
      // focused field: the canvas leaves the screen, and the top bar and the message box are
      // gone above blank space. The app never scrolls the page, so any pan is Safari's; put it
      // back at the top, unless the visitor pinch-zoomed and is looking around on purpose.
      var vv = window.visualViewport;
      function unpan() {
        if (vv && vv.scale > 1.01) return;
        var panned = (vv && (vv.offsetTop || vv.offsetLeft)) || window.scrollX || window.scrollY;
        if (panned) window.scrollTo(0, 0);
      }
      window.addEventListener('scroll', unpan);
      if (vv) {
        vv.addEventListener('scroll', unpan);
        vv.addEventListener('resize', unpan);
      }
    })();
  </script>
  <!-- Inline Flutter's generated loader so startup needs no extra script round trip. -->
  <script>{{flutter_bootstrap_js}}</script>
</body>
</html>