Hacker News new | ask | show | jobs
Show HN: Hey – ChatGPT for the Terminal (github.com)
1 points by simon_rider 1201 days ago
Hey everyone, I have created a CLI utility over the past few days that allows easy access to ChatGPT from the command line. This tool can assist with creating and running commands, answering programming questions, and more. I have also created a demo on the GitHub page. If you find it useful, please give it a star and let me know your thoughts in the comments.
1 comments

I love this, thanks for sharing.

I'm doing a similar thing, but with an assistant that has long term memories.

I can learn a lot from how you're running commands.

Sounds interesting, how do you create the long term memories in the short 4096 token window? Can you share something?
I let GPT summarize the conversation, and use embeddings for semantic search to recall relevant memories. The memories are inserted into part of the prompt.

It's imperfect because of the token window (much like human memory).

It can generally recall things I ask it to remember.

I do save a complete, exact chat record, but currently I don't use that except for the recent chat (in case we're working on some code or whatever that needs to be exact).

It still has plenty of problems, don't get me wrong.