@whawit) and language model tools that give Copilot direct access to your observability data.
Overview
With the Whawit Copilot integration, you can:- Ask
@whawitabout incidents and analyses in natural language - Use slash commands to fetch specific observability data
- Let Copilot access Whawit tools automatically when analyzing code
- Get AI-generated fix recommendations based on real incident data
This integration requires both the Whawit VS Code extension and GitHub Copilot Chat to be installed and active.
Prerequisites
- VS Code with GitHub Copilot Chat extension
- Whawit VS Code extension installed and logged in
- A project selected in Whawit
Chat Participant
The@whawit chat participant appears in GitHub Copilot Chat when the Whawit extension is active.
Basic Usage
Type@whawit in Copilot Chat followed by your question:
Available Commands
The chat participant supports five slash commands for specific actions:| Command | Description |
|---|---|
/fix | Get analysis context formatted for implementing fixes |
/analyze | Get analysis context for investigating the codebase |
/explain | Explain the current analysis in detail |
/incidents | List recent incidents for the project |
/history | Show recent analysis history |
Command Reference
/fix
Fetches observability analysis data and formats it for implementing code fixes. Usage:- Summary of the issue
- Root causes with confidence scores
- Code issues with file locations and suggestions
- Recommendations for fixing
/analyze
Fetches analysis context for understanding and investigating codebase behavior. Usage:- Analysis summary and severity
- Detailed analysis text
- Affected entities and services
- Timeline of events
/explain
Provides a detailed explanation of the currently loaded analysis. Usage:You must first load an analysis using
/fix or /analyze before using /explain.- Full summary
- Detailed analysis
- Severity with justification
- All root causes with evidence
- Complete recommendations list
/incidents
Lists recent incidents for your selected project. Usage:- Incident summary with severity indicator
- Current status (open, closed, resolved, etc.)
- Affected service name
- Creation timestamp
/history
Shows recent analysis history for your project. Usage:- Analysis titles and status
- Timestamps
- Severity levels
- URNs for reference in other commands
Language Model Tools
Beyond the chat participant, Whawit registers five language model tools that Copilot can call automatically when relevant:whawit_getAnalysis
Fetches full analysis data from Whawit including root causes, code issues, and recommendations. When Copilot uses it:- When you ask about recent issues or errors
- When you reference a specific analysis by URN
- When context about system problems would help answer your question
urn(optional): Specific analysis URN to fetch
whawit_getIncident
Fetches incident details including correlated analysis data. When Copilot uses it:- When you ask about incidents or alerts
- When you mention severity levels (critical, high, etc.)
- When investigating production issues
urn(optional): Specific incident URNseverity(optional): Filter by severity level
whawit_getCodeContext
Searches the project knowledge base for relevant architecture and technical context. When Copilot uses it:- When you ask how something works in the codebase
- When you need architectural context
- When looking for documentation about specific features
query(optional): Search query for finding relevant context
whawit_listAnalyses
Lists recent analyses from Whawit with URNs and summaries. When Copilot uses it:- When you ask for a list of recent issues
- When you want to see analysis history
- When choosing which analysis to investigate
limit(optional): Maximum number of results (default: 5)
whawit_getProjectInfo
Gets information about the current Whawit project including available contexts. When Copilot uses it:- When you ask about the project configuration
- When checking what integrations are available
- When verifying project setup
Example Workflows
Fixing an Incident
1
Check for incidents
2
Get fix context
3
Ask Copilot to implement
With the analysis context loaded, ask Copilot:Copilot now has full context about the issue and can generate appropriate code changes.
Understanding System Architecture
1
Load project context
whawit_getCodeContext to search the knowledge base.2
Get detailed analysis
3
Ask follow-up questions
Daily Incident Review
Follow-up Suggestions
After using@whawit commands, the chat participant provides contextual follow-up suggestions:
- After loading an analysis: “Explain Analysis” and “Fix Issues” options appear
- After any command: “View History” option for quick access to analysis list
Troubleshooting
@whawit not appearing in Copilot Chat
@whawit not appearing in Copilot Chat
- Ensure the Whawit extension is installed and active
- Check that you’re logged into Whawit (look for the status bar indicator)
- Restart VS Code to reload the extension
- Verify GitHub Copilot Chat extension is installed and working
Commands returning no data
Commands returning no data
- Ensure a project is selected in Whawit
- Verify the project has analysis history and/or incidents
- Check the Output panel (
View > Output > Whawit) for errors - Try running
/historyfirst to confirm connectivity
Language model tools not being used
Language model tools not being used
- Copilot decides when to use tools based on your prompt
- Be specific in your questions to trigger tool usage
- Mention “Whawit” or “observability” to hint at relevant tools
- Use explicit
@whawitcommands for guaranteed tool access

