.NET: [Breaking] Refactor AgentFileSkillsSource for depth-based discovery and predicate filters#6109
Merged
semenshi merged 2 commits intoMay 28, 2026
Conversation
…FileSkillFilterContext - Replace hardcoded script/resource directory lists with configurable ScriptFilter and ResourceFilter predicates - Add AgentFileSkillFilterContext class to provide contextual file information to filter predicates - Replace MaxSearchDepth constant with configurable SearchDepth option - Update AgentFileSkillsSourceOptions with new filter and search depth properties - Update tests to reflect the new filtering approach Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
peibekwe
approved these changes
May 27, 2026
rogerbarreto
approved these changes
May 28, 2026
…ebug output Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rogerbarreto
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactors
AgentFileSkillsSourceto make script and resource discovery more flexible.Changes
ScriptDirectories/ResourceDirectoriesoptions (preconfigured directory whitelists).SearchDepthoption (>= 1, default2): controls how deep the recursive scan goes within each skill directory.ScriptFilter/ResourceFilterpredicate options that receive anAgentFileSkillFilterContext(SkillName+RelativeFilePath), allowing whitelist/blacklist filtering by file path.Notes
[Experimental]-- the option removals are intentional.