News for hackers. Stuff that matters.
Re:T2x – a CLI tool for AI-first text operations by sigoden on Tuesday December 31, 2024 @01:28AM (#42556872)
AIChat (https://github.com/sigoden/aichat) nearly fulfills all your requirements.

The only difference is that you provide subcommands, while aichat requires users to create various roles.

t2x 'Write a ...' => aichat 'Write a ...'

t2x ask file.md 'What is...' => aichat -f file.md 'What is...'

t2x summary /path/to/file => aichat -r summary -f /path/to/file

t2x summary "This is a..." => aichat -r summary "This is a..."

t2x orc /path/to/image.png => aichat -r orc -f /path/to/image.png

> Note, In AIChat, `-r/--role` specifies the role to use, `-f/--file` indicates the file or URL input.

Re:T2x – a CLI tool for AI-first text operations by jakedahn on Tuesday December 31, 2024 @10:17AM (#42559170)
oooo neat! I hadn't heard of aichat before, I'll definitely take a look.