GitHub Hot Board

GitHub Hot Board · リポジトリアーカイブ

dimk90/pi-context-view

Pi extension to visualize context usage and inspect the hidden parts: base prompt, tools defs, and extension injections (説明はリポジトリ自身のドキュメント由来です。)

データ時点 October 25dimk90

最高順位

#14

見過ごされた宝石 · 活発なのに無名

100

累計スター

17

フォーク数

1

直近 30 日のランクイン日数

プロジェクト状態ライセンス: MIT最終 push: October 25未解決 Issue(PR 含む): 2

2026-10-25 から収集。不明 = 未収集

README にバッジを貼ろう · dimk90/pi-context-view[![README にバッジを貼ろう](https://git.vaiox.xyz/api/badge/dimk90/pi-context-view.svg)](https://git.vaiox.xyz/ja/repo/dimk90/pi-context-view)
<a href="https://git.vaiox.xyz/ja/repo/dimk90/pi-context-view"><img src="https://git.vaiox.xyz/api/badge/dimk90/pi-context-view.svg" alt="README にバッジを貼ろう" height="20"></a>

プロジェクト文書

pi-context-view


License: MIT npm version Pi Package npm downloads Discord


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, including changes that extensions make only to the request sent to the model.

Commands

  • /context - shorthand for /context usage.
  • /context usage - open the context usage visualization.
  • /context injections - explore the latest request's injections: its system prompt, tool definitions, and extension contributions.
  • /context config - create the global configuration file populated with defaults, useful for customization.

Demo: /context

See what fills your context, for example, what survives compaction:

Context usage view showing estimated context composition
➥ Pi theme in this demo: dark-legacy.

Demo: /context injections

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

Context injections view and item preview
➥ Pi theme in this demo: dark-legacy.

Demo: Zoom

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

Zoom feature
➥ Pi theme in this demo: dark-legacy.

Install

pi install npm:pi-context-view

Customization

Currently, you can customize only the colors and dimensions of the Context Usage map.

To get started, create a configuration file populated with the current defaults:

/context config

➥ This creates ~/.pi/agent/extensions/pi-context-view.json.

See the configuration reference for each parameter's meaning and default value.

Category Colors

You can use theme color names to match your current theme or hex values for colors that stay the same across themes. Here are examples of custom terrain and rainbow palettes:

Terrain and rainbow palettes
➥ Pi theme in this demo: dark-legacy.

See the theme color reference for color names that follow the current theme.

Map Size

You can configure the number of rows and columns in the Context Usage map:

Map size demo
➥ Pi theme in this demo: dark-legacy.

Context Footprint

pi-context-view adds nothing to the model context. Opening a view before the first turn may run one silent probe that sends no request and leaves only blank entries, omitted from future context. Set "autoProbing": false in the config to disable it.

My Other Stuff

📌 S-VHS - terminal recorder used to create the demo GIFs.

License

MIT

現在のランクイン

  • 14

    見過ごされた宝石 · 活発なのに無名

    100 スター · 17 fork · 総スター数(昇順)

    過小評価 →

直近30日の推移

スター累計の推移

ランキング推移

同ランキングで競う隣接リポジトリ · 過小評価

類似プロジェクト · 共有トピック

← ランキングへ戻る