Description
Captures and saves a snapshot of your current work state including commits, branches, PRs, tickets, and code changes to a local journal. This builds a searchable history for context recovery and work summaries. Aliases:snap, save
Usage
Options
Snapshot date (YYYY-MM-DD). Default: today
Override project identifier (auto-detected from repo by default)
Attach a note to this snapshot
Add custom tags to the snapshot (e.g., “bugfix”, “feature”)
Skip fetching PR data
Skip fetching ticket data
Skip listing active branches
Quick snapshot - commits and branch info only (no PRs/tickets)
Show detailed debug output
Show journal storage stats instead of taking a snapshot
List recent snapshots. Default: 7 days
Remove journal entries older than N days
Examples
Take a snapshot now
Add a note
Add tags
Quick snapshot (fast mode)
Skip external data
View recent snapshots
View journal stats
Clean old entries
Backdate a snapshot
What Gets Captured
Each snapshot includes:- Project metadata - Repository name, path, current branch
- Today’s commits - All commits made today with messages and file changes
- Active branches - All local branches with:
- Commits ahead of base
- Uncommitted changes
- Last commit message
- Pull requests - Associated PRs with status
- Tickets - Linked tickets from PM tools
- Diff statistics - Files changed, insertions, deletions
- Work categories - Auto-categorized by file types (frontend, backend, etc.)
- Notes and tags - Custom metadata
Light Mode
Use--light for faster snapshots that skip:
- PR fetching (saves ~1-2 seconds)
- Ticket fetching (saves ~1-3 seconds)
- External API calls
Journal Storage
Snapshots are stored in:- Location:
~/.devdaily/journal.json - Format: JSON
- Size: ~1-5 KB per snapshot
List View
The--list output shows:
- Grouped by date
- Per-project breakdown
- Top commits for each day
- Notes and tags
- Diff statistics
Stats View
The--stats output includes:
- Total snapshots
- Active dates
- Projects tracked
- Oldest and newest entries
- Storage used
- Per-project freshness (days since last snapshot)
Automatic Snapshots
Set up git hooks to automatically snapshot on:- post-commit - Snapshot after each commit
- post-checkout - Snapshot when switching branches
Requirements
- Must be run inside a git repository
- Optional: PM tool integration for ticket context
- Optional: GitHub CLI for PR data