Pipeline YAML Format v2 Documentation
Version: 2.0
Date: July 4, 2025
Status: Complete reference for all YAML format capabilities
Overview
This documentation provides a comprehensive reference for the Pipeline YAML format v2, covering all features including the latest recursive pipeline capabilities, enhanced Claude step types, and advanced control flow constructs.
Documentation Structure
Complete YAML Schema Reference
Full schema definition with all fields, types, and validation rulesStep Types Reference
Detailed documentation for all 17+ step types including examplesPrompt System Reference
Complete guide to prompt composition, templates, and content processingControl Flow & Logic
Loops, conditions, parallel execution, and state managementPipeline Composition
Recursive pipelines, context management, and modular workflowsAdvanced Features
Data transformation, codebase intelligence, file operationsConfiguration & Environment
Workflow settings, defaults, authentication, and monitoringBest Practices & Patterns
Design patterns, optimization strategies, and common use casesMigration Guide
Upgrading from v1 to v2 formatQuick Reference Card
One-page summary of all features
What’s New in v2
Major Additions
Recursive Pipeline Composition
type: "pipeline"
for nested pipeline execution- Full context management and isolation
- Safety features and depth tracking
Enhanced Claude Step Types
claude_smart
- Preset-based intelligent configurationclaude_session
- Stateful conversation managementclaude_extract
- Advanced content extractionclaude_batch
- Parallel batch processingclaude_robust
- Enterprise-grade error handling
Advanced Control Flow
for_loop
andwhile_loop
constructs- Complex boolean conditions
- Switch/case branching
- Parallel execution patterns
Data & File Operations
data_transform
- JSONPath-based transformationsfile_ops
- Comprehensive file manipulationcodebase_query
- Intelligent code analysis
Enhanced Prompt System
- External prompt file management
- Template variables and composition
- Content extraction and processing
- Session context references
Enterprise Features
- Authentication configuration
- Cost monitoring and alerts
- Performance telemetry
- Resource limits and safety
Backward Compatibility
All v1 features remain fully supported. The v2 format is a superset of v1, meaning existing pipelines will continue to work without modification.
Format Version History
- v1.0 (2024): Initial release with basic Gemini/Claude orchestration
- v1.5 (2024): Added advanced features (loops, conditions, state)
- v2.0 (2025): Added recursive pipelines and enhanced Claude SDK integration
Quick Start Examples
Basic Pipeline
workflow:
name: "simple_analysis"
steps:
- name: "analyze"
type: "gemini"
prompt:
- type: "static"
content: "Analyze this code"
Recursive Pipeline
workflow:
name: "modular_workflow"
steps:
- name: "data_processing"
type: "pipeline"
pipeline_file: "./pipelines/data_processor.yaml"
inputs:
data: "{{inputs.raw_data}}"
outputs:
- "processed_data"
Advanced Control Flow
workflow:
name: "iterative_improvement"
steps:
- name: "improve_until_passing"
type: "while_loop"
condition: "{{steps.test.result.status != 'passed'}}"
max_iterations: 5
steps:
- name: "fix_issues"
type: "claude_robust"
prompt:
- type: "file"
path: "./prompts/fix_issues.md"
Getting Started
- Start with the Complete Schema Reference for field definitions
- Review Step Types Reference for available step types
- Learn about Prompt System for content management
- Explore Control Flow for advanced workflows
- Study Best Practices for optimal usage
Support
For questions or issues with the YAML format:
- Check the Migration Guide if upgrading
- Review Best Practices for common patterns
- Consult implementation examples in
/examples/
directory