feat: integrate WarpGrep as alternative codebase_search backend#11891
Draft
DhruvBhatia0 wants to merge 1 commit intoRooCodeInc:mainfrom
Draft
feat: integrate WarpGrep as alternative codebase_search backend#11891DhruvBhatia0 wants to merge 1 commit intoRooCodeInc:mainfrom
DhruvBhatia0 wants to merge 1 commit intoRooCodeInc:mainfrom
Conversation
Add WarpGrep (Morph's RL-trained codebase search agent) as an alternative backend for the codebase_search tool. Users bring their own API key and WarpGrep runs in its own context window, performing multi-turn ripgrep and file reads to find relevant code spans. - Add warpGrepEnabled to codebaseIndexConfigSchema - Add warpGrepApiKey to SECRET_STATE_KEYS - Gate codebase_search on either WarpGrep or CodeIndexManager - Try WarpGrep first in CodebaseSearchTool, fall back to vector search - Add settings UI with toggle and API key field in CodeIndexPopover - Persist settings via webviewMessageHandler Closes: RooCodeInc#11865
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
Adds WarpGrep as an alternative backend for the
codebase_searchtool. WarpGrep is an RL-trained codebase search agent that uses an agentic loop with ripgrep and file reads to find relevant code spans. Users bring their own Morph API key.codebase_searchuses it first, falling back to the existing CodeIndexManager/Qdrant vector search if the request failscodebase_searchtool remains available in mode filtering when WarpGrep is enabled (even without CodeIndexManager configured)Resolves #11865
Changes
packages/types/src/codebase-index.tswarpGrepEnabledconfig +warpGrepApiKeysecret schemapackages/types/src/global-settings.tswarpGrepApiKeyinSECRET_STATE_KEYSpackages/types/src/vscode-extension-host.tssrc/services/warpgrep/index.tssrc/core/tools/CodebaseSearchTool.tssrc/core/prompts/tools/filter-tools-for-mode.tscodebase_searchavailable when WarpGrep enabledsrc/core/task/build-tools.tscodebaseIndexConfigto filter settingssrc/core/webview/webviewMessageHandler.tswebview-ui/src/components/chat/CodeIndexPopover.tsxTest plan
pnpm check-types— 14/14 passpnpm lint— 14/14 passcodebase_searchtool uses WarpGrep backendcodebase_searchis filtered outInteractively review PR in Roo Code Cloud