oneshotlm
Compare all models on this prompt →

L-system tree · llama-3.1-8b-instruct

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.

⚠ no runnable output

This one-shot run produced no runnable artifact.

agent produced no index.html

The transcript below shows what the model did — read it to see why the one shot fell short.

transcript · 2 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

<write>{"content":"<html><head><script src=\"p5.min.js\"></script><style>/* Procedural L-system fractal tree with gentle sway */.tree { fill: #8B4513; stroke: #964B00; stroke-width: 3px; }</style></head><body><script>p5(function(sketch) {var tree = sketch.createGraphics(400, 600); var wind = 0;var angle = 25; var axiom = \"F-\"; var rules = {"F": "FF+[-F+FT+F]F[-F+FT+F]" }; var generations = 5;var scale = 1.6; sketch.setup = function() { sketch.createCanvas(640, 480); sketch.frameRate(15); } sketch.draw = function() { wind += 0.5; sketch.background(135,206,235); sketch.push(); sketch.translate(width/2, height); sketch.rotate(radians(wind)); sketch.applyRules(axiom, rules, generations); sketch.translate(-tree.width/2, -tree.height); sketch.drawTree(tree, scale, angle); sketch.pop(); } function drawTree(x, branchLen, angle) { if (branchLen < 4) return; let newBranches = []; let a1 = createVector(x.x, x.y); let a2 = a1.copy(); a2.rotate(radians(-angle)); if (branchLen > 8) { newBranches.push(new Point(a2.x, a2.y, 0.7 * branchLen)); newBranches.push(new Point(a1.x, a1.y, 0.7 * branchLen)); } newBranches.push(new Point(x.x, x.y, branchLen)); for (let br of newBranches) { drawBranch(br); } } function applyRules(axiom, rules, generations) { let result = axiom; for (let i = 0; i < generations; i++) { for (let char in rules) { let rule = rules[char]; result = result.replace(new RegExp(char, 'g'), rule); } } return result; } function drawBranch(br) { tree.fill(135,206,235); tree.triangle(br.x-7,br.y, br.x, br.y-12, br.x+7, br.y); tree.stroke(8B4513); tree.strokeWeight(2); tree.line(br.x,br.y,br.x+10,br.y); } function Point(x, y, branchLen) { this.x = x; this.y = y; this.branchLen = branchLen; } });</script></body></html>","path":"/tmp/ws/index.html"}</write>

TAKE IT TO CODE

This run produced no artifact — reuse the prompt with a different model or your own pi-agent run.

RUN

modelllama-3.1-8b-instruct
vendorMeta · Llama
harnesspi-agent
generated2026-08-01

METRICS

runtime3.3s
tokens in1.7k
tokens out618
cached0
cost / run$0.0001