ClaudeCodeMod

All shelves / Mods / Usage

session-info

By dougcunha

session-info is a Claude Code usage mod by dougcunha.

Opens a pane of the session: context, cost, prompt cache, plan usage, agents, checks, CI runs, and Git, and holds a prompt that would rewrite an expired cache.

DrawsHolds a command

Install

The marketplace name is claude-mods.

In Claude Code
/plugin install session-info --marketplace dougcunha/claude-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.37.4
License
MIT
Repo stars
4
Last change
2026-10-28

What it can reach

  • Draws in the session
  • Holds a command
  • Reads usage or context figures
  • Sees tool calls
  • Reaches the network or an outside service
  • Calls another program on this machine
  • Runs a command when you press

Answer y to add the marketplace, then pick a scope; with it added, /plugin install session-info@claude-mods. Built and tested on Claude Code 2.1.296, and the function-hooks API is early access. Open it with /session-info. The CI section needs the GitHub CLI logged in, and the Jira section a connected Atlassian MCP server. Mouse clicks work in the fullscreen terminal. Where an organization manages Claude Code, some events don't reach plugins you install, so auto-continue and resume tracking don't work there. Keep warm costs a cache read of the whole context per ping. With checkUpdates on, it asks GitHub once a day for the published version.

The marketplace, claude-mods, holds dougcunha's four mods: session-info, topic-guard, feature-progress, and visual-review. The context, cost, and cache rows are why this page files it under usage. keepalive-alexandernicholson draws a prompt-cache bar for each conversation and can keep an idle cache warm. cache-timer draws a countdown until the prompt cache expires. This one puts twelve sections in one pane, from the last turn's tokens and refused calls to background commands, build and test results, GitHub Actions runs, Jira issues, and a treeview of the files the session changed, and adds a todo_write tool and an Autopick switch that answers a question you left with its recommended option. In the source, the build guard is a tool.call hook on Bash and PowerShell that answers with the earlier result instead of running the command; it starts off. The band is an AbovePrompt render and the pane a Pane render.

Demo

The top of the author's screenshot of the session-info pane: $0.62 cost and 6m 23s elapsed; Session, with the context at 68k of 1.0M, 7%; and Usage, with the current session at 0%, resetting in 4h 17m, and the current week at 40%, resetting in 1d 22h.
From the author's repo.

What it hooks into

  • config.describeA Claude Code event
  • session.startWhen a session starts
  • classic.SessionStartA Claude Code event
  • classic.PostModelSwitchA Claude Code event
  • ui.renderDraws into the sessionAbovePromptPane
  • session.endWhen a session ends
  • command.runWhen you run its slash command/session-info/changes/autopick/compact
  • prompt.submitWhen you send a prompt
  • session.appendWhen an entry is written to the transcript
  • prompt.composeWhile you write a prompt
  • tool.callAround a tool call, where it can hold oneSkillBashPowerShellAskUserQuestion
  • classic.StopA Claude Code event
  • skill.promptA Claude Code event
  • turn.startWhen Claude starts a turn
  • tool.checkA Claude Code event
  • turn.stepAt each step of a turn
  • session.measureWhen usage is measured
  • turn.completeWhen a turn ends
  • prompt.suggestA Claude Code event
  • agent.spawnWhen a subagent starts
  • session.compactWhen the context is compacted
  • ui.scrollA Claude Code eventPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 3

  • /session-infoShow the session, plan usage and the files this session created, modified or deleted
  • /changesSame as /session-info
  • /autopickPick the recommended option of a question left unanswered: status, on, off, <minutes>

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
dougcunha
Category
Usage
Marketplace
claude-mods
Repo
dougcunha/claude-mods
Folder
session-info
Version
0.37.4
License
MIT
Repo stars
4
Last change
2026-10-28
Language
TypeScript
Files
72

Other mods in Usage

ccbaremaballarinDraws a quiet band above the prompt: model and effort, the GitHub repo and branch with lines changed, a context bar split as /context, tokens, and plan limits.token-monitor-hudfractal-manifoldDraws the 5-hour and 7-day windows above the prompt with reset times and where each lands at this pace, plus Codex and Antigravity quotas if they're signed in.cost-ledgerFynnXlandKeeps a ledger of what every chat cost, plus other mods' model calls, and draws /ledger: today, 7 and 30 days, projects, top chats, models, and plan limits.limit-barsFynnXlandDraws the 5-hour and weekly limits as two slim bars above the prompt, a ring for how long the prompt cache stays warm, and asks before a costly cold send.claude-loadGerruxOpens a /load pane of CPU and memory per Claude Code session, with orphaned dev servers you can end, and draws a load line above the prompt under high load.smart-compacthellosverreOffers /compact in a dialog above the prompt at good moments: after a commit, when tests go green, before the prompt cache expires, or when Claude asks.tideHula-Hoop-AIDraws the context window as a tide above the prompt: a fill bar by phase, a sparkline of recent turns, the rise per turn, and turns left before compaction.cache-ttl-statuslineJerrettDavisDraws session, plan-limit, and Headroom lines with model, cost, context, and a cache TTL that turns yellow then red, below the prompt or, in mod mode, above it.usage-meterLeeHigma0201Shows context fill, the 5-hour and 7-day plan windows, and session cost on the status line, and toasts when a plan window crosses 80% and 95%.subagent-meterNarenDawarShows on the status line how many subagents ran, their share of output tokens and of all tokens, and the agent type that used the most.usage-weatherptpmediabrDraws one line above the prompt with the context as a weather icon, the 5-hour and weekly limits with resets, cache warmth, and a Clear & continue button.am-context-barromnycristopherDraws a card above the prompt with context use against where quality drops, what fills it, turns left, limits, git status, and the phase of a plan you're on.
All 183 in Usage