Use when returning to a project after time away, starting a work session, or recovering from interruption - provides comprehensive project context and recent activity summary
Comprehensive project catch-up that summarizes recent activity, accomplishments, and context. Auto-detects time since last activity and presents relevant information.
Check Claude Code project history for last session timestamp:
# Get project hash for current directory
PROJECT_DIR=$(pwd)
PROJECT_HASH=$(echo -n "$PROJECT_DIR" | sed 's/\//-/g' | sed 's/^-//')
PROJECT_PATH="$HOME/.claude/projects/$PROJECT_HASH"
# Find most recent session file
ls -t "$PROJECT_PATH"/*.jsonl 2>/dev/null | head -1
Calculate time elapsed since last activity.
Use AskUserQuestion to confirm scenario based on detected time:
| Time Elapsed | Suggested Range | Description | |--------------|-----------------|-------------| | < 4 hours | Last 4 hours | Mid-session recovery | | < 24 hours | Last 24 hours | Daily standup | | < 7 days | Last 7 days | Returning within week | | < 14 days | Last 30 days | Returning after 1-2 weeks | | > 14 days | All history | Long absence |
Present with: "You were last here [X time] ago. Show [suggested range]?"
Options:
3a. Project Context (for "What is this project?")
3b. Recently Modified Files
# Find files modified in time range, exclude noise
find . -type f -mtime -<DAYS> \
-not -path "./.git/*" \
-not -path "./node_modules/*" \
-not -path "./__pycache__/*" \
-not -name ".DS_Store" \
-not -name "*.pyc" \
2>/dev/null | head -50
3c. Git Commits (if available)
git log --oneline --since="<TIME_RANGE>" 2>/dev/null
git diff --stat HEAD~10 2>/dev/null | tail -20
3d. GitHub Activity (if gh CLI available and remote exists)
# Check if GitHub remote exists
git remote -v 2>/dev/null | grep github
# If yes, check PRs and issues
gh pr list --state all --limit 10 2>/dev/null
gh issue list --state all --limit 10 2>/dev/null
3e. Claude Code Chat History
Read from ~/.claude/projects/<project-hash>/ for sessions within time range.
Parse JSONL for conversation summaries and key topics.
Only include sections with actual content:
## Project: [name]
[1-2 sentence description from docs or inferred]
## What's Been Accomplished
[Key milestones/features from docs and history]
## Recent Focus (last [time range])
[Only show sections with content:]
- **Files:** X modified, Y created - [highlight largest changes]
- **Commits:** Z commits - [highlight key changes]
- **Conversations:** N sessions - [highlight key topics]
- **GitHub:** M PRs, K issues - [highlight activity]
## Highlights
- [Most significant change #1]
- [Most significant change #2]
- [Most significant change #3]
Use AskUserQuestion with options:
Loop until user selects "I'm caught up".
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer