Overview
HAI Build Code Generator can be configured through various settings to customize your development experience. Settings can be managed through the VS Code settings interface or by modifying configuration files directly.Extension Configuration
Workspace Settings
The extension supports workspace-specific configuration through the.hai.config file placed at the root of your workspace.
The
.hai.config file is not git-excluded by default. Ensure sensitive keys are not committed to your repository.Configuration File Format
The.hai.config file uses a simple key-value format:
Environment Variables
For local development, you can use environment variables to configure the extension. See the .env.example file for available options.Development Environment Variables
Development Environment Variables
Activation Events
The extension activates automatically in the following scenarios:On Language Detection
Activates when any programming language file is opened
On Startup
Activates when VS Code finishes starting up
Workspace Contains
Activates when workspace contains
evals.env fileCommands and Keybindings
HAI Build provides several commands accessible via the Command Palette and keyboard shortcuts.Default Keybindings
Jump to HAI chat input or add selected code to chat
Available Commands
| Command | Description | Shortcut |
|---|---|---|
| New Task | Start a new HAI task | - |
| MCP Servers | Manage Model Context Protocol servers | - |
| History | View task history | - |
| Settings | Open HAI settings | - |
| Add to HAI | Add selected code to chat | Cmd/Ctrl + ‘ |
| Generate Commit Message | Generate AI-powered commit messages | - |
| Explain with HAI | Explain selected code | - |
| Improve with HAI | Get improvement suggestions | - |
Storage Configuration
HAI Build supports object storage backends for syncing data across devices.S3 Storage
Cloudflare R2 Storage
Storage Sync Options
Interval for sync worker in milliseconds
Maximum retries for failed sync operations
Number of files to sync in each batch
Enable backfill of existing data on startup
Advanced Settings
Multi-Root Workspace Debugging
gRPC Recorder
Enable gRPC request/response recording for testing:Test Mode
Next Steps
LLM Providers
Configure AI model providers
Telemetry
Set up telemetry and monitoring
Experts
Create custom domain experts