原始内容
pi-context-view
Pi extension that visualizes what fills the model's context and lets you inspect the parts you normally can't see: the base prompt, tool definitions, and instructions injected by other extensions.
Features
Context usage map - visualize used and free context space, grouped by category (tools, skills, messages, and more).
Context injections - explore the hidden pieces of the context: the initial prompt, tool definitions, and extension injections.
Commands
/context- shorthand for/context usage./context usage- open the context usage visualization./context injections- show the hidden content of the context at session start or resume.
Usage Examples
/context
See what fills your context. For example, check what remains after compaction:

/context injections
Inspect hidden parts of the context, such as tool definitions:

Install
pi install npm:pi-context-view
Context
pi-context-view does not add any instructions or messages to the model context.
License
MIT