Settings

Theme

Show HN: Wolverine: Give your Python scripts regenerative healing abilities

github.com

43 points by biobootloader 3 years ago · 23 comments · 1 min read

Reader

Run your scripts with Wolverine and when they crash, GPT-4 edits them and explains what went wrong. Even if you have many bugs it will repeatedly rerun until it's fixed.

Demo video on twitter: https://twitter.com/bio_bootloader/status/163688020830443110...

plonq 3 years ago

That seems… dangerous, to say the least

jszymborski 3 years ago

It's all fun and games until you get a subprocess.run(["rm", "/", "-rf"]) snuck in there that you fail to notice.

  • paulddraper 3 years ago

    1. Definitely don't run it as root.

    2. Obv run in sandbox/container.

  • biobootloaderOP 3 years ago

    haha yes it did feel a bit wild just letting this run on my machine!

    I wouldn't recommend running it on a script that's supposed to delete files

  • eviks 3 years ago

    Hallucinate your data into the AI void

splatzone 3 years ago

Also check out Cataclysm:

https://github.com/Mattie/cataclysm

Demo: https://www.youtube.com/watch?v=ZK8fUuQDgZ4

cozzyd 3 years ago

A slight improvement on fuckit.py

SideburnsOfDoom 3 years ago

Should not be confused with Jeremy D Miller's "Wolverine" Message Bus software

https://jeremydmiller.com/2022/12/12/introducing-wolverine-f...

https://jeremydmiller.com/2022/12/15/transactional-outbox-in... https://www.dotnetrocks.com/details/1823

tsukikage 3 years ago

ON ERROR GOTO NEXT, 2023 edition

shreyshnaccount 3 years ago

so we are just going to build the set up for the next terminator movie in real life and this time skynet self heals??

TigerTeamX 3 years ago

Oh my god! That looks so much fun and so dangerous at the same time.

shapefrog 3 years ago

It didnt pick up the bug in the else of the calculate function, presumably it is only running along the path that the script is running based on the inputs.

  • biobootloaderOP 3 years ago

    it will sometimes fix other bugs, but yeah the focus is on ones that caused the crash or are obvious

    • salawat 3 years ago

      If they are so obvious, why didn't you just do it yourself the first time? Instead of yeeting large portions of your codebase at a 3rd-party web service?

doutunlined 3 years ago

Crashes are the easiest bugs to self-fix.

  • biobootloaderOP 3 years ago

    agreed! but it'd be nice to not have to jump back to the editor to fix a minor crash and then go rerun

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection