Install command
Provided
Collects and reports detailed metrics about the coding session when Claude stops.
Open the source and read safety notes before installing.
Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.
Decision playbook
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
0
78
—
No baseline selected
No major trust-signal divergence detected in the current selection.
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Source provenance statusRequired
Marked as source-backed.
Metadata reviewed
Registry metadata indicates a reviewed listing.
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Trust level risk gateRequired
Trust level does not block evaluation.
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Package verification flag
No package verification flag provided.
Checksum metadata
No checksum provided for downloaded artifact.
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
Baseline comparison available
No baseline peer selected yet.
Diverging trust signals identified
No major trust-signal divergence found.
Setup at a glance
Copy-ready — paste the snippet to get started.
Install command
Provided
Config snippet
Provided
Copy snippet
Provided
Prerequisites
None
Platforms
1 listed
Difficulty
0/100
Adoption plan
Current risk score 16/100. Use staged verification before broader rollout.
Validate source and review signals before any execution.
Confirm source provenanceRequired
Source URL/provenance metadata is present.
Confirm metadata review state
Listing has review metadata.
Verify install payload
Install/config payload exists and can be inspected.
Confirm safety, privacy, and package integrity signals.
Review safety notesRequired
Safety notes are present.
Review privacy notesRequired
Privacy notes are present.
Verify package integrity metadata
No package verification/checksum metadata.
Adopt in controlled steps based on the selected plan.
Run in isolated sandbox firstRequired
Use a constrained sandbox and observe behavior across multiple tasks.
Roll out graduallyRequired
Roll out to a small cohort before wider usage.
Set monitoring and fallback
Define rollback path and monitor errors after adoption.
Evidence readiness
Required evidence gates are covered (5/6 signals complete).
Source repository/provenance is listed.
Required in this preset
Review metadata is present.
Required in this preset
Safety notes are present.
Required in this preset
Privacy notes are present.
Optional in this preset
Package integrity metadata is missing.
Optional in this preset
Install payload is available.
Required in this preset
Required evidence gates are covered for this preset.
Decision timeline
5/6 steps complete with no blocking gaps for this preset.
triage
Source/provenance metadata is available.
triage
Review metadata is available.
verify
Safety notes are available.
verify
Privacy notes are available.
verify
Package integrity metadata is missing.
rollout
Install payload is available.
No required blockers for this timeline preset.
Safety & privacy surface
1 safety and 1 privacy notes across 2 risk areas. Review closely: credentials & tokens, permissions & scopes.
#!/bin/bash
echo "📊 Session Metrics Collector - Gathering session analytics..."
echo "⏱️ Session ended: $(date)"
# Create metrics directory
mkdir -p .metrics
# Session metadata
SESSION_ID="$(date +%Y%m%d_%H%M%S)"
METRICS_FILE=".metrics/session-${SESSION_ID}.json"
END_TIME=$(date)
END_TIMESTAMP=$(date +%s)
echo "💾 Collecting session metrics..."
# Get session start time (approximate from oldest .claude file or fallback)
if [ -d ".claude" ] && [ "$(find .claude -type f 2>/dev/null | wc -l)" -gt 0 ]; then
START_TIMESTAMP=$(stat -f %B .claude/*.log 2>/dev/null | head -1 || echo $((END_TIMESTAMP - 3600)))
else
# Fallback: assume 1 hour session
START_TIMESTAMP=$((END_TIMESTAMP - 3600))
fi
SESSION_DURATION=$((END_TIMESTAMP - START_TIMESTAMP))
SESSION_HOURS=$((SESSION_DURATION / 3600))
SESSION_MINUTES=$(((SESSION_DURATION % 3600) / 60))
echo "⏱️ Session Duration: ${SESSION_HOURS}h ${SESSION_MINUTES}m"
# File statistics
echo "📁 Analyzing file changes..."
# Git-based analysis (preferred)
if git rev-parse --git-dir >/dev/null 2>&1; then
FILES_MODIFIED=$(git diff --name-only 2>/dev/null | wc -l | tr -d ' ')
FILES_ADDED=$(git diff --name-status 2>/dev/null | grep '^A' | wc -l | tr -d ' ')
FILES_DELETED=$(git diff --name-status 2>/dev/null | grep '^D' | wc -l | tr -d ' ')
# Line statistics
LINE_STATS=$(git diff --shortstat 2>/dev/null || echo "0 files changed")
LINES_ADDED=$(echo "$LINE_STATS" | grep -o '[0-9]\+ insertion' | grep -o '[0-9]\+' || echo 0)
LINES_DELETED=$(echo "$LINE_STATS" | grep -o '[0-9]\+ deletion' | grep -o '[0-9]\+' || echo 0)
# Languages used
LANGUAGES=$(git diff --name-only 2>/dev/null | sed 's/.*\.//' | sort | uniq -c | sort -nr | head -5)
else
# Fallback: recent file changes
FILES_MODIFIED=$(find . -type f -newer .metrics 2>/dev/null | wc -l | tr -d ' ' || echo "0")
FILES_ADDED="unknown"
FILES_DELETED="unknown"
LINES_ADDED="unknown"
LINES_DELETED="unknown"
LANGUAGES="unknown"
fi
echo "📊 File Statistics:"
echo " • Files Modified: $FILES_MODIFIED"
echo " • Files Added: $FILES_ADDED"
echo " • Files Deleted: $FILES_DELETED"
echo " • Lines Added: $LINES_ADDED"
echo " • Lines Deleted: $LINES_DELETED"
# Repository analysis
if git rev-parse --git-dir >/dev/null 2>&1; then
REPO_NAME=$(basename "$(git rev-parse --show-toplevel)" 2>/dev/null || echo "unknown")
CURRENT_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
COMMIT_COUNT=$(git rev-list --count HEAD 2>/dev/null || echo "unknown")
echo "📂 Repository Info:"
echo " • Repository: $REPO_NAME"
echo " • Branch: $CURRENT_BRANCH"
echo " • Total Commits: $COMMIT_COUNT"
fi
# System information
CWD=$(pwd)
USER=$(whoami 2>/dev/null || echo "unknown")
HOST=$(hostname 2>/dev/null || echo "unknown")
echo "🖥️ Environment:"
echo " • User: $USER"
echo " • Host: $HOST"
echo " • Directory: $(basename "$CWD")"
# Activity analysis from .claude logs
if [ -d ".claude" ]; then
ACTIVITY_COUNT=$(find .claude -name "*.log" -exec cat {} \; 2>/dev/null | wc -l | tr -d ' ')
echo "📈 Activity: $ACTIVITY_COUNT logged actions"
fi
# Generate JSON metrics
echo "💾 Saving detailed metrics to: $METRICS_FILE"
cat > "$METRICS_FILE" << EOF
{
"session": {
"id": "$SESSION_ID",
"start_time": "$(date -r $START_TIMESTAMP 2>/dev/null || echo 'unknown')",
"end_time": "$END_TIME",
"duration_seconds": $SESSION_DURATION,
"duration_formatted": "${SESSION_HOURS}h ${SESSION_MINUTES}m"
},
"files": {
"modified": $FILES_MODIFIED,
"added": $FILES_ADDED,
"deleted": $FILES_DELETED
},
"lines": {
"added": $LINES_ADDED,
"deleted": $LINES_DELETED
},
"repository": {
"name": "$REPO_NAME",
"branch": "$CURRENT_BRANCH",
"total_commits": $COMMIT_COUNT
},
"environment": {
"user": "$USER",
"host": "$HOST",
"working_directory": "$CWD"
},
"productivity": {
"files_per_hour": $(echo "scale=2; $FILES_MODIFIED * 3600 / $SESSION_DURATION" | bc -l 2>/dev/null || echo 0),
"lines_per_hour": $(echo "scale=2; ($LINES_ADDED + $LINES_DELETED) * 3600 / $SESSION_DURATION" | bc -l 2>/dev/null || echo 0)
}
}
EOF
# Summary statistics
echo ""
echo "📊 Session Summary:"
echo " • Duration: ${SESSION_HOURS}h ${SESSION_MINUTES}m"
echo " • Productivity: $(echo "scale=1; $FILES_MODIFIED * 3600 / $SESSION_DURATION" | bc -l 2>/dev/null || echo '0') files/hour"
echo " • Total Changes: $((LINES_ADDED + LINES_DELETED)) lines"
# Historical comparison
if [ "$(find .metrics -name 'session-*.json' 2>/dev/null | wc -l)" -gt 1 ]; then
PREV_SESSION=$(find .metrics -name 'session-*.json' | sort | tail -2 | head -1)
if [ -f "$PREV_SESSION" ]; then
echo "📈 Compared to last session:"
echo " • Previous session available for comparison"
fi
fi
# Cleanup old metrics (keep last 30 sessions)
find .metrics -name 'session-*.json' | sort | head -n -30 | xargs rm -f 2>/dev/null
echo ""
echo "💡 Productivity Tips:"
echo " • Review metrics regularly to identify patterns"
echo " • Set productivity goals for future sessions"
echo " • Use metrics to optimize development workflow"
echo " • Compare sessions to track improvement"
echo ""
echo "🎯 Session metrics collection complete!"
echo "📄 Full report saved to: $METRICS_FILE"
exit 0{
"hooks": {
"stop": {
"script": "./.claude/hooks/session-metrics-collector.sh",
"matchers": [
"*"
]
}
}
}.claude/settings.local.json~/.claude/settings.json.claude/settings.json{
"hooks": {
"stop": {
"script": "./.claude/hooks/session-metrics-collector.sh",
"matchers": ["*"]
}
}
}
#!/bin/bash
echo "📊 Session Metrics Collector - Gathering session analytics..."
echo "⏱️ Session ended: $(date)"
# Create metrics directory
mkdir -p .metrics
# Session metadata
SESSION_ID="$(date +%Y%m%d_%H%M%S)"
METRICS_FILE=".metrics/session-${SESSION_ID}.json"
END_TIME=$(date)
END_TIMESTAMP=$(date +%s)
echo "💾 Collecting session metrics..."
# Get session start time (approximate from oldest .claude file or fallback)
if [ -d ".claude" ] && [ "$(find .claude -type f 2>/dev/null | wc -l)" -gt 0 ]; then
START_TIMESTAMP=$(stat -f %B .claude/*.log 2>/dev/null | head -1 || echo $((END_TIMESTAMP - 3600)))
else
# Fallback: assume 1 hour session
START_TIMESTAMP=$((END_TIMESTAMP - 3600))
fi
SESSION_DURATION=$((END_TIMESTAMP - START_TIMESTAMP))
SESSION_HOURS=$((SESSION_DURATION / 3600))
SESSION_MINUTES=$(((SESSION_DURATION % 3600) / 60))
echo "⏱️ Session Duration: ${SESSION_HOURS}h ${SESSION_MINUTES}m"
# File statistics
echo "📁 Analyzing file changes..."
# Git-based analysis (preferred)
if git rev-parse --git-dir >/dev/null 2>&1; then
FILES_MODIFIED=$(git diff --name-only 2>/dev/null | wc -l | tr -d ' ')
FILES_ADDED=$(git diff --name-status 2>/dev/null | grep '^A' | wc -l | tr -d ' ')
FILES_DELETED=$(git diff --name-status 2>/dev/null | grep '^D' | wc -l | tr -d ' ')
# Line statistics
LINE_STATS=$(git diff --shortstat 2>/dev/null || echo "0 files changed")
LINES_ADDED=$(echo "$LINE_STATS" | grep -o '[0-9]\+ insertion' | grep -o '[0-9]\+' || echo 0)
LINES_DELETED=$(echo "$LINE_STATS" | grep -o '[0-9]\+ deletion' | grep -o '[0-9]\+' || echo 0)
# Languages used
LANGUAGES=$(git diff --name-only 2>/dev/null | sed 's/.*\.//' | sort | uniq -c | sort -nr | head -5)
else
# Fallback: recent file changes
FILES_MODIFIED=$(find . -type f -newer .metrics 2>/dev/null | wc -l | tr -d ' ' || echo "0")
FILES_ADDED="unknown"
FILES_DELETED="unknown"
LINES_ADDED="unknown"
LINES_DELETED="unknown"
LANGUAGES="unknown"
fi
echo "📊 File Statistics:"
echo " • Files Modified: $FILES_MODIFIED"
echo " • Files Added: $FILES_ADDED"
echo " • Files Deleted: $FILES_DELETED"
echo " • Lines Added: $LINES_ADDED"
echo " • Lines Deleted: $LINES_DELETED"
# Repository analysis
if git rev-parse --git-dir >/dev/null 2>&1; then
REPO_NAME=$(basename "$(git rev-parse --show-toplevel)" 2>/dev/null || echo "unknown")
CURRENT_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
COMMIT_COUNT=$(git rev-list --count HEAD 2>/dev/null || echo "unknown")
echo "📂 Repository Info:"
echo " • Repository: $REPO_NAME"
echo " • Branch: $CURRENT_BRANCH"
echo " • Total Commits: $COMMIT_COUNT"
fi
# System information
CWD=$(pwd)
USER=$(whoami 2>/dev/null || echo "unknown")
HOST=$(hostname 2>/dev/null || echo "unknown")
echo "🖥️ Environment:"
echo " • User: $USER"
echo " • Host: $HOST"
echo " • Directory: $(basename "$CWD")"
# Activity analysis from .claude logs
if [ -d ".claude" ]; then
ACTIVITY_COUNT=$(find .claude -name "*.log" -exec cat {} \; 2>/dev/null | wc -l | tr -d ' ')
echo "📈 Activity: $ACTIVITY_COUNT logged actions"
fi
# Generate JSON metrics
echo "💾 Saving detailed metrics to: $METRICS_FILE"
cat > "$METRICS_FILE" << EOF
{
"session": {
"id": "$SESSION_ID",
"start_time": "$(date -r $START_TIMESTAMP 2>/dev/null || echo 'unknown')",
"end_time": "$END_TIME",
"duration_seconds": $SESSION_DURATION,
"duration_formatted": "${SESSION_HOURS}h ${SESSION_MINUTES}m"
},
"files": {
"modified": $FILES_MODIFIED,
"added": $FILES_ADDED,
"deleted": $FILES_DELETED
},
"lines": {
"added": $LINES_ADDED,
"deleted": $LINES_DELETED
},
"repository": {
"name": "$REPO_NAME",
"branch": "$CURRENT_BRANCH",
"total_commits": $COMMIT_COUNT
},
"environment": {
"user": "$USER",
"host": "$HOST",
"working_directory": "$CWD"
},
"productivity": {
"files_per_hour": $(echo "scale=2; $FILES_MODIFIED * 3600 / $SESSION_DURATION" | bc -l 2>/dev/null || echo 0),
"lines_per_hour": $(echo "scale=2; ($LINES_ADDED + $LINES_DELETED) * 3600 / $SESSION_DURATION" | bc -l 2>/dev/null || echo 0)
}
}
EOF
# Summary statistics
echo ""
echo "📊 Session Summary:"
echo " • Duration: ${SESSION_HOURS}h ${SESSION_MINUTES}m"
echo " • Productivity: $(echo "scale=1; $FILES_MODIFIED * 3600 / $SESSION_DURATION" | bc -l 2>/dev/null || echo '0') files/hour"
echo " • Total Changes: $((LINES_ADDED + LINES_DELETED)) lines"
# Historical comparison
if [ "$(find .metrics -name 'session-*.json' 2>/dev/null | wc -l)" -gt 1 ]; then
PREV_SESSION=$(find .metrics -name 'session-*.json' | sort | tail -2 | head -1)
if [ -f "$PREV_SESSION" ]; then
echo "📈 Compared to last session:"
echo " • Previous session available for comparison"
fi
fi
# Cleanup old metrics (keep last 30 sessions)
find .metrics -name 'session-*.json' | sort | head -n -30 | xargs rm -f 2>/dev/null
echo ""
echo "💡 Productivity Tips:"
echo " • Review metrics regularly to identify patterns"
echo " • Set productivity goals for future sessions"
echo " • Use metrics to optimize development workflow"
echo " • Compare sessions to track improvement"
echo ""
echo "🎯 Session metrics collection complete!"
echo "📄 Full report saved to: $METRICS_FILE"
exit 0
Complete hook script that collects session metrics on session stop
#!/bin/bash
echo "📊 Session Metrics Collector - Gathering session analytics..."
echo "⏱️ Session ended: $(date)"
mkdir -p .metrics
SESSION_ID="$(date +%Y%m%d_%H%M%S)"
METRICS_FILE=".metrics/session-${SESSION_ID}.json"
END_TIMESTAMP=$(date +%s)
START_TIMESTAMP=$((END_TIMESTAMP - 3600))
SESSION_DURATION=$((END_TIMESTAMP - START_TIMESTAMP))
if git rev-parse --git-dir >/dev/null 2>&1; then
FILES_MODIFIED=$(git diff --name-only 2>/dev/null | wc -l | tr -d ' ')
LINES_ADDED=$(git diff --shortstat 2>/dev/null | grep -o '[0-9]\+ insertion' | grep -o '[0-9]\+' || echo 0)
else
FILES_MODIFIED=0
LINES_ADDED=0
fi
cat > "$METRICS_FILE" << EOF
{
"session": {
"id": "$SESSION_ID",
"duration_seconds": $SESSION_DURATION
},
"files": {
"modified": $FILES_MODIFIED
},
"lines": {
"added": $LINES_ADDED
}
}
EOF
echo "📄 Metrics saved to: $METRICS_FILE"
exit 0
Complete hook configuration for .claude/settings.json to enable session metrics collection
{
"hooks": {
"stop": {
"script": "./.claude/hooks/session-metrics-collector.sh",
"matchers": ["*"]
}
}
}
Enhanced hook script using jq for safe JSON generation and Git diff HEAD for all uncommitted changes
#!/bin/bash
SESSION_ID="$(date +%Y%m%d_%H%M%S)"
METRICS_FILE=".metrics/session-${SESSION_ID}.json"
END_TIMESTAMP=$(date +%s)
START_TIMESTAMP=$(stat -c %Y .claude 2>/dev/null || echo $((END_TIMESTAMP - 3600)))
SESSION_DURATION=$((END_TIMESTAMP - START_TIMESTAMP))
if [ "$SESSION_DURATION" -lt 60 ]; then
SESSION_DURATION=60
fi
if git rev-parse --git-dir >/dev/null 2>&1; then
FILES_MODIFIED=$(git diff HEAD --name-only 2>/dev/null | wc -l | tr -d ' ')
LINES_ADDED=$(git diff HEAD --shortstat 2>/dev/null | grep -o '[0-9]\+ insertion' | grep -o '[0-9]\+' || echo 0)
LINES_DELETED=$(git diff HEAD --shortstat 2>/dev/null | grep -o '[0-9]\+ deletion' | grep -o '[0-9]\+' || echo 0)
else
FILES_MODIFIED=0
LINES_ADDED=0
LINES_DELETED=0
fi
PRODUCTIVITY=$(awk "BEGIN {printf \"%.2f\", $FILES_MODIFIED * 3600 / $SESSION_DURATION}")
jq -n --arg id "$SESSION_ID" --argjson duration $SESSION_DURATION --argjson files $FILES_MODIFIED --argjson added $LINES_ADDED --argjson deleted $LINES_DELETED --argjson productivity $PRODUCTIVITY '{session: {id: $id, duration_seconds: $duration}, files: {modified: $files}, lines: {added: $added, deleted: $deleted}, productivity: {files_per_hour: $productivity}}' > "$METRICS_FILE"
exit 0
Enhanced hook script with historical session comparison and language usage analysis
#!/bin/bash
SESSION_ID="$(date +%Y%m%d_%H%M%S)"
METRICS_FILE=".metrics/session-${SESSION_ID}.json"
if [ -d ".metrics" ] && [ "$(find .metrics -name 'session-*.json' 2>/dev/null | wc -l)" -gt 0 ]; then
PREV_SESSION=$(find .metrics -name 'session-*.json' | sort | tail -1)
if [ -f "$PREV_SESSION" ]; then
PREV_FILES=$(jq -r '.files.modified // 0' "$PREV_SESSION" 2>/dev/null || echo 0)
PREV_DURATION=$(jq -r '.session.duration_seconds // 0' "$PREV_SESSION" 2>/dev/null || echo 0)
echo "📈 Previous session: $PREV_FILES files, ${PREV_DURATION}s"
fi
fi
if git rev-parse --git-dir >/dev/null 2>&1; then
FILES_MODIFIED=$(git diff HEAD --name-only 2>/dev/null | wc -l | tr -d ' ')
LANGUAGES=$(git diff HEAD --name-only 2>/dev/null | sed 's/.*\.//' | sort | uniq -c | sort -nr | head -5 | awk '{print $2":"$1}' | tr '\n' ',' | sed 's/,$//')
else
FILES_MODIFIED=0
LANGUAGES=""
fi
jq -n --arg id "$SESSION_ID" --argjson files $FILES_MODIFIED --arg langs "$LANGUAGES" '{session: {id: $id}, files: {modified: $files}, languages: $langs}' > "$METRICS_FILE"
exit 0
Example session metrics configuration for customizing metrics collection
{
"session_metrics": {
"metrics_directory": ".metrics",
"retention_days": 30,
"include_git_stats": true,
"include_language_stats": true,
"include_productivity_stats": true,
"compare_with_previous": true
}
}
Hook relies on .claude directory timestamps. Ensure .claude exists before sessions. On Linux use 'stat -c %Y' instead of macOS 'stat -f %B' for timestamp extraction compatibility. Verify timestamp extraction. Test with various timestamp formats.
Run 'git add .' before stopping to stage changes. Hook uses 'git diff' showing only unstaged. Modify script to use 'git diff HEAD' for all uncommitted changes instead. Verify Git status. Test with various Git states.
Install bc: 'brew install bc' (macOS) or 'apt-get install bc' (Linux). Or replace with awk: 'awk "BEGIN {printf "%.2f", $FILES_MODIFIED * 3600 / $SESSION_DURATION}"'. Verify calculation tools. Test with various calculation methods.
Script appends without validation. Variables with special chars break JSON. Escape values: use jq for generation: 'jq -n --arg id "$SESSION_ID" '{session: {id: $id}}' > "$METRICS_FILE"'. Verify JSON format. Test with various data values.
Division by zero when SESSION_DURATION=0. Add check: 'if [ "$SESSION_DURATION" -lt 60 ]; then SESSION_DURATION=60; fi' setting minimum 1-minute before calculations. Verify duration calculation. Test with various session durations.
Language detection relies on file extensions. Files without extensions or with uncommon extensions may not be detected. Use more sophisticated language detection or manual language mapping. Verify language detection. Test with various file types.
Previous session file may be missing or corrupted. Add file existence check: 'if [ -f "$PREV_SESSION" ]; then ...'. Verify file paths. Test with various session history scenarios.
Add cleanup logic: 'find .metrics -name 'session-.json' -mtime +30 -delete' to remove files older than 30 days. Or limit retention: 'find .metrics -name 'session-.json' | sort | head -n -30 | xargs rm -f'. Verify cleanup logic. Test with various retention policies.
Show that Session Metrics Collector - Hooks is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/hooks/session-metrics-collector)Session Metrics Collector - Hooks side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Collects and reports detailed metrics about the coding session when Claude stops. Open dossier | A Stop hook that syncs your changed files to cloud storage when a Claude Code session ends, using rclone to push to S3, Google Cloud Storage, or any of its 70+ supported backends. Open dossier | Analyzes and reports final bundle sizes when the development session ends. Open dossier | Detects unused CSS selectors when stylesheets are modified to keep CSS lean using PurgeCSS, PostCSS, and content analysis. This hook runs on CSS/SCSS file write/edit operations and analyzes stylesheets to identify unused selectors, generate optimized output, and report before/after size metrics. Open dossier |
|---|---|---|---|---|
| Next steps | ||||
| Trust | ||||
| Review status | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed |
| Package trust | Package not verified | Package not verified | Package not verified | Package not verified |
| Source provenance | Source-backed | Source-backed | Source-backed | Source-backed |
| Submitter | — | — | — | — |
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Brand | — | — | — | |
| Category | hooks | hooks | hooks | hooks |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | JSONbored | JSONbored | JSONbored | JSONbored |
| Added | 2025-09-19 | 2025-09-19 | 2025-09-19 | 2025-09-19 |
| Platforms | Claude Code | Claude Code | Claude Code | Claude Code |
| Source repo | — | — | — | — |
| Safety notes | ✓Runs automatically on its configured Claude Code hook event and executes shell logic that can read, modify, or delete files in your project (and may run builds, installs, or network calls); review the script and scope it to expected paths before enabling. | ✓Runs automatically at session end and can create compressed archives of modified git files. Uploads backups through AWS CLI, Google Cloud SDK, or rclone when those tools and bucket variables are configured. Writes a temporary archive under /tmp when using the rclone fallback and removes it after the copy attempt. | ✓Runs automatically on its configured Claude Code hook event and executes shell logic that can read, modify, or delete files in your project (and may run builds, installs, or network calls); review the script and scope it to expected paths before enabling. | ✓Runs automatically on its configured Claude Code hook event and executes shell logic that can read, modify, or delete files in your project (and may run builds, installs, or network calls); review the script and scope it to expected paths before enabling. |
| Privacy notes | ✓Receives Claude Code hook input (session metadata, file paths, and tool output) and reads local project files; review what the script logs or forwards to external services and keep credentials out of its output. | ✓Sends modified file contents to the configured cloud storage destination. Uses locally configured cloud credentials and bucket environment variables but does not define or manage them. Backup archives may include source code, docs, generated files, and any unignored local changes listed by git diff. | ✓Receives Claude Code hook input (session metadata, file paths, and tool output) and reads local project files; review what the script logs or forwards to external services and keep credentials out of its output. | ✓Receives Claude Code hook input (session metadata, file paths, and tool output) and reads local project files; review what the script logs or forwards to external services and keep credentials out of its output. |
| Prerequisites | — none listed | — none listed | — none listed | — none listed |
| Install | | | | |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Source-backed guides for putting this to work.
Control MCP tool output size with env limits, annotations, and tool search to protect Claude Code context.
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.