Is there a way to have the AI monitor a different tmux panel from the one you interact with it in?
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?
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.
Thank you for the feedback!