Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nandyaluv1.1.0In 1 marketplace
A session kit for Claude Code: the handoff skill that moves a long session to a fresh one, a hook that records the token and cache figures of each session for the VS Code usage bar, and a hook that says when a session is large.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A small kit for long Claude Code sessions. It has two parts:
kit, with the handoff skill and two hooks. The skill moves the work of a long session to a fresh one through a short note. One hook records the token, cache and cost figures of each session. The other says, on each prompt above a line, that it is time for the handoff.Install both once on a machine, and they work in every project there.
Every step of a Claude Code session re-reads the whole session, so a long session costs more for each step. At 500,000 tokens of context the kit says the same three steps in four places: run /kit:handoff, then /clear, then say "continue from handoff ".
The skill writes a note of at most 40 lines to .claude/handoffs/<topic>.md in the project. The fresh session reads that note in place of the old conversation.
The plugin, in a Claude Code session:
/plugin marketplace add nandyalu/claude-session-kit
/plugin install kit@nandyalu
Or from the terminal:
claude plugin marketplace add nandyalu/claude-session-kit
claude plugin install kit@nandyalu
The extension, from the latest release:
gh release download --repo nandyalu/claude-session-kit --pattern claude-usage-bar.vsix -D /tmp
code --install-extension /tmp/claude-usage-bar.vsix
Then run Developer: Reload Window in VS Code, and start a new Claude Code session. Over Remote-SSH, run all of this on the remote host: the extension host, the hooks and Claude Code all run there. The hooks need python3 on the machine.
To update the plugin, run claude plugin update kit@nandyalu, or turn on auto-update for the marketplace under /plugin. To update the extension, repeat the two extension commands for the new release.
| Path | What it is |
|---|---|
.claude-plugin/plugin.json | The plugin manifest |
.claude-plugin/marketplace.json | The marketplace list, with this one plugin |
skills/handoff/SKILL.md | The handoff skill, /kit:handoff in a session |
hooks/hooks.json | Registers the two hooks |
hooks/session-usage.py | Writes the figures of each session to ~/.claude/usage/ |
hooks/context-nudge.py | Reports a large session on each prompt |
vscode/ | The Claude usage bar extension |
.github/workflows/release.yml | Builds the .vsix on a v* tag and puts it on the release |
session-usage.py runs after each tool call, at the end of each turn, and when a session ends. It reads the new lines of the session transcript and writes the totals to ~/.claude/usage/<session_id>.json, with the project directory of the session. When CLAUDE_CONFIG_DIR is set, the folder is usage/ under that directory instead. Main-thread requests and subagent requests are counted apart. A SessionEnd event marks the file ended.graft/.cache/session/<session_id>.json inside the project. A project without graft shows no graft figures and no cost.context-nudge.py runs on each prompt. It reads the last context size from the transcript. Above CONTEXT_NUDGE_TOKENS, 500,000 by default, it prints one line for the user and one instruction for Claude.hooks/hooks.json registers both hooks, so they merge with the hooks in ~/.claude/settings.json and nothing there needs to change.| Setting | Default | What it does |
|---|---|---|
claudeUsageBar.warnTokens | 500000 | The context size at which the status bar item turns to the warning color |
claudeUsageBar.alertTokens | 750000 | The context size at which it turns to the error color |
CONTEXT_NUDGE_TOKENS | 500000 | The line above which the nudge hook speaks. Set it in the env block of ~/.claude/settings.json, and keep it equal to warnTokens so the bar and the prompt agree. |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub nandyalu/claude-session-kit --plugin kitPlugins from other owners that cover similar ground