oneshotlm
Compare all models on this prompt →

Force-directed graph · gpt-4o-mini

Output generated Cost / run $0.0010 Runtime 15.3s

Prompt for this run

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 ↗

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-4o-mini
vendorOpenAI
harnesspi-agent
generated2026-07-22

METRICS

runtime15.3s
tokens in3.4k
tokens out1.1k
cached2.2k
cost / run$0.0010
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 (3433 bytes)
toolResult

Successfully wrote 3433 bytes to index.html

assistant

The single-page web app has been created and written to `index.html`. It features an interactive force-directed graph with 40 nodes in clusters, draggable nodes, hover highlighting of neighbors, and zoom/pan capabilities. You can now open `index.html` in a web browser to view and interact with the graph.