feat: add local codebase indexing with BM25 full-text search (#265)#266
Merged
breaking-brake merged 4 commits intomainbreaking-brake/cc-wf-studio:mainfrom Dec 13, 2025
feat/265-codebase-index-bm25breaking-brake/cc-wf-studio:feat/265-codebase-index-bm25Copy head branch name to clipboard
Merged
feat: add local codebase indexing with BM25 full-text search (#265)#266breaking-brake merged 4 commits intomainbreaking-brake/cc-wf-studio:mainfrom feat/265-codebase-index-bm25breaking-brake/cc-wf-studio:feat/265-codebase-index-bm25Copy head branch name to clipboard
breaking-brake merged 4 commits intomainbreaking-brake/cc-wf-studio:mainfrom
feat/265-codebase-index-bm25breaking-brake/cc-wf-studio:feat/265-codebase-index-bm25Copy head branch name to clipboard
Conversation
- Add Orama-based search engine (pure TypeScript, no CSP issues) - Implement file scanning, chunking, and indexing service - Add message types for Extension ↔ Webview communication - Include test command for manual E2E testing - Persist index to .vscode/codebase-index.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add CodebaseSettingsDialog for enable/disable toggle and index management - Add CodebaseStatusBadge showing index status in chat panel header - Add CodebaseSearchResults component for displaying search results - Add setting persistence via VSCode configuration - Add codebase-search-service for webview-extension communication - Remove testCodebaseIndex command (no longer needed) - Add i18n support for all 5 languages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Changed index location from .vscode/ to VSCode globalStorageUri - Added workspace hash for unique storage per workspace - Implemented auto-migration of existing index files - Removed unused imports from extension.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Merged
Contributor
|
🎉 This PR is included in version 3.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
5 tasks
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
Implements local codebase indexing with BM25 full-text search to provide contextual code snippets during AI workflow refinement. Closes #265.
Problem
When users refine workflows with AI assistance, the AI lacks context about the user's actual codebase, making suggestions less relevant and requiring users to manually provide code context.
Solution
Added a local codebase indexing system that:
globalStorageUri(not workspace directory)Changes
New Files
src/extension/services/codebase-index-service.ts- Core indexing service with BM25src/extension/services/vector-search-service.ts- Search service using Oramasrc/extension/commands/codebase-index-handlers.ts- Message handlerssrc/shared/types/codebase-index.ts- Type definitionssrc/webview/src/services/codebase-search-service.ts- Webview bridge servicesrc/webview/src/components/chat/CodebaseSearchResults.tsx- Search results UIsrc/webview/src/components/chat/CodebaseStatusBadge.tsx- Index status indicatorsrc/webview/src/components/dialogs/CodebaseSettingsDialog.tsx- Settings dialogModified Files
package.json- Added Orama dependencies and settingssrc/shared/types/messages.ts- Added codebase index message typessrc/webview/src/components/dialogs/RefinementChatPanel.tsx- Integrated searchsrc/webview/src/stores/refinement-store.ts- Added codebase stateFeatures
.vscode/toglobalStorageUriImpact
Testing
🤖 Generated with Claude Code