← Catalog

pi-compact-thinking

Compact animated reasoning previews for Pi

Extension

Install

Install with PiG

pig install npm:pi-compact-thinking

Install with Pi

pi install npm:pi-compact-thinking
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.3.1 (README.md). PiG does not review it.

pi-compact-thinking

A Pi extension that replaces the built-in Thinking blocks: hidden renderer with a compact, animated thinking preview.

Take a look

Installation

pi install npm:pi-compact-thinking

Restart Pi after installation.

Compatibility

Tested with Pi 1.6.0.

This extension monkey-patches Pi's internal assistant-message renderer. Internal UI APIs may change in future Pi releases, so the extension may require updates after upgrading Pi.

Configuration

The configuration file is created automatically the first time the extension loads. Its location is:

  • $PI_CODING_AGENT_DIR/compact-thinking.json, when PI_CODING_AGENT_DIR is set; otherwise
  • ~/.pi/agent/compact-thinking.json.
{
  "useSummaryTitlesAsThinkingTitle": true,
  "previewLines": 3,
  "animationIntervalMs": 90,
  "animationStyle": "solid"
}
  • useSummaryTitlesAsThinkingTitle: For OpenAI models, uses the latest reasoning-summary heading as the live compact thinking title.
  • previewLines: Maximum number of rendered reasoning-preview lines to retain in Thinking blocks: hidden mode. Set to 0 to hide the preview.
  • animationIntervalMs: Interval, in milliseconds, between animation frames while the model is reasoning.
  • animationStyle: solid (default) or gradient, the style of the thinking animation.

It is also recommended to set hideThinkingBlock to true in Pi's settings to enable compact thinking by default.

Restart Pi or reload the extension after changing the configuration.