Have a look at https://github.com/aperoc/toolkami if you want a single, file implementation of a TUI parallel agent interface.