Earlier quoted context omitted.
Hi, thanks for your comment! I haven't explored that approach. Can you say more? Will using the approach that you suggested support interactive CLI utilities like a REPL? Those are use cases that I definitely want to support with this project.
It’s just in response to “it's not always clear when the job is done”. With shell integration installed, iTerm knows how to separate commands and responses (you can cmd-shift-arrow to move between them, select the entire response with a click, etc.) so I thought it might expose that knowledge. It does that just by putting a distinctive character sequence in the shell prompt, and you could do that directly if needed.…
Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
11–20 of 24 posts
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#12A shiver runs down my spine reading „full terminal control“. For me that is a definite no-go. We fight hard to get remote code execution abilities off our system and here we freely invite it. „Hey gpt let me sudo first so you can execute that“
There was a system not long ago on here for AI automatically running system recovery as triage. I just can’t imagine giving AI any rights to actually run commands without oversight.
I guess good luck explaining why you deleted a database or whatever while diagnosing an app when it decides that the best course of action is to delete and start over or some other really stupid solution.
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#13Good work. I wonder if there's really a need for separate write to terminal and read output functions? I was hoping that write command itself would execute and return the output of the command, saving back and forth latency. > and it's not always clear when the job is done I've authored a similar mcp [1] (but without terminal ui) The way I solved it is by setting a special PS1 prompt. So as soon as I get that prompt…
Hi, thanks for the comment! wcgw looks really cool - nice job with it! > I wonder if there's really a need for separate write to terminal and read output functions? I was hoping that write command itself would execute and return the output of the command, saving back and forth latency. I traded back and forth latency for lower token use. I didn't want to return gobs of output from `brew install ffmpeg` when the model…
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#14A shiver runs down my spine reading „full terminal control“. For me that is a definite no-go. We fight hard to get remote code execution abilities off our system and here we freely invite it. „Hey gpt let me sudo first so you can execute that“
That and the idea of a poorly sanitized log entry or something slipping to the AI and then you have a big problem. Just seems like a security issue waiting to happen. There was a system not long ago on here for AI automatically running system recovery as triage. I just can’t imagine giving AI any rights to actually run commands without oversight. I guess good luck explaining why you deleted a database or whatever whi…
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#15A shiver runs down my spine reading „full terminal control“. For me that is a definite no-go. We fight hard to get remote code execution abilities off our system and here we freely invite it. „Hey gpt let me sudo first so you can execute that“
That and the idea of a poorly sanitized log entry or something slipping to the AI and then you have a big problem. Just seems like a security issue waiting to happen. There was a system not long ago on here for AI automatically running system recovery as triage. I just can’t imagine giving AI any rights to actually run commands without oversight. I guess good luck explaining why you deleted a database or whatever whi…
We’re 100% on the same page here. No one should ask Claude (or any model) to do something using their terminal and then just walk away. I hope that’s clear from the safety section of what I posted (and in the project README).
Claude REALLY wants to help, and it will go on a journey to the end of the earth to accomplish your task. If you delegate tasks to this tool then you’re going to have to babysit it.
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#16Earlier quoted context omitted.
Hi, thanks for the comment! wcgw looks really cool - nice job with it! > I wonder if there's really a need for separate write to terminal and read output functions? I was hoping that write command itself would execute and return the output of the command, saving back and forth latency. I traded back and forth latency for lower token use. I didn't want to return gobs of output from `brew install ffmpeg` when the model…
Why not tail it?
Would you mind elaborating if I misunderstood what you meant?
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#17Earlier quoted context omitted.
That and the idea of a poorly sanitized log entry or something slipping to the AI and then you have a big problem. Just seems like a security issue waiting to happen. There was a system not long ago on here for AI automatically running system recovery as triage. I just can’t imagine giving AI any rights to actually run commands without oversight. I guess good luck explaining why you deleted a database or whatever whi…
I‘m part of info sec group in the company I‘m working at and this would get banned right away. Don‘t get me wrong we use and are open to AI and all kinds of tooling ideas to make us more proficient.
I’m curious what your thoughts are around Cursor, Windsurf, etc. Those are IDE’s that provide the model with limited access to the terminal. Where do you feel like those tools and their AI features - terminal access specifically, fall in an org like yours? Are they disallowed due to terminal access or are the limitations of those tools safe enough?
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#18Why would you favor this approach over say, a command line tool that can pipe input into and out of a configurable AI backend, fork subprocesses to perform agent based tasks, etc. The amount of tokens is always bounded by what the user chooses to pipe into the tool. The Unix model is battle hardened, time tested approach. This tool seems like it locks you into iTerm2.
> Why would you favor this approach over say, a command line tool that can pipe input into and out of a configurable AI backend, fork subprocesses [...] I think what you're describing is something that's built to perform agent based tasks. iterm-mcp isn't intended to be that. It's intended to be a bridge from something like Claude Desktop to iTerm. The REPL use case is a key thing to understand here. What you're desc…
Then you don't need to be locked into using iTerm2.
Re: Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
#19Earlier quoted context omitted.
> Why would you favor this approach over say, a command line tool that can pipe input into and out of a configurable AI backend, fork subprocesses [...] I think what you're describing is something that's built to perform agent based tasks. iterm-mcp isn't intended to be that. It's intended to be a bridge from something like Claude Desktop to iTerm. The REPL use case is a key thing to understand here. What you're desc…
You can do this without needing a terminal aware tool. There are tools, and it's easy to write one yourself, that tee buffers the output of every command you run, then pipe the last command into your AI tool. You could also easily support N command buffers. Then you don't need to be locked into using iTerm2.