@guygrigsby/pi-promptdump

Dev tool: on every provider request, dump the exact payload pi sends (final system prompt plus messages) to a file so you can see precisely what the model receives.

Packages

Package details

extension

Install @guygrigsby/pi-promptdump from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@guygrigsby/pi-promptdump
Package
@guygrigsby/pi-promptdump
Version
0.1.2
Published
Aug 7, 2026
Downloads
439/mo · 41/wk
Author
guygrigsby
License
MIT
Types
extension
Size
8 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/index.ts"
  ]
}

Security note

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

README

promptdump

See the exact context sent to the model. It captures the provider payload at before_provider_request (the fully assembled system prompt plus messages, after every per-turn injection such as claude-memory and hermes) in memory, and shows it on demand:

/dump-context        folded summary: one line per message, sizes, a preview
/dump-context full   the whole thing expanded

Output is a display-only transcript entry, never sent back to the model. If no request has happened yet in the session, it says so.

Discovered on the frontier pi profile, and loaded explicitly on pil via -e. No configuration.

Install

pi install npm:@guygrigsby/pi-promptdump