Skip to main content

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

string
Snapshot date (YYYY-MM-DD). Default: today
string
Override project identifier (auto-detected from repo by default)
string
Attach a note to this snapshot
string[]
Add custom tags to the snapshot (e.g., “bugfix”, “feature”)
boolean
Skip fetching PR data
boolean
Skip fetching ticket data
boolean
Skip listing active branches
boolean
Quick snapshot - commits and branch info only (no PRs/tickets)
boolean
Show detailed debug output
boolean
Show journal storage stats instead of taking a snapshot
string
List recent snapshots. Default: 7 days
string
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
Perfect for git hooks or frequent snapshots.

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:
This installs:
  • 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