Repository navigation
Open
Description
Description
Currently, kit's indexing capabilities (e.g., DocstringIndexer, VectorSearcher) are primarily designed for local, on-demand use. To enhance kit's utility for teams and automated workflows, add "live" or continuous repository indexing, integrated with CI/CD pipelines.
Goals
- Automated Index Updates: Enable kit indexes (docstring summaries, semantic vector indexes) for specified repositories to be updated automatically as the codebase evolves.
- CI/CD Integration: Leverage CI/CD workflows (e.g., GitHub Actions) to trigger and manage these indexing processes.
- Shared Index Access: Ensure that the updated indexes are stored in a location accessible to relevant services or users (e.g., for a shared semantic search tool, an AI-powered Q&A bot over the codebase, etc.).
Potential Approaches for "Live" Indexing
The following approaches will be explored:
- Webhook-Triggered: Indexing is initiated by repository events (e.g., push to main, merge of a PR)
- Periodic/Scheduled: Indexing runs at regular intervals (e.g., nightly)
- Incremental Updates: Focus on efficiently updating indexes based on changes (diffs) rather than full re-indexes where possible
Key Challenges & Considerations
Index Storage & Accessibility
- Where should shared indexes be stored (e.g., dedicated ChromaDB server, cloud object storage, etc.)?
- How will different parts of kit (or tools built with kit) access these shared indexes?
- This will likely involve using configurable backends like RedisCacheBackend for shared caching and a persistent, network-accessible solution for VectorDBBackend
Scalability & Performance
- Indexing large repositories or frequent updates can be resource-intensive
- Optimizing indexing speed (e.g., effective caching, parallel processing, incremental updates) will be crucial
Configuration Management
- How will users configure which repositories are indexed, how often, and with what kit settings (LLM models, embedding functions, etc.)?
- Securely managing credentials (e.g., Git tokens, LLM API keys, database credentials) for CI jobs
Error Handling & Monitoring
- Robust error handling for indexing jobs
- Monitoring for indexing status and health
Resource Management for CI
- Managing the cost and execution time of indexing jobs within CI/CD systems
Use Cases
- Powering a constantly up-to-date semantic search service for a team's codebase
- Providing fresh context to LLM-based developer tools (Q&A bots, code assistants) that operate on evolving repositories
- Automated generation of code summaries or documentation artifacts as code changes
Metadata
Metadata
Assignees
Labels
No labels
Activity
JCook21 commentedon Jan 7, 2026
I'm wondering if there's any additional movement on this. I've been trying to use Kit's MCP dev server in the last few days and while it works very well on smaller codebases I'm having problems on a large, multi million line codebase. Many of the commands (such as retrieving a file tree or grep search) time out before they complete due to the size of the codebase and the fact that it doesn't seem to be possible to pre-build caches for MCP. Is this being looked into further or is there a way to pre-build caches that can be used by the MCP server?
tnm commentedon Jan 7, 2026
I'll pick this up; there are actually a couple other ways to solve this (pagination on filetree and some fixes to the grep timeouts). Will do this shortly.
Coincidently, we just landed some other perf improvements, e.g., #179 that help in other stuff.
Should have a new release later today that will help across the board.
feat: Add large codebase support for MCP server
feat: Add large codebase support for MCP server (#182)
tnm commentedon Jan 7, 2026
Latest release is out; would love to hear if any improvements! Check for the prewarm MCP command as well.
JCook21 commentedon Jan 30, 2026
@tnm sorry about the delayed response on this, got pulled into other things. I'm just going to be coming back to this over the next week or so and I'll give you a better response then. I did try this out a few weeks ago and found that the pagination in file tree was helpful but I think I was still getting timeout issues in grep. I'll give a more detailed update when I can though.