ask.sh icon indicating copy to clipboard operation
ask.sh copied to clipboard

Is there a way to have the AI monitor a different tmux panel from the one you interact with it in?

Open pha3z opened this issue 1 year ago • 2 comments

For me, the thing that would make this really awesome is if I could split tmux into two panes and have ask.sh run locally in a lefthand pane but have it watch everything happening a righthand pane. That would allow me to ssh to other servers and the AI would be able to assist me with those servers.

But to gain the benefit of command execution, I would need to be able to have ai-suggested commands turned into a text stream that is sent to the righthand pane with the ssh session.

Is this possible?

pha3z avatar Nov 14 '24 02:11 pha3z

Sorry for the lack of updates. Your suggestion consists of two parts:

  • A reading pane where commands are not being executed.
  • A writing pane where commands are not being executed. I think, in theory, both are possible:

Currently, reading the content is done using capture-pane; this could be changed to another command. Writing could work like this: Sending and executing highlighted code in another pane. However, implementing this would require a relatively large amount of effort, so I don't think it will happen soon. That said, this is a very interesting and useful use case—thank you for the suggestion! Perhaps Warp could offer an alternative, but I don't use it often, so I'm not sure how it handles SSH-like functionality.

hmirin avatar Feb 02 '25 12:02 hmirin

Thank you for the feedback!

pha3z avatar Jun 18 '25 22:06 pha3z