Repository navigation
feat(review): use the code model fully in review and scan, as agent reviewer and in CI - #766
Merged
Merged
Conversation
cora review and scan with a judge, and the agent tools review_prepare and scan_prepare, bring the index and vectors up to date before building their context (context_chain.auto_index), so a fresh CI checkout gets code intelligence and the code model is used. Related code is searched by the indexed name and signature of each changed symbol; scan lists the real symbols of its files and gives the judge the same context, including in scan_prepare. Refs #765.
The skills tell the agent to review the whole branch with cora before opening a pull request and to suggest cora review in the project's CI; the docs describe auto_index and code intelligence in CI. Refs #765.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Audit result:
cora review,cora scanand the agent tools only read an index somebody had built,scannever found related code by meaning (it searchedfile:"<path>"through the brain),reviewsearched by the bare symbol name instead of the text the code model embedded, andcora.scan_preparegave the agent no code context at all. On a fresh CI runner that means no code intelligence and an unused model.review.context_chain.auto_index(defaulttrue): before a review or scan with a judge builds its context, bring the project's index and vectors up to date (incremental; failures are only logged). Applies tocora review,cora scan,cora.review_prepareandcora.scan_prepare. A--no-llmrun only reads an existing index, so its speed and findings do not change. One line says what the context is made of (Code index: N symbols; code model on, orcode model off: keyword and call-graph context only).name signatureof each changed definition, with the vector signal (natural-language mode); only the changed symbol itself is excluded (it excluded the whole file before).cora.scan_preparenow passes the same context to the agent.cora-code,cora-review): review the whole branch with cora as the reviewer before opening a PR, and suggestcora review --ci/ thecora-review-actionin the project's CI. The skill drift checks from chore(skills): keep the cora skills in step with the binary and refresh them on upgrade #764 validate every command and flag the new text names.Why
The release binaries now carry the code embedding model (#761), and agents and CI are where code review happens; both should get the model's help without a manual
cora index. Closes #765.Testing
cargo fmt --all -- --check,cargo clippy --all-targets --features tree-sitter -- -D warningsclean;cargo test --features tree-sitter: 1528 passed, 0 failed.tests/review_context.rs,cora mcpover stdio, fresh data directory, tiny fixture model):review_prepareindexes the project itself and its prompt contains related code found by meaning (a network function related to a differently named one by the model alone);scan_prepareon a sub-tree gives the same context with "is similar to"; withauto_index: falsenothing is indexed and the prompt has no code intelligence.--no-llmscans too; the existingscoped_ignoretest caught the new dead-code findings that caused, so deterministic-only runs stay read-only.Generated by Claude Code