검사 – 코드 검토를 중단하고 종속성 그래프로 분류를 시작한 이유

hackernews | | 🔬 연구
#git #inspect #review #rust #의존성 그래프 #코드 리뷰
원문 출처: hackernews · Genesis Park에서 요약 및 분석

요약

이 도구는 기존의 줄 단위 diff 방식 대신 엔티티(함수, 구조체 등) 단위와 의존성 그래프를 활용하여 변경 사항을 분류하고, 위험도에 따라 리뷰 우선순위를 지정합니다. AI 코드 도입으로 PR 규모와 버그가 증가하는 상황에서 LLM 없이 로컬에서 5~67ms 만에 동작하여 노이즈를 95% 이상 제거하고 핵심 변화만 선별합니다. Greptile 벤치마크에서 83.5%의 높은 재현율을 기록하며, 이는 기존 LLM 기반 도구를 능가하며 비용 없이 효율적인 코드 검토를 가능하게 합니다.

본문

Entity-level code review for Git. 8 files changed, but only 2 need careful review. inspect tells you which ones in 6ms. $ git diff --stat HEAD~1 src/merge/core.rs | 47 +++++++++--- src/validate.rs | 12 ------ src/config.rs | 23 +++++++ src/display.rs | 8 ++-- src/driver/mod.rs | 15 ++++-- src/driver/parse.rs | 9 ++++ tests/merge_test.rs | 31 +++++++++ README.md | 4 +- 8 files changed, 128(+), 21(-) # Which files actually matter? # Read all of them to find out. $ inspect diff HEAD~1 CRITICAL merge_entities (src/merge/core.rs) blast: 171 deps: 12 public API >>> 12 dependents may be affected HIGH old_validate (src/validate.rs) blast: 8 public API deleted 6 other changes are low risk verdict: requires_careful_review cargo install --git https://github.com/Ataraxy-Labs/inspect inspect-cli 141 planted bugs, 52 PRs, 5 repos. Dataset on HuggingFace. Full benchmarks → All local. No LLM, no network calls. Optionally, send the top entities to an LLM for full review. Full docs → Entity extraction powered by sem-core and tree-sitter. Plus 5 data formats. Full list → $ brew install ataraxy-labs/tap/inspect $ inspect diff HEAD~1 inspect 12 entities changed 1 critical, 2 high, 3 medium, 6 low verdict: requires_careful_review

Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.

공유

관련 저널 읽기

전체 보기 →