Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Dev-GOMv1.1.1Apache-2.0In 1 marketplace
Commits all uncommitted changes to your git repo when each Claude Code session ends, so work can be recovered from history. Runs on its own via a Stop hook and stages every change with git add -A, including files you did not mean to commit.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatically creates git commits after each Claude Code session to prevent work loss.
This plugin uses two hooks for automatic backup:
init-config.js)Runs at session start:
plugin.json.plugin-config/hook-git-auto-backup.json_pluginVersion with current plugin version_pluginVersion to current versionbackup.js)Runs when your Claude Code session ends:
git status --porcelain)git add -A)/plugin install hook-git-auto-backup@dev-gom-plugins
Once installed, the plugin works automatically. No configuration needed!
When you end a Claude Code session, if there are changes, you'll see:
✓ Git Auto-Backup: Changes committed successfully (a1b2c3d)
Auto-backup: 2025-10-14 12:34:56
🤖 Generated with Claude Code Auto-Backup Plugin
The plugin automatically creates a configuration file at .plugin-config/hook-git-auto-backup.json on first run.
When you update the plugin, your settings are automatically migrated:
_pluginVersion fieldshowLogsfalsetrue (show backup confirmations)requireGitRepotruetrue (use only in Git projects)commitOnlyIfChangestruetrue (prevents empty commits)includeTimestamptruetrue (track session time)Edit .plugin-config/hook-git-auto-backup.json in your project root:
{
"showLogs": false,
"requireGitRepo": true,
"commitOnlyIfChanges": true,
"includeTimestamp": true
}
To change the commit message format, edit the scripts/backup.js file:
const timestamp = config.includeTimestamp
? new Date().toISOString().replace('T', ' ').slice(0, 19)
: '';
const commitMessage = `Auto-backup: ${timestamp}`;
The plugin follows Claude Code Hook best practices by outputting a single JSON result:
console.log(JSON.stringify({
systemMessage: '✓ Git Auto-Backup: Changes committed successfully (abc1234)',
continue: true
}));
Add plugin-generated files to your .gitignore:
.todos-report.md
.complexity-log.txt
.docs-summary.md
.session-summary.md
The plugin commits to your current branch. Make sure you're on the correct branch before starting a session:
git checkout feature-branch
claude
If you need to undo an auto-backup commit:
git reset --soft HEAD~1
Check if it's a git repository:
git status
Verify git user is configured:
git config user.name
git config user.email
Check plugin is installed:
/plugin
This plugin only commits once per session (when you exit). If you want more control, consider:
git rebase -iBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub dev-gom/claude-code-marketplace --plugin hook-git-auto-backupPlugins from other owners that cover similar ground