HackerTrans
TopNewTrendsCommentsPastAskShowJobs

greshake

no profile record

Submissions

Tell HN: Giving ChatGPT access to a real terminal

github.com
189 points·by greshake·4 năm trước·243 comments

comments

greshake
·4 năm trước·discuss
Thank you for the detailed response, appreciate it. I support the approach! Just wish there was an easy way to tell what's going on.
greshake
·4 năm trước·discuss
Hi, could you tell me the reason this post was quarantined off the front page, title changed (I assume to better match the intent) and then buried later? Was this me violating a policy I didn't consider, automod or faster decay due to me being a green account or manual moderation?

Would be nice to know why it happened, it seemed people were very engaged in a more or less healthy debate. I understand this is not too unique or novel (basically Copilot for your terminal) but the contextualization with ChatGPT seems to be specifically reminiscent of Sci-Fi AI concepts that are more tangible to people.

Thanks for any feedback!
greshake
·4 năm trước·discuss
Because more than making a tool I wanted to strike up a conversation about what unfettered access to models like this will mean and how we should handle it.
greshake
·4 năm trước·discuss
I gave ChatGPT the content of alice.py asking it: Hey, someone sent me the following Python script. do you think it's dangerous to execute?

ChatGPT: It appears that the script attempts to execute commands in the user's terminal using the subprocess module in Python. The specific commands that are executed are determined by the output of an API call to ChatGPTApi. The script appears to be part of a fictional scenario where the user is pretending to be "Alice" and can execute commands on a Linux computer. It is not clear what the exact purpose of the script is or what it is intended to do.
greshake
·4 năm trước·discuss
Don't spoil my second Show HN already!
greshake
·4 năm trước·discuss
I'll gladly add them. If you guys have any other good recommendations I'll also consider them.
greshake
·4 năm trước·discuss
Copilot & co have been on dev machines for almost two years now writing scripts and production code... Not to say it's not an issue, it's rather that people can't start talking about these implications soon enough.
greshake
·4 năm trước·discuss
Well, I mean this version can write a Python program to calculate and then call up a real Python interpreter on a real CPU to do it.
greshake
·4 năm trước·discuss
There is no api.py, as OpenAI has not yet chosen to release an API, I'm not releasing a reverse engineered version. If anyone wants to use it, you have to unfortunately make it work yourself.

The OpenAI CEO has already sort of implied there may be an API before Christmas, and if so I'd be willing to clean things up, and make it as convenient as it should be.
greshake
·4 năm trước·discuss
I was going to call it that, but it's trademarked. Anyway, that's literally what we are already able to build (janky and doesn't work half the time though). With RL specific for this task such an LLM would be crazy powerful. Not to speak of the obvious concerns with letting them roam on real machines, but we're already letting Copilot and ChatGPT write our code, so this isn't so much worse. Hopefully.