ClawSweeper scans all issues and PRs and suggest what we can close, and why. It runs every PR / Issue once a week.
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).
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/apply-pr-coverage-proof-recheck.test.ts | 16 | function boundDuplicateCloseComment(number: number, canonicalUrl: string): string { | CODE |
| LOW | test/proof-nudge-policy.test.ts | 101 | function closedProofLaneGhMockScript(numbers: readonly number[]): string { | CODE |
| LOW | test/proof-nudge-policy.test.ts | 137 | function proofMutationGhMockScript(options: { | CODE |
| LOW | test/apply-pr-duplicate-proof.test.ts | 21 | function boundDuplicateCloseComment(number: number, canonicalUrl: string): string { | CODE |
| LOW | test/helpers.ts | 243 | export function realBehaviorProofReportSection(overrides = {}) { | CODE |
| LOW | test/helpers.ts | 416 | export function stripProofAndRatingFrontMatter(report: string): string { | CODE |
| LOW | test/helpers.ts | 797 | export function markedReviewCommentForTest(number: number, body: string): string { | CODE |
| LOW | test/helpers.ts | 805 | export function reportWithSyncedReviewComment( | CODE |
| LOW | test/apply-unsponsored-feature-policy.test.ts | 68 | function staleInsufficientInfoCloseReport(overrides = {}) { | CODE |
| LOW | test/apply-product-direction-policy.test.ts | 15 | function unconfirmedProductDirectionCloseReport(overrides = {}) { | CODE |
| LOW | test/apply-product-direction-policy.test.ts | 67 | function unconfirmedProductDirectionApplyGhMock( | CODE |
| LOW | test/action-ledger-runtime.test.ts | 181 | function recordWorkflowAttemptMutationOutcome( | CODE |
| LOW | test/apply-stalled-pr-policies.test.ts | 14 | function stalledUnprovenCloseReport(overrides = {}) { | CODE |
| LOW | test/sweep-workflow.test.ts | 2359 | function extractWorkflowShellFunction(block: string, functionName: string): string { | CODE |
| LOW | test/sweep-workflow.test.ts | 2369 | function runExactReviewPressureStatus(block: string, response: Record<string, unknown>): string { | CODE |
| LOW | test/apply-pr-promotion.test.ts | 100 | function assertResolvedPromotionRespectsCloseReasonFilter(options: { | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 403 | source.indexOf("function applyItemIdempotencyIdentity("), | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 426 | source.indexOf("function startReviewActionLedgerItem("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 448 | source.indexOf("function startReviewMutationAttempt("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 449 | source.indexOf("function recordReviewLogPublication("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 457 | source.indexOf("function finishReviewActionLedgerItem("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 458 | source.indexOf("export function actionLedgerFailureDisposition("), | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 508 | const mutationAttemptStart = source.indexOf("function startApplyMutationAttempt("); | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 830 | function assertCommandFinalizerUsesCanonicalRoot(step: string): void { | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 839 | function assertCommandPublisherUsesCanonicalRoot(step: string): void { | CODE |
| LOW | test/proof-mutation-safety.test.ts | 120 | const freshnessStart = source.indexOf("function refreshProofMutationSession("); | CODE |
| LOW | test/dashboard-worker.test.ts | 8531 | function signedGithubWebhookRequest({ | CODE |
| LOW | test/dashboard-worker.test.ts | 8544 | function signedGithubWebhookBodyRequest({ | CODE |
| LOW | test/dashboard-worker.test.ts | 8566 | function buildExactReviewQueueRequest( | CODE |
| LOW | test/dashboard-worker.test.ts | 8593 | function leasedExactReviewQueueItem(itemNumber: number, runId: string, runAttempt = 1) { | CODE |
| LOW | test/dashboard-worker.test.ts | 8624 | function unclaimedExactReviewQueueItem(itemNumber: number) { | CODE |
| LOW | test/repair/comment-router-action-ledger.test.ts | 62 | source.indexOf("function executeCommandWithReceipt("), | CODE |
| LOW | test/repair/spam-scanner-core.test.ts | 117 | +export function mergeSqliteSessionTranscriptEvents() { | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 86 | const pushStart = source.indexOf("function pushRepairBranchAndUpdateStatus("); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 117 | const preparedStart = source.indexOf("function openReplacementPrFromPreparedRepairCheckout("); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 139 | const helperStart = source.indexOf("function skipMergedSourceReplacementWithoutDiff("); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 140 | const helperEnd = source.indexOf("function labelReplacementPullRequest(", helperStart); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 182 | const helperStart = source.indexOf("function spawnCodexSyncWithHeartbeat("); | CODE |
| LOW⚡ | test/repair/execute-fix-artifact-source.test.ts | 199 | const pushEnd = source.indexOf("function fetchRemoteRecoverableBranch(", pushStart); | CODE |
| LOW⚡ | test/repair/execute-fix-artifact-source.test.ts | 200 | const helperStart = source.indexOf("function assertIssueImplementationNotPaused("); | CODE |
| LOW⚡ | test/repair/execute-fix-artifact-source.test.ts | 201 | const helperEnd = source.indexOf("function fetchRemoteRecoverableBranch(", helperStart); | CODE |
| LOW⚡ | test/repair/execute-fix-artifact-source.test.ts | 243 | "function updateAutomergeProgressStatus(", | CODE |
| LOW⚡ | test/repair/execute-fix-artifact-source.test.ts | 247 | const recoveryStart = source.indexOf("function checkoutRecoverableReplacementBranch("); | CODE |
| LOW⚡ | test/repair/execute-fix-artifact-source.test.ts | 251 | const pushEnd = source.indexOf("function assertIssueImplementationNotPaused(", pushStart); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 273 | const recoveryStart = source.indexOf("function checkoutRecoverableReplacementBranch("); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 289 | const reconcileStart = source.indexOf("function reconcileLatestBaseBeforePush("); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 322 | const reconcileStart = source.indexOf("function reconcileLatestBaseBeforePush("); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 357 | const resolverStart = source.indexOf("function resolveAndCompleteMechanicalRebase("); | CODE |
| LOW | test/repair/execute-fix-artifact-source.test.ts | 403 | const start = source.indexOf("function enforceFinalRepairContract("); | CODE |
| LOW | test/repair/command-ops-action-ledger.test.ts | 227 | function assertCommandFinalizerUsesCanonicalRoot(step: string): void { | CODE |
| LOW | test/repair/command-ops-action-ledger.test.ts | 236 | function assertCommandPublisherUsesCanonicalRoot(step: string): void { | CODE |
| LOW | test/repair/execute-fix-validation.test.ts | 11 | function broadBranchRepairArtifact() { | CODE |
| LOW | test/repair/post-flight.test.ts | 440 | function writeIssueImplementationJob(jobPath: string) { | CODE |
| LOW | test/repair/post-flight.test.ts | 509 | function writeIssueImplementationReports(runDir: string, resultPath: string) { | CODE |
| LOW | test/repair/command-runner.test.ts | 423 | function linuxValidationContainmentAvailable() { | CODE |
| LOW | test/repair/target-validation.test.ts | 5815 | function linuxValidationContainmentAvailable() { | CODE |
| LOW | test/repair/target-validation.test.ts | 5894 | function withCommandOverridesUnset(commands, callback) { | CODE |
| LOW | test/repair/dispatch-action-receipts.test.ts | 680 | function failAcceptedOutcomeWrites(t: TestContext, failures: number): void { | CODE |
| LOW | test/repair/codex-result-schema.ts | 7 | export function assertCodexActionMatchesSchema(value: unknown): void { | CODE |
| LOW | test/repair/git-publish.test.ts | 2326 | function installSecondPushRaceHook(work, other) { | CODE |
| 981 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/action-ledger-files.ts | 26 | print(f"{status}:{reported_pid}:{started_sec}:{started_usec}") | CODE |
| HIGH | src/repair/process-tree-containment.ts | 147 | return False | CODE |
| HIGH | src/repair/process-tree-containment.ts | 162 | return True | CODE |
| HIGH | src/repair/process-tree-containment.ts | 167 | return False | CODE |
| HIGH | src/repair/process-tree-containment.ts | 552 | return True | CODE |
| HIGH | src/repair/process-tree-containment.ts | 554 | return False | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/repair/README.md | 261 | pnpm run repair:import-gitcrawl-low-signal -- --limit 20 --batch-size 5 --mode autonomous --sort stale | COMMENT |
| LOW | src/repair/target-validation.ts | 421 | cwd: string; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/crabbox/SKILL.md | 465 | ../crabbox/bin/crabbox desktop paste --provider hetzner --id <cbx_id-or-slug> --text "user@example.com" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/repair/comment-webhook.ts | 96 | async function handleRequest(request: http.IncomingMessage, response: http.ServerResponse) { | CODE |