auto-save

Automate session saves and context preservation for Claude Code sessions.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/ChazzCoin/claude-kit --skill auto-save
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-save
Source: https://github.com/ChazzCoin/claude-kit/tree/main/kit/skills/auto-save
Command: npx skills add https://github.com/ChazzCoin/claude-kit --skill auto-save

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps Claude Code sessions from losing context by automatically saving and archiving work through a minimal, per-user pattern.

Core Features & Use Cases

  • Three built-in hooks (SessionStart, PreCompact, SessionEnd) automate in-session merges and SAVED.md archiving.
  • Per-user, git-ignored configuration stored in .claude/settings.local.json to avoid team-wide changes.
  • Idempotent on/off behavior with clear status reporting and no unintended side effects.
  • Provides explicit guidance for in-session merges and user-visible notifications when an auto-save occurs.

Quick Start

Turn it on for the next session with a single command: bash .claude/skills/auto-save/auto-save.sh on

Frequently Asked Questions about auto-save

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent context loss in Claude Code during long sessions?

To prevent context loss in long Claude Code sessions, you can automate in-session context preservation by merging activity into a SAVED.md file using built-in hooks. This ensures your work is archived continuously without manual intervention.

How do I automatically save and archive my Claude Code session context?

You can automatically save session context by running the command `bash .claude/skills/auto-save/auto-save.sh on`. This installs three hooks that handle session-start injections, pre-compact merges, and session-end archiving automatically.

Does Claude Code session auto-save require team-wide configuration changes?

No, Claude Code session auto-save uses per-user configuration stored in `.claude/settings.local.json`. This file is git-ignored, ensuring your personal archiving setup does not affect team-wide project settings.

What is the best way to archive Claude Code work when a session terminates?

The best way to archive Claude Code work upon session termination is using a SessionEnd hook. It automatically merges your session activity into SAVED.md and performs archive operations without requiring manual save commands.

Can I turn off context preservation hooks without causing side effects?

Yes, you can turn off context preservation hooks without side effects. The system is designed with idempotent on/off behavior, providing clear status reporting and ensuring no unintended side effects when toggled off.