Use AI models from the command line with piped input and output
AI on the command-line
mods$ echo 'def hello(): print("world")' | mods 'explain this python code'$ git diff --cached | mods 'write a concise commit message'$ mods -m gpt-4 'make this more concise' < input.txt