Live data from Hacker News

T2x – a CLI tool for AI-first text operations

shruggingface.com

1–10 of 16 posts

Re: T2x – a CLI tool for AI-first text operations

#3
post #2

heh, I wrote my own dotfile commandline tooling to do most of this already, I wonder if others have done the same

Mine's a Python CLI tool called LLM - https://llm.datasette.io/ - it uses plugins to provide support for 100+ different models: https://llm.datasette.io/en/stable/plugins/directory.html

Re: T2x – a CLI tool for AI-first text operations

#5
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.

Re: T2x – a CLI tool for AI-first text operations

#7
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

#8

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.

> "Sort these files"

There's aichat, which you can use in REPL mode to do exactly that: https://github.com/sigoden/aichat

Shameless plug: I mostly use my own work: https://github.com/codespin-ai/codespin

But it requires you to pipe: `ls | codespin go sort`. Maybe I should add what you're suggesting.

Re: T2x – a CLI tool for AI-first text operations

#9

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.

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?

Re: T2x – a CLI tool for AI-first text operations

#10
post #7

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

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