Skip to main content

/update-plan - PILOT Project Plan Updater

Update the PILOT project plan with task completions, progress tracking, and optional git workflow.

Track Assignment Reference

When adding new tasks to the plan, search the MASTER-TRACK-INDEX.md to ensure correct track assignment.

Track System: 37 tracks (A-N Technical, O-AA PCF Business, AB-AK Extensions)

Usage

/update-plan                                    # Interactive mode
/update-plan --auto-discover # Auto-discover session work (RECOMMENDED)
/update-plan --auto-discover --commit --push # Auto-discover with git workflow
/update-plan --tasks F.2.1 F.2.2 # Mark specific tasks complete
/update-plan --session-log # Update session log only

Options

OptionShortDescription
--auto-discover-aAuto-discover completed tasks from context database, git, TodoWrite
--tasks-tTask IDs to mark complete (space-separated)
--details-dCompletion details (JSON or inline)
--trackTrack letter (A-N) for percentage update
--percent-pNew track percentage (auto-calculated if omitted)
--commit-cCreate git commit
--pushPush to remote
--session-log-sUpdate session log
--classifyFiles to classify (space-separated)
--dry-run-nPreview changes without applying
--verbose-vShow detailed discovery output

Examples

/update-plan --auto-discover --commit --session-log
# Automatically discovers:
# - Tasks from context database (task_tracking table)
# - Tasks from TodoWrite state
# - Tasks from git commits and modified files
# - Tasks from today's session log

Auto-Discover with Verbose Output

/update-plan --auto-discover --verbose
# Shows discovery sources and task details

Mark Single Task Complete

/update-plan --tasks F.2.1

Mark Multiple Tasks with Details

/update-plan --tasks F.2.1 F.2.2 --details '{"F.2.1": "Fixed 64 errors", "F.2.2": "Created API-REFERENCE.md"}'

Full Workflow (Manual)

/update-plan \
--tasks F.2.1 F.2.2 \
--track F \
--percent 85 \
--commit \
--push \
--session-log \
--classify docs/API-REFERENCE.md

Dry Run

/update-plan --auto-discover --dry-run
# Shows what would be changed without applying

Interactive Mode

/update-plan
# Prompts for:
# - Task IDs to complete
# - Completion details
# - Whether to commit
# - Whether to update session log

What It Does

  1. Auto-Discovers Work - Queries context database, git, TodoWrite for completed tasks
  2. Locates PILOT Plan - Finds **/PILOT*.md in project
  3. Updates Checkboxes - Changes [ ] to [x] with dates
  4. Adds Details - Appends completion notes under tasks
  5. Calculates Progress - Auto-calculates track percentage from checkbox counts
  6. Adds Progress Entry - Creates timestamped progress update
  7. Bumps Version - Increments document version
  8. Classifies Docs - Runs MoE classifier on specified files
  9. Git Workflow - Stages, commits, pushes changes
  10. Session Log - Updates daily session log

Auto-Discovery Sources

When using --auto-discover, the script queries these sources in priority order:

PrioritySourceDescription
1task_tracking tableTasks with status='completed' today
2task_messages tableTasks linked to recent messages
3TodoWrite stateCurrent todo list with completed items
4Git status/diffModified files correlated with task IDs
5Git commitsToday's commits with task ID patterns
6Session logTasks already recorded in today's log
7Context messagesFull-text search for task patterns

Task ID Patterns Recognized:

  • [A.1.1] - Bracketed format
  • A.1.1: - Colon suffix
  • A.1.1 - Space suffix
  • - [x] A.1.1 - Checkbox format

Output

╔══════════════════════════════════════════════════════╗
║ PILOT Plan Update Complete ║
╠══════════════════════════════════════════════════════╣
║ Plan: internal/project/plans/PILOT-PARALLEL-... ║
║ Version: 1.9.3 → 1.9.4 ║
║ ║
║ Tasks Updated: ║
║ ✓ F.2.1: Add @extend_schema decorators ║
║ ✓ F.2.2: Generate API reference documentation ║
║ ║
║ Track Progress: ║
║ F (Documentation): 75% → 85% ║
║ ║
║ Git: ║
║ ✓ Commit: abc1234 ║
║ ✓ Pushed to origin/main ║
║ ║
║ Session Log: ║
║ ✓ Updated SESSION-LOG-2026-01-08.md ║
╚══════════════════════════════════════════════════════╝

Integration

With TodoWrite Hook

# Automatically triggered after TodoWrite marks tasks complete
# hooks/task-plan-sync.py calls /update-plan

With /session-log

# Update session log separately
/session-log --date today

With /classify

# Classify documents separately
/classify docs/API-REFERENCE.md

Error Handling

ErrorResolution
PILOT plan not foundSearches **/PILOT*.md, prompts for path
Task ID not foundShows available tasks, suggests closest match
Git conflictStashes changes, pulls, reapplies
Permission deniedSkips push, notifies user
  • /session-log - Update session logs
  • /classify - Document classification
  • /cx - Context extraction
  • /orient - Session orientation

Implementation

# Underlying script
python3 ~/.coditect/scripts/update-project-plan.py "$@"

# Or via agent
/agent project-plan-updater "<parsed arguments>"

Version: 2.0.0 | Created: 2026-01-08 | Updated: 2026-01-08