session-report

session-report is a command for Claude Code from damusix/atomic-claude. It costs 31 tokens per session (1,046 once invoked), scanned A, original, MIT.

A command that records what changed on the current Git branch and why. Git is a tool for tracking code changes, and a branch is a separate line of work.

In plain words
What is it for?
Use it at the end of a coding session when work spans multiple sessions and the final commit or squash needs an explanation of the changes.
Why use it?
A later commit message can lose the original reasoning behind a long-running change. This creates a report that preserves that context for the eventual commit.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it at the end of a coding session when work spans multiple sessions and the final commit or squash needs an explanation of the changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/damusix/atomic-claude/session-report
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/damusix/atomic-claude

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-report

README.md
[![agentmods](https://agentmods.dev/badge/commands/damusix/atomic-claude/session-report/github.svg)](https://agentmods.dev/commands/damusix/atomic-claude/session-report)
Your own site
<a href="https://agentmods.dev/commands/damusix/atomic-claude/session-report"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/session-report/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-report

Your own site · 80×15
<a href="https://agentmods.dev/commands/damusix/atomic-claude/session-report"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/session-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01046
Opus 5.5 $0.00012 $0.00418
Sonnet 5.5 $0.00006 $0.00209
Haiku 4.5 $0.00003 $0.00105

Measured 12d ago against content hash 4914d3cf2adc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-report scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

context/commands/session-report.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to use

Long-running branch spanning multiple sessions. The eventual commit (or squash) needs the why behind the work, but git diff alone loses that. Run /session-report at the end of a session to capture intent for the future commit-message synthesis.

Opt-in only. Does not auto-fire.

Flow

A report is written only when the tree has changes, and a detached HEAD scopes it to the commit SHA instead of a branch.

flowchart TD
    C{"Changes since<br/>last commit?"} -->|no| X["Refuse"]
    C -->|yes| B{"On a branch?"}
    B -->|no| W["Warn, key by SHA"]
    B -->|yes| P["Compute path"]
    W --> P
    P --> G["Gather signal"]
    G --> R["Write report"]
    R --> O["Report path"]
  • Changes since last commit?: git status --porcelain prints anything. No: refused: no changes since last commit — nothing to report.
  • On a branch?: git branch --show-current prints a name.
  • Warn, key by SHA: use git rev-parse --short HEAD and warn detached HEAD — report scoped to <sha> not a branch.
  • Compute path: dir is atomic where --json's reports field — already branch-scoped, with the legacy fallback folded in. Never construct it by hand. Filename <YYYY-MM-DD-HHMM>-<slug>.md; slug from $ARGUMENTS if provided, otherwise inferred from the most prominent change in the working tree (one or two kebab-case words). On a collision (same minute + same slug) append -2, -3, etc.
  • Gather signal: git status --porcelain (touched files, staged + unstaged), git diff --stat and git diff --cached --stat (magnitude per file), and recent conversation context — what was tried, what was rejected, what the user clarified mid-flight.
  • Write report: seed the path from the embedded template — atomic template session-report > <path> — then fill every <angle-bracket> placeholder (frontmatter + ## What changed + ## Why + optional ## Open threads) and delete the guidance comment.
  • Report path: print wrote <reports-dir>/<file>.md, using the reports path from atomic where --json.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +4 lines 4914d3cf2adc
  2. 3mo ago First seen · 65 lines · 31 tokens per session scan A 48d80237a797

Subscribe to this mod's changes

session-report is a command published in the GitHub repository damusix/atomic-claude (117 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 1,046 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

session-report compared with commands from other repositories

session-report next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-reportdamusix/atomic-claudeCommand1172d agoMITA31Claude Code
simplify-transformaxiomantic/spellbookCommand136d agoMITA14Claude Code
fix-tests-executeaxiomantic/spellbookCommand136d agoMITA23Claude Code
commitfuxicodex/FuxiCommand3.2k7d agononeA4Claude Code
verifyaxiomantic/spellbookCommand136d agoMITA31Claude Code
ccc-parallelKevinZai/commanderCommand6todayMITA36Claude Code
ccc-prKevinZai/commanderCommand6todayMITA34Claude Code