context-window

by Chris Han · ★ 0 · updated 3 days ago

PanesCommandsPromptvalidates

0

A pane listing everything that entered the context window since the session started, by turn and by category

install context-window

Install

/plugin marketplace add chrishan17/claude-mod-context-window
/plugin install context-window@claude-mod-context-window

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runui.closesession.appendprompt.composeprompt.contextturn.stepturn.completesession.compactsession.endui.render
API calls
$.agent.list$.clock.after$.command.register$.config.list$.env.get$.prompt.compose$.session.messages$.session.surfaces$.session.usage$.state.get$.state.set$.tool.list$.ui.close$.ui.open$.ui.panes$.ui.resolve$.ui.toast
Draws
Pane
Can see
the system promptcompaction
Reach
level 1 of 3 other: $.prompt.composeother: $.state.getother: $.state.setother: $.tool.listreads env varsreads the transcriptdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/chrishan17/claude-mod-context-window
Path in repo
plugins/context-window
Author
Chris Han @chrishan17
License
MIT
First published
Last pushed
First listed here
On X
Mentioned in 2 posts on X

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

Posts about this repo

Chris Han (金石)@hxljustdoit

I built a Claude Code mod: context-window 🪟 A sidebar that lists everything in your context window: what loaded at startup, what each turn added, and how many tokens each takes. 6 views: timeline, kinds, top, files, origin, growth. MIT, open source 👇 https://github.com/chrishan17/claude-mod-context-window

Chris Han (金石)@hxljustdoit

做了一个 Claude Code mod:context-window 🪟 在侧边栏里列出上下文窗口里的每一样东西:启动时载入了什么、每一轮加进了什么、各占多少 token。 · 因果树:技能 → 工具调用 → 嵌套 CLAUDE.md · 6 种视图:时间线 / 类别 / 排行 / 文件 / 来源 / 增长 开源 MIT 👇 https://github.com/chrishan17/claude-mod-context-window