Open-source & free — Battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent, precise line-level comments, built-in fine-tuned ruleset (NPE, thread-safety, XSS, SQL injection), OpenAI & Anthropic compatible.
This report presents the forensic synthetic code analysis of alibaba/open-code-review, a Go project with 10,521 GitHub stars. SynthScan v2.0 examined 91,377 lines of code across 449 source files, recording 136 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 3.0 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 136 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.ru-RU.md | 208 | ocr config set providers.anthropic.api_key your-api-key-here | CODE |
| HIGH | README.ru-RU.md | 218 | ocr config set custom_providers.my-gateway.api_key your-api-key-here | CODE |
| HIGH | README.ru-RU.md | 251 | export OCR_LLM_TOKEN=your-api-key-here | CODE |
| HIGH | README.ja-JP.md | 208 | ocr config set providers.anthropic.api_key your-api-key-here | CODE |
| HIGH | README.ja-JP.md | 218 | ocr config set custom_providers.my-gateway.api_key your-api-key-here | CODE |
| HIGH | README.ja-JP.md | 251 | export OCR_LLM_TOKEN=your-api-key-here | CODE |
| HIGH | README.md | 208 | ocr config set providers.anthropic.api_key your-api-key-here | CODE |
| HIGH | README.md | 218 | ocr config set custom_providers.my-gateway.api_key your-api-key-here | CODE |
| HIGH | README.md | 251 | export OCR_LLM_TOKEN=your-api-key-here | CODE |
| HIGH | README.zh-CN.md | 208 | ocr config set providers.anthropic.api_key your-api-key-here | CODE |
| HIGH | README.zh-CN.md | 218 | ocr config set custom_providers.my-gateway.api_key your-api-key-here | CODE |
| HIGH | README.zh-CN.md | 251 | export OCR_LLM_TOKEN=your-api-key-here | CODE |
| HIGH | README.ko-KR.md | 208 | ocr config set providers.anthropic.api_key your-api-key-here | CODE |
| HIGH | README.ko-KR.md | 218 | ocr config set custom_providers.my-gateway.api_key your-api-key-here | CODE |
| HIGH | README.ko-KR.md | 251 | export OCR_LLM_TOKEN=your-api-key-here | CODE |
| HIGH | pages/src/components/QuickStartSection.tsx | 162 | && ocr config set llm.auth_token {{your-api-key}} \\ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | scripts/publish/publish.sh | 32 | # ── Configuration ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/publish.sh | 37 | # ── Banner ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/publish.sh | 44 | # ── Resolve version from git tag ───────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/publish/publish.sh | 61 | # ── Pre-flight checks ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/publish.sh | 89 | # ── Confirm ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/publish.sh | 95 | # ── Build ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/publish.sh | 103 | # ── Publish platform-specific packages ──────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/publish.sh | 111 | # ── Upload to git-based release repo (optional) ────────────────────────────── | COMMENT |
| MEDIUM | scripts/publish/publish.sh | 180 | # ── Patch package.json for publish ──────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/publish/publish.sh | 236 | # ── Publish ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/publish/publish.sh | 267 | # ── Restore package.json ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/publish/publish.sh | 275 | # ── Done ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/_common.sh | 5 | # ── Colors ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/_common.sh | 13 | # ── Logging ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/_common.sh | 20 | # ── Path resolution ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/publish/_common.sh | 27 | # ── Version helpers ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/publish/_common.sh | 38 | # ── Confirmation prompt ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/publish/_common.sh | 52 | # ── Step execution with timing ─────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/open-code-review/claude-code/commands/review.md | 9 | ### Step 1: Run Code Review | COMMENT |
| LOW | plugins/open-code-review/claude-code/commands/review.md | 24 | ### Step 2: Filter and Evaluate | COMMENT |
| LOW | plugins/open-code-review/claude-code/commands/review.md | 34 | ### Step 3: Fix | COMMENT |
| LOW | …gins/open-code-review/skills/open-code-review/SKILL.md | 73 | ### Step 1: Gather Business Context | COMMENT |
| LOW | …gins/open-code-review/skills/open-code-review/SKILL.md | 77 | ### Step 2: Run Code Review | COMMENT |
| LOW | …gins/open-code-review/skills/open-code-review/SKILL.md | 109 | ### Step 3: Classify and Report | COMMENT |
| LOW | …gins/open-code-review/skills/open-code-review/SKILL.md | 119 | ### Step 4: Fix | COMMENT |
| LOW | …nal/config/template/prompts/review_filter_task_user.md | 17 | #### Step 1: Fact Check (Veto Rule) | COMMENT |
| LOW | …nal/config/template/prompts/review_filter_task_user.md | 24 | #### Step 2: Issue Classification | COMMENT |
| LOW | internal/agent/agent.go | 191 | // Step 1: Parse diffs | COMMENT |
| LOW | internal/agent/agent.go | 229 | // Step 2: Dispatch per-file subtasks concurrently | COMMENT |
| LOW | .claude/commands/open-code-review.md | 7 | ### Step 1: Run Code Review | COMMENT |
| LOW | .claude/commands/open-code-review.md | 22 | ### Step 2: Filter and Evaluate | COMMENT |
| LOW | .claude/commands/open-code-review.md | 32 | ### Step 3: Fix | COMMENT |
| LOW⚡ | .claude/commands/tag.md | 11 | ### Step 1: Determine version | COMMENT |
| LOW⚡ | .claude/commands/tag.md | 17 | ### Step 2: Generate summary | COMMENT |
| LOW⚡ | .claude/commands/tag.md | 23 | ### Step 3: Create tag | COMMENT |
| LOW | examples/github_actions/README.md | 245 | #### Step 1: Create a GitHub App | COMMENT |
| LOW⚡ | examples/github_actions/README.md | 258 | #### Step 2: Generate a Private Key | COMMENT |
| LOW⚡ | examples/github_actions/README.md | 266 | #### Step 3: Install the App | COMMENT |
| LOW⚡ | examples/github_actions/README.md | 272 | #### Step 4: Configure Repository Secrets | COMMENT |
| LOW⚡ | examples/github_actions/README.md | 282 | #### Step 5: Pass the App token to the action | COMMENT |
| LOW | examples/gitlab_ci/README.md | 223 | #### Step 1: Create a Service Account | COMMENT |
| LOW | examples/gitlab_ci/README.md | 234 | #### Step 2: Invite the Service Account to Your Project | COMMENT |
| LOW | examples/gitlab_ci/README.md | 244 | #### Step 3: Create an Access Token | COMMENT |
| LOW | examples/gitlab_ci/README.md | 257 | #### Step 4: Update CI/CD Variables | COMMENT |
| LOW | skills/open-code-review/SKILL.md | 68 | ### Step 1: Gather Business Context | COMMENT |
| LOW | skills/open-code-review/SKILL.md | 72 | ### Step 2: Run Code Review | COMMENT |
| LOW | skills/open-code-review/SKILL.md | 104 | ### Step 3: Classify and Report | COMMENT |
| LOW | skills/open-code-review/SKILL.md | 114 | ### Step 4: Fix | COMMENT |
| LOW | pages/src/content/blog/en/introducing-ocr-blog.md | 68 | ### Step 1: Create Your Markdown File | COMMENT |
| LOW | pages/src/content/blog/en/introducing-ocr-blog.md | 72 | ### Step 2: Register the Post | COMMENT |
| LOW | pages/src/content/blog/en/introducing-ocr-blog.md | 116 | ### Step 3: Submit a PR | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extensions/vscode/src/shared/configUtils.ts | 110 | export function buildCustomCreateSaveEntries(params: { | CODE |
| LOW | extensions/vscode/src/shared/configUtils.ts | 136 | export function buildCustomUpdateSaveEntries(params: { | CODE |
| LOW | examples/gitflic_ci/post_review_test.py | 68 | def test_single_hunk_positions(self): | STRING |
| LOW | examples/gitflic_ci/post_review_test.py | 107 | def test_pure_addition_at_top(self): | STRING |
| LOW | examples/gitflic_ci/post_review_test.py | 184 | def test_fallback_for_unmapped_comment(self): | CODE |
| LOW | examples/gitflic_ci/post_review_test.py | 201 | def test_inline_error_falls_back(self): | CODE |
| LOW | examples/gitflic_ci/post_review_test.py | 222 | def test_new_file_anchors_to_new_path(self): | CODE |
| LOW | scripts/github-actions/post-review-comments.js | 494 | async function findExistingSummaryComment({ github, owner, repo, prNumber, log }) { | CODE |
| LOW | scripts/github-actions/post-review-comments.js | 608 | async function listExistingReviewComments(github, owner, repo, prNumber, log) { | CODE |
| LOW | scripts/github-actions/post-review-comments.js | 1085 | function buildPreReviewSummaryBody(totalCount, summaryComments, warnings) { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 282 | async function testFailedInlineCommentsAreSummarized() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 337 | async function testWarningsListedAfterSummaryComments() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 387 | async function testErrorCommentUsesSafeFence() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 400 | async function testStickyUpdatesExistingSummary() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 422 | async function testNonStickyFallbackAllSuccessStillPostsSummary() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 444 | async function testNonStickyCreatesNewCommentOnFallback() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 461 | async function testNoCommentsStickyUpdate() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 476 | async function testIncrementalSkipsOverlapping() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 500 | async function testIncrementalAllOverlapPostsNoReview() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 523 | async function testIncrementalMultiLineIoUDefaultThreshold() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 555 | async function testIncrementalOverlapThresholdPropagated() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 578 | async function testBatchLandedRetriesOnlyMissingComments() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 672 | async function testSummaryDoesNotDuplicateWhenAlreadyPosted() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 703 | async function testSummaryAnchorCreatedBeforeReviewColdStart() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 729 | async function testSummaryAnchorCreatedBeforeReviewNonSticky() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 753 | async function testGetPostedCommentIdsExtractsEmbeddedIds() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 867 | async function testBatchRateLimitWithPartialInvalidContent() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 912 | async function testPerCommentRateLimitRetryThenSuccessAndExhausted() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 949 | async function testBatchLandedWithPerCommentPartialInvalid() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 987 | async function testBatchLandedWithPerCommentMixedStates() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 1029 | async function testNetworkErrorLandedRecoveredAndNotLandedFailed() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 1059 | async function testBatchIdempotencyCheckFailureDegradesToFullRetry() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 1088 | async function testLowQuotaProactiveThrottleDoesNotBreakFlow() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 1110 | async function testBatchRateLimitSkipsIdempotencyReads() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 1135 | async function testBatchReadRateLimitRetriedViaWithRetry() { | CODE |
| LOW | scripts/github-actions/post-review-comments.test.js | 1172 | function testSafeFenceAndFencedBlock() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/opencodereview/shared.go | 101 | if !isGit && requireGit { | COMMENT |
| LOW | internal/config/allowlist/allowed_ext.go | 1 | // Package allowedext provides file-level filtering for code review: | COMMENT |
| LOW | internal/llmloop/pool.go | 81 | // A panic in submitted work is recovered and logged inside Submit (see the | COMMENT |
| LOW | internal/diff/git_test.go | 61 | // Working-tree modification: a real, parseable diff vs HEAD. | COMMENT |
| LOW | internal/agent/agent.go | 81 | COMMENT | |
| LOW | internal/scan/provider.go | 21 | "github.com/open-code-review/open-code-review/internal/model" | COMMENT |
| LOW | internal/scan/agent.go | 21 | "github.com/open-code-review/open-code-review/internal/telemetry" | COMMENT |
| LOW | internal/scan/agent.go | 441 | return parseBatchStrategy(a.args.Template.BatchStrategy) | COMMENT |
| LOW | examples/gitflic_ci/gitflic-ci.yaml | 1 | # OpenCodeReview - GitFlic CI Merge Request Auto-Review Demo | COMMENT |
| LOW | examples/github_actions/ocr-review.yml | 1 | # OpenCodeReview - GitHub Actions PR Auto-Review Demo | COMMENT |
| LOW | examples/gitlab_ci/.gitlab-ci.yml | 1 | # OpenCodeReview - GitLab CI Merge Request Auto-Review Demo | COMMENT |
| LOW | examples/gitlab_ci/.gitlab-ci.yml | 21 | # OCR_FAILURE_DELAY - Delay (ms) after a non-rate-limit failure to pace subsequent requests (default: 1000) | COMMENT |
| LOW | scripts/publish/publish.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/github-actions/post-review-comments.js | 1 | "use strict"; | COMMENT |
| LOW | scripts/github-actions/post-review-comments.js | 321 | // mean the comment was actually created but the response was lost. | COMMENT |
| LOW | scripts/github-actions/post-review-comments.js | 501 | if (typeof body === "string" && body.includes(SUMMARY_MARKER)) { | COMMENT |
| LOW | scripts/github-actions/post-review-comments.js | 1001 | // Random per-comment ID, assigned once when the inline-comment item is built | COMMENT |
| LOW | scripts/github-actions/post-review-comments.js | 1041 | md += "**After:**\n" + fencedBlock(comment.suggestion_code) + "\n\n"; | COMMENT |
| LOW | scripts/github-actions/post-review-comments.test.js | 1 | #!/usr/bin/env node | COMMENT |
| LOW | .github/workflows/ocr-review.yml | 1 | # OpenCodeReview - GitHub Actions PR Auto-Review Pipeline | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | internal/config/template/scan_template.json | 6 | "content": "## Role\nYou are a code review assistant developed by Alibaba. Unlike diff-based review, in this tas | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | internal/config/template/scan_template.json | 45 | "content": "## Role\nYou are a senior reviewer producing a project-level summary of a full-repo scan.\n\nYou are | CODE |
| MEDIUM | scripts/github-actions/post-review-comments.js | 678 | // keeps the public overlapsHistory API robust even when the value arrives from | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/opencodereview/git_test.go | 16 | {"git", "-C", dir, "config", "user.email", "test@test.com"}, | CODE |
| LOW | internal/gitcmd/runner_test.go | 32 | run("config", "user.email", "test@test.com") | CODE |
| LOW | internal/tool/code_search_test.go | 100 | run("git", "config", "user.email", "test@test.com") | CODE |
| LOW | internal/tool/file_find_test.go | 101 | run("git", "config", "user.email", "test@test.com") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/agent/agent.go | 191 | // Step 1: Parse diffs | COMMENT |
| LOW | internal/agent/agent.go | 229 | // Step 2: Dispatch per-file subtasks concurrently | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/gitflic_ci/post_review.py | 120 | CODE | |
| LOW | examples/gitflic_ci/post_review.py | 192 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/publish/publish.sh | 8 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/gitflic_ci/post_review.py | 298 | except Exception as e: # noqa: BLE001 - any transport error falls back | CODE |