Skip to main content

Description

Helps you quickly recover your work context after time away or context switching. Shows your recent activity, active branches, work-in-progress, and provides AI-powered summaries of where you left off. Aliases: ctx, resume

Usage

devdaily context [options]
# Or use aliases
devdaily ctx [options]

Options

-d, --days <number>
string
default:"7"
Number of days to look back in journal history
-p, --project <id>
string
Filter by specific project identifier
--all-projects
boolean
Show context across all tracked projects
--date <date>
string
Show context for a specific date (YYYY-MM-DD)
--from <date>
string
Start date for range (YYYY-MM-DD)
--to <date>
string
End date for range (YYYY-MM-DD)
--ai
boolean
Generate an AI-powered “where did I leave off?” summary
--branches
boolean
Show detailed active branch status
--no-copy
boolean
Do not copy AI summary to clipboard
--raw
boolean
Output raw context data (no formatting)
--debug
boolean
Show debug output

Examples

See what you were working on

devdaily context

AI summary of where you left off

devdaily context --ai

Last 14 days

devdaily context --days 14

Specific date

devdaily context --date 2024-01-15

All branches with status

devdaily context --branches

Cross-project context

devdaily context --all-projects --ai

Specific project

devdaily context --project my-api

What It Shows

Current State

  • Current branch and repository
  • Active branches with uncommitted changes
  • Branches ahead of base (unpushed commits)
  • Work-in-progress status

Activity Timeline

  • Day-by-day commit history
  • Branch switches and context changes
  • Notes and tags from snapshots
  • Diff statistics per day

Pull Requests

  • Open, merged, and closed PRs
  • PR status and linked branches

Tickets

  • Associated ticket IDs
  • Ticket status and titles

Work Areas

  • Percentage breakdown by category (frontend, backend, etc.)
  • File change patterns

AI Summary Mode

With --ai, generates a concise briefing including:
  1. What I was working on - Main themes and tasks
  2. Current state - What’s done, in progress, pending
  3. Open threads - Uncommitted work, open PRs, unfinished tasks
  4. Suggested next steps - What to pick up first

Journal Snapshots

The context command relies on journal snapshots. If you haven’t taken any snapshots yet:
devdaily snapshot  # Take a snapshot now
devdaily init --git-hooks  # Auto-snapshot on commit/checkout

Requirements

  • Journal snapshots (taken with devdaily snapshot)
  • Git repository (for live snapshot if no journal data)
  • GitHub Copilot CLI (for --ai mode only)