Add --glob flag to code search commands#43
Merged
Conversation
added 5 commits
May 26, 2026 16:04
… providers - Add --glob argument to global and remote code search commands - Thread glob parameter through SmithClient.search_code to all providers - Implement code_search_glob_hints to extract extension, filename, and path_prefix from glob patterns - Add compile_glob_matcher and path_matches_glob utilities for local filtering - GitHub: append extension/filename/path qualifiers to search query, apply local glob filter when needed - GitLab: implement _search_code_with_glob with pagination and local filtering,
…glob # Conflicts: # src/smith/providers/github_code.py # tests/contract/test_github_provider_contracts.py
- Condense description to focus on core capabilities (code search, grep, PRs/MRs, pipelines, issues) - Simplify "Use smith when" and "Do not use smith when" sections with shorter bullet points - Consolidate Command Map table with generic `<remote>` and `<scope>` placeholders - Add dedicated "Key flags" subsection highlighting `--glob` and common grep options - Reorganize "Repo argument rules" and "Pipeline specifics" as separate subs
…readability and maintainability - Extract artifact existence checks into `_missing_required_artifact_errors` - Extract marker presence validation into `_missing_marker_errors` - Split trigger validation into `_validate_trigger_frontmatter`, `_validate_trigger_case`, and `_validate_trigger_cases` - Split behavior validation into `_validate_behavior_case_sequence`, `_validate_behavior_case_phrase`, `_validate_behavior_case_evidence`, `_validate_behavior_case`, and `_validate_behavior_cases
…nt config file loading during tests
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.
This branch adds glob pattern filtering to the global code search across providers.
Example: