You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(review): make cora review and scan use the code model fully, as CLI, as agent reviewer and in CI #765
Audit of how cora review, cora scan and the agent-reviewer tools (cora.review_prepare, cora.scan_prepare) use the code index and the code embedding model:
The index is never built for them. They only read an existing index, so on a fresh CI runner (or a project nobody ran cora index in) there is no code intelligence at all, and the model is never used. A stale index also gives wrong dead-code and unused-import findings.
Review's "related patterns" search queries by the symbol name only, while the index embeds name signature, so the meaning signal is weak.
Scan's context is not semantic at all. It searches file:"<path>" through the brain, which is not a meaning query; it never finds related code.
Nothing tells the user (or the CI log) whether the vector signal was on.
How
context_chain.auto_index (default true): before a review or scan builds its context, bring the project's index and vectors up to date (incremental, offline with the bundled model; a failure is only logged). Also in review_prepare and scan_prepare, so agent reviewers get the same context. Prints one line with the symbol count and whether the code model is on (a warning when it is off).
Review: related-code search by meaning from the indexed name signature of each changed definition (natural-language mode, vector signal included), excluding only the changed symbol itself.
Scan: list the real symbols of the scanned files from the index, and search related code by meaning for the most significant ones.
Skills (cora-code, cora-review): recommend reviewing with cora (as agent reviewer) before opening a PR, and cora review in CI; docs and the CI example say the same.
Acceptance
In a fresh data directory with no index, cora review / cora scan (LLM judge stubbed) build a prompt that contains impact and related-code context, and review_prepare / scan_prepare packets contain it too.
With auto_index: false nothing is indexed.
Related code is found by meaning (a changed function finds a differently named function that does the same thing).
Activity
feat(review): recommend reviewing with cora before a PR and in CI