graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
docs: improve context illustration layout and reading flow
Rach Pradhan4c16461a5f84
diff --git a/README.md b/README.mdindex 4199d1ad..92fb993e 100644--- a/README.md+++ b/README.md@@ -140,12 +140,9 @@ mark, not first model SSE. RSS is ReleaseSafe process peak.)On the 3-task spine (exact-reply + file-ops + fix-fib) graff was **19.9s /8 calls / $0.048** vs grok 32.3s / 8 / $0.147 and OpenCode 31.2s / 8 / $0.101.-How: a stable prompt-cache prefix, an RLM + spec-ptc loop that programs over-context instead of pasting it back, and slim tool results (4 KB handles,-learnt MCP shapes). The learn pin is a **hardlink**, not a 127M copy, and-`learn init` is detached so `-p` and the REPL share one path. Hosted `x_search`-stays on (ADR 0031). We do not steal grok-build's heap or a 4-tool catalog-(ADR 0024).+Graff carries context through three steps: reuse the stable setup, run small+programs over the working context, and return focused results. That keeps the+next step supplied with useful information while reducing repeated input.<p align="center"><img src="docs/images/readme-context-workshop.png" alt="A workshop rat examines a proof: stable context, small programs, and focused results keep useful context in the harness" width="960">diff --git a/docs/images/readme-context-workshop.png b/docs/images/readme-context-workshop.pngindex ed4383e1..dacd46ea 100644Binary files a/docs/images/readme-context-workshop.png and b/docs/images/readme-context-workshop.png differdiff --git a/docs/media/readme-plates.cjs b/docs/media/readme-plates.cjsindex 448f2204..a7e52553 100644--- a/docs/media/readme-plates.cjs+++ b/docs/media/readme-plates.cjs@@ -28,7 +28,7 @@ module.exports = [{ name: 'desktop-chat-studio', width: 1920, height: 1530, html: () => screen({ id:'01', title:'A place to do the work.', note:'A clear conversation. Your tools close at hand.', label:'THE WORKSPACE', file:'chat-dark', artName:'run', theme:'night' }) },{ name: 'desktop-agents-studio', width: 1920, height: 1530, html: () => screen({ id:'02', title:'Many hands. One workspace.', note:'See the crew. Share context. Pass the work along.', label:'AGENT COORDINATION', file:'agents-codegraff', artName:'agents', theme:'warm' }) },{ name: 'desktop-review-studio', width: 1920, height: 1530, html: () => screen({ id:'03', title:'Room for a closer look.', note:'Keep the conversation beside the changes.', label:'CHANGES & REVIEW', file:'review-codegraff', artName:'review', theme:'coral' }) },- { name: 'readme-context-workshop', width:1920, height:1060, html: () => page(`${brand('INSIDE THE HARNESS')}- <div class="loop-art"><img src="${art('review')}" /></div><div class="loop-copy"><div class="eyebrow">CONTEXT, WITH CARE</div><h1>Keep the useful.<br>Leave the noise.</h1><ol><li><b>01</b><div><strong>Stable context</strong><p>Keep reusable instructions in the cache prefix.</p></div></li><li><b>02</b><div><strong>Small programs</strong><p>Work over context and coordinate tool calls.</p></div></li><li><b>03</b><div><strong>Focused results</strong><p>Bring back what the next step needs.</p></div></li></ol></div>+ { name: 'readme-context-workshop', width:1920, height:920, html: () => page(`${brand('INSIDE THE HARNESS')}+ <div class="loop-art"><img src="${art('review')}" /></div><div class="loop-copy"><div class="eyebrow">HOW CONTEXT MOVES THROUGH GRAFF</div><h1>Context that stays useful.</h1><ol><li><b>01</b><div><strong>Reuse the setup</strong><p>Keep stable instructions ready for the next step.</p></div></li><li><b>02</b><div><strong>Work with the context</strong><p>Run small programs and coordinate tool calls.</p></div></li><li><b>03</b><div><strong>Carry the result forward</strong><p>Return the information the next step needs.</p></div></li></ol></div><div class="hero-bottom">THE GRAFF WORKSHOP <span>CONTEXT → TOOLS → RESULTS</span></div>`, 'loop') },];diff --git a/docs/media/readme-plates.css b/docs/media/readme-plates.cssindex 48a04577..48b271da 100644--- a/docs/media/readme-plates.css+++ b/docs/media/readme-plates.css@@ -34,9 +34,11 @@ footer { position: absolute; left: 84px; right: 84px; bottom: 43px; display: fle.hero-art { position:absolute; top: 0; right: 0; width: 980px; height: 964px; overflow:hidden; border-left: 8px solid #d45a43; }.hero-art img { width:100%; height:100%; object-fit:cover; object-position:51% 50%; }.hero-bottom { position:absolute; left:84px; bottom:30px; right:84px; display:flex; justify-content:space-between; font: 14px ui-monospace, monospace; letter-spacing:3px; }-.loop { height:1060px; }.loop .brand small { display:none; }-.loop-art { position:absolute; left:0; top:137px; bottom:82px; width:875px; overflow:hidden; }+.loop { height:920px; }.loop .brand small { display:none; }+.loop-art { position:absolute; left:84px; top:150px; bottom:88px; width:704px; overflow:hidden; border-radius:28px; }.loop-art img { width:100%; height:100%; object-fit:cover; object-position:30% center; }-.loop-copy { position:absolute; left:960px; top:164px; width:865px; }.loop-copy h1 { font-size:82px; margin:25px 0 45px; }-.loop-copy ol { list-style:none; margin:0; padding:0; }.loop-copy li { display:flex; gap:26px; border-top:1px solid #1b171426; padding:25px 0; }-.loop-copy li b { color:#c5533d; font:16px ui-monospace,monospace; margin-top:9px; }.loop-copy strong { font: 32px Display, sans-serif; }.loop-copy p { font-size:24px; color:#736557; margin:12px 0 0; line-height:1.4; }+.loop-copy { position:absolute; left:860px; top:170px; width:976px; }.loop-copy h1 { font-size:64px; letter-spacing:-2px; margin:25px 0 40px; }+.loop-copy ol { list-style:none; margin:0; padding:0; }.loop-copy li { display:flex; align-items:flex-start; gap:26px; padding:24px 0; position:relative; }+.loop-copy li:not(:last-child)::after { content:''; position:absolute; left:23px; top:76px; bottom:-12px; width:1px; background:#d9caba; }+.loop-copy li b { color:#ad4937; background:#ecdfce; border-radius:50%; width:48px; height:48px; display:grid; place-items:center; flex-shrink:0; font:16px ui-monospace,monospace; }+.loop-copy strong { font:32px Display,sans-serif; }.loop-copy p { font-size:24px; color:#736557; margin:12px 0 0; line-height:1.4; }