pi-context-view

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

pi-context-view


License: MIT npm version Pi Package

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 usage view showing estimated context composition

/context injections

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

Context injections view and item preview

Install

pi install npm:pi-context-view

Context

pi-context-view does not add any instructions or messages to the model context.

License

MIT