@iurysza/pi-context-audit

Audit Pi system prompt, tool schema, context usage, and MCP overhead.

Packages

Package details

extension

Install @iurysza/pi-context-audit from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@iurysza/pi-context-audit
Package
@iurysza/pi-context-audit
Version
0.1.0
Published
Jul 24, 2026
Downloads
113/mo · 16/wk
Author
iurysza
License
MIT
Types
extension
Size
22.9 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

pi-context-audit

See where Pi's context goes. Context Audit measures the active system prompt, tool schemas, context files, skills, MCP cache, context usage, and the last captured provider payload.

Install

pi install npm:@iurysza/pi-context-audit

Restart Pi or run /reload after installation.

Run an audit

/context-audit [md|json] [open] [copy]

Audits are written to Pi's agent cache directory. md and json choose the output format; open and copy use macOS open and pbcopy when available.

What it captures

  • System prompt and context-file size
  • Active and available tool schemas
  • Skills, commands, and MCP cache metadata
  • Context-window usage
  • Size metadata for the latest captured provider payload

Audits contain serialized schemas and may summarize the current session. Review them before sharing.

Requirements

  • Pi
  • Node.js 22.19 or newer
  • macOS only for open and copy

License

MIT