Critiical : Refresh the index regurlarly
@fazleelahhee thanks for the work !
Let the cce server refresh the index as follow:
- Internal CRON: Daily at 03:00: time
List of all file changes over the last 1 day
Re-index those files.
``
Index freshness is CRITICAL for accuracy
CCE already keeps the index fresh through three mechanisms:
-
Git hooks (installed by
cce init): reindex runs automatically on every commit, checkout, and merge. Only changed files are re-processed (content-hash diffing), so this takes under 1 second. -
File watcher (
cce watch): watches your project directory for file changes and reindexes in real-time. Run in a separate terminal for continuous updates. -
Lazy reindex on first query: if the MCP server detects recently modified files when you search, it triggers an incremental reindex before returning results.
A cron job on top of this would be redundant for most workflows since git hooks catch every meaningful code change. The gap is edits that haven't been committed yet, which cce watch covers.
If you're seeing stale results, check:
cce statusshows the index exists and has chunks- Git hooks are installed: look for
ccein.git/hooks/post-commit - Or run
cce indexmanually after making changes
Is there a specific scenario where you're seeing stale results despite git hooks?