ubx chat starts an interactive session where you describe infrastructure in plain English and ubx generates XCL blocks. All existing .xcl files in the current directory are read as context so generated code can reference existing resources.
Usage
Flags
| Flag | Description |
|---|---|
--append <file> | Append confirmed code blocks to this file (default: main.xcl) |
--context <file> | Use only this file as context (default: all .xcl files in cwd) |
Requirements
RequiresUBX_AI_API_KEY environment variable or ai.api_key in workspace.xcl.
Examples
Session commands
| Input | Effect |
|---|---|
| (Enter) | Send your message |
y | Append the generated XCL block to the target file |
N | Discard the block and continue chatting |
e or edit | Open $EDITOR to edit the block before appending |
exit or quit | End the session |

