← Catalog

@agnishc/edb-context-viewer

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

Extension

Install

Install with PiG

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

Install with Pi

pi install npm:@agnishc/edb-context-viewer
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.21.1 (README.md). PiG does not review it.

@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

TabWhat it shows
StatsToken distribution grid (10×5 colored blocks) + per-category breakdown table
SystemThe full system prompt (includes tools, skills, guidelines, AGENTS.md, etc.)
ToolsAll active tool definitions with descriptions and parameter schemas
MessagesAll session messages (user, assistant, tool calls/results)
FullComplete 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

KeyAction
TabNext tab
Shift+TabPrevious tab
↑ / kScroll up (content tabs)
↓ / jScroll down (content tabs)
Page Up / Ctrl+BScroll up one page
Page Down / Ctrl+FScroll down one page
Ctrl+U / Ctrl+DScroll half page
Home / gJump to top
End / GJump to bottom
/Search (live matching as you type)
n / NNext / previous match
yCopy full content to clipboard
Escape / qClose overlay

Install

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

License

MIT © Agnish Chakraborty