LLM Chat via SSH
(github.com)37 points by wey-gu 3 days ago
37 points by wey-gu 3 days ago
Wow, that produced a flashback to using TinyFugue in the 90s.
No, it's a thin wrapper around an API, probably OpenRouter or similar:
https://github.com/ccbikai/ssh-ai-chat/blob/master/src/ai/in...
We made this a while ago on the web:
this is neat.... whose anthropic credits am i using, though? sonnet-4 isn't cheap! would i hit a rate-limit if i used this for daily work?
Using React to render a CLI tool is something. I'm not sure how I feel about that. It feels like like 90% of the code is handling issues with rendering.
I mean, it's a thin wrapper around LLM APIs, so it's not surprising that most of the code is rendering. I'm not sure what you're referring to by "handling issues with rendering", though—it looks like a pretty bog standard React app. Am I missing something?
Skimming the source code I got really confused to see TSX files. I'd never seen Ink (React for CLIs) before, and I like it!
Previously discussions of Ink:
July 2017 (129 points, 42 comments): https://news.ycombinator.com/item?id=14831961
May 2023 (588 points, 178 comments): https://news.ycombinator.com/item?id=35863837
Nov 2024 (164 points, 106 comments): https://news.ycombinator.com/item?id=42016639