--- description: End session - update context and commit changes allowed-tools: Bash(git:*), Bash(rm:*), Bash(mv:*), Bash(mkdir:*), Read, Write, Glob, AskUserQuestion model: haiku --- # End Session ## Step 1: Find Git Root Run `git rev-parse --show-toplevel` to locate the repository root. ## Step 2: Review Session Work Review what was accomplished this session by examining: - Recent git commits - Files changed - Conversation context ## Step 3: Update Session Context Update `/.bonfire/index.md`: 1. Update the session entry with: - **Accomplished**: List what was completed - **Decisions**: Key decisions made and rationale - **Files Modified**: Important files changed (if relevant) - **Blockers**: Any issues encountered 2. Update "Next Session Priorities" based on remaining work 3. Update "Current State" to reflect new status ## Step 4: Manage Session Scripts Check if `/.bonfire/scripts/` exists and contains any files. **If scripts exist**, use AskUserQuestion to ask what to do with each script: "What should happen to these session scripts?" (Header: "Scripts", multiSelect: false) For each script found, present options: - **Keep** - Leave in `.bonfire/scripts/` for next session - **Move to project** - Move to `/scripts/` (create if needed) - **Delete** - Remove the script Execute the user's choices: - **Keep**: No action needed - **Move to project**: `mkdir -p /scripts/ && mv