-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-aiIssues or features related to AIIssues or features related to AIenhancementverified ✔VerifiedVerified
Milestone
Description
Adds support for filtering sensitive or unnecessary data from AI prompts.
Summary
- Adds
gitlens.ai.exclude.filessetting to exclude files from AI prompts - Adds support for
.aiignore,.cursorignore, and.aiexcludefiles - Adds priority-based truncation that drops low-value files first when prompts exceed token limits
Impact
Users can now control what data is sent to AI providers, improving privacy and prompt quality. Smart truncation ensures prompts stay within model limits while preserving the most relevant content.
Validation
- Create a
.aiignorefile with patterns - Use an AI feature (e.g., explain changes)
- Verify excluded files are not included in the prompt
Risk
Low - additive feature with no changes to existing behavior unless configured.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-aiIssues or features related to AIIssues or features related to AIenhancementverified ✔VerifiedVerified