Skip to content

Epic: Background Watcher #433

Closed
Closed

Description

@ajianaz

Goal

Add background file watching so Cora stays up-to-date without manual cora index.

Phased Approach

Phase 1: MCP Session Hook ✅ DONE

When cora serve starts, check for stale files and auto-reindex before accepting connections. Implemented in src/commands/serve.rs — execute_serve() auto-reindexes on startup.

Phase 2: Standalone cora watch

cora index --watch already exists (inotify-based). Remaining: standalone cora watch command with debounce, git-only mode, and filter support.

Remaining Tasks

  • Promote cora index --watch to standalone cora watch command
  • Add --debounce, --git-only, --filter flags
  • Add MCP notification on reindex completion

Activity

  1. added
    scope:cliCLI interface and UX
    scope:code-intelCode intelligence — indexing, graph, impact analysis
    epic:code-intelligenceEpic: Code intelligence capabilities across tools
    on Jul 29, 2026
  2. ajianaz commented on Jul 29, 2026

    @ajianaz
    CollaboratorAuthor

    Sub-issues

  3. ajianaz commented on Jul 29, 2026

    @ajianaz
    CollaboratorAuthor

    Phase 2 (v0.11.0 milestone)

    Cross-milestone dependencies

  4. ajianaz commented on Aug 5, 2026

    @ajianaz
    CollaboratorAuthor

    Epic Complete

    All core objectives achieved:

    Phase 1: MCP Session Hook -- DONE

    Auto-reindex on cora serve startup (implemented in src/commands/serve.rs).

    Phase 2: Standalone cora watch -- DONE (PR #496)

    • Poll-based file watching with configurable debounce interval (--interval)
    • --git-only mode (only track files tracked by git)
    • --filter glob pattern support
    • Hidden directory filtering
    • Auto-reindex on change detection

    Remaining: MCP Notification

    The "MCP notification on reindex completion" item is a nice-to-have enhancement. Filing as a separate issue if/when needed -- it does not block the core goal of keeping Cora up-to-date without manual cora index.

    Closing this epic as complete.

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

    epic:code-intelligenceEpic: Code intelligence capabilities across toolsfeaturescope:cliCLI interface and UXscope:code-intelCode intelligence — indexing, graph, impact analysis

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions