r/LocalLLaMA • u/HomoAgens1 • Jun 22 '26
Tutorial | Guide Same model, same prompt, 4 different agents
Setup: one self-hosted Qwen3.6-27B (Q4) on llama.cpp, identical prompt, identical hardware. The only variable is the agent scaffolding. Agents tested: pi, opencode, hermes, qwen code.
Task: a single-file 2D canvas solar system with scripted orbits and gravity that acts only on user-launched comets.
The exact prompt (note the explicit "build incrementally, your context window is small" instruction):
Build a 2D solar system simulation as a self-contained HTML file using <canvas> and vanilla JavaScript (no external libraries).
Scene
- The Sun is fixed at the center of the canvas.
- Several planets orbit the Sun on stable circular/elliptical paths. Planets and the Sun do NOT gravitationally affect each other — their orbits are fixed/scripted, not physically simulated against one another.
- Pure 2D, top-down view. Make the canvas resize to the window.
Gravity model
- The Sun and every planet each have a gravitational mass proportional to their visual radius (bigger body = stronger gravity), matching real-world relative sizes as closely as reasonable.
- This gravity only acts on comets (see below). It does NOT act on the planets or the Sun.
Comets
- The user can launch a comet by clicking and dragging on the canvas: drag direction and length set the comet's initial velocity vector (release to launch).
- Comets ARE affected by the combined gravity of the Sun and all planets (sum of forces), so they curve and can slingshot.
- Each comet draws a fading trail behind it.
- Remove comets when they fly far off-screen.
Controls
- A slider (range input) that scales the gravity strength of ALL bodies up and down proportionally in real time.
Constraints (important — your context window is small):
- Do NOT write one huge file in a single shot. Build it incrementally in small pieces.
- Keep the code compact and readable. Avoid unnecessary comments and verbosity.
- After finishing, tell me the filename so I can open it in a browser.
Results: all 4 produced a working sim, but the code quality differs a lot:
opencode, my pick. Cleanest architecture, mass ∝ radius exactly as asked, and the only one doing sub-stepped integration (×4 per frame) → by far the most stable comet trajectories and slingshots. Reads like a human wrote it. Minor bug: planet-gravity mixes absolute/center-relative coords, but the Sun dominates so you barely notice.
pi, most correct. Coordinate-consistent, distance softening to avoid singularities, removes comets that hit the Sun, planet labels, and the only one with touch support. Less flashy, most robust.
hermes, flashiest, but physically wrong. Only one with real elliptical orbits + a nice drag-vector arrow. But it computes planet gravity on comets at a different time step than it renders the planets, so comets pull toward where the planets aren't. Looks best, simulates worst.
qwen code, most minimal. Shortest, runs, but crude: huge launch-velocity multiplier flings comets off instantly, no softening, no stars.
Takeaway: with a fixed local model, the agent's scaffolding visibly changes the output (integration strategy, coordinate hygiene, edge-case handling). The prettiest demo (hermes) was the buggiest; the plain-looking one (pi) was the most correct; opencode hit the best balance of clean code + stable physics. Curious whether others get the same ranking on their own local setups.




126
u/apetersson Jun 22 '26
I need a null hypothesis, what would be the result 4 times with the SAME agent - how big is the "sigma" of "good-ness" just from randomness
15
u/theOliviaRossi Jun 22 '26
was seed fixed??? that is the only question - let us know, pls
4
u/darwinanim8or Jun 22 '26
What makes you pick open code over Pi if Pi produced the best result ? You don’t really note any negatives about it other than the visualisation being basic
3
u/RKlehm Jun 22 '26
Very interesting experiments... This is something I've planned to do in the future and never actually did.
Have you tried multiple runs with the same agent/harness pair? We all know LLMs have some randomness, and small decisions could snowball. So I would need at least a couple of runs on each harness to "believe" in the results.
4
u/datathe1st Jun 22 '26
I posted this prompt into Fabric: Build a 2D solar system simulation as a self-contained HTML file using <canvas> and vanilla JavaScript (no external libraries). Work in a loop until you cannot think of any way to make the app better. Define better as completely as you can for yourself and feel free to improve on that definition as you continue working on the app.
Used the default model fabric-xlarge (Kimi 2.6 FP8 as of June 22 2026)
2
u/fugogugo Jun 23 '26
harness affect the quality?
2
u/_TheWolfOfWalmart_ Jun 23 '26
Just for fun, I gave this exact prompt to both Gemma 4 26B-A4B QAT and Qwen3.5 122B-A10B in opencode.
This is Gemma's:
Can't post two images in one post, so my reply to this has Qwen's.
Qwen's looks slightly nicer with the soft glow around the sun, but Gemma's comet physics are better. The gravity effect seems to do almost nothing on Qwen's even with the slider at max. I expected more from the 122B model.
41
u/audioen Jun 22 '26
What if I told you that you get all these 4 different examples just from running the same agent 4 times, most likely. Because I've done some of these HTML demo tests and they're usually similar but also completely different, even if it's the same agent executing the same model with literally nothing different, just keep repeating and getting different examples of the same prompt.
The way the model decides to approach the problem is partially determined by random chance, and some early tokens starting out different will have a butterfly effect cascade through the rest of the implementation.
18
u/soyalemujica Jun 22 '26
This looks more like just seed randomness, did you try with all using a static seed value ? 😃
10
u/[deleted] Jun 22 '26
Same model. Same slot machine. I had them pull the lever 4 different ways. Different results when each one pulls it once.
Takeaway:
1
u/selipso Jun 22 '26
Which plugins did you install for Pi?
3
u/_TheWolfOfWalmart_ Jun 22 '26
Cool test prompt, I will probably try it on a few models to see what they make, but I don't think this test as it was performed really can used be used to draw any conclusions about the agents.
3
u/LightBroom Jun 22 '26 edited Jun 22 '26
Try this one too: https://github.com/tontinton/maki
It's generally setup to be as efficient as possible and output minimalistic code with no extra fluff.
Edit: ran it myself.
For funsies I also had GLM 5.2 do it via the same harness. Cost me 10 cents on openrouter, slightly larger files with some comments.
2
u/sooki10 Jun 22 '26
Great test idea
2
u/Client_Hello Jun 23 '26
This test is so simple you can copy/paste this prompt into a google search and the free google AI will generate functional html code in about 2 seconds.
2
u/jopereira Jun 23 '26
That's a nice test, only takes 50s to get it done with 27b IQ3 XXS turbo4/3 (5070ti).
I've tried several combinations (including Gemma 26B) and the only one that didn't work (black screen) was.... 27B Q8 unquantized KV (wtf ?!??!?). A recent post of mine ( https://www.reddit.com/r/LocalLLaMA/comments/1u7b66p/qwen36_27b_quants/ ) takes a new dimension, a case where a better model effecticely gives worst results.
I use reasoning off and no model/combination put stars in background and I prefer it that way - no mention in the prompt, no assumptions, clean result.
Perhaps that's one reason I like to work in instruct mode - do what I need, don't make up things.
1
u/Antoniethebandit Jun 22 '26
Did the same
1
u/no_witty_username Jun 22 '26
Whats the result with Codex? I looked through many agentic harnesses and IMO its the best one so wondering what the output would be?
1
u/ayylmaonade Jun 22 '26
At least use the same seed across all generations.
1
u/South_Hat6094 Jun 23 '26
yeah, one run per harness is basically a demo. i'd want a few repeats with a fixed seed before saying anything about the scaffolding.
1
u/jopetnovo2 Jun 23 '26
Can you try OpenCode with oh-my-openagent and/or oh-my-opencode-slim, I would be really interested in results?
When I use these harnesses, it feels like they supercharge OpenCode, particularly for more complex tasks, at the price of higher token usage.
1
u/datathe1st Jun 23 '26
Qwen 3.6 35B A3B FP8 in Fabric
1
u/jopereira Jun 23 '26
Just a nerd observation.
I find some models/outputs provide bad physics.
When we put a comet on Mercury's orbit with no initial velocity (just a mouse click), I expect something like the picture. On most examples, the comet is slingshoted to outside solar system.
(several clicks on Mercury's orbit, screenshot after about a minute)
1
u/Esph1001 Jun 23 '26
The variance across agents with the same model and prompt is the underappreciated problem in production agentic systems. It's not just interesting to observe — it's a real operational issue. We handle it by running domain-specialized adapters rather than trying to prompt-engineer a general model into different roles. Each adapter has a narrower behavioral envelope which means less variance on the tasks it's trained for. The tradeoff is you need more adapters and the serving infrastructure to run them simultaneously. But for production workflows where consistency matters, the reliability improvement is worth it.
1
u/Future_AGI Jun 23 '26
Most of that variance lives in the scaffolding around the model: tool-call ordering, context truncation, and how each agent renders the system prompt, so it's effectively answering a slightly different question every run. We pin it down by sending the same input 20+ times per agent and scoring outputs against a fixed reference, which turns "feels different" into a consistency number you can compare across all four. We build inspectable eval for exactly this at Future AGI, repo's here if useful: https://github.com/future-agi/future-agi
-4
u/JLeonsarmiento Jun 22 '26
cool, but real test is same agent with different quants.
2
u/[deleted] Jun 23 '26
[removed] — view removed comment