oneshotlm
Compare all models on this prompt →

L-system tree · claude-opus-5

Output saved · Stopped by an API error Cost / run $0.2446 Runtime 107.2s

A model request failed and its retries ran out. The output is the HTML saved before that.

Prompt for this run

Using the pre-provided p5.min.js (global p5), grow a procedural L-system fractal tree that branches recursively and sways gently in the wind.

⛨ 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

modelclaude-opus-5
vendorAnthropic · Claude
harnesspi-agent
generated2026-08-03

METRICS

runtime107.2s
tokens in5.0k
tokens out9.4k
cached3.6k
cost / run$0.2446
Transcript · 6 messages
user

Using the pre-provided p5.min.js (global p5), grow a procedural L-system fractal tree that branches recursively and sways gently in the wind.

assistant

I'll build an L-system tree with p5.js that grows procedurally and sways in the wind.

→ bash {"command":"ls -la /tmp/ws"}
toolResult

total 1012 drwxr-sr-x. 2 node node 23 Aug 3 00:22 . drwxrwsrwx. 3 root node 16 Aug 3 00:22 .. -rw-r--r--. 1 node node 1034532 Aug 3 00:22 p5.min.js

assistant
thinking
I'm building an interactive L-system tree visualization where string generation rules expand into segments, each tracked with parent, depth, and angle data. The animation reveals branches progressively as growth unfolds, with sway applied per-node using noise offsets that shift angles over time, and leaves bloom at the branch tips. I'll set up turtle graphics interpretation to build the tree structure from the root, then each frame recalculate world positions by applying the base angle plus dynamic sway. Writing the rendering and animation logic... Since nodes are constructed in parent-before-children order, a single forward pass handles all position updates. Leaves appear at tips and on high-depth nodes, while the growth animation staggeres each node's appearance based on its depth, drawing only the fraction of its segment that's currently grown in.
→ write /tmp/ws/index.html (15808 bytes)
toolResult

Successfully wrote 15808 bytes to /tmp/ws/index.html

assistant