Headless CLI client for stateful Agent Client Protocol (ACP) sessions
This report presents the forensic synthetic code analysis of openclaw/acpx, a TypeScript project with 3,187 GitHub stars. SynthScan v2.0 examined 114,479 lines of code across 375 source files, recording 590 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 4.9 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 590 distinct pattern matches across 6 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/queue-owner-lifecycle.test.ts | 89 | async function waitForTerminalQueueMessage( | CODE |
| LOW | test/runtime-manager.test.ts | 3719 | async function assertFinalPersistenceFailure(failAtSave: number): Promise<void> { | CODE |
| LOW | test/runtime-manager.test.ts | 4202 | function createModelsClientFactory(options: { | CODE |
| LOW | test/queue-test-helpers.ts | 120 | export function createSingleRequestServer( | CODE |
| LOW | test/jsonrpc-test-helpers.ts | 23 | export function extractAgentMessageChunkText(message: Record<string, unknown>): string | undefined { | CODE |
| LOW | test/mock-agent.ts | 296 | function parsePositiveIntegerOption(args: string[], index: number, flag: string): number { | CODE |
| LOW | test/mock-agent.ts | 671 | function buildMockSessionInventory(cwd: string): SessionInfo[] { | CODE |
| LOW | test/turn-controller.test.ts | 230 | function createQueueOwnerTurnController( | CODE |
| LOW | test/integration.test.ts | 5277 | async function assertNoNewSleepProcesses( | CODE |
| LOW | test/replay-viewer-live-sync.test.ts | 636 | async function writeLiveSessionRunBundle( | CODE |
| LOW | test/cli.test.ts | 33 | function readPackageVersionForTest(): string { | CODE |
| LOW | references/openclaw-acp-client.ts | 68 | function resolveToolKindForPermission( | CODE |
| LOW | references/openclaw-acp-client.ts | 116 | function resolveToolNameForPermission(params: RequestPermissionRequest): string | undefined { | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 599 | def test_secret_detector_handles_quoted_json_keys(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 604 | def test_secret_detector_handles_backtick_credential_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 609 | def test_secret_detector_allows_op_backtick_credential_references(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 618 | def test_secret_detector_allows_safe_backtick_interpolation(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 628 | def test_secret_detector_rejects_backtick_interpolation_with_literal_secret( | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 643 | def test_secret_detector_rejects_op_backtick_shell_fallbacks(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 652 | def test_secret_detector_rejects_backtick_fallback_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 662 | def test_secret_detector_rejects_member_reference_fallback_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 672 | def test_secret_detector_rejects_reference_shaped_fallback_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 682 | def test_secret_detector_rejects_reference_shaped_backtick_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 687 | def test_secret_detector_rejects_python_reference_fallback_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 752 | def test_secret_detector_rejects_call_fallback_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 766 | def test_secret_detector_rejects_grouped_fallbacks_after_line_comments( | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1095 | def test_call_argument_split_preserves_secret_shaped_regex(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1105 | def test_call_argument_split_treats_contextual_of_as_identifier(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1113 | def test_control_condition_scan_is_cached_per_source(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1283 | def test_secret_detector_rejects_bare_secret_with_reference_prefix( | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1290 | def test_secret_detector_rejects_multiline_call_fallback_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1300 | def test_secret_detector_rejects_operator_only_multiline_fallbacks(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1310 | def test_secret_detector_rejects_nested_multiline_fallbacks(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1320 | def test_secret_detector_rejects_comment_separated_call_fallbacks(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1331 | def test_secret_detector_rejects_optional_call_fallback_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1340 | def test_secret_detector_ignores_comment_delimiters_in_calls(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1350 | def test_secret_detector_allows_bare_variable_secret_references(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1409 | def test_secret_detector_handles_private_key_header_variants(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1417 | def test_secret_detector_allows_dotted_config_keys(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1424 | def test_secret_detector_handles_punctuation_and_multiline_diff_values(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1494 | def test_secret_detector_handles_bare_call_keyword_values(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1499 | def test_secret_detector_handles_unquoted_underscore_tokens(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1504 | def test_secret_detector_allows_dotted_calls(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1550 | def test_secret_detector_does_not_exempt_expression_text_in_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1560 | def test_secret_detector_handles_lowercase_passphrases(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1565 | def test_secret_detector_handles_low_diversity_passwords(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1574 | def test_secret_detector_handles_credentialed_uris(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1636 | def test_secret_detector_limits_uri_userinfo_to_authority(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1645 | def test_secret_detector_handles_username_only_uri_credentials(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1828 | def test_uri_defaults_and_plain_strings_are_not_interpolation(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1836 | def test_secret_detector_ignores_arrow_parameter_fallbacks(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1843 | def test_uri_interpolation_rejects_literal_expressions(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1851 | def test_secret_detector_handles_basic_authorization_headers(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1859 | def test_secret_detector_allows_basic_authentication_prose(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1867 | def test_template_uri_references_skip_format_scans(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1901 | def test_secret_detector_handles_aws_secret_access_keys(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1910 | def test_secret_detector_allows_common_fixture_literals(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1919 | def test_secret_detector_does_not_trust_in_band_suppressions(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1929 | def test_secret_detector_does_not_treat_quoted_code_text_as_a_reference(self) -> None: | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 2179 | def test_read_text_truncates_without_scanning_tail(self) -> None: | CODE |
| 514 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 646 | + "word=`op read op://vault/item/password || echo real-hardcoded-" | CODE |
| HIGH⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 759 | + 'ken = process.env.TOKEN || choose(/\\)/, "' | CODE |
| HIGH⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1313 | + "word = user.credentials.password || getDefault(\n" | CODE |
| HIGH | …s/skills/autoreview/tests/test_autoreview_hardening.py | 717 | "pass" + "word = user.credentials.password || null", | CODE |
| HIGH | …s/skills/autoreview/tests/test_autoreview_hardening.py | 993 | + "ken = provider.issue_token(value<int> / total || process.env.TOKEN)", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | skills/acpx/SKILL.md | 157 | ### Compare (multi-agent one-shot) | COMMENT |
| MEDIUM | skills/acpx/SKILL.md | 442 | ## Flows (multi-agent workflows) | 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 |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1638 | 'url="https://example.com:443?email=user@example.org"', | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1639 | 'url="https://example.com:443#owner=user@example.org"', | CODE |
| LOW⚡ | …s/skills/autoreview/tests/test_autoreview_hardening.py | 1640 | 'url="https://example.com:443" + "?email=user@example.org"', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/skills/autoreview/tests/test_autoreview_hardening.py | 2 | CODE | |
| LOW | …gents/skills/autoreview/scripts/test-review-harness.py | 2 | CODE | |
| LOW | .agents/skills/autoreview/scripts/autoreview_test.py | 2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/skills/autoreview/tests/test_autoreview_hardening.py | 3208 | CODE | |
| LOW | …s/skills/autoreview/tests/test_autoreview_hardening.py | 3773 | CODE |