ubx fix runs ubx validate, sends errors and source code to Claude, and proposes fixes as a unified diff with a confirmation prompt.
Requires
UBX_AI_API_KEY or ai.api_key in ubx.yaml.Usage
Examples
Flags
| Flag | Description |
|---|---|
--dry-run | Show proposed diff without writing any files |
--yes | Apply all fixes without confirmation prompt |
Output
Behaviour
- If no errors → exits 0 with ”✓ no errors found”
- If errors → sends source + errors to Claude, shows diff, prompts
--dry-runshows diff but never writes--yesapplies without prompting (CI/CD)
