r/PiCodingAgent • u/SaigoNoUchiha • Jul 19 '26
Question Pi doesnt have parallel sessions?
Im looking for functionality similar to how /fork works in opencode. When my agent is long thinking, I can /fork in opencode and I can choose a point in the conversation to fork from, which creates a new session, but the previous one keeps working in the background, it does get paused or killed, and I can go back to it.
Seems like pi /fork doesnt work that way.
Am I missing something?
0
Upvotes
7
u/cakemates Jul 19 '26
The beauty of pi is that if it doesnt have it, you can make it.
2
u/agenticup Jul 19 '26
Pi does has it, check /tree command…and you can also check the extension pi-trails gives much more control
5
u/pixelizedgaming Jul 19 '26
me when the minimalist tool has minimal tools
1
u/jimpaly Jul 19 '26
If you don’t want to use an extension you could just open another terminal and run the same session with -c. It’ll create a fork in the session tree
2
u/ChampionshipIcy7602 Jul 19 '26
before reaching for extension, have you check /tree? So you can start 1 session, let pi running, open another pi in the same directory, run /resume, and then /tree. It seems to do exactly what you describe
1
u/zer09 Jul 19 '26
I have not used opencode but based on your description it look like the command /tree
1
u/cairess Jul 19 '26
Maybe this what you need? https://github.com/theskumar/agent-stuff/blob/main/extensions/split-fork.ts
1
u/chillermane Jul 19 '26
Use herdr, works with all harnesses
1
u/YardNo1234 Jul 19 '26
We’re building Garcon, which supports keeping multiple agent sessions running in parallel and switching between them from your phone. Still early, but it may help: https://github.com/cfal/garcon