Tool AI tool Limited info

session-lens

A Claude Code add-on that opens a pane with /session-lens showing where the context window and the session's tokens went, for the main agent and every subagent it launched, while the session runs. The pane has a session block with tiles, a cost bar and a timeline marking where subagents and background shells started, and an agents block with each agent's live turn and context bar. It reads the session's own record under ~/.claude/projects/ with jq; without jq it shows only what /context knows. A report line runs Anthropic's session-report plugin on the current session alone, after asking first because the report uses tokens, and writes it to ~/.claude/session-reports/ rather than into the repository. A separate /autocompact-tuning command suggests an auto-compact setting from your last 30 days of usage and asks before writing anything. Installing it also installs Anthropic's session-report plugin from the official marketplace. Needs Claude Code 2.1.308 or later and jq. Licence MIT. 9 stars on GitHub (created 2026-11-01).

  • 9 GitHub stars
session-lens — tool preview

Overview

A Claude Code add-on that opens a pane with /session-lens showing where the context window and the session's tokens went, for the main agent and every subagent it launched, while the session runs. The pane has a session block with tiles, a cost bar and a timeline marking where subagents and background shells started, and an agents block with each agent's live turn and context bar. It reads the session's own record under ~/.claude/projects/ with jq; without jq it shows only what /context knows. A report line runs Anthropic's session-report plugin on the current session alone, after asking first because the report uses tokens, and writes it to ~/.claude/session-reports/ rather than into the repository. A separate /autocompact-tuning command suggests an auto-compact setting from your last 30 days of usage and asks before writing anything. Installing it also installs Anthropic's session-report plugin from the official marketplace. Needs Claude Code 2.1.308 or later and jq. Licence MIT. 9 stars on GitHub (created 2026-11-01).

Quick summary. This page gives a short overview of this tool. For installation steps, full documentation and the latest changes, read the official source; details such as features and versions can change there first.

View on GitHub (opens in a new tab)

Example prompts example

Illustrative examples written by FoxaMind's AI Trends Scout — not quoted from the source.

  • Type /session-lens in a Claude Code session to open the pane.
  • Run /autocompact-tuning to get a suggested auto-compact threshold from your own usage; Esc changes nothing.
  • The screenshot in the README uses made-up figures, as its caption says.