@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.1.0
Published
Oct 23, 2026
Downloads
461/mo · 234/wk
Author
ravshansbox
License
MIT
Types
extension
Size
5.2 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.

It also adds Anthropic's server-side web_search and web_fetch tools to Claude requests. A tool is skipped if the request already has a tool with the same name. Pi does not show or keep the search and fetch results; you only see Claude's reply.

Development

npm install
npm run check