pi-thinking-tail

Show only the last N visual lines of assistant thinking in pi. Collapse long thinking blocks with a visible line count hint.

Packages

Package details

extension

Install pi-thinking-tail from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-thinking-tail
Package
pi-thinking-tail
Version
0.1.0
Published
Jul 9, 2026
Downloads
153/mo · 153/wk
Author
shawnlin.dev
License
MIT
Types
extension
Size
16.9 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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-tail

Or install from a local path:

pi install ./extensions/thinking-tail

Usage

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