AI Session Diff — AI skill for Claude Code
Git hook that captures AI agent coding sessions and generates visual diffs showing exactly what changed and why.
How to install AI Session Diff
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open fuleinist/ai-session-diff and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Session Diff does
Git hook that captures AI agent coding sessions and generates visual diffs showing exactly what changed and why.
Alternatives in AI
- Session Kit — Close the terminal windows, not the AI coding sessions 649 ★
- Kibitz — Real-time decoded feed of AI agent actions — monitor multiple Claude Code & Codex sessions, see exactly what e 521 ★
- ClaudeCodeStatusLine — Custom status line for Claude Code showing model, tokens, rate limits, and git info in real-time 333 ★
README
AI Session Diff
**Git hooks that record AI coding sessions and generate visual diffs.**
Track what AI coding tools (Cursor, Claude Code, Copilot) changed — and why.
Installation
# Clone the repo
git clone https://github.com/fuleinist/ai-session-diff.git
cd ai-session-diff
# Build
go build -o ai-session-diff .
# Install hooks in your project
./ai-session-diff install
Usage
# List all recorded sessions
ai-session-diff list
# Show diff for a session (terminal)
ai-session-diff show
# Generate HTML report
ai-session-diff report
# Check hook status
ai-session-diff status
# Uninstall hooks
ai-session-diff uninstall
How It Works
- Pre-commit hook snapshots staged files
- Post-commit hook records session metadata and creates the diff
- Session data stored in
.ai-sessions//
AI Detection
Automatically detects:
- Cursor — via
.cursor/directory - Claude Code — via
CLAUDE_CODEorANTHROPIC_MODELenv vars - GitHub Copilot — via
.github/copilot-innbfile
Example Output
⚡ AI Session Diff — Session History
─────────────────────────────────────────────────
abc12345 2026-05-07 +42 -7 a1b2c3d [cursor]
def67890 2026-05-06 +15 -3 e4f5g6h
License
MIT
Related Skills
Explorer
A Cockpit plugin that turns the web console into a full file manager — browse, edit, preview, search, terminal
Pbi Diff
Generate a human-readable summary of all uncommitted changes in the semantic model since the last git commit.
Overscope
Catch AI coding-agent scope creep before you commit. Overscope compares Claude Code and Codex sessions with yo
Claude Code Rewind
🕰️ Time machine for Claude Code sessions - Automatic snapshots, granular rollbacks, and visual diffs. Never f
Promptdiff
Git for prompts. Semantic diff, lint, score & Claude Code hook for LLM prompt files.
Lumbergh
Self-hosted web dashboard for supervising multiple Claude Code AI sessions in tmux. Live terminals, real-time
Related Agents
Repo Session Analyst
Analyzes git diffs, recent commits, changed files, architecture shifts, risks, and TODOs for /recap session. P
Claude Mem
A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresse
Session Memory
Captures and organizes important information from sessions into memory files