check_index_status
Assess the health of the search index: find out if it is fresh, stale, or missing. Call this before searching to ensure accurate results.
Instructions
Check whether the Reflex search index is fresh, stale, or missing — without running any search.
CALL THIS FIRST at the start of every session and before any significant search task. If the index is stale or missing, call index_project before searching.
Returns:
status:"fresh"|"stale"|"missing"reason: why the index is stale (branch not indexed, commit changed, files modified)action_required: command to fix the issue (alwaysrfx indexwhen stale)files_modified: number of recently modified files detected (only present for mtime-based staleness)
When to call:
At the start of every agent session
Before any bulk search or refactoring task
After a git operation (checkout, merge, rebase, pull)
Example fresh response: {"status": "fresh"}
Example stale response: {"status": "stale", "reason": "Commit changed from abc1234 to def5678", "action_required": "rfx index"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||