Save a COMPREHENSIVE session log to session-logs/ directory. This is critical for context recovery. ## Filename Use format `session-logs/YYYY-MM-DD-session.md` (today's date) ## If file exists Append a new section with timestamp header (## Update: HH:MM), don't overwrite ## MANDATORY Content to Include ### 1. Session Summary - What was accomplished in this session - Key decisions made and rationale - Problems encountered and how they were solved ### 2. ALL Credentials & Secrets (UNREDACTED) **CRITICAL: Store credentials completely - these are needed for future sessions** - API keys and tokens (full values) - Usernames and passwords - Database credentials - JWT secrets - SSH keys/passphrases if relevant - Any authentication information used or discovered Format credentials as: ``` ### Credentials - Service Name: username / password - API Token: full_token_value ``` ### 3. Infrastructure & Servers - All IPs, hostnames, ports used - Container names and configurations - DNS records added or modified - SSL certificates created - Any network/firewall changes ### 4. Commands & Outputs - Important commands run (especially complex ones) - Key outputs and results - Error messages and their resolutions ### 5. Configuration Changes - Files created or modified (with paths) - Settings changed - Environment variables set ### 6. Pending/Incomplete Tasks - What still needs to be done - Blockers or issues awaiting resolution - Next steps for future sessions ### 7. Reference Information - URLs, endpoints, ports - File paths that may be needed again - Any technical details that might be forgotten ## After Saving 1. Commit with message: "Session log: [brief description of work done]" 2. Push to gitea remote (if configured) 3. Confirm push was successful ## Purpose This log MUST contain enough detail to fully restore context if this conversation is summarized or a new session starts. When in doubt, include MORE information rather than less. Future Claude instances will search these logs to find credentials and context. ## ClaudeTools Integration For ClaudeTools project, also include: - Database connection details (172.16.3.30:3306/claudetools) - API endpoints created or modified - Migration files created - Test results and coverage - Any infrastructure changes (servers, networks, clients)