end-session

Close Claude Code sessions by cleaning transcripts, updating memories, and managing logs.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/harukainguyen1411/strawberry-agents --skill end-session-harukainguyen1411
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: end-session
Source: https://github.com/harukainguyen1411/strawberry-agents/tree/main/.claude/skills/end-session
Command: npx skills add https://github.com/harukainguyen1411/strawberry-agents --skill end-session-harukainguyen1411

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of shutting down top-level Claude Code sessions, ensuring all transcripts are cleaned, archived, and relevant memory updates are made without manual effort.

Core Features & Use Cases

  • Automated Session Closure: Executes the full close-session protocol, including transcript cleaning and archiving.
  • Handoff & Memory Management: Appends reflections and updates system memory structures for improved continuity.
  • Use Case: A developer finishes a coding session and wants to instantly archive the transcript, update the session memory, and prepare for the next task without manual record-keeping.

Quick Start

Run the end-session skill after completing a session, passing the agent name as an argument to perform all steps automatically.

Frequently Asked Questions about end-session

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

FAQPage Schema
How do I automate Claude Code session closure and transcript logging?

Automating Claude Code session closure involves cleaning transcripts, updating memory structures, and archiving session logs. This Skill runs Python scripts to process transcripts and uses git commands to ensure reliable version control and workflow continuity.

What is the best way to archive coding session transcripts and update memory automatically?

Archiving coding session transcripts is handled by executing a close-session protocol that cleans and archives records. It automatically appends reflections and updates system memory, preparing the environment for the next task without manual record-keeping.

Can I use Python scripts for session management and transcript cleaning in git environments?

Python scripts for session management are fully supported for transcript cleaning and memory updates. The Skill integrates these scripts with git commands to manage session logs, ensuring secure and reliable version control within your coding environment.

Do I need to manually clean transcripts when finishing a development collaboration session?

Manual transcript cleaning is not required when finishing a development collaboration session. The Skill facilitates automated closure by cleaning transcripts, archiving them, and updating memories automatically once you pass the agent name as an argument.

How does automatic memory update work for session continuity in Claude Code?

Automatic memory update for session continuity works by appending reflections and updating system memory structures during session closure. This ensures that context and relevant information are preserved and carried forward for efficient workflow continuity.

When do I need to run automated session logging for coding activities?

Automated session logging is needed when you finish a coding session and want to instantly archive the transcript. It is applicable in environments requiring rigorous record-keeping of coding and collaboration activities for efficient workflow continuity.