Show HN: Pi-tva-toolbox Session-tree tools for the Pi coding agent Developer Ariel Sakin published pi-tva-toolbox, an open-source package of four extensions for pi, the terminal coding agent, that manipulate a session's tree of branches. The extensions are pi-time-heist (forks a session from any point into a different working directory), pi-fork-off (asks several questions in parallel and continues each answer as a labeled branch), pi-pluck (forgets every turn matching a regex on the active branch, with /unpluck to restore), and pi-fresh (/fresh and /clear start a fresh branch at the session root). The toolbox requires pi 1.x and Node >= 22.19, collects no telemetry, and installs via `pi install npm:pi-tva-toolbox` or as four separately published npm packages. pi-tva-toolbox — Tree · Versions · Alternatives. Session-tree tools for pi https://pi.dev , the terminal coding agent. pi keeps every session as a tree of branches /tree . These tools rewind, fan out, forget, and move those branches: rewinding a session to its first message, forking one point into several labeled branches, forgetting selected turns on the active branch, and forking a branch into a different working directory. Requires pi 1.x and Node = 22.19. The extensions collect no telemetry. Parallel questions in /fork-off use your configured model provider. Vocabulary: a session tree is the whole history of a session; a branch is one path through it; the active branch is the one the model sees; a turn is one user message and the reply to it; rewind moves the active branch back to an earlier point; fork starts a new branch from a point. | Extension | Trigger | What it does | |---|---|---| | pi-time-heist https://github.com/asakin/pi-tva-toolbox/blob/main/extensions/pi-time-heist | fork, then /heist | Fork a session from any point in its tree into a different working directory | | pi-fork-off https://github.com/asakin/pi-tva-toolbox/blob/main/extensions/pi-fork-off | /fork-off | Ask several questions in parallel and continue each answer as a labeled branch | | pi-pluck https://github.com/asakin/pi-tva-toolbox/blob/main/extensions/pi-pluck | /pluck | Forget every turn matching a regex on the active branch one note appended, nothing cloned or deleted ; /unpluck restores | | pi-fresh https://github.com/asakin/pi-tva-toolbox/blob/main/extensions/pi-fresh | /fresh , /clear | Start a fresh branch at the root of the session, optionally with a label and branch summary | The whole toolbox, one package: pi install npm:pi-tva-toolbox Or any extension on its own — each is published separately on npm: pi install npm:pi-time-heist pi install npm:pi-fork-off pi install npm:pi-pluck pi install npm:pi-fresh Or straight from git the toolbox : pi install git:github.com/asakin/pi-tva-toolbox To load only some of the toolbox's extensions, use the object form in your settings: { "packages": { "source": "npm:pi-tva-toolbox", "extensions": "node modules/pi-time-heist/src/index.ts" } } This repo contains four extensions, the umbrella package, and a shared library. Every tool under extensions/ is its own npm workspace and npm package pi- , and the root pi-tva-toolbox is an umbrella that depends on all of them, bundles them bundleDependencies , and points pi.extensions at node modules/