@ravshansbox/pi-anthropic-sps

Anthropic system prompt sanitiser extension for pi

Packages

Package details

extension

Install @ravshansbox/pi-anthropic-sps from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@ravshansbox/pi-anthropic-sps
Package
@ravshansbox/pi-anthropic-sps
Version
2.0.1
Published
Oct 16, 2026
Downloads
233/mo · 233/wk
Author
ravshansbox
License
MIT
Types
extension
Size
4.4 KB
Dependencies
0 dependencies · 1 peer
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-anthropic-sps

Anthropic system prompt sanitiser extension for pi.

Install

pi install npm:@ravshansbox/pi-anthropic-sps

Usage

Pi loads the extension from ./index.ts and sanitises outgoing Anthropic system prompts for Claude models before the provider request is sent.

For example, if a Claude request contains the known problematic documentation lines in the system text, the extension removes those lines while leaving the rest of the prompt unchanged.

Development

npm install
npm run check