mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-20 22:54:11 +00:00
Group functionally related files (e.g., impl + test, handler + model) into
a single review context using an LLM clustering step. This improves review
quality by giving the model cross-file awareness within related changes.
Key changes:
- Add file grouping agent with threshold-based decisions and recursive splitting
- Refactor dispatchSubtasks/executeSubtask to operate on DiffGroup instead of
individual diffs, supporting combined multi-file diffs with FILE separators
- Add path validation in code_comment tool for multi-file groups
- Add StripDiffHeaders to reduce token usage in prompts
- Add extractJSONArray fallback for filter response parsing robustness
- Persist file group metadata to JSONL and render groups in viewer UI
- Merge intermediate tool-only agent rounds in viewer for cleaner display
- Update prompt templates: remove {{current_file_path}}, use <pending_review_diff>
|
||
|---|---|---|
| .. | ||
| code_comment.go | ||
| code_search.go | ||
| code_search_test.go | ||
| comment_collector.go | ||
| definitions.go | ||
| file_find.go | ||
| file_read.go | ||
| file_read_diff.go | ||
| file_read_test.go | ||
| filereader.go | ||
| response_message.go | ||
| stub.go | ||