Save a comprehensive session log to the appropriate `session-logs/` directory, then sync the repo. `/save` and `/sync` share `bash .claude/scripts/sync.sh` as the canonical driver for git operations. The only difference: `/save` writes a session log first, then calls sync. `/sync` calls sync directly (no log). --- ## Phase 1 — Generate the narrative Claude writes all sections directly. Be concise, factual, technical. No filler phrases. Past tense. No emojis. | Author | Sections | |---|---| | Claude | All sections | ### Narrative sections (Claude writes directly) **Session Summary** — 3-5 paragraphs: what was accomplished, in what order, why. **Key Decisions** — bullet list of non-obvious decisions and their rationale. **Problems Encountered** — bullet list of problems hit and how each was resolved. Omit section if none. --- ## Phase 2 — Write to disk ### Location | Work scope | Path | |---|---| | Single project | `projects//session-logs/YYYY-MM-DD-session.md` | | Client | `clients//session-logs/YYYY-MM-DD-session.md` | | Multi-project / general | `session-logs/YYYY-MM-DD-session.md` | ### Filename + append behavior - Filename: `YYYY-MM-DD-session.md` (today's local date) - If file exists, **append** a `## Update: HH:MM PT — ` section. Do not overwrite. - If two users worked on the same date, namespace: `YYYY-MM-DD--.md` (e.g. `2026-05-01-howard-syncro-billing-batch.md`) ### Required sections (in order) 1. **User block** — name, machine, role, session span. Pull from `.claude/identity.json` + git config. 2. **Session Summary** (Ollama) 3. **Key Decisions** (Ollama) 4. **Problems Encountered** (Ollama) 5. **Configuration Changes** — files modified / created / deleted (with paths) 6. **Credentials & Secrets** — UNREDACTED if newly discovered or created. Vault paths if vaulted. Never half-redact a value future-Claude might need. 7. **Infrastructure & Servers** — IPs, hostnames, ports, tenant IDs, container names, DNS, certs 8. **Commands & Outputs** — important one-liners, key outputs, error messages with resolution 9. **Pending / Incomplete Tasks** — what's left, blockers, next steps 10. **Reference Information** — URLs, endpoints, commit SHAs, ticket IDs, routine IDs, file paths When in doubt, include MORE detail — future sessions search these logs to recover context. --- ## Phase 3 — Sync ```bash bash .claude/scripts/sync.sh ``` `sync.sh` handles: stage tracked changes by name (never `git add -A`), auto-commit, fetch + rebase, push, then the same flow for the vault repo, then surface cross-user `## Note for ` blocks. After sync, emit a **Post-commit Summary**: ``` ## Post-commit Summary Commit: Author: <> Push: .. main -> main (origin) File: (+N lines, appended/created) ``` --- ## Cross-user note handling (CRITICAL) If `sync.sh` surfaces a `## Note for ` or `## Message for ` block from an incoming session log, display it **prominently at the top of the response, before the sync summary**: ``` ============================================================ MESSAGE FROM () ============================================================ ============================================================ ``` Explicitly address each action item or question before moving on.