Overview
The Experts feature in HAI Build enables context-aware code generation tailored to specific technologies, frameworks, or domain standards. You can use built-in experts or create custom ones with your own guidelines and reference documentation.Experts are currently an upcoming feature in HAI Build. Check the latest release notes for availability.
How Experts Work
Experts provide:- Technology-specific guidelines and best practices
- Reference documentation for accurate code generation
- Consistent coding standards across your team
- Domain-specific context for AI-powered development
Built-in Experts
HAI Build includes four built-in experts available in read-only mode:.NET
Best practices for C# and .NET development
Terraform
Infrastructure as Code guidelines and patterns
Node.js
JavaScript/TypeScript server-side development
Go
Go language idioms and conventions
Custom Experts
Create custom experts to define your own coding standards, architectural patterns, or domain-specific requirements.Expert Structure
Custom experts are stored in the.hai-experts directory at your workspace root:
File Structure
metadata.json
metadata.json
prompt.md
prompt.md
Contains the expert’s guidelines and instructions (required):
docs/ (optional)
docs/ (optional)
Processed reference documents:
- Markdown files for each document link
status.jsontracks processing status
Creating a Custom Expert
Enter Expert Details
Example: React Expert
Create a React expert with your team’s standards: Expert Name:React Best Practices
Guidelines (prompt.md):
https://react.dev/reference/reacthttps://testing-library.com/docs/react-testing-library/introhttps://styled-components.com/docs
Example: API Integration Expert
Create an expert for your API integration standards: Expert Name:API Integration Standards
Guidelines (prompt.md):
https://axios-http.com/docs/introhttps://tanstack.com/query/latest/docs/react/overview
Using Experts
Once created, experts can be selected when starting a new task or conversation with HAI Build.Managing Experts
Editing Experts
To modify a custom expert:- Navigate to
.hai-experts/expert-name/ - Edit
prompt.mdormetadata.json - Save changes
- Restart HAI Build or reload the expert
Deleting Experts
To remove a custom expert:- Delete the expert folder from
.hai-experts/ - Refresh HAI Build
Sharing Experts
Share experts with your team by:- Committing
.hai-experts/to version control - Excluding sensitive information from
metadata.json - Documenting expert usage in your team’s documentation
Reference Document Processing
When you provide document links, HAI Build:- Fetches the content from the URLs
- Converts to Markdown format
- Stores in the
docs/folder - Updates
status.jsonwith processing status
Document Limits
- Maximum 3 document links per expert
- Documents must be publicly accessible
- Supported formats: HTML, Markdown, PDF (depending on implementation)
Status Tracking
Monitor document processing instatus.json:
pending- Processing not startedin_progress- Currently fetching/convertingcompleted- Successfully processedfailed- Error during processing
Best Practices
Be Specific
Provide clear, actionable guidelines rather than vague suggestions
Use Examples
Include code examples in guidelines to demonstrate patterns
Keep Updated
Regularly review and update expert guidelines as standards evolve
Version Control
Commit experts to git for team consistency and version history
Focus on Domain
Create experts for specific domains rather than general coding
Reference Quality Docs
Link to official documentation and authoritative sources
Troubleshooting
Expert Not Appearing
Expert Not Appearing
Check:
- Expert folder exists in
.hai-experts/ metadata.jsonis valid JSONprompt.mdexists and is not empty- Restart VS Code or reload HAI Build
Document Processing Failed
Document Processing Failed
Solutions:
- Verify URLs are publicly accessible
- Check
status.jsonfor error messages - Try removing and re-adding document links
- Ensure network connectivity
Expert Context Not Applied
Expert Context Not Applied
Solutions:
- Verify expert is selected before starting task
- Check expert guidelines are clear and specific
- Ensure expert folder structure is correct
- Try recreating the expert
Cannot Modify Built-in Expert
Cannot Modify Built-in Expert
Built-in experts (.NET, Terraform, Node.js, Go) are read-only by design.Solution: Create a custom expert based on the built-in one:
- Copy guidelines from built-in expert
- Create new custom expert
- Modify as needed
Example Experts
Python Data Science Expert
Python Data Science Expert
Guidelines:
DevOps Expert
DevOps Expert
Guidelines:
Mobile Development Expert
Mobile Development Expert
Guidelines:
Next Steps
Settings
Configure extension settings
LLM Providers
Set up AI model providers
Telemetry
Configure monitoring and analytics