Sept. 6, 2023, 3:45 p.m. |

Simon Willison's Weblog simonwillison.net


This PHP script by Dave Hulbert delights me. It's 24 lines of code that takes a specified goal, then calls my LLM utility on a loop to request the next shell command to execute in order to reach that goal... and pipes the output straight into exec() after a 3s wait so the user can panic and hit Ctrl+C if it's about to do something dangerous!

Via Amazingly Alarming Autonomous AI Agents

ai code command dave exec generativeai llm llms loop next php security shell utility

Senior Machine Learning Engineer

@ Kintsugi | remote

Staff Machine Learning Engineer (Tech Lead)

@ Kintsugi | Remote

R_00029290 Lead Data Modeler – Remote

@ University at Buffalo | Austin, TX

R_00029290 Lead Data Modeler – Remote

@ University of Texas at Austin | Austin, TX

Senior AI/ML Developer

@ Lemon.io | Remote

Senior Data Science Consultant

@ Sia Partners | Amsterdam, Netherlands