logoalt Hacker News

dgacmutoday at 1:24 PM1 replyview on HN

The pile of shell and sed is cleaning up the ai output and then running it in the shell.

The instruction to the AI was to create _a_ shell command. So it's a random shell command generator (maybe).


Replies

corndogetoday at 1:33 PM

that part is the system prompt, the script is a function that takes a prompt describing a shell command as an argument

show 1 reply