
Session Logs
- Updated March 6, 2026
- rewinfrey/claude-plugins
session-logs is a Claude Code skill in the Git & Pull Requests category. Captures Claude Code session transcripts as structured Markdown logs alongside commits
Key points
- session-logs
- Git & Pull Requests
- AI-coding skill
Session Logs by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
/plugin marketplace add rewinfrey/claude-plugins/plugin install session-logs@rewinfrey-pluginsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Last updated | March 6, 2026 |
|---|---|
| Repository | rewinfrey/claude-plugins ↗ |
What it does
Captures Claude Code session transcripts as structured Markdown logs alongside commits
README.md
claude-plugins
A collection of custom plugins for Claude Code, Anthropic's official CLI for Claude.
Plugins
session-logs
Captures Claude Code session transcripts as structured Markdown logs that are automatically committed alongside code changes. Each log includes conversation history, token usage, tool calls, and associated file changes.
Session logs are stored in a .sessions/ directory at the root of your project (created automatically if it doesn't exist).
How it works:
- A
SessionStarthook injectsCLAUDE_SESSION_IDandCLAUDE_TRANSCRIPT_PATHenvironment variables into the session - The
/scommitslash command generates a session log from the JSONL transcript, then guides you through committing it with your code changes - Session logs are saved to
.sessions/<timestamp>.mdwith YAML frontmatter containing metadata and token statistics
Usage:
/scommit
This will:
- Parse the current session transcript
- Generate a Markdown log with conversation history and usage stats
- Stage your changes and create a commit that includes the session log
Session log contents:
- Session metadata (model, CLI version, duration)
- Token usage (input, output, cache reads/writes)
- Tool call counts
- File changes
- Full conversation with truncated tool outputs
Installation
This repo is a Claude Code plugin marketplace. Install plugins in two steps:
1. Add the marketplace
/plugin marketplace add rewinfrey/claude-plugins
2. Install a plugin
/plugin install session-logs@rewinfrey-plugins
After installation, the /session-logs:scommit command is immediately available. Run /reload-plugins if commands don't appear right away.
Requirements
- Claude Code
- Node.js with
tsx(for running the TypeScript log generator) jq(used by the session hook handler)
License
MIT