Some AI scripts I use daily.
-
chatsh
: like ChatGPT but in the terminal (example chat) (example coding) (example refactor) -
holefill
: I use it on VIM to fill code snippets -
aiemu
: emulate any game on the terminal (example) -
agda2ts
: compile Agda to/from TypeScript (example) -
aoe
: refactor a huge codebase by auto-filtering chunks that need edit (example)
Note: I'm currently unifying all scripts into chatsh
. For the old scripts, see the 'old-main' branch.
For VIM integration, this is my messy vimrc.
This repo in general is kinda gambiarra. Note: currently updating to ts!
Just npm install -g
and run the given command the terminal.
You'll need to add Anthropic/OpenAI/etc. keys to ~/.config
.
Most of this scripts will save a log to ~/.ai
. If you don't want this
behavior, edit the scripts to suit your needs. (TODO: add a proper option.)
Everything here is MIT-licensed.