pi-thinking-tail
v0.1.0
Published
Show only the last N visual lines of assistant thinking in pi. Collapse long thinking blocks with a visible line count hint.
Downloads
153
Maintainers
Readme
pi-thinking-tail
Collapse long assistant thinking blocks so the terminal stays readable. The extension keeps the first visual line, shows a hidden-line hint, and renders only the last N visual lines.
This is useful for reasoning-heavy models when you want to keep some visibility into the model's progress without letting the thinking output take over the whole screen.
Installation
pi install npm:pi-thinking-tailOr install from a local path:
pi install ./extensions/thinking-tailUsage
The extension becomes active after installation. By default, it shows the last 10 visual lines of assistant thinking.
| Command | Effect |
| ------- | ------ |
| /thinking-tail | Show the current setting |
| /thinking-tail 5 | Show only the last 5 visual lines |
| /thinking-tail 20 | Show only the last 20 visual lines |
| /thinking-tail off | Disable truncation and show full thinking |
Valid line limits: 1 to 200.
Example
Instead of rendering the full thinking block, the extension shows a compact view like this:
Thinking about the user's request and checking the current context...
... 47 lines hidden
Given the constraints, the best option is to...License
MIT
