v0.6.0
What's New
Auto-reindex on query miss
When a query (search, get_signature, get_class) returns no results and the index may be stale, the server automatically runs an incremental reindex and retries. Uses a _index_fresh flag to skip redundant file walks on consecutive misses.
- Zero overhead on hits (0.09ms)
- Zero overhead on repeated misses (already fresh)
- Reindex cost only on first miss after a hit (~1-14ms depending on project size)
Stronger agent instructions
- Server
instructionsfield now explicitly tells agents to use codesurface tools BEFORE Grep/Glob/Read - Updated CLAUDE.md snippet with table + rules pattern for better subagent compliance
Other
_index_incrementalreturns(str, bool)tuple for structured change detection- Fixed misleading "Prefix match" comment (was actually substring match)