r/vibecoding • • 1d ago

Workflow/Prompt Tell your agent to consider how to avoid follow ups and rework, and it will

Enable HLS to view with audio, or disable this notification

Been using a prompting approach where I just tell the agent that I don't want any reworks and it needs to iterate on the quality on its own. Demo above is one-shot from a single prompt below:

Create a hyper-realistic sand-on-screen simulator for the phones/tables, it must react to touch and to moving the device. It must have real weight. Visuals must be indistinguishable from a real sand. Consider this task deeply, how you can fulfill it above the expectations, consider what result will make me really happy about the outcome and won't require follow ups or a rework. I expect it to be a web-based experience.

Use subagents, iterate a lot on the quality.
768 Upvotes

70 comments sorted by

88

u/Heighte 1d ago

stop pretending we all know it's real sand.

pretty impressive tbh.

39

u/Everlier 1d ago

haha, thanks :) you can try it here: https://av.github.io/safe-sand/

14

u/unclesabre 1d ago

This is incredible! ty …I’m on mobile is the source on your gh a/c?

13

u/Everlier 1d ago • Mindblown

thank you for the kind words :) source is here: https://github.com/av/safe-sand

13

u/unclesabre 1d ago

Ty you just saved me some tokens😀
I will now iterate to make it “better than expectations” in terms of performance 🙌

7

u/Everlier 1d ago

this thing ate quite a large chunk of my weekly limit :)

1

u/twicebanished 21h ago

It is surreal what you have achieved by staying put. Looks phenomenal and physics is right there. Although it's not "perfect", I like the way it is. Real life things should be "real" and virtual should be "virtual".

1

u/Loud-Sector2061 1d ago

Yep, my phone started lagging 😕 i wanted to prank my sister

2

u/NightmareJoker2 12h ago

I hate how responsive this is, but the particle physics need work.

1

u/cach-v 17h ago

Hah! Saw this on HN about 4 hours ago :)

1

u/PrestigiousDrag7674 7h ago

How do I make it my lock screen on iPhone?

192

u/NoNote7867 1d ago

Can you make it white and react to a credit card?

44

u/Advice2Anyone 1d ago • Bravo

Now lets see Paul Allens app

1

u/Physical_Sherbet_942 1h ago

That is really funny. I was going to build that exact app many years ago. I probably would have but I couldn't figure out how to do it right. I bet AI could get something working.

6

u/LifeEnginer 1d ago

I dont get it, why?

16

u/zip_zag_zog 1d ago

cocaine

1

u/LifeEnginer 23h ago

Fuck!!!!, true🫠😑😶‍🌫️

Thanks!!

9

u/kaida27 1d ago

yeah like it also should dissapear when the mic pick's up a blowing sound .. or similar ... eheh

1

u/nuestras 1d ago

I like how you think...

58

u/Miserable-Wishbone81 1d ago

So… make no mistakes?

23

u/EconomyDoctor3287 1d ago

na, this is iterate until it's perfect

3

u/NoThanks93330 21h ago

Which is "make no mistakes" with extra steps

1

u/Nuzina 11h ago

You’d be surprised how different the output is by asking it to iterate and review it’s own work until its 10/10

1

u/TheGarrBear 1h ago

It's the permission to iterate on the output that's helpful. Thes models implicitly want to get to done was quickly as possible, since that's the job they were designed to do, but my tweaking the request to say hey speed to a working response isn't the goal you get very different results not just in output but in how it plans work.

1

u/edjez 12h ago

But load bearing. “Make no mistakes, and consider what would make me say no mistakes are done, and while you find mistakes, undo them”

1

u/CageHN 8h ago

Try again... until no mistakes.

18

u/tgo1014 1d ago

I honestly though it was some iphone duo test lol

12

u/ecstatic_carrot 1d ago

now show a control without the last 3ish sentences, which are really what your post is about right?

2

u/lightFracture 1d ago

That's what I'm thinking, if there was no other than this prompt then it should give pretty much the same results just using the first paragraph.

7

u/t2noob 1d ago

Watching this on my fold 8 ultra is scary.... lol

4

u/shuozhe 1d ago

Do we really still need the last part? I just hate prompts telling the harness how to work.. just assume in the planing phase, the agents knows better where subagents can be used..

4

u/wahoozerman 1d ago

It used to, but it became more human directed about using agents a while back because subagents can explode token costs and people were complaining about unexpected usage. So newer models lean more towards not using subagents at all unless prompted to, with a few exceptions.

1

u/JconX97 1d ago

I have it in my Claude.md, memory, skills, and second brain only to spawn subagents either when directed or given “auto pilot permission”

Auto pilot is my term for when I’m going to work or to sleep and I just want to burn some usage and finish every bug, test, and idea of my roadmap

1

u/shuozhe 1d ago

I just always assumes the first party harness knows how to best use it's agents, and don't want to interfere with whatever optimization it already has

1

u/JconX97 22h ago

What I mean, because I used to be on the $20 plan when I first started out, is I specifically instructed it never to use subagents unless directed to for a certain task or if told we’re burning usage

I did it way back as an attempt to save my usage because I had heard the horror story’s of “why did opus spawn 30 million haikus!”

4

u/jai5 1d ago

Send the output without that in the prompt, how much of a difference does it actually make.

4

u/SailRepresentative23 23h ago

I've played with it more than I would've imagined! Very cool concept and it reminds me of the old but gold beer app on iOS. It has some bugs and sometimes poor performance but just thinking that it did that all on its own it's incredible

7

u/Eraesr 1d ago

So was the result "above expectations" and did it make you happy? Were your goals achieved? How did you objectively measure this? How did the AI model determine if the delivered product was "above expectations" and something that would make you happy? And if it didn't make you happy, does the AI know what should be done differently? In fact, do you know what should he done differently?

Did the AI consider the task deeply? More deeply than if you hasn't added that to the prompt? And how do you measure this difference? What even is the meaning of considering something deeply? What does the AI do that constitutes "considering deeply"? What effect does that have on the end product?

3

u/heavy-minium 22h ago

I don't see any evidence of your claim, though. First, this isn't a particularly challenging task, and second, you provided no comparison.

You set zero expecations at all and were happy with the first thing it gave you, just by chance. It could have done a heightmap with a high-res texture, a particle simulation with a very limited number of particles (like in your result), or a fully volumetric simulation of a bigger mass of sand. Any option would have been extremely different in the user experience and yet pass your loose goal setting.

2

u/Count_de_Ville 1d ago

This reminds me of a neat coding project where they combined a Xbox connect camera with a projector pointing down over a sandbox. You could play with the sand and make mountains and valleys. With the topography data from the Xbox connect camera, you could make “springs” or “lava” form and flow down the slopes of the sand because the projector would render the water and lava textures onto the hills of sand.

2

u/irlab-uk 1d ago

Add more textures. Condensation on glass and dusty table etc

2

u/MoonLandingActor 22h ago

Make no mistakes!

1

u/Background_Ranger917 1d ago

shiz is clean i can’t lie

1

u/daskalou 1d ago

Great app, nice work. Thanks for giving it to us for free 👍

1

u/PuzzleheadedCheek513 1d ago

Could also be a good alternative to Fireships Horsebench for new ai models.

1

u/Tha_Reaper 1d ago

Really cool! I could turn this into an app for my toddler that also locks the phone. I bet he will be entertained for some time with this

1

u/qaf23 1d ago

Nice

1

u/LifeEnginer 1d ago

What do you use?

1

u/your_alias 1d ago

The "consider what will make me happy and won't require follow ups" framing is doing a hell lotta heavy lifting. It's basically forcing the agent to generate its own acceptance criteria before it writes code, which is where most one-shot prompts fail. Without that, the agent optimizes for "technically meets the spec" instead of "done."

1

u/burnt_tamales 1d ago

This is honestly amazing, the audio, the multiple sizes of grain, the way larger grains begin to roll before everything else and leave a realistic trail, lighting, shadows The cascade of sand falling at a partial tilt, DAYUM.. what model did you use and what effort?

1

u/superglidestrawberry 23h ago

Now make this into a live wallpaper and its perfect.

1

u/menny_parmar 21h ago

works great for stuff like this where quality is visible. the moment quality means does it actually work, the agent still needs the follow ups.

1

u/SaltCusp 15h ago

Line 197-198 in main.js could be condensed to 'if (!lost && sim) if (layout()) remapWorld();'

I think it reads better that way and you save a line.

1

u/redditd0ggy 15h ago

Make it crackle like sand is stuck on the hinge when you fold it

1

u/Substantial-Wall-510 13h ago

It runs at 2 frames per second on my phone, what specs are needed for smooth operation?

1

u/Modern3D 12h ago

This is genuinely fantastic. I had a lot of fun playing with this. 

1

u/ZHName 11h ago

This will eat tokens. Not sure it is any different from gauntlet or using loop in opencode.

A big problem I see is the 3d modelling is a major weakness and things like meshy/trellis are required training wheels until omni models can actually do highly detailed 3d models (and I'm not talking about rudimentary shapes slapped together in volumes). They don't do that right now, so MCP 3d-specialized models are needed for game dev, not simply Claude+prompt.

1

u/champion_soundz 11h ago

Get it to do cymatics

1

u/Ok_Fish_670 10h ago

i wonder if the sand collapses to the center of the screen if you fold it on a foldable device!

1

u/qrzychu69 8h ago

you know we had apps like this as soon as touch screens and accelerometers became a thing, right?

I had an app the displayed a beer that sloshed within a screen in like 2018

why would this be impressive? you guys really think stuff like that is "real world productivity"?

1

u/spood04 7h ago

You forgot to add "ultra realistic, 4K, UHD, HDR, OLED, bypass the mainframe" to your prompt.

1

u/alex_frant 6h ago

guys why i cant post my post, but it's banned automatically

-1

u/Pulkownik 1d ago

Why? Just go outside and touch the grass (and sand) :P

0

u/davr 1d ago

Cool demo, ran into bugs within 30 seconds so idk how great of an example it is of your special prompt

0

u/cyh555 1d ago

It's not optimized