oneshotlm
Compare all models on this prompt →

Force-directed graph · mistral-large-2512

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 · 4 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 index.html (9026 bytes)
toolResult

Successfully wrote 9026 bytes to index.html

assistant

The interactive force-directed graph is now available in `/tmp/ws/index.html`. It includes: - **40 nodes** in 5 color-coded clusters - **Draggable nodes** (drag to move, release to let physics take over) - **Hover highlighting** (neighbors and connecting links turn red) - **Zoom/pan** (mouse wheel to zoom, click+drag to pan) - **Responsive** (resizes with the window) - **Self-contained** (no external resources, runs offline)

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

modelmistral-large-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Force-directed clustered graph renders and pans/drags with mouse, but keyboard input causes blank frames and graph is tiny.

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 motion2.1%
on click0.0%
on drag6.0%
on wheel2.9%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread11.6 / 255
console errors0
js errors none

METRICS

runtime37.3s
tokens in5.8k
tokens out2.9k
cached1.5k
cost / run$0.0066