Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

docs: round README image corners with transparent exports

Rach Pradhanbaa8e513fc84
diff --git a/README.md b/README.md
index 3264806f..4199d1ad 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<p align="center">
- <img src="docs/images/readme-workshop.jpg" alt="The CodeGraff workshop: a crew of rats in coral coats coordinating work. Small crew. Real work." width="960">
+ <img src="docs/images/readme-workshop.png" alt="The CodeGraff workshop: a crew of rats in coral coats coordinating work. Small crew. Real work." width="960">
</p>
<h1 align="center">graff</h1>
@@ -46,14 +46,14 @@ macOS window controls and SwiftUI Activity and computer-use panels. Coding
continues in `graff acp`; the window is a client of the same harness used by
the terminal.
-[![CodeGraff's dark desktop, framed in cobalt with workshop artwork](docs/images/desktop-chat-studio.jpg)](docs/images/desktop-chat-dark.png)
+[![CodeGraff's dark desktop, framed in cobalt with workshop artwork](docs/images/desktop-chat-studio.png)](docs/images/desktop-chat-dark.png)
Chat tabs, searchable model selection, effort and fast controls, collapsed tool
activity, and explicit working/finished/interrupted states keep the conversation
readable. Appearance includes White, Black, Website and the official CodeGraff
palette. Mention `$gui-theme` or `@gui-theme` in the GUI to create a custom theme.
-[![CodeGraff Agents panel with local peers and a handoff request, on warm paper with the workshop crew](docs/images/desktop-agents-studio.jpg)](docs/images/desktop-agents-codegraff.png)
+[![CodeGraff Agents panel with local peers and a handoff request, on warm paper with the workshop crew](docs/images/desktop-agents-studio.png)](docs/images/desktop-agents-codegraff.png)
**Agents** brings Graff-to-Graff coordination into the GUI. See sessions in the
current workspace or across the laptop, their published tasks and activity,
@@ -63,7 +63,7 @@ history does not consume their inbox. The optional profiler records anonymous
per-agent resource measurements, with identities and message contents excluded
from feedback exports. See the [Agents guide](docs/agents-panel.md).
-[![CodeGraff's resizable Changes panel beside the conversation, framed in coral with a rat reviewing a proof](docs/images/desktop-review-studio.jpg)](docs/images/desktop-review-codegraff.png)
+[![CodeGraff's resizable Changes panel beside the conversation, framed in coral with a rat reviewing a proof](docs/images/desktop-review-studio.png)](docs/images/desktop-review-codegraff.png)
**Changes** shows local staged, unstaged and untracked edits, diffs, worktrees
and recent commits. Drag its divider to give the review more room. The browser
@@ -148,7 +148,7 @@ stays on (ADR 0031). We do not steal grok-build's heap or a 4-tool catalog
(ADR 0024).
<p align="center">
- <img src="docs/images/readme-context-workshop.jpg" alt="A workshop rat examines a proof: stable context, small programs, and focused results keep useful context in the harness" width="960">
+ <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">
</p>
## Install
diff --git a/docs/images/desktop-agents-studio.jpg b/docs/images/desktop-agents-studio.jpg
deleted file mode 100644
index 93611013..00000000
Binary files a/docs/images/desktop-agents-studio.jpg and /dev/null differ
diff --git a/docs/images/desktop-agents-studio.png b/docs/images/desktop-agents-studio.png
new file mode 100644
index 00000000..9f07deb3
Binary files /dev/null and b/docs/images/desktop-agents-studio.png differ
diff --git a/docs/images/desktop-chat-studio.jpg b/docs/images/desktop-chat-studio.jpg
deleted file mode 100644
index 46470be7..00000000
Binary files a/docs/images/desktop-chat-studio.jpg and /dev/null differ
diff --git a/docs/images/desktop-chat-studio.png b/docs/images/desktop-chat-studio.png
new file mode 100644
index 00000000..47391bd1
Binary files /dev/null and b/docs/images/desktop-chat-studio.png differ
diff --git a/docs/images/desktop-review-studio.jpg b/docs/images/desktop-review-studio.jpg
deleted file mode 100644
index 890a66bf..00000000
Binary files a/docs/images/desktop-review-studio.jpg and /dev/null differ
diff --git a/docs/images/desktop-review-studio.png b/docs/images/desktop-review-studio.png
new file mode 100644
index 00000000..dc67cccd
Binary files /dev/null and b/docs/images/desktop-review-studio.png differ
diff --git a/docs/images/readme-context-workshop.jpg b/docs/images/readme-context-workshop.jpg
deleted file mode 100644
index 1831b8c3..00000000
Binary files a/docs/images/readme-context-workshop.jpg and /dev/null differ
diff --git a/docs/images/readme-context-workshop.png b/docs/images/readme-context-workshop.png
new file mode 100644
index 00000000..ed4383e1
Binary files /dev/null and b/docs/images/readme-context-workshop.png differ
diff --git a/docs/images/readme-workshop.jpg b/docs/images/readme-workshop.jpg
deleted file mode 100644
index 0a5622d0..00000000
Binary files a/docs/images/readme-workshop.jpg and /dev/null differ
diff --git a/docs/images/readme-workshop.png b/docs/images/readme-workshop.png
new file mode 100644
index 00000000..80fedd8c
Binary files /dev/null and b/docs/images/readme-workshop.png differ
diff --git a/docs/media/README.md b/docs/media/README.md
index 6f1a99f8..2b2f86d3 100644
--- a/docs/media/README.md
+++ b/docs/media/README.md
@@ -16,7 +16,9 @@ apps/native/node_modules/.bin/electron docs/media/render-readme.cjs
```
The renderer uses a temporary Electron profile, blocks network requests, waits
-for fonts and images, checks viewport bounds, and writes JPEGs into `docs/images`.
+for fonts and images, checks viewport bounds, and writes PNGs into `docs/images`.
+The outer corners have a 48-pixel radius and transparent pixels, so they blend
+into either GitHub theme. Export checks verify all four corners are transparent.
Exports have a fixed width of 1920 pixels on both standard and Retina displays.
`readme-plates.cjs` owns the copy, artwork selection, and source screenshot paths;
diff --git a/docs/media/readme-plates.css b/docs/media/readme-plates.css
index e3f6044e..48a04577 100644
--- a/docs/media/readme-plates.css
+++ b/docs/media/readme-plates.css
@@ -1,7 +1,7 @@
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Body, -apple-system, sans-serif; color: #1b1714; }
-main { width: 1920px; height: 1530px; position: relative; overflow: hidden; background: #f6eedf; }
+main { width: 1920px; height: 1530px; position: relative; overflow: hidden; border-radius: 48px; background: #f6eedf; }
.grain { position: absolute; inset: 0; opacity: .17; pointer-events: none; mix-blend-mode: multiply; z-index: 1; }
.brand { position: absolute; left: 84px; top: 56px; right: 84px; display: flex; align-items: center; gap: 13px; font-size: 28px; letter-spacing: -.5px; z-index: 3; }
.brand svg { width: 34px; height: 34px; }
diff --git a/docs/media/render-readme.cjs b/docs/media/render-readme.cjs
index ec1a0688..9470dfbc 100644
--- a/docs/media/render-readme.cjs
+++ b/docs/media/render-readme.cjs
@@ -11,7 +11,7 @@ app.commandLine.appendSwitch('force-device-scale-factor', '1');
let win;
const output = path.resolve(__dirname, '../images');
app.whenReady().then(async () => {
- win = new BrowserWindow({ show:false, width:1920, height:1530, useContentSize:true, webPreferences:{ sandbox:true, contextIsolation:true, nodeIntegration:false, backgroundThrottling:false } });
+ win = new BrowserWindow({ show:false, frame:false, transparent:true, backgroundColor:'#00000000', width:1920, height:1530, useContentSize:true, webPreferences:{ sandbox:true, contextIsolation:true, nodeIntegration:false, backgroundThrottling:false } });
win.webContents.session.webRequest.onBeforeRequest((details, callback) => callback({cancel: /^https?:/.test(details.url)}));
for (const plate of plates) {
win.setContentSize(plate.width, plate.height);
@@ -23,8 +23,15 @@ app.whenReady().then(async () => {
const capture = await win.webContents.capturePage();
// Normalize Retina captures so export size is independent of the display.
const frame = capture.resize({width:plate.width,height:plate.height,quality:'best'});
- const file = path.join(output, `${plate.name}.jpg`);
- fs.writeFileSync(file, frame.toJPEG(94));
+ // Keep corners transparent on both light and dark README backgrounds.
+ const pixels = frame.toBitmap();
+ const alpha = (x, y) => pixels[(y * plate.width + x) * 4 + 3];
+ for (const x of [0, plate.width - 1]) {
+ for (const y of [0, plate.height - 1]) assert.equal(alpha(x, y), 0);
+ }
+ assert.equal(alpha(plate.width / 2, plate.height / 2), 255);
+ const file = path.join(output, `${plate.name}.png`);
+ fs.writeFileSync(file, frame.toPNG());
console.log(`${plate.name}: ${frame.getSize().width}×${frame.getSize().height}, ${Math.round(fs.statSync(file).size/1024)} KiB`);
}
}).then(()=>finish(0)).catch(error=>{console.error(error);finish(1)});