Home / Claude Code mods / Cost & usage / session-stats

session-stats

session-stats is a Claude Code mod by hn83320589 that 工作階段狀態 pane:用量與預報(context、rate limit、compact 預估,可手動重新整理)、任務與執行紀錄(回放)、上下文與改動範圍;context 達 80% 時在回合之間先壓縮,壓縮摘要存到專案 .claude/session-notes/.

Updated 2026-10-07

What is session-stats?

session-stats is a Claude Code mod by hn83320589 that 工作階段狀態 pane:用量與預報(context、rate limit、compact 預估,可手動重新整理)、任務與執行紀錄(回放)、上下文與改動範圍;context 達 80% 時在回合之間先壓縮,壓縮摘要存到專案 .claude/session-notes/. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authorhn83320589
Repositoryhn83320589/claude-mods
Popularityno public popularity data yet
CategoryCost & usage
SecurityReview before installing (72/100)
Rank#3,364 of 5,272 Claude Code mods; #620 in Cost & usage
Last commit2026-10-07
Hooks8 events
Seescompaction, every prompt, every tool call
Draws onPane

Is session-stats safe to install?

session-stats scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.agent.list
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.fs.listreads files
$.fs.statreads files
$.fs.writewrites files
$.session.compactdrives Claude
$.session.model
$.session.root
$.session.turns
$.session.usage
$.state.get
$.state.set
$.ui.closedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install session-stats?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/hn83320589/claude-mods
    claude plugin validate ./claude-mods/session-stats
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add hn83320589/claude-mods && claude plugin install session-stats@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs session-stats for you:

Install the "session-stats" Claude Code mod from https://github.com/hn83320589/claude-mods/tree/main/session-stats. Run claude plugin validate on it first and show me what it can access before you enable it.

More from hn83320589/claude-mods

This repository has 2 Claude Code mods on MCPMods.

  • project-activity: 任何專案通用:專案活動 pane(專案狀態、熱門檔案、最近活動)與 Git 狀態 pane,加上測試結果 status line 與回合摘要 band (Review before installing)