What is Product Knowledge?
Product Knowledge automatically analyzes your linked repositories to discover and categorize the different features, components, and systems in your codebase. This understanding powers several Kasava features:- Smarter commit classification - Commits are automatically tagged with the feature areas they affect
- Better digests - Weekly updates organized by feature instead of random commits
- Targeted insights - AI analysis understands which features are most active or at risk
- Architectural overview - See how your codebase is structured across layers
Getting Started
When you first visit the Knowledge page with no feature areas defined, you’ll see an empty state with two options:- Create Manually - Define feature areas yourself with custom names and directory patterns
- AI Discover - Let AI analyze your commit history to automatically identify features
Once you have feature areas, the page displays a summary card, optional architecture overview, and features organized by category.
Accessing Product Knowledge
- Navigate to a product in the sidebar
- Click Knowledge in the Monitor section
/products/[productId]/knowledge
Understanding Feature Areas
A feature area represents a logical grouping of code that serves a common purpose. Examples include:- User Authentication
- Dashboard Analytics
- Notification System
- Payment Processing
- API Endpoints
Feature Area Sources
Feature areas can come from different sources, indicated by an icon:| Source | Icon | Description |
|---|---|---|
| AI Discovered | Sparkles | Automatically identified by analyzing your commit history |
| User Defined | Person | Manually created by you or your team |
| Merged | Git Merge | Created by combining two existing feature areas |
Hierarchical Organization
Feature areas are organized in a three-level hierarchy:- Categories (Level 0) - High-level groupings like “Core Features”, “Infrastructure”, “User & Auth”
- Feature Groups (Level 1) - Related features grouped together
- Features (Level 2) - Individual feature areas
Confidence Scores
AI-discovered features include a confidence percentage indicating how certain the AI is about the classification. Higher confidence means:- Clear naming patterns in the codebase
- Consistent directory structures
- Well-defined boundaries between features
AI Discovery
How It Works
AI Discovery analyzes your commit history to understand your codebase:- Commit analysis - Each commit message and changed files are examined
- Pattern detection - The AI identifies recurring themes, directories, and naming conventions
- Feature extraction - Logical feature areas are identified and named
- Categorization - Features are organized into a hierarchical structure
Running AI Discovery
Confirm Rebuild (if applicable)
If you have existing AI-discovered features, a confirmation dialog appears:
- Shows how many AI-discovered features will be replaced
- User-defined features are always preserved
- Click Rebuild Features to proceed
Upgrade Analysis
If your feature areas don’t have hierarchical structure (older discovery format), you’ll see an “Upgrade Analysis” button. This re-analyzes all commits with improved AI categorization to generate the three-level hierarchy.Upgrade Analysis queues commits for re-processing and may take several minutes for large repositories. You’ll be notified when complete.
Managing Feature Areas
Creating a Feature Area Manually
You can define feature areas yourself for complete control:Click Add Feature
Click the + Add Feature button above the feature categories (visible when you have existing features), or click Create Manually from the empty state
Enter Details
Fill in the Create Feature Area dialog:
- Name (required) - A clear name like “User Authentication”
- Description (optional) - What this feature area covers
- Directory Patterns (optional) - Glob patterns to match files, one per line (e.g.,
src/auth/**)
User-defined features are marked with a person icon to distinguish them from AI-discovered features (sparkles icon) or merged features (git merge icon).
Directory Patterns
Directory patterns help match commits to feature areas based on file paths. Use glob syntax:| Pattern | Matches |
|---|---|
src/auth/** | All files in src/auth and subdirectories |
*.ts | All TypeScript files |
src/**/test*.ts | Test files anywhere in src |
Viewing Feature Area Details
Click any feature area row to expand and see detailed information:| Section | Description |
|---|---|
| Description | What this feature covers |
| Stats | Commits (30 days), files changed, active contributors |
| Top Contributors | People who’ve worked on this feature most, with avatars |
| Recent Work | AI-generated descriptions of recent changes (intent/purpose) |
| Recent Commits | Latest commit messages with short SHA and timestamps |
| Directory Patterns | Glob patterns associated with this feature |
| Source Badge | Shows if AI Discovered, User Defined, or Merged |
Modifying a Feature Area
To make changes to an existing feature area, use the three-dot menu on the feature row:- Hover over the feature area row
- Click the three-dot menu on the right
- Choose from available actions:
- Edit - Update name, description, or directory patterns
- Combine with… - Merge this feature into another
- Delete - Remove the feature area
For significant changes, consider creating a new user-defined feature and combining the existing one into it. This preserves commit history while giving you full control over the definition.
Combining Feature Areas
Sometimes AI creates similar feature areas that should be one. Combine them:Open Combine Dialog
Click the three-dot menu on the feature you want to merge away, then select “Combine with…”
Review Preview
The dialog shows what the combined result will look like:
- Combined commit count
- Merged directory patterns
Combining is not reversible. The source feature area is removed and its history is merged into the target.
Deleting a Feature Area
- Hover over the feature area row
- Click the three-dot menu
- Select Delete
- Confirm deletion
Correcting AI-Discovered Features
The AI does its best to understand your codebase, but it may not always get things right. Here’s how to correct it:Wrong Name or Description
- Edit the feature area to update the display name or description
- Your changes override the AI-generated values
Incorrect Categorization
If a feature is in the wrong category:- Create a new user-defined feature with the correct name
- Combine the misclassified AI feature into your new one
- The user-defined feature takes precedence
Too Many Similar Features
Use the Combine feature to merge duplicate or overly-granular features into one.Missing Feature
If the AI missed an important feature:- Create it manually with “Add Feature”
- Add directory patterns to help future commits match correctly
Rebuilding from Scratch
If the AI-discovered features are too far off:- Delete individual incorrect features, or
- Run “AI Discover” again to completely regenerate all AI features
Architecture Overview
The Knowledge page shows Architectural Layers when detected, representing the high-level structure of your codebase. Common layers include:- Frontend - UI components, pages, styles
- Backend - API routes, services, handlers
- Database - Schemas, migrations, models
- Infrastructure - CI/CD, configuration, deployment
Summary Card
The summary card at the top of the Knowledge page provides a quick overview:- Features - Number of identified feature areas
- Commits - Total commits analyzed across all features
- Categories - Number of top-level categories
- AI discovered - Count of features found by AI analysis
- User defined - Count of features you created manually
- Last sync - When AI Discovery was last run