TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

TmuxAI: AI-Powered, Non-Intrusive Terminal Assistant

196 pointsby iaresee22 days ago

26 comments

kristopolous22 days ago
I&#x27;ve got a similar approach from a Unix philosophy.<p>Look at the savebrace screenshot here<p><a href="https:&#x2F;&#x2F;github.com&#x2F;kristopolous&#x2F;Streamdown?tab=readme-ov-file#as-well-as-everything-else">https:&#x2F;&#x2F;github.com&#x2F;kristopolous&#x2F;Streamdown?tab=readme-ov-fil...</a><p>There&#x27;s a markdown renderer which can extract code samples, a code sample viewer, and a tool to do the tmux handling and this all uses things like fzf and simple tools like simonw&#x27;s llm. It&#x27;s all I&#x2F;O so it&#x27;s all swappable.<p>It sits adjacent and you can go back and forth, using the chat when you need to but not doing everything through it.<p>You can also make it go away and then when it comes back it&#x27;s the same context so you&#x27;re not starting over.<p>Since I offload the actual llm loop, you can use whatever you want. The hooks are at the interface and parsing level.<p>When rendering the markdown, streamdown saves the code blocks as null-delimited chunks in the configurable &#x2F;tmp&#x2F;sd&#x2F;savebrace. This allows things like xargs, fzf, or a suite of unix tools to manipulate it in sophisticated chains.<p>Again, it&#x27;s not a package, it&#x27;s an open architecture.<p>I know I don&#x27;t have a slick pitch site but it&#x27;s intentionally dispersive like Unix is supposed to be.<p>It&#x27;s ready to go, just ask me. Everyone I&#x27;ve shown in person has followed up with things like &quot;This has changed my life&quot;.<p>I&#x27;m trying to make llm workflow components. The WIMP of the LLM era. Things that are flexible, primitive in a good way, and also very easy to use.<p>Bug reports, contributions, and even opinionated designers are highly encouraged!
评论 #43815802 未加载
评论 #43814502 未加载
arkasan22 days ago
Had a terrible experience with warp. I personally don&#x27;t use warp, but I know one colleague who uses it. One day, he ran `kubectl describe &lt;resource&gt; &lt;resource name&gt;` and warp suggested `kubectl delete &lt;resource&gt; &lt;resource name&gt;` and he pressed enter. He was lucky the resource was not critical and could be recreated without any damage. Think about what would have happened if the same thing had happened for the namespace resource. People go into automatic accept mode after some time, and this is very dangerous when you do anything at the terminal, because there is no UNDO button.
评论 #43816805 未加载
评论 #43842836 未加载
评论 #43826864 未加载
protocolture22 days ago
My first instinct is that this is super useful.<p>But then I realise that I do enough sensitive stuff on the terminal that I don&#x27;t really want this unless I have a model running locally.<p>Then I worry about all the times I have seen a junior run a command from the internet and bricked a production server.
评论 #43818767 未加载
malux8522 days ago
&gt; TmuxAI » I&#x27;ll help you find large files taking up space in this directory.<p>Get rid of this bit, so the user asks question, gets command.<p>Make it so the user can ask a follow up question if they want, but this is just noise, taking up valuable terminal space
评论 #43819445 未加载
评论 #43813974 未加载
amelius21 days ago
Instead of showing:<p><pre><code> Do you want to execute this command? [Y]es&#x2F;No&#x2F;Edit </code></pre> perhaps also add an &quot;Explain&quot; option, because for some commands it is not immediately obvious what they do (or are supposed to do).
iaresee22 days ago
A WIP but evolving, it watches your active tmux panes and allows you to work with AI agents who can interact with those panes. For command line folk, this could feel like a pretty good way to bring AI in to your working life.
rcarmo22 days ago
I already use aider and VS Code Agent Mode (which occasionally asks me to run commands for libraries, etc.)<p>This seems… like an amazing attack vector. Hope it integrates with litellm&#x2F;ollama without fuss so I can run it locally.
评论 #43815705 未加载
eranrund21 days ago
This looks interesting and I’m eager to try it, but my concern is this could easily send sensitive information such as API keys I paste to my terminal to the AI providers. How do you remedy that?
rpigab21 days ago
I would usually alt-tab to browser, open up any good LLM in 1 keystroke, write a short prompt, optionally paste the output of &quot;ls&quot; or &quot;find&quot; if context matters, then just copy and paste the result. This tool adds context but I&#x27;m fine without it.
dimatura22 days ago
The &quot;non-intrusive&quot; part is interesting. I&#x27;ve bit the bullet with AI assistance when coding - even when it feels like it gets in the way sometimes, overall I find it a net benefit. But I briefly tried AI in the shell with the warp terminal and found it just too clunky and distracting. I wasn&#x27;t even interested in the AI features, just wanted to try a fancy new terminal. Not saying warp might not be useful for some people, just wasn&#x27;t for me. So far I&#x27;ve found explicitly calling for assistance with a CLI command (I&#x27;ve used aichat for this, but there&#x27;s several out there) to be more useful in those occasional instances where I can&#x27;t remember some obscure flag combination.
评论 #43814390 未加载
rawoke08360022 days ago
I do love this, but haven&#x27;t managed to actually try it out. ( I stopped trying and moved on)<p>But well done for launching (the following is not hate, but onboarding feedback)<p>Who else had issues about API key ?<p>1. What is a TMUXAI_OPENROUTER_API_KEY ?? (is like an OPENAI key) ?<p>2. If its an API key for TMUXAI ? Where do I find this ? Can&#x27;t see on the website ? (probably haven&#x27;t searched properly, but why make me search ?)<p>3. SUPER simple instructions to install, but ZERO (discoverable) instructions where&#x2F;how to find and set API key ??<p>4. When running tmuxai instead of telling me I need an API key. How about putting an actual link to where I can find the API key.<p>Again well done for launching... sure it took hard word and effort.
评论 #43819311 未加载
dr_kretyn22 days ago
Interesting. I&#x27;ve been working on a similar project, though with more &#x27;agentic&#x27; workflow. It&#x27;s also in golang, CLI-native but also supports MCP and &quot;just finishing&quot; &#x27;agentic tasks&#x27;. Potentially a nice overlap :) <a href="https:&#x2F;&#x2F;github.com&#x2F;laszukdawid&#x2F;terminal-agent">https:&#x2F;&#x2F;github.com&#x2F;laszukdawid&#x2F;terminal-agent</a>
zipping154922 days ago
LLM + Terminal integration just calls for disaster.
评论 #43818084 未加载
jph0022 days ago
Shellsage has provided this functionality for quite a while. I&#x27;ve been using it for months, and it&#x27;s been a game-changer for me.<p>It was created by one of my colleagues, Nathan Cooper.<p><a href="https:&#x2F;&#x2F;www.answer.ai&#x2F;posts&#x2F;2024-12-05-introducing-shell-sage.html" rel="nofollow">https:&#x2F;&#x2F;www.answer.ai&#x2F;posts&#x2F;2024-12-05-introducing-shell-sag...</a>
inciampati22 days ago
Just got this running. It took a minute to figure out &quot;where the config file is&quot; but once I got it set up with openrouter keys... wow! This plus speech to text = Look ma no hands!
jmdots22 days ago
I would want the command to be shorter in `wc -c` terms -- but cool!
porcoda22 days ago
Can this be aimed at ollama or some other locally hosted model? It wasn’t clear from the docs since their config examples seem to presume you want to use a third party hosted API.
评论 #43816947 未加载
评论 #43818871 未加载
sepositus22 days ago
So I have yet to use any tool that needs an API key because I am concerned about costs. Does anyone have any idea what the daily usage of something like this would cost?
评论 #43819076 未加载
评论 #43820220 未加载
评论 #43818075 未加载
alvinunreal22 days ago
Thanks iaresee! Yes, the non-intrusive observation of panes is the central idea, trying to integrate AI help without breaking the command-line workflow.<p>Appreciate the feedback as it evolves.
poulpy12321 days ago
Just curious: why specifically tmux and not any terminal ?
atsaloli22 days ago
Can I use it with Perplexity API without going through OpenRouter API? I want to try it but I don&#x27;t want to go through a third party.
smallpipe22 days ago
TIL that `head -5` is equivalent to `head -n 5`, and that&#x27;s not in the manual
评论 #43814871 未加载
评论 #43814524 未加载
neuroelectron21 days ago
I feel like heuristics would be a much better way to do this. Just an &quot;newb assassitmant&quot; with a long list of useful commands but I guess this frees up expert&#x27;s time from doing something so boring.
pjmlp22 days ago
This would be interesting, if voice controled, all this lengthy prompt texts make COBOL feel like a pleasant language.
mathfailure22 days ago
Is it a locally running model?
评论 #43814031 未加载
kurtis_reed22 days ago
it sees the visible contents of panes or the previous lines too?
评论 #43814976 未加载