oneshotlm
Compare all models on this prompt →

Force-directed graph · gpt-4.1-mini

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

I will create a self-contained index.html with inline CSS and JS using d3.min.js (already available) to render an interactive force-directed graph with about 40 nodes clustered, draggable nodes, neighbor highlighting on hover, and zoom/pan. Let's proceed.

write index.html (6011 bytes)
toolResult

Successfully wrote 6011 bytes to index.html

assistant

The file index.html has been created with an interactive force-directed graph of about 40 nodes in 4 clusters using d3.min.js. It supports draggable nodes, neighbor highlighting on hover, and zoom/pan. Open index.html in a modern browser to see and interact with the graph.

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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Force-directed graph with colored clusters renders; drag pans/moves nodes and wheel zooms, but click/keyboard show no change.

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.2%
on click0.0%
on drag5.5%
on wheel5.6%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread11.2 / 255
console errors0
js errors none

METRICS

runtime29.3s
tokens in4.6k
tokens out2.3k
cached1.2k
cost / run$0.0051