Skip to content

Add functionality to the codebase indexing #105

@anrgct

Description

@anrgct

Hope to migrate the codebase indexing of roocode to this project as a separate MCP service, which can be used by any MCP client. Running the separate embedding service independently can also prevent VSCode from freezing or crashing, supporting multiple development tools to share the codebase.
The difficulty lies in separating and replacing the libraries in VS Code, primarily involving the following code files:

Roo-Code/src/services/code-index
├── __tests__
│   ├── cache-manager.spec.ts
│   ├── config-manager.spec.ts
│   ├── manager.spec.ts
│   └── service-factory.spec.ts
├── cache-manager.ts
├── config-manager.ts
├── constants
│   └── index.ts
├── embedders
│   ├── __tests__
│   │   └── openai-compatible.spec.ts
│   ├── ollama.ts
│   ├── openai-compatible.ts
│   └── openai.ts
├── interfaces
│   ├── cache.ts
│   ├── config.ts
│   ├── embedder.ts
│   ├── file-processor.ts
│   ├── index.ts
│   ├── manager.ts
│   └── vector-store.ts
├── manager.ts
├── orchestrator.ts
├── processors
│   ├── __tests__
│   │   ├── file-watcher.test.ts
│   │   ├── parser.spec.ts
│   │   └── scanner.spec.ts
│   ├── file-watcher.ts
│   ├── index.ts
│   ├── parser.ts
│   └── scanner.ts
├── search-service.ts
├── service-factory.ts
├── shared
│   ├── get-relative-path.ts
│   └── supported-extensions.ts
├── state-manager.ts
└── vector-store
    ├── __tests__
    │   └── qdrant-client.spec.ts
    └── qdrant-client.ts

11 directories, 34 files

Features Page: https://docs.roocode.com/features/experimental/codebase-indexing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions