# Execute a complex taskwit plan "Add user authentication with JWT"# Preview without executingwit plan "Refactor database layer" --dry-run# With additional contextwit plan "Add dark mode" -c "Use CSS custom properties"# JSON outputwit plan "Fix all TypeScript errors" --json# Check statuswit plan status
wit plan "Refactor the database layer to use connection pooling" --dry-run
Output:
[DRY RUN] Planning workflow will preview without executing changes. Multi-Agent Planning WorkflowTask: Refactor the database layer to use connection pooling============================================================WORKFLOW RESULTS============================================================Status: SuccessTotal iterations: 1Total duration: 2.34s Execution Plan: Summary: Implement connection pooling by creating a pool manager, updating queries, and adding configuration Groups: 3 Group 1: Foundation [DRY RUN] Create connection pool types and interfaces [DRY RUN] Add pool configuration options Group 2: Implementation [DRY RUN] Implement pool manager class [DRY RUN] Update database queries to use pool Group 3: Integration [DRY RUN] Add pool lifecycle management [DRY RUN] Update configuration loading[DRY RUN] Would execute 6 subtasks in 3 groups