save — команда для Claude Code: что делает и как установить
Команда save для Claude Code сохраняет через Serena MCP контекст сессии, найденные решения и контрольные точки. Сохраняет данные для продолжения работы между сессиями.
MIT ★ 23 950 обновлён 2026-09-27
.claude/commands/save.mdЧто делает save
Команда анализирует прогресс текущей сессии, выделяет важные находки и сохраняет их через Serena MCP. Она может записать весь контекст, только новые знания или подготовить сводку. Флаг --checkpoint добавляет точку восстановления.
Для работы нужны Serena MCP и доступ к операциям памяти. Команда координирует write_memory, read_memory, think_about_collected_information, summarize_changes и TodoRead, чтобы сохранить решения, прогресс и проектный контекст. Без интеграции Serena MCP команда не работает.
Используйте /sc:save, /sc:save --type learnings или /sc:save --type all --checkpoint. Флаг --summarize создаёт сводку сессии.
Какие задачи решает
- сохранить контекст текущей сессии
- зафиксировать найденные решения и закономерности
- создать точку восстановления прогресса
- подготовить сводку для следующей сессии
Примеры запросов агенту
- Сохрани контекст текущей сессии через
/sc:save. - Запиши только новые находки командой
/sc:save --type learnings. - Сохрани весь прогресс и создай точку восстановления через
/sc:save --type all --checkpoint.
Как установить save
Вручную: положить файлы
.claude/commands/save.mdВызов — /save. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/save.mdВызов — /prompts:save. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/save.prompt.mdВручную: положить файлы
.gemini/commands/save.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о save
Как установить save в Claude Code?
Разместите файл команды по пути .claude/commands/save.md.
Что делает save?
Команда сохраняет контекст сессии, найденные решения и прогресс через Serena MCP. Она также создаёт контрольные точки и сводку сессии.
Что нужно для работы save?
Нужна интеграция Serena MCP с доступом к операциям памяти. Без неё команда не работает.
Исходный текст
save.md · MIT
--- name: save description: "Session lifecycle management with Serena MCP integration for session context persistence" category: session complexity: standard mcp-servers: [serena] personas: [] --- # /sc:save - Session Context Persistence ## Triggers - Session completion and project context persistence needs - Cross-session memory management and checkpoint creation requests - Project understanding preservation and discovery archival scenarios - Session lifecycle management and progress tracking requirements ## Usage ``` /sc:save [--type session|learnings|context|all] [--summarize] [--checkpoint] ``` ## Behavioral Flow 1. **Analyze**: Examine session progress and identify discoveries worth preserving 2. **Persist**: Save session context and learnings using Serena MCP memory management 3. **Checkpoint**: Create recovery points for complex sessions and progress tracking 4. **Validate**: Ensure session data integrity and cross-session compatibility 5. **Prepare**: Ready session context for seamless continuation in future sessions Key behaviors: - Serena MCP integration for memory management and cross-session persistence - Automatic checkpoint creation based on session progress and critical tasks - Session context preservation with comprehensive discovery and pattern archival - Cross-session learning with accumulated project insights and technical decisions ## MCP Integration - **Serena MCP**: Mandatory integration for session management, memory operations, and cross-session persistence - **Memory Operations**: Session context storage, checkpoint creation, and discovery archival - **Performance Critical**: <200ms for memory operations, <1s for checkpoint creation ## Tool Coordination - **write_memory/read_memory**: Core session context persistence and retrieval - **think_about_collected_information**: Session analysis and discovery identification - **summarize_changes**: Session summary generation and progress documentation - **TodoRead**: Task completion tracking for automatic checkpoint triggers ## Key Patterns - **Session Preservation**: Discovery analysis → memory persistence → checkpoint creation - **Cross-Session Learning**: Context accumulation → pattern archival → enhanced project understanding - **Progress Tracking**: Task completion → automatic checkpoints → session continuity - **Recovery Planning**: State preservation → checkpoint validation → restoration readiness ## Examples ### Basic Session Save ``` /sc:save # Saves current session discoveries and context to Serena MCP # Automatically creates checkpoint if session exceeds 30 minutes ``` ### Comprehensive Session Checkpoint ``` /sc:save --type all --checkpoint # Complete session preservation with recovery checkpoint # Includes all learnings, context, and progress for session restoration ``` ### Session Summary Generation ``` /sc:save --summarize # Creates session summary with discovery documentation # Updates cross-session learning patterns and project insights ``` ### Discovery-Only Persistence ``` /sc:save --type learnings # Saves only new patterns and insights discovered during session # Updates project understanding without full session preservation ``` ## Boundaries **Will:** - Save session context using Serena MCP integration for cross-session persistence - Create automatic checkpoints based on session progress and task completion - Preserve discoveries and patterns for enhanced project understanding **Will Not:** - Operate without proper Serena MCP integration and memory access - Save session data without validation and integrity verification - Override existing session context without proper checkpoint preservation
© SuperClaude-Org · MIT · SuperClaude-Org/SuperClaude_Framework