Why not just have multiple instances of pi inside one of the many multiplexers out there? Tmux, Zelliij, herdr, for example.