@agnishc/edb-context-viewer

Pi extension: inspect the system prompt and full LLM context in scrollable overlay popups

Packages

Package details

extension

Install @agnishc/edb-context-viewer from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@agnishc/edb-context-viewer
Package
@agnishc/edb-context-viewer
Version
0.15.1
Published
Jun 9, 2026
Downloads
2,354/mo · 116/wk
Author
agnishc
License
MIT
Types
extension
Size
50.7 KB
Dependencies
0 dependencies · 2 peers
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

@agnishc/edb-context-viewer

Pi CLI extension for inspecting the full LLM context. A single command opens a tabbed overlay where you can explore token usage, the system prompt, tool definitions, messages, and the complete context — all in one place.

Command

/context

Opens a tabbed overlay with five views you can navigate using Tab / Shift+Tab.

Tabs

Tab What it shows
Stats Token distribution grid (10×5 colored blocks) + per-category breakdown table
System The full system prompt (includes tools, skills, guidelines, AGENTS.md, etc.)
Tools All active tool definitions with descriptions and parameter schemas
Messages All session messages (user, assistant, tool calls/results)
Full Complete context dump: system prompt + messages + usage stats

Stats tab

Visualizes how the context window is used, broken down by category:

  • System Prompt — the static system prompt text
  • System Tools — tool definition schemas
  • Tool Calls — tool call arguments and results
  • Messages — user/assistant conversation text
  • Available — unused context window space

Token counts are estimated using a 4-chars-per-token heuristic, then scaled proportionally to match the actual total reported by the API.

Controls

Key Action
Tab Next tab
Shift+Tab Previous tab
/ k Scroll up (content tabs)
/ j Scroll down (content tabs)
Page Up / Ctrl+B Scroll up one page
Page Down / Ctrl+F Scroll down one page
Ctrl+U / Ctrl+D Scroll half page
Home / g Jump to top
End / G Jump to bottom
/ Search (live matching as you type)
n / N Next / previous match
y Copy full content to clipboard
Escape / q Close overlay

Install

pi install npm:@agnishc/edb-context-viewer

License

MIT © Agnish Chakraborty