Repository Analysis

alibaba/open-code-review

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.

3.0 Likely human-written View on GitHub

Analysis Overview

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).

3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.5K
Stars
Go
Language
91.4K
Lines of Code
449
Files
136
Pattern Hits
2026-07-14
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 17MEDIUM 20LOW 99

Directory Score Breakdown

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.

Pattern Findings

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.

Magic Placeholder Names16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHREADME.ru-RU.md208ocr config set providers.anthropic.api_key your-api-key-hereCODE
HIGHREADME.ru-RU.md218ocr config set custom_providers.my-gateway.api_key your-api-key-hereCODE
HIGHREADME.ru-RU.md251export OCR_LLM_TOKEN=your-api-key-hereCODE
HIGHREADME.ja-JP.md208ocr config set providers.anthropic.api_key your-api-key-hereCODE
HIGHREADME.ja-JP.md218ocr config set custom_providers.my-gateway.api_key your-api-key-hereCODE
HIGHREADME.ja-JP.md251export OCR_LLM_TOKEN=your-api-key-hereCODE
HIGHREADME.md208ocr config set providers.anthropic.api_key your-api-key-hereCODE
HIGHREADME.md218ocr config set custom_providers.my-gateway.api_key your-api-key-hereCODE
HIGHREADME.md251export OCR_LLM_TOKEN=your-api-key-hereCODE
HIGHREADME.zh-CN.md208ocr config set providers.anthropic.api_key your-api-key-hereCODE
HIGHREADME.zh-CN.md218ocr config set custom_providers.my-gateway.api_key your-api-key-hereCODE
HIGHREADME.zh-CN.md251export OCR_LLM_TOKEN=your-api-key-hereCODE
HIGHREADME.ko-KR.md208ocr config set providers.anthropic.api_key your-api-key-hereCODE
HIGHREADME.ko-KR.md218ocr config set custom_providers.my-gateway.api_key your-api-key-hereCODE
HIGHREADME.ko-KR.md251export OCR_LLM_TOKEN=your-api-key-hereCODE
HIGHpages/src/components/QuickStartSection.tsx162 && ocr config set llm.auth_token {{your-api-key}} \\CODE
Decorative Section Separators18 hits · 70 pts
SeverityFileLineSnippetContext
MEDIUMscripts/publish/publish.sh32# ── Configuration ─────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh37# ── Banner ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh44# ── Resolve version from git tag ─────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh61# ── Pre-flight checks ────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh89# ── Confirm ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh95# ── Build ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh103# ── Publish platform-specific packages ────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh111# ── Upload to git-based release repo (optional) ──────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh180# ── Patch package.json for publish ────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh236# ── Publish ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh267# ── Restore package.json ─────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/publish.sh275# ── Done ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/_common.sh5# ── Colors ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/_common.sh13# ── Logging ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/_common.sh20# ── Path resolution ──────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/_common.sh27# ── Version helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/_common.sh38# ── Confirmation prompt ──────────────────────────────────────────────────────COMMENT
MEDIUMscripts/publish/_common.sh52# ── Step execution with timing ───────────────────────────────────────────────COMMENT
Structural Annotation Overuse33 hits · 55 pts
SeverityFileLineSnippetContext
LOWplugins/open-code-review/claude-code/commands/review.md9### Step 1: Run Code ReviewCOMMENT
LOWplugins/open-code-review/claude-code/commands/review.md24### Step 2: Filter and EvaluateCOMMENT
LOWplugins/open-code-review/claude-code/commands/review.md34### Step 3: FixCOMMENT
LOW…gins/open-code-review/skills/open-code-review/SKILL.md73### Step 1: Gather Business ContextCOMMENT
LOW…gins/open-code-review/skills/open-code-review/SKILL.md77### Step 2: Run Code ReviewCOMMENT
LOW…gins/open-code-review/skills/open-code-review/SKILL.md109### Step 3: Classify and ReportCOMMENT
LOW…gins/open-code-review/skills/open-code-review/SKILL.md119### Step 4: FixCOMMENT
LOW…nal/config/template/prompts/review_filter_task_user.md17#### Step 1: Fact Check (Veto Rule)COMMENT
LOW…nal/config/template/prompts/review_filter_task_user.md24#### Step 2: Issue ClassificationCOMMENT
LOWinternal/agent/agent.go191 // Step 1: Parse diffsCOMMENT
LOWinternal/agent/agent.go229 // Step 2: Dispatch per-file subtasks concurrentlyCOMMENT
LOW.claude/commands/open-code-review.md7### Step 1: Run Code ReviewCOMMENT
LOW.claude/commands/open-code-review.md22### Step 2: Filter and EvaluateCOMMENT
LOW.claude/commands/open-code-review.md32### Step 3: FixCOMMENT
LOW.claude/commands/tag.md11### Step 1: Determine versionCOMMENT
LOW.claude/commands/tag.md17### Step 2: Generate summaryCOMMENT
LOW.claude/commands/tag.md23### Step 3: Create tagCOMMENT
LOWexamples/github_actions/README.md245#### Step 1: Create a GitHub AppCOMMENT
LOWexamples/github_actions/README.md258#### Step 2: Generate a Private KeyCOMMENT
LOWexamples/github_actions/README.md266#### Step 3: Install the AppCOMMENT
LOWexamples/github_actions/README.md272#### Step 4: Configure Repository SecretsCOMMENT
LOWexamples/github_actions/README.md282#### Step 5: Pass the App token to the actionCOMMENT
LOWexamples/gitlab_ci/README.md223#### Step 1: Create a Service AccountCOMMENT
LOWexamples/gitlab_ci/README.md234#### Step 2: Invite the Service Account to Your ProjectCOMMENT
LOWexamples/gitlab_ci/README.md244#### Step 3: Create an Access TokenCOMMENT
LOWexamples/gitlab_ci/README.md257#### Step 4: Update CI/CD VariablesCOMMENT
LOWskills/open-code-review/SKILL.md68### Step 1: Gather Business ContextCOMMENT
LOWskills/open-code-review/SKILL.md72### Step 2: Run Code ReviewCOMMENT
LOWskills/open-code-review/SKILL.md104### Step 3: Classify and ReportCOMMENT
LOWskills/open-code-review/SKILL.md114### Step 4: FixCOMMENT
LOWpages/src/content/blog/en/introducing-ocr-blog.md68### Step 1: Create Your Markdown FileCOMMENT
LOWpages/src/content/blog/en/introducing-ocr-blog.md72### Step 2: Register the PostCOMMENT
LOWpages/src/content/blog/en/introducing-ocr-blog.md116### Step 3: Submit a PRCOMMENT
Hyper-Verbose Identifiers36 hits · 32 pts
SeverityFileLineSnippetContext
LOWextensions/vscode/src/shared/configUtils.ts110export function buildCustomCreateSaveEntries(params: {CODE
LOWextensions/vscode/src/shared/configUtils.ts136export function buildCustomUpdateSaveEntries(params: {CODE
LOWexamples/gitflic_ci/post_review_test.py68 def test_single_hunk_positions(self):STRING
LOWexamples/gitflic_ci/post_review_test.py107 def test_pure_addition_at_top(self):STRING
LOWexamples/gitflic_ci/post_review_test.py184 def test_fallback_for_unmapped_comment(self):CODE
LOWexamples/gitflic_ci/post_review_test.py201 def test_inline_error_falls_back(self):CODE
LOWexamples/gitflic_ci/post_review_test.py222 def test_new_file_anchors_to_new_path(self):CODE
LOWscripts/github-actions/post-review-comments.js494async function findExistingSummaryComment({ github, owner, repo, prNumber, log }) {CODE
LOWscripts/github-actions/post-review-comments.js608async function listExistingReviewComments(github, owner, repo, prNumber, log) {CODE
LOWscripts/github-actions/post-review-comments.js1085function buildPreReviewSummaryBody(totalCount, summaryComments, warnings) {CODE
LOWscripts/github-actions/post-review-comments.test.js282async function testFailedInlineCommentsAreSummarized() {CODE
LOWscripts/github-actions/post-review-comments.test.js337async function testWarningsListedAfterSummaryComments() {CODE
LOWscripts/github-actions/post-review-comments.test.js387async function testErrorCommentUsesSafeFence() {CODE
LOWscripts/github-actions/post-review-comments.test.js400async function testStickyUpdatesExistingSummary() {CODE
LOWscripts/github-actions/post-review-comments.test.js422async function testNonStickyFallbackAllSuccessStillPostsSummary() {CODE
LOWscripts/github-actions/post-review-comments.test.js444async function testNonStickyCreatesNewCommentOnFallback() {CODE
LOWscripts/github-actions/post-review-comments.test.js461async function testNoCommentsStickyUpdate() {CODE
LOWscripts/github-actions/post-review-comments.test.js476async function testIncrementalSkipsOverlapping() {CODE
LOWscripts/github-actions/post-review-comments.test.js500async function testIncrementalAllOverlapPostsNoReview() {CODE
LOWscripts/github-actions/post-review-comments.test.js523async function testIncrementalMultiLineIoUDefaultThreshold() {CODE
LOWscripts/github-actions/post-review-comments.test.js555async function testIncrementalOverlapThresholdPropagated() {CODE
LOWscripts/github-actions/post-review-comments.test.js578async function testBatchLandedRetriesOnlyMissingComments() {CODE
LOWscripts/github-actions/post-review-comments.test.js672async function testSummaryDoesNotDuplicateWhenAlreadyPosted() {CODE
LOWscripts/github-actions/post-review-comments.test.js703async function testSummaryAnchorCreatedBeforeReviewColdStart() {CODE
LOWscripts/github-actions/post-review-comments.test.js729async function testSummaryAnchorCreatedBeforeReviewNonSticky() {CODE
LOWscripts/github-actions/post-review-comments.test.js753async function testGetPostedCommentIdsExtractsEmbeddedIds() {CODE
LOWscripts/github-actions/post-review-comments.test.js867async function testBatchRateLimitWithPartialInvalidContent() {CODE
LOWscripts/github-actions/post-review-comments.test.js912async function testPerCommentRateLimitRetryThenSuccessAndExhausted() {CODE
LOWscripts/github-actions/post-review-comments.test.js949async function testBatchLandedWithPerCommentPartialInvalid() {CODE
LOWscripts/github-actions/post-review-comments.test.js987async function testBatchLandedWithPerCommentMixedStates() {CODE
LOWscripts/github-actions/post-review-comments.test.js1029async function testNetworkErrorLandedRecoveredAndNotLandedFailed() {CODE
LOWscripts/github-actions/post-review-comments.test.js1059async function testBatchIdempotencyCheckFailureDegradesToFullRetry() {CODE
LOWscripts/github-actions/post-review-comments.test.js1088async function testLowQuotaProactiveThrottleDoesNotBreakFlow() {CODE
LOWscripts/github-actions/post-review-comments.test.js1110async function testBatchRateLimitSkipsIdempotencyReads() {CODE
LOWscripts/github-actions/post-review-comments.test.js1135async function testBatchReadRateLimitRetriedViaWithRetry() {CODE
LOWscripts/github-actions/post-review-comments.test.js1172function testSafeFenceAndFencedBlock() {CODE
Over-Commented Block20 hits · 20 pts
SeverityFileLineSnippetContext
LOWcmd/opencodereview/shared.go101 if !isGit && requireGit {COMMENT
LOWinternal/config/allowlist/allowed_ext.go1// Package allowedext provides file-level filtering for code review:COMMENT
LOWinternal/llmloop/pool.go81// A panic in submitted work is recovered and logged inside Submit (see theCOMMENT
LOWinternal/diff/git_test.go61 // Working-tree modification: a real, parseable diff vs HEAD.COMMENT
LOWinternal/agent/agent.go81COMMENT
LOWinternal/scan/provider.go21 "github.com/open-code-review/open-code-review/internal/model"COMMENT
LOWinternal/scan/agent.go21 "github.com/open-code-review/open-code-review/internal/telemetry"COMMENT
LOWinternal/scan/agent.go441 return parseBatchStrategy(a.args.Template.BatchStrategy)COMMENT
LOWexamples/gitflic_ci/gitflic-ci.yaml1# OpenCodeReview - GitFlic CI Merge Request Auto-Review DemoCOMMENT
LOWexamples/github_actions/ocr-review.yml1# OpenCodeReview - GitHub Actions PR Auto-Review DemoCOMMENT
LOWexamples/gitlab_ci/.gitlab-ci.yml1# OpenCodeReview - GitLab CI Merge Request Auto-Review DemoCOMMENT
LOWexamples/gitlab_ci/.gitlab-ci.yml21# OCR_FAILURE_DELAY - Delay (ms) after a non-rate-limit failure to pace subsequent requests (default: 1000)COMMENT
LOWscripts/publish/publish.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/github-actions/post-review-comments.js1"use strict";COMMENT
LOWscripts/github-actions/post-review-comments.js321 // mean the comment was actually created but the response was lost.COMMENT
LOWscripts/github-actions/post-review-comments.js501 if (typeof body === "string" && body.includes(SUMMARY_MARKER)) {COMMENT
LOWscripts/github-actions/post-review-comments.js1001// Random per-comment ID, assigned once when the inline-comment item is builtCOMMENT
LOWscripts/github-actions/post-review-comments.js1041 md += "**After:**\n" + fencedBlock(comment.suggestion_code) + "\n\n";COMMENT
LOWscripts/github-actions/post-review-comments.test.js1#!/usr/bin/env nodeCOMMENT
LOW.github/workflows/ocr-review.yml1# OpenCodeReview - GitHub Actions PR Auto-Review PipelineCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHinternal/config/template/scan_template.json6 "content": "## Role\nYou are a code review assistant developed by Alibaba. Unlike diff-based review, in this tasCODE
AI Slop Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMinternal/config/template/scan_template.json45 "content": "## Role\nYou are a senior reviewer producing a project-level summary of a full-repo scan.\n\nYou areCODE
MEDIUMscripts/github-actions/post-review-comments.js678// keeps the public overlapsHistory API robust even when the value arrives fromCOMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcmd/opencodereview/git_test.go16 {"git", "-C", dir, "config", "user.email", "test@test.com"},CODE
LOWinternal/gitcmd/runner_test.go32 run("config", "user.email", "test@test.com")CODE
LOWinternal/tool/code_search_test.go100 run("git", "config", "user.email", "test@test.com")CODE
LOWinternal/tool/file_find_test.go101 run("git", "config", "user.email", "test@test.com")CODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWinternal/agent/agent.go191 // Step 1: Parse diffsCOMMENT
LOWinternal/agent/agent.go229 // Step 2: Dispatch per-file subtasks concurrentlyCOMMENT
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWexamples/gitflic_ci/post_review.py120CODE
LOWexamples/gitflic_ci/post_review.py192CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/publish/publish.sh8# Usage:COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/gitflic_ci/post_review.py298 except Exception as e: # noqa: BLE001 - any transport error falls backCODE