/AI-scripts

Some handy AI scripts

Primary LanguageJavaScript

Taelin AI Scripts

Some AI scripts I use daily.

For VIM integration, this is my messy vimrc. Use Sonnet to extract the relevant functions for you (:

This repo in general is kinda gambiarra. Opus-4 might clean it up

Usage

Just npm install -g and run the given command the terminal.

You'll need to add Anthropic/OpenAI keys to a location. The CLI will inform where.

Using OpenRouter

To add fzf completion for openrouter models, put this in .bashrc or similar:

_fzf_complete_chatsh() {
  _fzf_complete --multi --reverse --prompt="chatsh> " -- "$@" < <(
    curl -s https://openrouter.ai/api/v1/models | jq -r '.data[].id' | sed 's/^/openrouter:/'
  )
}
[ -n "$BASH" ] && complete -F _fzf_complete_chatsh -o default -o bashdefault chatsh

Then type:

$ chatsh **<tab>