Skip to main content
hooksSource-backedReview first Safety Privacy
AWS logo

Cloud Backup On Session Stop - Hooks

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.

by JSONbored·added 2025-09-19·
HarnessClaude Code
Trigger:Stop
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://code.claude.com/docs/en/hooks, https://github.com/JSONbored/awesome-claude/blob/main/content/hooks/cloud-backup-on-session-stop.mdx
Brand
AWS
Brand domain
aws.amazon.com
Brand asset source
brandfetch
Safety notes
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.
Privacy notes
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.
Author
JSONbored
Claim status
unclaimed
Last verified
2025-09-19

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

CLI install

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

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Safety & privacy surface

Safety & privacy surface

3 safety and 3 privacy notes across 4 risk areas. Review closely: credentials & tokens, network access.

4 areas
  • SafetyCredentials & tokensRuns automatically at session end and can create compressed archives of modified git files.
  • SafetyNetwork accessUploads backups through AWS CLI, Google Cloud SDK, or rclone when those tools and bucket variables are configured.
  • SafetyGeneralWrites a temporary archive under /tmp when using the rclone fallback and removes it after the copy attempt.
  • PrivacyLocal filesSends modified file contents to the configured cloud storage destination.
  • PrivacyCredentials & tokensUses locally configured cloud credentials and bucket environment variables but does not define or manage them.
  • PrivacyLocal filesBackup archives may include source code, docs, generated files, and any unignored local changes listed by git diff.

Safety notes

  • 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.

Privacy notes

  • 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.

Schema details

Install type
cli
Reading time
1 min
Difficulty score
0
Troubleshooting
Yes
Breaking changes
No
Skill and platform metadata
Retrieval sources
https://code.claude.com/docs/en/hooks
Runtime and command metadata
Trigger
Stop
Script language
bash
Script body
#!/usr/bin/env bash

echo "☁️ Starting cloud backup process..." >&2

# Generate timestamped backup directory name
BACKUP_DIR="claude-backup-$(date +%Y%m%d_%H%M%S)"

# Get list of modified files
MODIFIED_FILES=$(git diff --name-only 2>/dev/null)

if [ -z "$MODIFIED_FILES" ]; then
  echo "📂 No modified files to backup" >&2
  exit 0
fi

echo "📦 Found modified files to backup" >&2

# Try AWS S3 first
if command -v aws >/dev/null 2>&1 && [[ -n "$AWS_BACKUP_BUCKET" ]]; then
  echo "📦 Backing up to AWS S3..." >&2
  if echo "$MODIFIED_FILES" | tar -czf - -T - | aws s3 cp - "s3://$AWS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz"; then
    echo "✅ Successfully backed up to S3: $AWS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz" >&2
    exit 0
  else
    echo "❌ AWS S3 backup failed" >&2
  fi
fi

# Try Google Cloud Storage
if command -v gcloud >/dev/null 2>&1 && [[ -n "$GCS_BACKUP_BUCKET" ]]; then
  echo "📦 Backing up to Google Cloud Storage..." >&2
  if echo "$MODIFIED_FILES" | tar -czf - -T - | gsutil cp - "gs://$GCS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz"; then
    echo "✅ Successfully backed up to GCS: $GCS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz" >&2
    exit 0
  else
    echo "❌ Google Cloud backup failed" >&2
  fi
fi

# Try rclone as universal fallback
if command -v rclone >/dev/null 2>&1; then
  echo "📦 Backing up using rclone..." >&2
  TEMP_BACKUP="/tmp/$BACKUP_DIR.tar.gz"
  if echo "$MODIFIED_FILES" | tar -czf "$TEMP_BACKUP" -T - && rclone copy "$TEMP_BACKUP" remote:backups/; then
    echo "✅ Successfully backed up using rclone" >&2
    rm -f "$TEMP_BACKUP"
    exit 0
  else
    echo "❌ rclone backup failed" >&2
    rm -f "$TEMP_BACKUP"
  fi
fi

echo "⚠️ No cloud storage provider configured or available" >&2
echo "💡 Configure AWS_BACKUP_BUCKET, GCS_BACKUP_BUCKET, or rclone to enable cloud backup" >&2
exit 1
Full copyable content
{
  "hooks": {
    "stop": {
      "script": "./.claude/hooks/cloud-backup-on-session-stop.sh"
    }
  }
}

About this resource

Features

  • Automatic cloud backup when Claude session ends using Stop hook with intelligent session detection
  • Support for multiple cloud providers including AWS S3 (via AWS CLI v2.27.54+), Google Cloud Storage (via gsutil), and rclone (40+ providers)
  • Intelligent file selection using git diff to track only modified files reducing backup size and transfer time
  • Timestamped backup archives with ISO 8601 format (YYYYMMDD_HHMMSS) for easy version management and recovery
  • Fallback to rclone for universal cloud support ensuring backup works with any S3-compatible or cloud storage provider
  • Environment variable configuration for security allowing credentials to be stored securely without hardcoding
  • Compressed backup archives using tar with gzip compression reducing storage costs and transfer bandwidth
  • Error handling with graceful fallbacks trying multiple cloud providers in priority order (S3 → GCS → rclone)

Use Cases

  • Automatic session-end backup for critical projects ensuring no work is lost when sessions end unexpectedly
  • Data loss prevention in cloud-first workflows providing off-site backup for development work
  • Multi-cloud backup strategy implementation supporting redundancy across multiple cloud providers
  • CI/CD integration for development artifacts automatically backing up build outputs and generated files
  • Remote work safety net for unsaved changes protecting work during network interruptions or system crashes
  • Compliance and audit requirements for development work maintaining backup history for regulatory purposes

Installation

  1. Create hooks directory: mkdir -p .claude/hooks
  2. Create hook file: touch .claude/hooks/cloud-backup-on-session-stop.sh
  3. Make executable: chmod +x .claude/hooks/cloud-backup-on-session-stop.sh
  4. Add configuration from Hook Configuration section above to .claude/settings.json or ~/.claude/settings.json
  5. Alternative: Use the interactive /hooks command in Claude Code

Config paths

  • Local (not committed): .claude/settings.local.json
  • User settings (global): ~/.claude/settings.json
  • Project-wide (committed): .claude/settings.json

Requirements

  • Claude Code CLI installed
  • Project directory initialized
  • Bash shell available
  • jq installed (for JSON parsing)
  • Cloud storage tools: AWS CLI v2.27.54+ (aws --version) for S3, Google Cloud SDK (gcloud, gsutil) for GCS, or rclone ^1.66.0 (rclone --version) for universal support
  • Git repository initialized (for git diff to track modified files) and cloud storage credentials configured (AWS credentials via AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY, GCS via gcloud auth, or rclone config)

Hook Configuration

{
  "hooks": {
    "stop": {
      "script": "./.claude/hooks/cloud-backup-on-session-stop.sh"
    }
  }
}

Hook Script

#!/usr/bin/env bash

echo "☁️ Starting cloud backup process..." >&2

# Generate timestamped backup directory name
BACKUP_DIR="claude-backup-$(date +%Y%m%d_%H%M%S)"

# Get list of modified files
MODIFIED_FILES=$(git diff --name-only 2>/dev/null)

if [ -z "$MODIFIED_FILES" ]; then
  echo "📂 No modified files to backup" >&2
  exit 0
fi

echo "📦 Found modified files to backup" >&2

# Try AWS S3 first
if command -v aws >/dev/null 2>&1 && [[ -n "$AWS_BACKUP_BUCKET" ]]; then
  echo "📦 Backing up to AWS S3..." >&2
  if echo "$MODIFIED_FILES" | tar -czf - -T - | aws s3 cp - "s3://$AWS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz"; then
    echo "✅ Successfully backed up to S3: $AWS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz" >&2
    exit 0
  else
    echo "❌ AWS S3 backup failed" >&2
  fi
fi

# Try Google Cloud Storage
if command -v gcloud >/dev/null 2>&1 && [[ -n "$GCS_BACKUP_BUCKET" ]]; then
  echo "📦 Backing up to Google Cloud Storage..." >&2
  if echo "$MODIFIED_FILES" | tar -czf - -T - | gsutil cp - "gs://$GCS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz"; then
    echo "✅ Successfully backed up to GCS: $GCS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz" >&2
    exit 0
  else
    echo "❌ Google Cloud backup failed" >&2
  fi
fi

# Try rclone as universal fallback
if command -v rclone >/dev/null 2>&1; then
  echo "📦 Backing up using rclone..." >&2
  TEMP_BACKUP="/tmp/$BACKUP_DIR.tar.gz"
  if echo "$MODIFIED_FILES" | tar -czf "$TEMP_BACKUP" -T - && rclone copy "$TEMP_BACKUP" remote:backups/; then
    echo "✅ Successfully backed up using rclone" >&2
    rm -f "$TEMP_BACKUP"
    exit 0
  else
    echo "❌ rclone backup failed" >&2
    rm -f "$TEMP_BACKUP"
  fi
fi

echo "⚠️ No cloud storage provider configured or available" >&2
echo "💡 Configure AWS_BACKUP_BUCKET, GCS_BACKUP_BUCKET, or rclone to enable cloud backup" >&2
exit 1

Examples

Cloud Backup On Session Stop Hook Script

Complete hook script that backs up modified files to cloud storage when session ends using AWS S3, GCS, or rclone

#!/usr/bin/env bash
echo "Starting cloud backup process..." >&2
BACKUP_DIR="claude-backup-$(date +%Y%m%d_%H%M%S)"
MODIFIED_FILES=$(git diff --name-only 2>/dev/null)
if [ -z "$MODIFIED_FILES" ]; then
  echo "No modified files to backup" >&2
  exit 0
fi
if command -v aws >/dev/null 2>&1 && [[ -n "$AWS_BACKUP_BUCKET" ]]; then
  echo "$MODIFIED_FILES" | tar -czf - -T - | aws s3 cp - "s3://$AWS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz"
  if [ $? -eq 0 ]; then
    echo "Successfully backed up to S3" >&2
    exit 0
  fi
fi
exit 1

Hook Configuration

Complete hook configuration for .claude/settings.json to enable cloud backup when session stops

{
  "hooks": {
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "./.claude/hooks/cloud-backup-on-session-stop.sh"
          }
        ]
      }
    ]
  }
}

Rclone Universal Backup Hook

Hook script using rclone for universal cloud provider support with progress reporting

#!/usr/bin/env bash
echo "Starting cloud backup..." >&2
BACKUP_DIR="claude-backup-$(date +%Y%m%d_%H%M%S)"
MODIFIED_FILES=$(git diff --name-only 2>/dev/null)
if [ -z "$MODIFIED_FILES" ]; then exit 0; fi
TEMP_BACKUP="/tmp/$BACKUP_DIR.tar.gz"
echo "$MODIFIED_FILES" | tar -czf "$TEMP_BACKUP" -T -
if command -v rclone >/dev/null 2>&1; then
  rclone copy "$TEMP_BACKUP" remote:backups/ --progress 2>&1
  rm -f "$TEMP_BACKUP"
fi
exit 0

AWS S3 Backup with Storage Class

Enhanced hook script that uses S3 Infrequent Access storage class for cost optimization

#!/usr/bin/env bash
echo "Starting cloud backup..." >&2
BACKUP_DIR="claude-backup-$(date +%Y%m%d_%H%M%S)"
MODIFIED_FILES=$(git diff --name-only --diff-filter=ACMR 2>/dev/null)
if [ -z "$MODIFIED_FILES" ]; then exit 0; fi
if command -v aws >/dev/null 2>&1 && [[ -n "$AWS_BACKUP_BUCKET" ]]; then
  echo "$MODIFIED_FILES" | tar -czf - -T - | \
    aws s3 cp - "s3://$AWS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz" \
    --storage-class STANDARD_IA 2>&1
  if [ $? -eq 0 ]; then
    echo "Backed up to S3 with Infrequent Access storage class" >&2
    exit 0
  fi
fi
exit 1

Backup with Timeout and File Limit

Hook script with timeout protection and file count limit to prevent hanging on large backups

#!/usr/bin/env bash
echo "Starting cloud backup..." >&2
BACKUP_DIR="claude-backup-$(date +%Y%m%d_%H%M%S)"
MODIFIED_FILES=$(git diff --name-only 2>/dev/null | head -100)
if [ -z "$MODIFIED_FILES" ]; then exit 0; fi
if command -v aws >/dev/null 2>&1 && [[ -n "$AWS_BACKUP_BUCKET" ]]; then
  timeout 60s sh -c "echo \"$MODIFIED_FILES\" | tar -czf - -T - | aws s3 cp - \"s3://$AWS_BACKUP_BUCKET/$BACKUP_DIR.tar.gz\"" 2>&1
  if [ $? -eq 0 ]; then
    echo "Backup completed successfully" >&2
    exit 0
  fi
fi
exit 1

Troubleshooting

Stop hook not triggering when Claude session ends

Verify hook script is executable with chmod +x and registered in .claude/settings.json. Check hook script path matches config. Ensure session ends cleanly without force quit. Test hook manually: bash hook-script.sh. Verify Stop hook type is correct in configuration.

AWS S3 backup fails with permission denied error

Configure AWS_BACKUP_BUCKET environment variable in .env file. Verify AWS credentials with aws s3 ls. Check IAM permissions allow s3:PutObject action on target bucket. Verify bucket exists: aws s3 ls s3://bucket-name. Check AWS region configuration: aws configure get region.

Git diff returns no modified files despite changes

Ensure files are tracked by git. Run git status to verify changes exist. Stage files with git add if needed. Check hook runs after file operations complete, not during. Use git diff --name-only --diff-filter=ACMR to include all modified files.

Backup archive creation hangs on large file sets

Use .gitignore to exclude node_modules and build artifacts from git tracking. Consider implementing file size filtering in hook script. Add timeout parameter to tar command: timeout 60s tar. Limit file count: git diff --name-only | head -100. Use rclone with --max-size option.

Multiple cloud providers configured but rclone used

Hook tries AWS S3 first, then Google Cloud, then rclone. Check AWS_BACKUP_BUCKET and GCS_BACKUP_BUCKET variables are set. Verify aws or gcloud CLI tools are in PATH and authenticated. Check exit codes: aws s3 cp returns 0 on success. Review error messages without 2>&1 redirection.

Backup succeeds but files are corrupted or incomplete

Verify tar archive integrity: tar -tzf backup.tar.gz. Check network connectivity during upload. Use checksum verification: rclone copy --checksum. Test with small file set first. Verify cloud storage provider supports streaming uploads. Check disk space on /tmp for temporary archives.

rclone backup fails with authentication error

Configure rclone remote: rclone config. Verify remote configuration: rclone listremotes. Test connection: rclone lsd remote:. Check credentials are valid: rclone about remote:. Use rclone config show remote to verify settings.

Backup takes too long causing session end delay

Add timeout wrapper: timeout 30s backup-command. Limit files backed up: git diff --name-only | head -50. Use compression level: tar -czf with gzip -1 for faster compression. Consider async backup: run backup in background. Exclude large files: --exclude "*.log" --exclude "node_modules".

Source citations

Add this badge to your README

Show that Cloud Backup On Session Stop - Hooks is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/hooks/cloud-backup-on-session-stop.svg)](https://heyclau.de/entry/hooks/cloud-backup-on-session-stop)

How it compares

Cloud Backup On Session Stop - Hooks side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

Field

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

Automatically creates timestamped backups of files before modification to prevent data loss. This hook runs before file editing operations (Edit, Write, Multiedit) and creates versioned backups in a centralized .backups directory with ISO 8601-compliant timestamps including nanoseconds for collision prevention.

Open dossier

Validates AWS CloudFormation templates for syntax errors and best practices using cfn-lint v1.40.4+ and AWS CLI v2.27.54+.

Open dossier

Collects and reports detailed metrics about the coding session when Claude stops.

Open dossier
Next steps
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
Submitter
Install riskReview firstReview firstReview firstReview first
Notes Safety Privacy Safety Privacy Safety Privacy Safety Privacy
BrandAWS logoAWSAWS logoAWS
Categoryhookshookshookshooks
Sourcesource-backedsource-backedsource-backedsource-backed
AuthorJSONboredJSONboredJSONboredJSONbored
Added2025-09-192025-09-192025-09-192025-09-19
Platforms
Claude Code
Claude Code
Claude Code
Claude Code
Source repo
Safety notesRuns 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.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 notesSends 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.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
mkdir -p .claude/hooks && touch .claude/hooks/cloud-backup-on-session-stop.sh && chmod +x .claude/hooks/cloud-backup-on-session-stop.sh
mkdir -p .claude/hooks && touch .claude/hooks/auto-save-backup.sh && chmod +x .claude/hooks/auto-save-backup.sh
mkdir -p .claude/hooks && touch .claude/hooks/aws-cloudformation-validator.sh && chmod +x .claude/hooks/aws-cloudformation-validator.sh
mkdir -p .claude/hooks && touch .claude/hooks/session-metrics-collector.sh && chmod +x .claude/hooks/session-metrics-collector.sh
Config
{
  "hooks": {
    "stop": {
      "script": "./.claude/hooks/cloud-backup-on-session-stop.sh"
    }
  }
}
{
  "hooks": {
    "preToolUse": {
      "script": "./.claude/hooks/auto-save-backup.sh",
      "matchers": [
        "edit",
        "write",
        "multiedit"
      ]
    }
  }
}
{
  "hooks": {
    "postToolUse": {
      "script": "./.claude/hooks/aws-cloudformation-validator.sh",
      "matchers": [
        "write",
        "edit"
      ]
    }
  }
}
{
  "hooks": {
    "stop": {
      "script": "./.claude/hooks/session-metrics-collector.sh",
      "matchers": [
        "*"
      ]
    }
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.