The report Wingbox wrote on alibaba/open-code-review, without its own guesses of architecture layers.
Wingbox report: open-code-review
Generated on 2026-11-16 by wingbox 0.2.6 from the code graph of this project. Open map.html in this folder for the interactive map.
Key findings
- A change to
internal/model/diff.goreaches 135 of 710 modules (19%) within 2 hops; 82 modules depend on it directly.
Summary
| Modules | 710 |
| Dependencies between modules | 4,630 |
| Functions, constants, classes and types | 6,800 |
| Languages | go 549, ts 65, tsx 55, js 32, py 9 |
| Boundary violations | 0 |
Most depended-on modules
A change in one of these files reaches the most code (test files are left out). "Within 2 hops" counts the modules that depend on it directly or through one other module.
| File | Direct dependents | Within 2 hops |
|---|---|---|
internal/llm/chatgpt.go | 92 | 127 |
internal/llm/client.go | 92 | 127 |
internal/llm/embedded_loader.go | 92 | 127 |
internal/llm/keycmd.go | 92 | 127 |
internal/llm/keycmd_unix.go | 92 | 127 |
internal/llm/keycmd_windows.go | 92 | 127 |
internal/llm/protocol.go | 92 | 127 |
internal/llm/providers.go | 92 | 127 |
internal/llm/raw.go | 92 | 127 |
internal/llm/request_timeout.go | 92 | 127 |
internal/llm/resolver.go | 92 | 127 |
internal/llm/responses_client.go | 92 | 127 |
internal/llm/retry_boundary.go | 92 | 127 |
internal/llm/retry_meta.go | 92 | 127 |
internal/llm/retry_observer.go | 92 | 127 |
Where to start reading
Files that nothing else depends on and that pull in the most modules:
cmd/opencodereview/shared.go, depends on 83 modulescmd/opencodereview/review_cmd.go, depends on 69 modulescmd/opencodereview/output.go, depends on 60 modulescmd/opencodereview/scan_cmd.go, depends on 60 modulescmd/opencodereview/delegate_cmd.go, depends on 33 modulescmd/opencodereview/code_access.go, depends on 31 modulescmd/opencodereview/chatgpt_auth.go, depends on 27 modulescmd/opencodereview/main.go, depends on 25 modulescmd/opencodereview/sarif.go, depends on 22 modulescmd/opencodereview/session_cmd.go, depends on 22 modules
Next steps
Check what a change will reach before you make it:
wingbox impact internal/llm/chatgpt.go
Rebuild after the code changes with wingbox build. This report and the map are rewritten on every build.
Limits
The graph comes from static parsing. Dependencies created at run time (dependency injection, reflection, generated code) are not visible here.