Save current session progress and context to memory
This skill saves the current session's progress and context to the personal memory system.
Gather the following information:
pwd or Get-Locationgit rev-parse --show-toplevelgit branch --show-currentgit rev-parse HEADhostname (lowercase)$env:OS contains "Windows"/proc/version for "microsoft"uname -sAnalyze the recent conversation history to extract:
Use the specified detail_level parameter (or default to "normal").
Execute the manage_memory.py script:
cd "${CLAUDE_PLUGIN_ROOT}"
# Detect Python command (python3 on Linux, python on Windows)
PYTHON_CMD=$(command -v python3 || command -v python)
# Try to use venv if available, create if needed, skip if venv creation fails
if [ -d "venv" ]; then
# Activate venv (cross-platform)
if [ -f "venv/bin/activate" ]; then
source venv/bin/activate
elif [ -f "venv/Scripts/activate" ]; then
source venv/Scripts/activate
fi
elif $PYTHON_CMD -m venv venv 2>/dev/null; then
echo "Setting up Python environment (first time)..."
if [ -f "venv/bin/activate" ]; then
source venv/bin/activate
elif [ -f "venv/Scripts/activate" ]; then
source venv/Scripts/activate
fi
pip install -r requirements.txt
else
echo "Note: Using system Python (venv creation not available)"
fi
$PYTHON_CMD scripts/manage_memory.py save \
--config-repo "$YW_CONFIG_REPO_PATH" \
--detail-level {detail_level} \
--repo-path {repo_path} \
--branch {branch} \
--commit {commit} \
--machine {machine} \
--os {os} \
--summary "{summary}" \
--keywords "{keywords}" \
--tags "{tags}"
Parse the JSON output:
{
"success": true,
"episode_id": "ep-12345abcd",
"filepath": "memory/episodes/2026-01-31_work-main_windows_repo-name_ep-12345.md",
"synced": true
}
Return a concise confirmation to the user:
Memory saved successfully!
- Episode ID: ep-12345abcd
- Location: memory/episodes/...
- Synced to remote: Yes
If the script fails:
User: "hey remember the progress in this session"
Agent: