Skip to content

feat: live repo indexing + CI integration #37

Open

Description

@tnm

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

  1. Automated Index Updates: Enable kit indexes (docstring summaries, semantic vector indexes) for specified repositories to be updated automatically as the codebase evolves.
  2. CI/CD Integration: Leverage CI/CD workflows (e.g., GitHub Actions) to trigger and manage these indexing processes.
  3. 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

Activity

  1. JCook21 commented on Jan 7, 2026

    @JCook21

    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?

  2. tnm commented on Jan 7, 2026

    @tnm
    ContributorAuthor

    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.

  3. tnm commented on Jan 7, 2026

    @tnm
    ContributorAuthor

    Latest release is out; would love to hear if any improvements! Check for the prewarm MCP command as well.

  4. JCook21 commented on Jan 30, 2026

    @JCook21

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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