oneshotlm
Compare all models on this prompt →

Force-directed graph · gemini-3.1-flash-lite

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
thinking
**Initiating Web App Design**

I'm starting a single-page web application project with an `index.html` file. The core feature will be an interactive, force-directed graph with about 40 nodes, grouped into several clusters. I plan to make the nodes draggable, implement hover highlighting for neighbors, and include zoom/pan functionality. The work is self-constrained.


bash {"command":"ls -F"}
toolResult

d3.min.js

assistant
write index.html (4340 bytes)
toolResult

Successfully wrote 4340 bytes to index.html

assistant

The interactive force-directed graph application has been created in `index.html`. It uses the local `d3.min.js`, renders 40 nodes divided into 4 clusters, supports pan/zoom, allows individual nodes to be dragged, and highlights connected neighbors on hover. You can now open `index.html` in any modern web browser to interact with the visualization.

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

modelgemini-3.1-flash-lite
vendorGoogle
harnesspi-agent
generated2026-07-22

EVALUATION

3/5 partial

Force-directed graph with colored clusters renders and drifts via physics; drag zooms into a cluster, but click/wheel/keys show no clear effect.

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 motion3.9%
on click0.0%
on drag3.8%
on wheel2.8%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread10.7 / 255
console errors0
js errors none

METRICS

runtime8.8s
tokens in6.8k
tokens out1.9k
cached0
cost / run$0.0046