top | item 42555953

T2x – a CLI tool for AI-first text operations

38 points| marc | 1 year ago |shruggingface.com

14 comments

order

sigoden|1 year ago

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.

jakedahn|1 year ago

oooo neat! I hadn't heard of aichat before, I'll definitely take a look.

rodcul|1 year ago

Any plans to integrate with https://openrouter.ai ?

that would be sweet

jakedahn|1 year ago

I'm curious, what specifically you're interested in from openrouter? Do they offer specific LLMs, or is it just a great way to kick the tires on new models as they emerge?

The original intention behind t2x was to be "functionality first", and make an opinionated call on which LLMs get used for specific functionality. However I think the way to go will be sane defaults and then allow user-specified models from something like openrouter.

jakedahn|1 year ago

hi friends!

I'm the author of t2x and shrugginface.com, I'm surprised to see this landed on HN a month after I first shared it.

I originally planned to make it real during the holiday break but got distracted by other projects. This is the inspiration bump I needed, so I'll get back to shipping over the coming weeks

marc|1 year ago

Hope it’s okay I shared it here. Saw it in my RSS reader and figured HN would enjoy it.

Glad to hear it served as inspiration. The video looks promising!

youssefabdelm|1 year ago

I wish someone would do something like this but without the preamble like "t2x ask 'bla bla'"

All I want to do is talk to my computer, like:

"Sort these files" or whatever. Straight away. No noise.

And it should have a history of what was done already, so it knows what I'm talking about.

If people are concerned about safety, it could just be a 'mode' or an app that isn't a terminal but looks like a terminal.

jakedahn|1 year ago

If you run `ls -la | t2x "sort these files alphabetically"`, it will do the right thing.

However, subcommand like `t2x ask` are used to route you to a different model with different behavior. The ask subcommand currently makes requests to perplexity, where you can ask questions and get near realtime grounding from the world.

satisfice|1 year ago

Why do you want this? Not only is it unreliable and inefficient to do such things with LLMs, but we already have easy ways to do them with existing tools.

I work with computers and do data wrangling on a daily basis. What am I missing?