fuleinist

AI Session Diff — AI skill for Claude Code

AI community

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

  1. Pre-commit hook snapshots staged files
  2. Post-commit hook records session metadata and creates the diff
  3. Session data stored in .ai-sessions//

AI Detection

Automatically detects:

  • Cursor — via .cursor/ directory
  • Claude Code — via CLAUDE_CODE or ANTHROPIC_MODEL env vars
  • GitHub Copilot — via .github/copilot-innb file

Example Output

⚡ AI Session Diff — Session History
─────────────────────────────────────────────────
  abc12345  2026-05-07  +42 -7  a1b2c3d [cursor]
  def67890  2026-05-06  +15 -3  e4f5g6h

License

MIT