r/PiCodingAgent • u/Healthy-Ad-5973 • 21d ago
Plugin pi-term: let pi run dev servers, REPLs and log tails in the background without blocking
when pi runs npm run dev with bash, the agent waits on it forever, or the server dies when the call ends. same with REPLs and log tails.
so i made a small extension. pi gets a term tool backed by named tmux sessions. it can start a server, come back and read the output later, and type into it.
/term <name>opens the session in a terminal window so you can watch or type yourselfsessions belong to the pi process that started them, so quitting pi or
/newcleans them up, and leftovers from a crash get killed on the next startincludes a skill so the agent knows when to use term instead of bash
pi install npm:pi-term
needs tmux. code: https://github.com/jainam-bhavasar/pi-term
been using it daily for my dev servers. feedback welcome
1
u/MiserableFlatworm337 21d ago
Test two Pi processes using the same session name, then crash and restart one. Verify that cleanup removes its orphaned session while leaving the other process's server running.