Skip to main content

Overview

The resume-work command restores complete project context when starting a new session. It intelligently detects where you left off and routes you to the right next action.

Syntax

How It Works

When you run resume-work, GSD:
  1. Loads STATE.md (or reconstructs it if missing)
  2. Detects checkpoints - Looks for .continue-here.md files from mid-phase pauses
  3. Finds incomplete work - Checks for phases with PLAN but no SUMMARY
  4. Presents status - Shows you where the project stands
  5. Routes intelligently - Suggests the right next command based on context

What Gets Restored

Project State

  • Current phase and milestone
  • Completed phases and work
  • Roadmap and remaining phases
  • Quick tasks completed
  • Project goals and constraints

Work Context

  • .continue-here.md checkpoint files (mid-phase pauses)
  • Incomplete phases (planned but not executed)
  • Recent decisions from CONTEXT.md
  • Code changes since last session

Intelligent Routing

GSD checks CONTEXT.md to offer the right next step:
  • Has context → Suggests /gsd:plan-phase (ready to plan)
  • No context → Suggests /gsd:discuss (explore first)
  • Has checkpoint → Offers to continue from pause
  • Has incomplete plan → Offers to execute existing plan

Usage Examples

Resume after closing your editor

Output:

Resume project with incomplete work

Output:

Resume after long break

Output:

State Reconstruction

If STATE.md is missing or corrupted, resume-work reconstructs it by:
  1. Reading ROADMAP.md for phase definitions
  2. Scanning .planning/phases/ for completed work
  3. Parsing phase SUMMARY files for completion data
  4. Checking .planning/quick/ for quick tasks
  5. Rebuilding the state file with current status

Session Continuity

GSD maintains session continuity by:
  • Tracking the last active phase
  • Preserving in-progress work state
  • Linking decisions to their phases
  • Maintaining chronological work history

When to Use

Always use when

  • Starting a new editor session
  • Resuming after a break
  • Switching between projects
  • Beginning your work day
  • After git pull / branch switch

Especially helpful after

  • Long breaks (days/weeks)
  • Context was lost (crash, reboot)
  • Mid-phase pause (.continue-here.md exists)
  • Forgot where you left off

Integration with Other Commands

After pause-work

With progress

Files Read

  • .planning/STATE.md - Primary state file
  • .planning/ROADMAP.md - Phase definitions
  • .planning/CONTEXT.md - Decisions and constraints
  • .planning/phases/**/.continue-here.md - Checkpoint files
  • .planning/phases/**/SUMMARY.md - Completion records
  • .planning/quick/*.md - Quick task records
  • pause-work - Create checkpoint before pausing
  • progress - Detailed progress and routing
  • health - Validate project state integrity