Shell assistant that knows your last shell command + output #483
Replies: 4 comments
-
This increases the context-size quickly and can be expensive. Stop again with |
Beta Was this translation helpful? Give feedback.
-
Can also be useful to quickly give the llm some more context on the system that it lives in. (it needs the 'writeFile' function that I added for it to add functions by itself. If it has to use shell scripting, it will get escaping wrong)
Great, let's see whether that worked. We need to exit (ctrl-c or ctrl-d) and restart the repl interface for it to see the new function.
|
Beta Was this translation helpful? Give feedback.
-
Hey @tijszwinkels, thank you for sharing this. It's an interesting idea to provide an option for an LLM to generate its own functions. Nice work! |
Beta Was this translation helpful? Give feedback.
-
Love the idea of this, would love to be able to supply the llm with the last command + output, or all the commands and outputs of the current session. This would be super cool and useful. Did you manage to play with this any further? |
Beta Was this translation helpful? Give feedback.
-
I've been working on some scripting around shell_gpt so it knows the last command I executed in the shell + the output of that command + some easy aliases to streamline the usage of shellgpt in my workflow.
This way, whenever something pops up while I'm working in the shell, I can just directly ask the ai about it in a few keystrokes. No need to re-run the command or pipe the input anywhere. I find this tremendously useful.
See: .🦄sh
A few examples:
Beta Was this translation helpful? Give feedback.
All reactions