pi-context-inspector
v1.0.0
Published
Pi extension: inspect the system prompt, active tools, messages, token breakdown and full LLM context in a tabbed overlay
Maintainers
Readme
pi-context-inspector
A pi-coding-agent extension that opens a tabbed overlay with the full LLM context of the current session.
Features
/contextopens an overlay with five tabs:- [Stats] — model name, token usage vs. context window, a 10×5 colored grid of estimated usage by category (system prompt, tools, skills, messages, available, auto-compact buffer), and safe-left tokens.
- [System] — the full system prompt (scrollable, searchable).
- [Tools] — active tool definitions with parameter schemas.
- [Messages] — all session messages formatted with roles, models, token usage, tool calls and image placeholders.
- [Full] — complete context dump: system prompt + messages + usage.
- Scroll & search.
↑↓/jkscroll,gg/Gjump,/live search withn/Nmatch navigation,ycopies the raw text to the clipboard. - Tab navigation.
Tab/Shift+Tabcycles tabs;qorEscapecloses the overlay.
Installation
pi install npm:pi-context-inspectorUsage
Run /context at any point during a session. The token breakdown scales character-based estimates to the provider-reported usage, so category percentages are proportional to the real token count.
