@baggiiiie/pi-no-ansi

A minimal pi package that keeps `bash` tool output cleaner for the model by:

Package details

extension

Install @baggiiiie/pi-no-ansi from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@baggiiiie/pi-no-ansi
Package
@baggiiiie/pi-no-ansi
Version
0.0.1
Published
May 4, 2026
Downloads
not available
Author
baggiiiie
License
unknown
Types
extension
Size
2.1 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

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

README

@baggiiiie/pi-no-ansi

A minimal pi package that keeps bash tool output cleaner for the model by:

  • setting common no-color environment variables for every pi bash tool call
  • stripping ANSI escape sequences from captured bash output before it reaches model context

Install

pi install /path/to/pi-stuff/packages/no-ansi

Or after publishing:

pi install npm:@baggiiiie/pi-no-ansi

Usage

Once installed, restart pi or run /reload.

No commands or configuration required.

Notes

  • This only affects pi bash tool calls.
  • It preserves raw command execution behavior; it just tweaks env vars and sanitizes returned text.
  • It is intentionally minimal and does not add command-specific --color=never flags.
  • It sets these env vars for every pi bash tool call:
NO_COLOR=1
CLICOLOR=0
FORCE_COLOR=0
TERM=dumb