This provides two tools, and I recommend disabling all other tools while using this, so the agent won't get confused about which tool to use:
send-keys-to-terminalread-terminal-window
This way pi agent can interact with an interactive terminal session.
First of all, you probably should run these sessions in a container. I do that myself.
However you can start it dangerously without containers like this:
pi --no-builtin-tools --extension "$HOME/path-to-the/pi-tandem-terminal"Then if you want to see the session in action as you prompt the pi, you can run in another terminal window:
screen -R -S pi-bashscreeninstalled on your system