> ## Documentation Index
> Fetch the complete documentation index at: https://calendar-effects.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# .claude/hooks/session-brief.sh

> Team briefing printed at the start of every Claude Code session. Claude Code adds whatever this prints to Claude's context (SessionStart hook, configured in .claude/settings.json). Keep it fast and offline: no network calls.

`.claude/hooks/session-brief.sh` · chapter [Tests and team tooling](https://calendar-effects.mintlify.site/tour/10-tests-and-tooling.md), file 21 · 43 lines · [open in the repository](https://github.sfu.ca/aba395/Calendar-Effects/blob/main/.claude/hooks/session-brief.sh)

## What it does

Team briefing printed at the start of every Claude Code session.
Claude Code adds whatever this prints to Claude's context (SessionStart hook,
configured in .claude/settings.json). Keep it fast and offline: no network calls.

## Source

```bash title=".claude/hooks/session-brief.sh" lines expandable theme={null}
#!/bin/bash
# Team briefing printed at the start of every Claude Code session.
# Claude Code adds whatever this prints to Claude's context (SessionStart hook,
# configured in .claude/settings.json). Keep it fast and offline: no network calls.

cd "${CLAUDE_PROJECT_DIR:-$(dirname "$0")/../..}" || exit 0

echo "=== Team briefing (.claude/hooks/session-brief.sh) ==="

if [ -f docs/STATUS.md ]; then
  echo "--- docs/STATUS.md ---"
  head -n 60 docs/STATUS.md
fi

# Newest three handoff notes (file names have no spaces by convention)
latest=$(ls -1 docs/handoffs/*.md 2>/dev/null | grep -v '/README\.md$' | sort | tail -n 3)
if [ -n "$latest" ]; then
  echo "--- Latest handoff notes ---"
  for f in $latest; do
    echo "## $f"
    head -n 20 "$f"
  done
fi

if git rev-parse --verify HEAD >/dev/null 2>&1; then
  echo "--- Recent commits ---"
  git log --oneline -n 10
  behind=$(git rev-list --count HEAD..@{upstream} 2>/dev/null)
  if [ -n "$behind" ] && [ "$behind" -gt 0 ]; then
    echo "NOTE: $behind commit(s) behind the last fetched remote. Suggest running /sync."
  fi
else
  echo "--- No commits yet on this branch ---"
fi

changes=$(git status --short 2>/dev/null | head -n 20)
if [ -n "$changes" ]; then
  echo "--- Uncommitted changes ---"
  echo "$changes"
fi

echo "Reminder: /sync pulls teammates' work; /handoff before stopping."
exit 0
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.