r/commandline • u/gaga0 • 9h ago
Terminals [WIP] Transforming terminal interactions into a live semantic graph
Well, I hope this one doesn’t violate Rule #6.
r/commandline • u/gaga0 • 9h ago
Well, I hope this one doesn’t violate Rule #6.
r/commandline • u/ObjectivePapaya6743 • 4m ago
Read the rules and the sentiment. I'm not introducing a project or a software but more like presenting a method how I utilize llm features.
This combination of offers
- no additional abstraction layer of complexities or softwares. Just your script and mostly use built-in commands.
- no need to worry about upstream security flaws(not maintained, via possible future updates or 0ds) other than what's already there
- can use any llm subs or local llm api, especial good if you are already using local llm. I heard the other day, someone finetuned a small model for commands
Here's assumption you need to be aware of.
- You are the only user of the machine. Why? b/c after all, it's using llm feature.
If you are worried about non-deterministic outcome of it, you can set up an user on the machine and tighten the permission at your will. Maybe setup ssh or reverse-ssh to route the request to another machine.
What I equipped with my current script are
- 4 commands: how, explain, ask, what
- after `how`, the result is copied into clipboard
- basic I/O such as pipe, input redirection and heredoc
- didn't intend to account for cache hit or histories. i want to make it simple.
Here's how I use
- `how to ~` and paste. (no question mark at the end)
- `how to ~ | explain`
- `ask <<EOF and ask whatever I want EOF`
This setup merely removes that very single layer of additional interaction of invoking codex, claude or such. But I find it useful.
Here's my setup for reference only. You don't download it nor copy it. If you find it handy, you probably already know how to set it up.
https://github.com/SwimmingPolar/dotfiles/tree/main/dot_zsh/util/ai