Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

pi-collapse-tools

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-collapse-tools

Pi extension that hides tool output by default (expand with Cmd+O / Ctrl+O).

latest
Source
npmnpm
Version
0.1.6
Version published
Weekly downloads
13
-31.58%
Maintainers
1
Weekly downloads
 
Created
Source

pi-collapse-tools

Tool output collapse demo

A pi extension that keeps your chat clean by hiding tool output by default.

  • Tool calls still render with their key parameters (so you can see what ran).
  • Tool results render nothing unless expanded.
  • Press Cmd+O (macOS) / Ctrl+O (other terminals) to expand tool output.

Install

pi install npm:pi-collapse-tools

Restart pi (or run /reload).

Option B: Try without installing (temporary)

pi -e npm:pi-collapse-tools

Option C: Install from GitHub

pi install git:github.com/xRyul/pi-collapse-tools

What it does (technical)

This extension overrides pi’s built-in tools by registering tools with the same names, but only for the tools you enabled via --tools / --no-tools (default: read,bash,edit,write).

It delegates execution to the built-in implementations, but changes rendering so output is collapsed by default.

Examples:

  • Default tools: pi → wraps read, bash, edit, write
  • Read-only: pi --tools read,grep,find,ls → also wraps grep, find, ls
  • No tools: pi --no-tools → wraps nothing (does not re-enable tools)

Notes

  • Because it overrides built-in tools, pi will show a warning about tool overrides at startup.
  • If you use another extension that also overrides these tools, they may conflict.

Development

git clone https://github.com/xRyul/pi-collapse-tools
cd pi-collapse-tools
pi -e ./index.ts

License

MIT

Keywords

pi-package

FAQs

Package last updated on 10 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts