pi-stretchtext
Stretchtext replies for Pi: short answers whose phrases open in place into more depth. A port of cc-stretch.
Package details
Install pi-stretchtext from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-stretchtext- Package
pi-stretchtext- Version
0.1.0- Published
- Oct 20, 2026
- Downloads
- 198/mo · 116/wk
- Author
- monadicmike
- License
- MIT
- Types
- extension
- Size
- 48.9 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"image": "https://raw.githubusercontent.com/MonadicMike/pi-stretchtext/master/docs/demo.gif",
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-stretchtext
Stretchtext replies for Pi: the model answers in one to three short sentences, and the phrases that hold more open in place into longer text, which may hold further phrases to open.

Install
pi install npm:pi-stretchtext
Or from git: pi install git:github.com/MonadicMike/pi-stretchtext.
Set up
Clicking a stretch needs Pi's fullscreen TUI mode. It is Pi's default; if you switched to regular mode, turn it back on in any of these ways:
- in Pi, open
/settingsand set the TUI mode tofullscreen, - or in
~/.pi/agent/settings.jsonset"tuiMode": "fullscreen", - or start Pi with
pi --tui-mode fullscreen.
In regular mode the keyboard shortcuts below still work.
Use
| Action | Fullscreen | Any mode |
|---|---|---|
| Open a stretch | click its underlined short form | alt+o, then its letter |
| Close a stretch | click the « after it | alt+c, then its letter |
License
MIT. Based on cc-stretch by pro-vi, also MIT.