Hacker News new | past | comments | ask | show | jobs | submit login
ChatGPT, take the wheel! Letting it control a VM (github.com/greshake)
4 points by greshake on Dec 5, 2022 | hide | past | favorite | 4 comments



I like this grammar hack.

```

grammar = """

Response ::= "Alice\n" (ListOfCmds | SingleNaturalLangResponse)

ListOfCmds ::= (BashCommand\n)+

BashCommand ::= "$ " AnyString

SingleNaturalLangResponse ::= AnyString without $"""

```


I tried regular expressions as well, but BNF grammar seems to work best


I've been playing a ton with making it simulate ransomware attacks. Going to try this :D


So, I guess this is the inevitable conclusion with LLMs. Connect them to a real terminal and let them act on real-world objects... I honestly don't know whether I like the idea or not, but I guess it's good to have this conversation now while it is only a marginally better version of tldr.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: