Repository Analysis

openclaw/clawsweeper

ClawSweeper scans all issues and PRs and suggest what we can close, and why. It runs every PR / Issue once a week.

4.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of openclaw/clawsweeper, a TypeScript project with 1,915 GitHub stars. SynthScan v2.0 examined 220,809 lines of code across 443 source files, recording 1051 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 4.3 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).

4.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
1.9K
Stars
TypeScript
Language
220.8K
Lines of Code
443
Files
1.1K
Pattern Hits
2026-07-14
Scan Date
0.01
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 6MEDIUM 0LOW 1045

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 1051 distinct pattern matches across 5 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.

Hyper-Verbose Identifiers1041 hits · 910 pts
SeverityFileLineSnippetContext
LOWtest/apply-pr-coverage-proof-recheck.test.ts16function boundDuplicateCloseComment(number: number, canonicalUrl: string): string {CODE
LOWtest/proof-nudge-policy.test.ts101function closedProofLaneGhMockScript(numbers: readonly number[]): string {CODE
LOWtest/proof-nudge-policy.test.ts137function proofMutationGhMockScript(options: {CODE
LOWtest/apply-pr-duplicate-proof.test.ts21function boundDuplicateCloseComment(number: number, canonicalUrl: string): string {CODE
LOWtest/helpers.ts243export function realBehaviorProofReportSection(overrides = {}) {CODE
LOWtest/helpers.ts416export function stripProofAndRatingFrontMatter(report: string): string {CODE
LOWtest/helpers.ts797export function markedReviewCommentForTest(number: number, body: string): string {CODE
LOWtest/helpers.ts805export function reportWithSyncedReviewComment(CODE
LOWtest/apply-unsponsored-feature-policy.test.ts68function staleInsufficientInfoCloseReport(overrides = {}) {CODE
LOWtest/apply-product-direction-policy.test.ts15function unconfirmedProductDirectionCloseReport(overrides = {}) {CODE
LOWtest/apply-product-direction-policy.test.ts67function unconfirmedProductDirectionApplyGhMock(CODE
LOWtest/action-ledger-runtime.test.ts181function recordWorkflowAttemptMutationOutcome(CODE
LOWtest/apply-stalled-pr-policies.test.ts14function stalledUnprovenCloseReport(overrides = {}) {CODE
LOWtest/sweep-workflow.test.ts2359function extractWorkflowShellFunction(block: string, functionName: string): string {CODE
LOWtest/sweep-workflow.test.ts2369function runExactReviewPressureStatus(block: string, response: Record<string, unknown>): string {CODE
LOWtest/apply-pr-promotion.test.ts100function assertResolvedPromotionRespectsCloseReasonFilter(options: {CODE
LOWtest/clawsweeper-action-ledger.test.ts403 source.indexOf("function applyItemIdempotencyIdentity("),CODE
LOWtest/clawsweeper-action-ledger.test.ts426 source.indexOf("function startReviewActionLedgerItem("),CODE
LOWtest/clawsweeper-action-ledger.test.ts448 source.indexOf("function startReviewMutationAttempt("),CODE
LOWtest/clawsweeper-action-ledger.test.ts449 source.indexOf("function recordReviewLogPublication("),CODE
LOWtest/clawsweeper-action-ledger.test.ts457 source.indexOf("function finishReviewActionLedgerItem("),CODE
LOWtest/clawsweeper-action-ledger.test.ts458 source.indexOf("export function actionLedgerFailureDisposition("),CODE
LOWtest/clawsweeper-action-ledger.test.ts508 const mutationAttemptStart = source.indexOf("function startApplyMutationAttempt(");CODE
LOWtest/clawsweeper-action-ledger.test.ts830function assertCommandFinalizerUsesCanonicalRoot(step: string): void {CODE
LOWtest/clawsweeper-action-ledger.test.ts839function assertCommandPublisherUsesCanonicalRoot(step: string): void {CODE
LOWtest/proof-mutation-safety.test.ts120 const freshnessStart = source.indexOf("function refreshProofMutationSession(");CODE
LOWtest/dashboard-worker.test.ts8531function signedGithubWebhookRequest({CODE
LOWtest/dashboard-worker.test.ts8544function signedGithubWebhookBodyRequest({CODE
LOWtest/dashboard-worker.test.ts8566function buildExactReviewQueueRequest(CODE
LOWtest/dashboard-worker.test.ts8593function leasedExactReviewQueueItem(itemNumber: number, runId: string, runAttempt = 1) {CODE
LOWtest/dashboard-worker.test.ts8624function unclaimedExactReviewQueueItem(itemNumber: number) {CODE
LOWtest/repair/comment-router-action-ledger.test.ts62 source.indexOf("function executeCommandWithReceipt("),CODE
LOWtest/repair/spam-scanner-core.test.ts117+export function mergeSqliteSessionTranscriptEvents() {CODE
LOWtest/repair/execute-fix-artifact-source.test.ts86 const pushStart = source.indexOf("function pushRepairBranchAndUpdateStatus(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts117 const preparedStart = source.indexOf("function openReplacementPrFromPreparedRepairCheckout(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts139 const helperStart = source.indexOf("function skipMergedSourceReplacementWithoutDiff(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts140 const helperEnd = source.indexOf("function labelReplacementPullRequest(", helperStart);CODE
LOWtest/repair/execute-fix-artifact-source.test.ts182 const helperStart = source.indexOf("function spawnCodexSyncWithHeartbeat(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts199 const pushEnd = source.indexOf("function fetchRemoteRecoverableBranch(", pushStart);CODE
LOWtest/repair/execute-fix-artifact-source.test.ts200 const helperStart = source.indexOf("function assertIssueImplementationNotPaused(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts201 const helperEnd = source.indexOf("function fetchRemoteRecoverableBranch(", helperStart);CODE
LOWtest/repair/execute-fix-artifact-source.test.ts243 "function updateAutomergeProgressStatus(",CODE
LOWtest/repair/execute-fix-artifact-source.test.ts247 const recoveryStart = source.indexOf("function checkoutRecoverableReplacementBranch(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts251 const pushEnd = source.indexOf("function assertIssueImplementationNotPaused(", pushStart);CODE
LOWtest/repair/execute-fix-artifact-source.test.ts273 const recoveryStart = source.indexOf("function checkoutRecoverableReplacementBranch(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts289 const reconcileStart = source.indexOf("function reconcileLatestBaseBeforePush(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts322 const reconcileStart = source.indexOf("function reconcileLatestBaseBeforePush(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts357 const resolverStart = source.indexOf("function resolveAndCompleteMechanicalRebase(");CODE
LOWtest/repair/execute-fix-artifact-source.test.ts403 const start = source.indexOf("function enforceFinalRepairContract(");CODE
LOWtest/repair/command-ops-action-ledger.test.ts227function assertCommandFinalizerUsesCanonicalRoot(step: string): void {CODE
LOWtest/repair/command-ops-action-ledger.test.ts236function assertCommandPublisherUsesCanonicalRoot(step: string): void {CODE
LOWtest/repair/execute-fix-validation.test.ts11function broadBranchRepairArtifact() {CODE
LOWtest/repair/post-flight.test.ts440function writeIssueImplementationJob(jobPath: string) {CODE
LOWtest/repair/post-flight.test.ts509function writeIssueImplementationReports(runDir: string, resultPath: string) {CODE
LOWtest/repair/command-runner.test.ts423function linuxValidationContainmentAvailable() {CODE
LOWtest/repair/target-validation.test.ts5815function linuxValidationContainmentAvailable() {CODE
LOWtest/repair/target-validation.test.ts5894function withCommandOverridesUnset(commands, callback) {CODE
LOWtest/repair/dispatch-action-receipts.test.ts680function failAcceptedOutcomeWrites(t: TestContext, failures: number): void {CODE
LOWtest/repair/codex-result-schema.ts7export function assertCodexActionMatchesSchema(value: unknown): void {CODE
LOWtest/repair/git-publish.test.ts2326function installSecondPushRaceHook(work, other) {CODE
981 more matches not shown…
Cross-Language Confusion (JS/TS)6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsrc/action-ledger-files.ts26print(f"{status}:{reported_pid}:{started_sec}:{started_usec}")CODE
HIGHsrc/repair/process-tree-containment.ts147 return FalseCODE
HIGHsrc/repair/process-tree-containment.ts162 return TrueCODE
HIGHsrc/repair/process-tree-containment.ts167 return FalseCODE
HIGHsrc/repair/process-tree-containment.ts552 return TrueCODE
HIGHsrc/repair/process-tree-containment.ts554 return FalseCODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/repair/README.md261pnpm run repair:import-gitcrawl-low-signal -- --limit 20 --batch-size 5 --mode autonomous --sort staleCOMMENT
LOWsrc/repair/target-validation.ts421 cwd: string;COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.agents/skills/crabbox/SKILL.md465../crabbox/bin/crabbox desktop paste --provider hetzner --id <cbx_id-or-slug> --text "user@example.com"CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/repair/comment-webhook.ts96async function handleRequest(request: http.IncomingMessage, response: http.ServerResponse) {CODE