Copilot CLI is a nice CLI agent supporting many of the best models (with a Copilot subscription). One thing I like to use it for, is giving me easy access to AI in a plain terminal.
The snippet above is from my global ~/.justfile. I also have alias j=just in my .zshrc
Each invocation streams the output to the terminal and also copies it to the clipboard.
For example:
$ j ai show me how to extract the audio from myvideo.avi into myaduio.mp3 using ffmpeg
I alias ai to cp-haiku - it's a great default for most simple tasks - fast and smart enough (and only costs 0.33X premium requests).
$ j cp-gemini update ./index.html to dark mode
$ j cp-codex give me a thorough code review of the files in this directory and save it as review.md
Happy Commandlining!
@intellectronica This is great work! I've made some tweaks, which started with adapting it for
fishbut went a bit further in the end.https://gist.github.com/daveio/6e8d0edd82b575ff105329050bbefabe
Feel free to nick any of it!