Command Utility

/dr-next

Resume work on current task from last checkpoint

Overview

/dr-next is designed for returning to work after a break or a new session. It reads all context files, determines which pipeline phase you are in, shows a summary of where you left off, and resumes the appropriate action. If multiple tasks are active, it shows all of them with their current phases and asks which one to resume. If there is no active task, it checks the backlog and suggests what to start next.

Usage

/dr-next

What It Does

  1. Read State — loads activeContext.md, tasks.md, progress.md, and backlog.md to reconstruct the full context.
  2. Task Resolution — applies the Task Resolution Rule. If multiple tasks are active, shows all with their current phase and asks which to resume.
  3. Determine Phase — identifies the current pipeline stage for the selected task: INIT, PLAN, DESIGN, DO, QA, COMPLIANCE, or ready for archive.
  4. Show Context Summary — displays the task, current phase, what has been completed, and what remains.
  5. Resume Action — picks up work where you left off:
    • In PLAN phase — continues planning
    • In DO phase — continues implementation from the next unfinished step
    • Ready for ARCHIVE — suggests /dr-archive

Arguments

None.

Multi-Task Routing

When multiple tasks are active, the command displays a numbered list of all tasks with their phases and asks which one to resume. This is the Task Resolution Rule in action — no ambiguity, no silent assumptions.

Routing When No Active Task

If there is no active task, the command checks the backlog:

  • If pending items exist — displays them and suggests /dr-init with backlog selection
  • If the backlog is empty — suggests /dr-init with a new task description

Example Session

> /dr-next

Restoring context...

Multiple active tasks found:
  1. AUTH-0001 — Implement user authentication (L3, DO phase, 5/8 done)
  2. UI-0012 — Dashboard dark mode (L2, PLAN phase)

Which task to resume? (1/2)
> 1

=== RESUMING TASK ===
  ID: AUTH-0001
  Title: Implement user authentication
  Complexity: Level 3
  Phase: DO (implementation)

Last checkpoint:
  Completed: steps 1-5 of 8
  Last activity: auth.middleware.ts — token validation

Remaining work:
  Step 6: Password reset flow
  Step 7: Rate limiting on auth endpoints
  Step 8: Integration tests

Resuming step 6: Password reset flow...

Files Read

  • datarim/activeContext.md — current context and phase
  • datarim/tasks.md — task details and plan
  • datarim/progress.md — what has been completed
  • datarim/backlog.md — for routing when no active task

Related Commands

  • /dr-status — read-only status check without resuming
  • /dr-init — start a new task when nothing is active
  • /dr-do — the execution stage that /dr-next most often resumes