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.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of openclaw/clawsweeper, a TypeScript project with 1,969 GitHub stars. SynthScan v2.0 examined 490,364 lines of code across 1123 source files, recording 2353 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 4.6 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.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-08-29
Last Push
2.0K
Stars
TypeScript
Language
490.4K
Lines of Code
1.1K
Files
2.4K
Pattern Hits
2026-08-29
Scan Date
0.02
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 4HIGH 16MEDIUM 1LOW 2332

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 2353 distinct pattern matches across 7 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 Identifiers2321 hits · 2135 pts
SeverityFileLineSnippetContext
LOWtest/live-proof-report.test.ts73function attachedVerificationStatus(report: string, plan: LiveProofPlan) {CODE
LOWtest/exact-review-dead-letter-operator.test.ts3902async function automaticReconcileScenario(options) {CODE
LOWtest/exact-review-dead-letter-operator.test.ts4631function assertSkipAccountingComplete(summary) {CODE
LOWtest/apply-pr-coverage-proof-recheck.test.ts163function boundDuplicateCloseComment(number: number, canonicalUrl: string): string {CODE
LOWtest/apply-pr-duplicate-proof.test.ts21function boundDuplicateCloseComment(number: number, canonicalUrl: string): string {CODE
LOWtest/apply-pr-duplicate-proof.test.ts181function assertChangedReviewNeverRepublishes(action: string): void {CODE
LOWtest/helpers.ts265export function realBehaviorProofReportSection(overrides = {}) {CODE
LOWtest/helpers.ts442export function verifiedImplementationPullRequestReport(overrides = {}) {CODE
LOWtest/helpers.ts483export function stripProofAndRatingFrontMatter(report: string): string {CODE
LOWtest/helpers.ts937export function markedReviewCommentForTest(number: number, body: string): string {CODE
LOWtest/helpers.ts945export function reportWithSyncedReviewComment(CODE
LOWtest/github-api.test.ts149function workerGithubWebhookRequest() {CODE
LOWtest/dashboard-worker-command-intake.test.ts506async function mainEquivalentOldCommandPath(origin: string) {CODE
LOWtest/dashboard-worker-queue-policy.test.ts35function credentialRecoveryJitterMs(key: string) {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/dashboard-worker-dashboard-status.test.ts76function assertAggregateTriageSnapshot(snapshot: any, viewIds: string[], marker: string) {CODE
LOWtest/dashboard-worker-dashboard-status.test.ts109function dashboardApplyObservabilityFixture() {CODE
LOWtest/dashboard-worker-dashboard-status.test.ts169function dashboardAutomergeMetricsFixture() {CODE
LOWtest/dashboard-worker-dashboard-status.test.ts216function dashboardReviewCoverageFixture() {CODE
LOWtest/dashboard-worker-dashboard-status.test.ts242function dashboardHealthHistoryFixture(range = "6h") {CODE
LOWtest/dashboard-worker-harness.ts671function signedGithubWebhookRequest({CODE
LOWtest/dashboard-worker-harness.ts686function signedGithubWebhookBodyRequest({CODE
LOWtest/dashboard-worker-harness.ts731function createExactReviewAdmissionHarness(CODE
LOWtest/dashboard-worker-harness.ts867function buildExactReviewQueueRequest(CODE
LOWtest/dashboard-worker-harness.ts896function exactReviewPublicationOverrides(CODE
LOWtest/dashboard-worker-harness.ts931function legacyExactReviewPublicationOverrides(CODE
LOWtest/dashboard-worker-harness.ts954function leasedExactReviewQueueItem(itemNumber: number, runId: string, runAttempt = 1) {CODE
LOWtest/dashboard-worker-harness.ts985function leasedExactReviewPublicationItem(itemNumber: number, runId: string) {CODE
LOWtest/dashboard-worker-harness.ts1011function unclaimedExactReviewQueueItem(itemNumber: number) {CODE
LOWtest/dashboard-worker-bay-records-routes.test.ts5583async function renderPublicTriageApplication(CODE
LOWtest/dashboard-worker-bay-records-routes.test.ts5630function publicTriageApplicationScript(html: string) {CODE
LOWtest/apply-runtime-budget.test.ts65function applySleepObserverPreload(tracePath: string): string {CODE
LOWtest/apply-stalled-pr-policies.test.ts14function stalledUnprovenCloseReport(overrides = {}) {CODE
LOWtest/dashboard-public-observability.test.ts23function assertPrivateMarkersAbsent(value: unknown) {CODE
LOWtest/dashboard-public-observability.test.ts53function reviewObservabilityFixture() {CODE
LOWtest/dashboard-public-observability.test.ts161function applyObservabilityFixture() {CODE
LOWtest/dashboard-public-observability.test.ts478function githubThrottleEgressFixture() {CODE
LOWtest/apply-pr-promotion.test.ts100function assertResolvedPromotionRespectsCloseReasonFilter(options: {CODE
LOWtest/pr-proof-automation.test.ts1510function unprovenPullRequestReport(summary: string, fixedRelease = "unknown"): string {CODE
LOWtest/pr-proof-automation.test.ts1563function parsedSummaryWithForgedProof(spoofBlock: string): string {CODE
LOWtest/live-proof.test.ts4537function recordedAttachmentFixture() {CODE
LOWtest/live-proof.test.ts4941function terminalCommandInvocation(args: readonly string[]):CODE
LOWtest/live-proof.test.ts4987function terminalCleanupInvocation(args: readonly string[]): TerminalCleanupInvocation | undefined {CODE
LOWtest/live-proof.test.ts5005function terminalCaptureInvocation(args: readonly string[]):CODE
LOWtest/dashboard-worker-durable-object-error.test.ts26function signedPublicationsListRequest(body: string, secret: string) {CODE
LOWtest/clawsweeper-action-ledger.test.ts464 source.indexOf("function applyItemIdempotencyIdentity("),CODE
LOWtest/clawsweeper-action-ledger.test.ts488 ledgerSource.indexOf("function startReviewActionLedgerItem("),CODE
LOWtest/clawsweeper-action-ledger.test.ts510 ledgerSource.indexOf("function startReviewMutationAttempt("),CODE
LOWtest/clawsweeper-action-ledger.test.ts511 ledgerSource.indexOf("function recordReviewLogPublication("),CODE
LOWtest/clawsweeper-action-ledger.test.ts519 ledgerSource.indexOf("function finishReviewActionLedgerItem("),CODE
LOWtest/clawsweeper-action-ledger.test.ts520 ledgerSource.indexOf("function actionLedgerFailureDisposition("),CODE
LOWtest/clawsweeper-action-ledger.test.ts601 const mutationAttemptStart = source.indexOf("function startApplyMutationAttempt(");CODE
LOWtest/clawsweeper-action-ledger.test.ts1087function assertCommandFinalizerUsesCanonicalRoot(step: string): void {CODE
LOWtest/clawsweeper-action-ledger.test.ts1096function assertCommandPublisherUsesCanonicalRoot(step: string): void {CODE
LOWtest/clawsweeper-action-ledger.test.ts1118function assertStateBlobPublisherWiring(step: string): void {CODE
LOWtest/dashboard-worker-queue-runtime.test.ts52function assertConsoleCallsExclude(calls: unknown[][], sentinels: string[]) {CODE
LOWtest/failed-review-retry.test.ts140async function runFailedIssueRetryAtDispatchDeadline(CODE
LOWtest/repair/spam-scanner-core.test.ts118+export function mergeSqliteSessionTranscriptEvents() {CODE
2261 more matches not shown…
Cross-Language Confusion (JS/TS)16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHtest/sweep-workflow.test.ts671elif [[ "$*" == *"repos/openclaw/libterminal/issues/41"* ]]; thenCODE
HIGHtest/repair/process-tree-containment.test.ts279 print(json.dumps({"status": "imported"}, separators=(",", ":")))CODE
HIGHtest/repair/process-tree-containment.test.ts296 print(json.dumps(payload, separators=(",", ":")))CODE
HIGHtest/repair/process-tree-containment.test.ts312 print(json.dumps({"tracked": sorted(tracked), "status": "ok"}, separators=(",", ":")))CODE
HIGHtest/repair/process-tree-containment.test.ts339 print(json.dumps(payload, separators=(",", ":")))CODE
HIGHtest/repair/process-tree-containment.test.ts348 print(json.dumps(error_payload(error), separators=(",", ":")))CODE
HIGHtest/repair/process-tree-containment.test.ts386print(json.dumps(payload, separators=(",", ":")))CODE
HIGHsrc/action-ledger-files.ts26print(f"{status}:{reported_pid}:{started_sec}:{started_usec}")CODE
HIGHsrc/repair/process-tree-containment.ts132 return NoneCODE
HIGHsrc/repair/process-tree-containment.ts248 return FalseCODE
HIGHsrc/repair/process-tree-containment.ts263 return TrueCODE
HIGHsrc/repair/process-tree-containment.ts268 return FalseCODE
HIGHsrc/repair/process-tree-containment.ts706 return TrueCODE
HIGHsrc/repair/process-tree-containment.ts708 return FalseCODE
HIGHsrc/repair/process-tree-containment.ts724 elif primary_process is not None and primary_process.poll() is not None:CODE
HIGHsrc/live-proof/drivers.ts597 elif ! pane_owns_tty; thenCODE
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALtest/review-content-cache.test.ts23 assert.ok(before.context.issue.bodyCoverage.excerpts.every(({ end }) => end < body.length - 1));CODE
CRITICALtest/exact-review-publication-batches.test.ts3691 const publishedCause = completedStats.lanes.publication.flow.last_15_minutes.causes.rows.find(CODE
CRITICALtest/exact-review-publication-batches.test.ts4314 stats.lanes.publication.flow.last_15_minutes.causes.rows.map((row) => ({CODE
CRITICALtest/dashboard-worker-queue-runtime.test.ts8654 stats.lanes.publication.flow.last_15_minutes.causes.rows.map((row) => ({CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/scheduler-policy.test.ts981 selectedNumbers(due, 6, now).sort((a, b) => a - b),COMMENT
LOW…s/proof/record-front-matter-literal-write/run-proof.sh1#!/usr/bin/env bashCOMMENT
LOWdocs/proof/evidence-url-scheme-case/run-proof.sh1#!/usr/bin/env bashCOMMENT
LOWdocs/repair/README.md221# Stage unprocessed active gitcrawl clusters. The scheduled intake gives theirCOMMENT
LOWdocs/repair/README.md241# exactly-once worker execution intent. GitHub workflow_dispatch has no atomicCOMMENT
LOWsrc/clawsweeper-runtime.ts1081// downstream consumers of the checklist see command/path text unaltered.COMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/review-placeholder-recovery.test.ts20 title: "placeholder",CODE
LOWtest/github-webhook-read-model.test.ts57 ["comment-create", "created", "placeholder", "2026-08-14T10:01:00.000Z"],CODE
LOWtest/github-webhook-read-model.test.ts58 ["comment-delete", "deleted", "placeholder", "2026-08-14T10:03:00.000Z"],CODE
LOW.agents/skills/crabbox/SKILL.md574../crabbox/bin/crabbox desktop paste --id <cbx_id-or-slug> --text "user@example.com"CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocs/proof/automerge-repo-case-sensitivity/run-proof.sh59# robust inside a lease than reconstructing the whole repair lane.COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/repair/comment-webhook.ts97async function handleRequest(request: http.IncomingMessage, response: http.ServerResponse) {CODE