AI-scripts

AI-scripts

Some handy AI scripts

Stars: 501

Visit
 screenshot

AI-scripts is a repository containing various AI scripts used for daily tasks. It includes tools like 'holefill' for filling code snippets in VIM, 'aiemu' for emulation purposes, and 'chatsh [model]' for terminal-based ChatGPT functionality. The repository aims to streamline AI-related workflows and enhance productivity by providing convenient scripts for common tasks.

README:

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.

Note

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.)

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>

LICENSE

Everything here is MIT-licensed.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for AI-scripts

Similar Open Source Tools

For similar tasks

For similar jobs