So many times I see projects here I don’t really need, but I always learn something from their readme and code. A lot of time I learn something I can apply to my project. In this case, I use Node-PTY for my terminal control plane but when I run more than 50 agents, it crashes. Maybe using your pty will let me run more agents.
I haven't performance or load tested, it's on the backlog; so I'd be curious on whether this works for your use-case. And if not, feel free to log an issue!