feat: add CodeSignalsSearchTool for code-level repository search#28
Merged
feat: add CodeSignalsSearchTool for code-level repository search#28
Conversation
4 tasks
NISH1001
requested changes
Feb 5, 2026
NISH1001
approved these changes
Feb 5, 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.
Summary
Add CodeSignalsSearchTool as a fallback for searching repositories when README-based search (RepositorySearchTool) returns insufficient results. Searches actual source code content to find repos with minimal documentation.
What have I done
CodeSignalsSearchToolthat searches LLM-extracted code signals (function names, class names, imports, code summaries)_extract_summary()to extract only "Code Summary:" sections, significantly reducing context size@mcp_tooldecoratorHow did I do
/api/code_signals/searchendpoint with hybrid search (vector + keyword)code_signalsfieldCodeSignalsHitobjects withrepo_id,repo_url,content, andscoreHow to test
# Run tests uv run pytest tests/tools/code_search/test_code_signals_search.py