Claude-code-sessions session-stats

install
source · Clone the upstream repo
git clone https://github.com/apappascs/claude-code-sessions
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/apappascs/claude-code-sessions "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/session-stats" ~/.claude/skills/apappascs-claude-code-sessions-session-stats && rm -rf "$T"
manifest: skills/session-stats/SKILL.md
source content

Session Stats

Show detailed statistics for a single session.

Step 1: Resolve the session

If the user provides a session ID or path, use it directly. Otherwise, find the current session:

bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-store.ts list --project "$(basename $(pwd))" --limit 1

Use the

path
field from the first result.

Step 2: Run the stats script

bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-parser.ts stats <session-jsonl-path>

Step 3: Present results

The script outputs a JSON object. Present as a visual summary:

  • Duration and turns as headline stats
  • Token usage as a breakdown (input, output, cache read, cache create) with totals
  • Model distribution as a list showing which models were used and how many turns each
  • Tool usage as a ranked list (most used first)

Note: Cost estimation is not available. Report raw token counts and model names only.