AI Summaries
AI Summaries provide AI-generated executive summaries of repository changes, helping teams quickly understand development activity across workloads and repositories. This feature uses large language models (LLMs) to analyse commits, pull requests, and associated tickets to produce high-level insights.
AI Safety Notice: AI assistants can make mistakes, produce incorrect outputs, or hallucinate information. Always verify the results returned by the AI assistant against your actual CodeMetrics data. Do not rely solely on AI-generated analysis for critical business decisions without independent verification. The AI assistant interprets your queries and constructs API calls, but may misunderstand your intent or present data incorrectly.
Overview
AI Summaries integrates with leading AI providers to automatically generate contextual summaries of repository changes over selected time periods. The feature analyses commit messages, pull request titles, and ticket information to provide an executive-level overview of what has changed, making it easier for technical and non-technical stakeholders to understand development activity without reviewing individual commits.
AI-generated summaries are valuable for:
- Executive Reporting: Quickly understand what has changed across teams and repositories
- Sprint Reviews: Generate high-level summaries of work completed during sprint periods
- Change Communication: Communicate technical changes to non-technical stakeholders
- Release Notes: Get AI assistance in understanding changes for release documentation
- Cross-Team Visibility: Understand activity across multiple workloads without deep technical review
Supported AI Providers
CodeMetrics supports the following AI providers for generating summaries:
| Provider | Support |
|---|---|
| Anthropic Claude | ✅ Supported |
| Google Gemini | ✅ Supported |
Configuration
AI Summaries are configured in your remote-config.yaml file under the llm section. Only one AI provider can be active at a time.
Anthropic Claude Configuration
To use Claude for AI summaries:
llm:
type: claude
claude:
server:
id: example-claude
# API endpoint (optional, defaults to https://api.anthropic.com)
url: https://api.anthropic.com
# Get your API key from: https://console.anthropic.com/
apiKey: "${secret.ANTHROPIC_API_KEY}"
# Optional: specify model (defaults to claude-sonnet-4-5-20250929)
model: claude-sonnet-4-5-20250929
Getting a Claude API Key
- Visit https://console.anthropic.com/
- Create an account or sign in
- Navigate to API Keys section
- Generate a new API key
- Store the key securely using your secret management approach
Google Gemini Configuration
To use Gemini for AI summaries:
llm:
type: gemini
gemini:
server:
id: example-gemini
# Get your API key from: https://aistudio.google.com/app/apikey
apiKey: "${secret.GOOGLE_AI_API_KEY}"
# Optional: specify model (defaults to gemini-1.5-flash)
model: gemini-1.5-flash
Getting a Gemini API Key
- Visit https://aistudio.google.com/app/apikey
- Sign in with your Google account
- Create a new API key
- Store the key securely using your secret management approach
Configuration Notes
- The
typefield determines which provider is used (claudeorgemini) - API keys should be stored securely using secret management rather than plain text
- The
urlfield is optional for Claude and defaults to the official Anthropic API endpoint - Model selection is optional and will use sensible defaults if not specified
- Only configure one provider at a time - the
typefield determines which configuration is active
For more details on configuration file structure, see Configuration.
Using AI Summaries
AI Summaries are available in the Repository Changes view.
Accessing the Repository Changes View
Navigate to Query → Repository Changes to access the changes view where AI summaries are displayed.

Generating a Summary
- Select Parameters: Choose your workloads, repository groups, and date range for the changes you want to analyse
- Fetch Changes: Click the "Fetch Changes" button to retrieve repository change data
- View AI Summary: Once changes are loaded, an AI-generated executive summary will automatically appear at the top of the results
- Regenerate if Language Changes: If you switch UI language after the summary is generated, click Regenerate in the summary card to fetch a new summary in the currently selected language
Understanding the Summary
The AI-generated summary appears in a dedicated card with the following characteristics:
- Visual Indicator: Displayed with a lightbulb icon to indicate AI-generated content
- Executive Focus: Summarises high-level themes and patterns across the changes
- Context-Aware: Considers commit messages, pull request titles, and ticket information
- Language-Aware: Summary generation uses the currently selected UI language
- Loading States: Shows a progress indicator while the summary is being generated
- Error Handling: Displays warnings if summary generation encounters issues
The summary provides context on:
- Key features or functionality added
- Bug fixes and improvements
- Development themes and focus areas
- Overall volume and nature of changes
Requirements
To use the AI Summaries feature:
- An LLM provider must be configured in
remote-config.yaml - Valid API credentials for your chosen provider (Claude or Gemini)
- Repository change data must be available (requires code management integration)
- Internet connectivity to reach the AI provider's API endpoint
Privacy and Data Considerations
When using AI Summaries, consider the following:
- Data Transmission: Commit messages, PR titles, and ticket information are sent to the AI provider's API
- Third-Party Processing: Data is processed by external AI services (Anthropic or Google)
- API Usage: Each summary generation consumes API credits/quota from your provider account
- Sensitive Information: Ensure commit messages and PR titles do not contain sensitive information that should not leave your environment
For sensitive or air-gapped environments, you may choose not to enable AI Summaries or use a self-hosted LLM endpoint if your provider supports it.
Troubleshooting
Summary Not Appearing
If the AI summary is not displayed:
- Verify that the
llmsection is configured inremote-config.yaml - Check that your API key is valid and has not expired
- Confirm the API key has appropriate permissions and available quota
- Check backend logs for API connectivity or authentication errors
- Ensure there are changes in the selected date range to summarise
If the summary language does not match your current UI language:
- Use the Regenerate button on the AI summary card after switching language
- Confirm the language selector is enabled and the UI has switched to the target locale
Summary Generation Errors
If an error message appears instead of a summary:
- API Authentication Error: Verify your API key is correct and active
- Rate Limiting: Check if you have exceeded your API provider's rate limits
- Network Error: Confirm network connectivity to the AI provider's endpoint
- Invalid Configuration: Ensure only one provider type is configured at a time
Poor Quality Summaries
If summaries are not useful or contain errors:
- Ensure commit messages and PR titles contain meaningful information
- Consider using a more capable model (e.g., Claude Sonnet instead of Haiku)
- Verify that the date range includes a reasonable amount of changes (too few or too many changes may affect quality)
- Check that repository data is being fetched correctly
Cost Considerations
AI Summaries consume API credits from your chosen provider:
- Claude: Charged per input/output token based on Anthropic's pricing
- Gemini: Charged based on Google's Gemini API pricing model
To manage costs:
- Monitor your API usage through your provider's console
- Set up billing alerts with your AI provider
- Consider using less expensive models for routine summaries (e.g., Gemini Flash or Claude Haiku)
- Use more powerful models only when detailed summaries are needed
Related Features
- Repository Changes Query: The underlying query that powers the changes view
- Configuration: General configuration guidance
- Secret Management: Securely storing API keys
- Features: Overview of AI Agents feature support
Future Enhancements
Potential future enhancements to AI Summaries may include:
- Support for additional AI providers
- Custom summary templates and prompts
- Summary caching to reduce API costs
- Configurable summary length and detail level
- Integration with other views beyond repository changes