<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<meta name="referrer" content="no-referrer">
<title>MemFork · The Brain</title>
<link rel="stylesheet" href="/brain/app.css">
</head>
<body>
<svg class="defs" aria-hidden="true">
<symbol id="i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></symbol>
<symbol id="i-handoff" viewBox="0 0 24 24"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></symbol>
<symbol id="i-tasks" viewBox="0 0 24 24"><path d="m3 17 2 2 4-4"/><path d="m3 7 2 2 4-4"/><path d="M13 6h8"/><path d="M13 12h8"/><path d="M13 18h8"/></symbol>
<symbol id="i-fact" viewBox="0 0 24 24"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="m9 15 2 2 4-4"/></symbol>
<symbol id="i-lesson" viewBox="0 0 24 24"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></symbol>
<symbol id="i-brief" viewBox="0 0 24 24"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/></symbol>
<symbol id="i-attention" viewBox="0 0 24 24"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></symbol>
<symbol id="i-history" viewBox="0 0 24 24"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/></symbol>
<symbol id="i-close" viewBox="0 0 24 24"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></symbol>
<symbol id="i-compare" viewBox="0 0 24 24"><circle cx="18" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><path d="M13 6h3a2 2 0 0 1 2 2v7"/><path d="M11 18H8a2 2 0 0 1-2-2V9"/></symbol>
<symbol id="i-export" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/><path d="M12 15V3"/></symbol>
<symbol id="i-theme" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></symbol>
<symbol id="i-task" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="3"/></symbol>
<symbol id="i-task-done" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="3"/><path d="m8 12 3 3 5-6"/></symbol>
<symbol id="i-autopilot" viewBox="0 0 24 24"><circle cx="6" cy="6" r="3"/><circle cx="18" cy="18" r="3"/><path d="M6 9v3a3 3 0 0 0 3 3h6a3 3 0 0 1 3 3"/><path d="M6 21V9"/></symbol>
</svg>
<div class="stopped" id="stopped" role="alert" hidden>
<b>The server stopped.</b> This page was served by a MemFork daemon that is no longer running. Run <code>memfork brain</code> again for a fresh link. Nothing here updates any more.
</div>
<div class="stopped" id="exported" hidden></div>
<div class="stopped" id="notoken" role="alert" hidden>
<b>No token in this link.</b> The Brain opens from the address <code>memfork brain</code> prints, which carries the daemon's read token after the <code>#</code>. Run it again and open that link.
</div>
<header>
<div class="brand">
<svg width="28" height="28" viewBox="0 0 256 256" aria-hidden="true"><path class="mark-frame" d="M150 68 H90 a22 22 0 0 0 -22 22 V166 a22 22 0 0 0 22 22 H166 a22 22 0 0 0 22 -22 V106"/><g class="mark-fork"><path d="M110 160 V100"/><path d="M110 136 C150 136 158 112 186 72"/></g><g class="mark-dots"><circle cx="110" cy="162" r="12"/><circle cx="110" cy="98" r="12"/><circle cx="190" cy="66" r="13"/></g></svg>
<span>Mem<b>Fork</b></span><span class="brand-sub">the brain</span>
</div>
<div class="search">
<svg class="icon" aria-hidden="true"><use href="#i-search"/></svg>
<input id="q" type="search" placeholder="Search memory the way agents do (ranked, no model)" aria-label="Search memory" autocomplete="off" spellcheck="false">
</div>
<div class="status">
<label class="pick"><span class="sr">Project</span><select id="ns" aria-label="Project"></select></label>
<label class="pick dim"><span class="sr">Branch</span><select id="branch" aria-label="Branch"></select></label>
<span class="dot" id="dot"></span><span id="state">connecting</span> <span class="mono dim" id="port"></span>
</div>
</header>
<section class="hero">
<h1 id="head">0 things your agents did not have to learn twice</h1>
<div class="kpi" id="kpi"></div>
</section>
<div class="lens" id="lens" role="tablist" aria-label="Lens">
<button class="on" data-l="all" role="tab" aria-selected="true">Memory graph</button>
<button data-l="handoff" role="tab" aria-selected="false">Handoffs</button>
<button data-l="plan" role="tab" aria-selected="false">Coordination</button>
<button data-l="fact" role="tab" aria-selected="false">Freshness</button>
<button data-l="lesson" role="tab" aria-selected="false">Dead ends</button>
<button data-l="brief" role="tab" aria-selected="false">Briefings</button>
<button data-l="race" role="tab" aria-selected="false" hidden>Race</button>
<span class="r" id="perf">first paint · 0 nodes · 60 fps</span>
</div>
<div id="stage" tabindex="0" aria-label="The memory graph. Arrow keys move between nodes, Enter opens one, Escape closes." role="application">
<canvas id="under" aria-hidden="true"></canvas>
<canvas id="over" aria-hidden="true"></canvas>
<div class="tip" id="tip" role="status"></div>
<div class="narrow-note" id="narrow" hidden>On a narrow screen the graph shows the current lens only.</div>
</div>
<div class="tl">
<svg class="icon" aria-hidden="true"><use href="#i-history"/></svg>
<span>genesis</span>
<input type="range" id="scrub" min="0" max="0" value="0" aria-label="Time travel, read only">
<span class="past" id="past">now · drag to see the past, read only</span>
</div>
<div class="panels">
<section><h2><svg class="icon" aria-hidden="true"><use href="#i-handoff"/></svg>Handoffs</h2><div id="hand" class="empty">No handoff yet.</div></section>
<section><h2><svg class="icon" aria-hidden="true"><use href="#i-tasks"/></svg>Coordination</h2><div id="coord" class="empty">No tasks yet.</div></section>
<section><h2><svg class="icon" aria-hidden="true"><use href="#i-fact"/></svg>Freshness</h2><div id="facts" class="empty">No facts yet.</div></section>
<section><h2><svg class="icon" aria-hidden="true"><use href="#i-lesson"/></svg>Dead ends</h2><div id="less" class="empty">No lessons yet. A discarded fork can leave one.</div></section>
<section><h2><svg class="icon" aria-hidden="true"><use href="#i-brief"/></svg>Briefings served</h2><div id="briefs" class="empty">None yet.</div></section>
<section><h2><svg class="icon" aria-hidden="true"><use href="#i-autopilot"/></svg>Autopilot</h2><div id="auto" class="empty">Nothing yet. Autopilot is off until a repository switches it on.</div></section>
<section><h2><svg class="icon" aria-hidden="true"><use href="#i-attention"/></svg>Attention</h2><div id="attn" class="empty">Nothing needs attention.</div></section>
</div>
<div class="tools">
<button id="compare" class="quiet"><svg class="icon" aria-hidden="true"><use href="#i-compare"/></svg>Compare branches</button>
<button id="export" class="quiet"><svg class="icon" aria-hidden="true"><use href="#i-export"/></svg>Export this view</button>
<button id="theme" class="quiet" aria-pressed="false"><svg class="icon" aria-hidden="true"><use href="#i-theme"/></svg>Light theme</button>
</div>
<div class="foot" id="foot">
<span id="foot-store"></span>
<span id="foot-policy"></span>
<span id="foot-build"></span>
<span>read only · time travel is the only control · nothing here changes memory</span>
<span class="r">127.0.0.1 only · nothing leaves this machine</span>
</div>
<div class="sheet" id="sheet" role="dialog" aria-modal="false" aria-labelledby="sheet-title" hidden>
<button id="sx" class="close" aria-label="Close"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button>
<div id="sc"></div>
</div>
<script src="/brain/app.js"></script>
</body>
</html>