Skip to main content
AI Learning allows you to teach Kasava your preferences by correcting AI-generated values and creating custom patterns. Over time, the AI learns from your corrections to provide more accurate and relevant suggestions.

How AI Learning Works

When Kasava’s AI analyzes commits, pull requests, bug reports, or other content, it makes predictions about categorization, severity, and other fields. If these predictions don’t match your preferences, you can correct them. Kasava tracks these corrections and:
  1. Learns from corrections - Automatically identifies patterns in your corrections
  2. Applies patterns - Uses learned patterns to improve future predictions
  3. Adapts to your workflow - Customizes behavior for your specific project conventions

Where Patterns Are Applied

Your learned patterns actively influence AI behavior across all of Kasava’s AI-powered features:

Commit Analysis

When new commits are analyzed (either through webhooks or historical sync), Kasava retrieves applicable patterns for your organization and repository. These patterns inform:
  • Semantic type classification (feature, fix, refactor, chore, etc.)
  • Impact assessment (high, medium, low)
  • Feature area categorization
  • Terminology normalization
For example, if you’ve corrected the AI to classify commits touching src/payments/** as “feature” instead of “chore”, future commits in that directory will be correctly classified.

Pull Request Analysis

When pull requests are opened or updated, learned patterns guide:
  • PR categorization and labeling suggestions
  • Risk and complexity assessment
  • Business value estimation
  • Review priority recommendations

AI Chat

When you start a chat conversation, your learned patterns are automatically included in the AI’s context. This means:
  • The AI uses your preferred terminology when discussing your codebase
  • Responses follow your categorization preferences
  • Suggestions align with your project conventions
You’ll notice chat responses that match how you’ve corrected the AI in the past - without needing to re-explain your preferences each time.

Task Analysis (Linear, Jira, Asana)

For connected project management integrations, patterns influence:
  • Issue type classification
  • Priority recommendations
  • Component/area tagging
  • Effort estimation

Pattern Priority

When multiple patterns could apply, Kasava uses this priority order:
  1. User-scoped patterns - Your personal preferences (highest priority)
  2. Repository-scoped patterns - Project-specific rules
  3. Organization-scoped patterns - Team-wide conventions
  4. Confidence score - Higher confidence patterns take precedence
To see your patterns in action, make a correction, extract patterns, then analyze new content. The AI will apply your learned preferences automatically.

Accessing AI Learning

Navigate to Settings → AI Learning from the sidebar. AI Learning page showing the Patterns tab with filter options The page has two main sections:
  • Patterns - Learned rules that customize AI behavior
  • Corrections - History of your corrections to AI predictions

Managing Patterns

Patterns are rules that tell the AI how to handle specific situations. They can be automatically learned from your corrections or manually created.

Viewing Patterns

The Patterns tab displays all active and inactive patterns. Each pattern card shows:
  • Pattern rule - The matching condition (e.g., file path pattern, regex)
  • Pattern type - The category of pattern (e.g., File Path, Terminology)
  • Confidence score - How confident the AI is in this pattern (0-100%)
  • Correction count - How many corrections contributed to this pattern
  • Scope - Where the pattern applies (Organization, Repository, or User)
Pattern card showing a file path pattern with confidence score and toggle switch

Viewing Source Corrections

Click on any pattern card to expand it and see the corrections that contributed to this pattern. Click View all corrections to open a dialog with the full list. Each correction in the dialog shows:
  • Field change - The AI value (struck through) and your corrected value
  • User attribution - Who made the correction
  • Entity details - The type and name of the item that was corrected
  • Metadata - Scope, related patterns, and timestamp
Individual correction card showing field change, user attribution, and metadata

Ignoring Corrections

If a correction was made in error or is no longer relevant, you can ignore it without permanently deleting it.
1

Open Source Corrections

Expand a pattern and click View all corrections
2

Click the Ignore Icon

Click the eye icon (👁) next to any correction you want to ignore
3

Correction is Ignored

The correction appears dimmed with an “Ignored” badge. Ignored corrections won’t contribute to pattern learning.
To restore an ignored correction, click the eye icon again. The correction will be included in pattern learning once more.
Ignoring corrections is a soft delete—the data remains in case you need to restore it later.

Filtering and Sorting

Use the dropdown filters to find specific patterns:
FilterOptions
Pattern TypeAll Types, File Path, Message Pattern, Author, Terminology, Categorization, Field Mapping, Severity Threshold, Formatting, Content Structure
ConfidenceAll Levels, High, Medium, Low
Sort ByConfidence, Usage Count, Date Created

Enabling/Disabling Patterns

Toggle the switch on any pattern card to enable or disable it. Disabled patterns appear dimmed and won’t affect AI predictions.
Temporarily disable patterns when testing new configurations without deleting them.

Creating Patterns Manually

While patterns are typically learned automatically, you can create them manually for specific use cases.
1

Click New Pattern

Click the New Pattern button in the top-right corner
2

Select Pattern Type

Choose the type of pattern to create:
TypeDescription
File PathMatch files by path pattern (glob syntax)
Message PatternMatch commit/PR messages by regex
AuthorMatch by author name or email
TerminologyDefine preferred terminology
CategorizationDefine how to categorize items
Field MappingMap AI output to your preferred format
Severity ThresholdSet thresholds for severity levels
FormattingDefine formatting preferences
Content StructureDefine content structure preferences
3

Enter Pattern Rule

Enter the pattern rule using the appropriate syntax:
  • File Path: Use glob patterns (e.g., src/payments/**, **/*.test.ts)
  • Message Pattern: Use regular expressions (e.g., ^\[WIP\].*)
4

Set Output Value (Optional)

Enter the value to assign when this pattern matches (e.g., payments, chore, high)
5

Set Confidence Score

Use the slider to set confidence (0-100%). Higher confidence means the AI will more strongly prefer this pattern.
6

Choose Scope

Select where this pattern should apply:
  • Organization - Applies to all repositories in your organization
  • Repository - Applies only to a specific repository
  • User - Applies only to your personal analysis
7

Create Pattern

Click Create Pattern to save
Create Pattern dialog showing form fields

Editing Patterns

Click the menu on any pattern card and select Edit to modify an existing pattern. You can change:
  • Pattern rule
  • Output value
  • Confidence score
  • Scope

Deleting Patterns

Click the menu on any pattern card and select Delete. Confirm the deletion in the dialog that appears.
Deleted patterns cannot be recovered. Consider disabling patterns instead if you might need them later.

Extracting Patterns from Corrections

When you have pending corrections that haven’t been analyzed, an Extract Patterns button appears in the header showing the number of pending corrections.
1

Wait for Corrections

Make corrections to AI-generated values as you work
2

Click Extract Patterns

When you see the badge, click Extract Patterns (N)
3

Review Results

Kasava analyzes your corrections and creates new patterns or updates existing ones
Extract Patterns dialog showing pending corrections analysis and results The extraction process:
  • Groups similar corrections together
  • Identifies common patterns in your corrections
  • Creates new patterns with appropriate confidence scores
  • Updates existing patterns if they match new corrections

Correction History

The Corrections tab shows all AI values you’ve corrected, helping you understand what the AI is learning.

Viewing Corrections

Each correction card displays:
  • Entity type - What was corrected (Commit, Pull Request, Bug Report, Plan, etc.)
  • Field path - Which field was corrected (e.g., category, severity)
  • AI value - What the AI originally predicted (shown with strikethrough)
  • User value - What you changed it to (shown highlighted)
  • Context - Related file paths, if applicable
  • Timestamp - When the correction was made
Correction history showing AI value to User value change

Filtering Corrections

Filter your correction history by:
FilterOptions
Entity TypeAll Types, Commits, Pull Requests, Bug Reports, Plans, Issues, Features
FieldDynamically populated based on your corrections

Pagination

Use the page controls at the bottom to navigate through your correction history. Each page shows 20 corrections.

Pattern Types Explained

File Path Patterns

Match commits or changes based on file paths using glob syntax. Example: Match all files in the payments directory
src/payments/**
Example: Match TypeScript test files
**/*.test.ts

Message Patterns

Match commit or PR messages using regular expressions. Example: Match WIP commits
^\[WIP\].*
Example: Match Dependabot PRs
^Bump .* from .* to .*

Terminology Patterns

Define preferred terms to standardize language across your project. Example: Use “customer” instead of “user” for business domain terminology.

Categorization Patterns

Define rules for automatically categorizing items. Example: Commits touching src/auth/** should be categorized as “security”.

Severity Threshold Patterns

Set rules for determining severity levels based on context. Example: Issues affecting payment flows should default to “high” severity.

Best Practices

Start with Corrections

Rather than creating patterns manually, let the AI learn from your corrections:
  1. Use Kasava normally
  2. Correct AI predictions when they’re wrong
  3. Periodically extract patterns from corrections
  4. Review and adjust confidence scores as needed

Use Appropriate Scope

  • Organization scope - For team-wide conventions (e.g., terminology, categories)
  • Repository scope - For project-specific patterns (e.g., file path rules)
  • User scope - For personal preferences that shouldn’t affect others

Monitor Pattern Performance

  • Check patterns periodically to ensure they’re still relevant
  • Disable patterns that are no longer useful
  • Update confidence scores based on accuracy

Keep Patterns Specific

More specific patterns with higher confidence produce better results than broad patterns with low confidence.

Troubleshooting

Check that the pattern is enabled (toggle switch is on). Verify the pattern scope matches where you’re working. Try increasing the confidence score.
The pattern may be too broad. Edit it to be more specific or reduce the confidence score. Consider disabling and creating a more targeted pattern.
You need multiple similar corrections before patterns can be extracted. Continue making corrections and the button will appear when enough data is available.
Ensure you’re viewing corrections for the correct organization. Check the entity type filter isn’t excluding your corrections.
Click the eye icon on any ignored correction to restore it. Restored corrections will be included in pattern learning again.
Ignored corrections remain in your history but are excluded from pattern extraction and learning. They can be restored at any time.