pi-context-view
v0.4.2
Published
Pi extension to visualize context usage and inspect the hidden parts: base prompt, tools defs, and extension injections
Maintainers
Readme
pi-context-view
Pi extension that visualizes context usage and lets you inspect the parts you normally can't see: the system 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 parts of the context: the system prompt, tool definitions, and extension injections.
Commands
/context- shorthand for/context usage./context usage- open the context usage visualization./context injections- show the hidden parts of the context captured at session start or resume.
Demo
/context
See what fills your context, for example, what survives compaction:

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

Zoom
Zoom in for a more detailed breakdown of large context windows, such as 1M-token windows:

Install
pi install npm:pi-context-viewContext Footprint
pi-context-view does not add any instructions or messages to the model context.
Related Projects
📌 S-VHS - terminal recorder used to create the demo GIFs.
License
MIT
