oneshotlm
Compare all models on this prompt →

Force-directed graph · glm-5.3

Using the pre-provided d3.min.js (global d3), render an interactive force-directed graph of about 40 nodes in several clusters with draggable nodes, hover highlighting of neighbors, and zoom/pan. Define the sample nodes and links inline.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Using the pre-provided d3.min.js (global d3), render an interactive force-directed graph of about 40 nodes in several clusters with draggable nodes, hover highlighting of neighbors, and zoom/pan. Define the sample nodes and links inline.

assistant
write /tmp/job-4uYlwC/index.html (5216 bytes)
toolResult

Successfully wrote 5216 bytes to /tmp/job-4uYlwC/index.html

assistant
bash {"command":"ls -la /tmp/job-4uYlwC/"}
toolResult

total 308 drwx------ 2 node node 4096 Aug 27 00:50 . drwxrwxrwt 4 root root 4096 Aug 27 00:50 .. -rw-r--r-- 1 node node 279706 Aug 27 00:50 d3.min.js -rw-r--r-- 1 node node 14105 Aug 27 00:50 events.jsonl -rw-r--r-- 1 node node 5219 Aug 27 00:50 index.html

assistant
thinking
The html selects "svg" before it exists — I wrote a check but the <svg> element isn't in HTML. Fix: d3.select("svg").node() is null so it falls back to append. Fine.

Done — `index.html` is written. It uses the local `d3.min.js` and includes: - **40 nodes in 5 clusters** (Engineering, Design, Research, Data, Product), color-coded, with ring + random intra-cluster links and inter-cluster bridges - **Draggable nodes** via `d3.drag` (freezes node with `fx/fy`, reheats simulation) - **Hover highlighting**: hovering a node dims all non-neighbors and highlights its incident edges - **Zoom/pan** via `d3.zoom` with scale extent 0.2–8, dragging background to pan - Labels with outlines for readability, all CSS/JS inline in one self-contained file

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelglm-5.3
vendorZ.ai · GLM
harnesspi-agent
generated2026-08-27

EVALUATION

1/5 broken

Blank dark screen with only faint instructional text; d3 failed to load, so no graph rendered at all.

off-prompt

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.0%
frame spread2 / 255
console errors1
js errors
  • d3 is not defined

METRICS

runtime27.3s
tokens in8.4k
tokens out2.0k
cached3.6k
cost / run$0.0166