prodigy 0.4.4

Turn ad-hoc Claude sessions into reproducible development pipelines with parallel AI agents
Documentation
# Workflow to detect and fix documentation drift in workflow syntax guide
# This workflow analyzes the codebase and updates docs/workflow-syntax.md
# to reflect the latest supported syntax and features.

name: workflow-syntax-drift-detection
mode: mapreduce

# Setup phase: Analyze codebase for workflow syntax
setup:
  - shell: "mkdir -p .prodigy/syntax-analysis"

  - claude: "/prodigy-analyze-workflow-features"

# Map phase: Analyze each documentation section for drift
map:
  input: "workflows/data/workflow-syntax-sections.json"
  json_path: "$.sections[*]"

  agent_template:
    - claude: "/prodigy-analyze-doc-section-drift --json '${item}'"
      commit_required: true

  max_parallel: 3
  agent_timeout_secs: 300

# Reduce phase: Aggregate drift findings and update documentation
reduce:
  - claude: "/prodigy-fix-workflow-syntax-drift"
    commit_required: true

# Error handling
error_policy:
  on_item_failure: dlq
  continue_on_failure: true
  max_failures: 2
  error_collection: aggregate

# Custom merge workflow - cleanup before merging
merge:
  # Step 1: Clean up temporary analysis files
  - shell: "rm -rf .prodigy/syntax-analysis"
  - shell: "git add -A && git commit -m 'chore: remove temporary syntax analysis files' || true"

  # Step 2: Fetch latest changes and merge master into worktree
  - shell: "git fetch origin"
  - claude: "/prodigy-merge-master"

  # Step 3: Merge worktree back to original branch
  - claude: "/prodigy-merge-worktree ${merge.source_branch} ${merge.target_branch}"