Headless CLI client for stateful Agent Client Protocol (ACP) sessions
This report summarizes scanner evidence for openclaw/acpx, a TypeScript project with 3,408 GitHub stars. SynthScan examined 184,393 lines of code across 585 source files, recording 417 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 2.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 416 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 410 finding(s).
Which changes need focused human review? 417 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 417 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/flows.test.ts | 2967 | async function writeFlowStartupModelAgent(home: string): Promise<string> { | CODE |
| LOW | test/terminal.test.ts | 404 | function createManagerWithOutputCeiling(raw: string | undefined): TerminalManager { | CODE |
| LOW | test/runtime-offline-controls.test.ts | 30 | async function controlAfterCancelledFirstPrompt(control: Control): Promise<void> { | CODE |
| LOW | test/runtime-manager.test.ts | 5224 | function createModelsClientFactory(options: { | CODE |
| LOW | test/queue-test-helpers.ts | 121 | export function createSingleRequestServer( | CODE |
| LOW | test/replay-viewer-graph-geometry.test.ts | 290 | function assertRoutesAvoidInteriors( | CODE |
| LOW | test/replay-viewer-close.test.ts | 37 | function controlledLifecycleConfig(): string { | CODE |
| LOW | test/jsonrpc-test-helpers.ts | 23 | export function extractAgentMessageChunkText(message: Record<string, unknown>): string | undefined { | CODE |
| LOW | test/replay-viewer-loader.test.ts | 972 | async function withLiveReadRecoveryLoader( | CODE |
| LOW | test/replay-viewer-lossless.test.ts | 356 | async function repeatedCheckpointProgression(root: string, runId: string) { | CODE |
| LOW | test/replay-viewer-lossless.test.ts | 401 | async function incompleteCaptureControls() { | CODE |
| LOW | test/mock-agent.ts | 57 | function readQueueLifecycleControl(filePath: string): QueueLifecycleControl { | CODE |
| LOW | test/mock-agent.ts | 63 | function assertQueueLifecycleControl(value: unknown): asserts value is QueueLifecycleControl { | CODE |
| LOW | test/mock-agent.ts | 289 | function parsePositiveIntegerOption(args: string[], index: number, flag: string): number { | CODE |
| LOW | test/mock-agent.ts | 709 | function buildMockSessionInventory(cwd: string): SessionInfo[] { | CODE |
| LOW | test/output.test.ts | 988 | function renderDirectedSuppression(frames: DirectedSuppressionFrame[]): unknown[] { | CODE |
| LOW | test/auth-env.test.ts | 6 | function buildSyntheticAuthEnvironment( | CODE |
| LOW | test/conformance-process-cleanup.test.ts | 36 | async function writeRetirementFailurePreload(root: string, nonce: string): Promise<string> { | CODE |
| LOW | test/client.test.ts | 3100 | function delegatedOperationRequest( | CODE |
| LOW | test/client.test.ts | 3132 | function pendingPermissionQuestion() { | CODE |
| LOW | test/terminal-taskkill.test.ts | 69 | async function installWindowsHangingTaskkill(bin: string): Promise<void> { | CODE |
| LOW | test/integration.test.ts | 5814 | async function configuredHarnessInvocation( | CODE |
| LOW | test/integration.test.ts | 6627 | async function assertNoNewSleepProcesses( | CODE |
| LOW | test/replay-viewer-live-sync.test.ts | 1025 | async function writeLiveSessionRunBundle( | CODE |
| LOW | test/replay-viewer-live-sync.test.ts | 1236 | async function selectedReadRecoveryFixture() { | CODE |
| LOW | test/flows-failed-capture.test.ts | 709 | function assertCapturedPromptReply( | CODE |
| LOW | test/flows-failed-capture.test.ts | 735 | async function assertPublishedDiagnostic(bundle: Bundle, prompt: string, marker: string) { | CODE |
| LOW | test/replay-viewer-view-model.test.ts | 1418 | function assertMergeEdgeGeometryAgreement(graph: MergeEdgeGraph, layout: MergeEdgeLayout | null) { | CODE |
| LOW | test/cli.test.ts | 40 | function readPackageVersionForTest(): string { | CODE |
| LOW | test/session-export-import.test.ts | 720 | async function importArchiveSavedUnderCommand( | 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 | examples/flows/pr-triage/review-text.js | 1 | export function selectLocalCodexReviewText(stdout, stderr) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 807 | function promptReproduceBugAndTestFix(pr, outputs) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 836 | function promptTestFeatureDirectly(pr, outputs) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 866 | function promptJudgeInitialConflicts(pr, outputs) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 891 | function promptResolveInitialConflicts(pr, outputs) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 943 | function promptDoSuperficialRefactor(pr) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 1033 | function promptJudgeFinalConflicts(pr, outputs) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 1057 | function promptResolveFinalConflicts(pr, outputs) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 1107 | function promptCommentAndEscalateReadyForLanding(pr, outputs, steps) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 1132 | function promptCommentAndEscalateNeedsJudgment(pr, outputs, steps) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 1266 | function normalizeGitHubReviewComment(comment) { | CODE |
| LOW | examples/flows/pr-triage/pr-triage.flow.ts | 1279 | function normalizeGitHubIssueComment(comment) { | CODE |
| LOW | examples/flows/replay-viewer/server/live-source.ts | 12 | export function createFilesystemRunSource(runsDir: string = defaultRunsDir()): ViewerRunSource { | CODE |
| LOW | …flows/replay-viewer/server/filesystem-bundle-reader.ts | 5 | export function createFilesystemBundleReader( | CODE |
| LOW | examples/flows/replay-viewer/server/live-sync.ts | 77 | export function createReplayLiveSyncServer(options: ReplayLiveSyncOptions): ReplayLiveSyncServer { | CODE |
| LOW | examples/flows/replay-viewer/server/live-sync.ts | 460 | function reportSubscribedRunReadError( | CODE |
| LOW | examples/flows/replay-viewer/server/live-sync.ts | 488 | function isRecoverableRunReadError(error: unknown): boolean { | CODE |
| LOW | examples/flows/replay-viewer/server/viewer-server.ts | 254 | export async function requestViewerServerShutdown(baseUrl: string): Promise<boolean> { | CODE |
| LOW | …ows/replay-viewer/src/hooks/use-playback-controller.ts | 223 | export function resolveSelectedStepIndexAfterBundleUpdate( | CODE |
| LOW | examples/flows/replay-viewer/src/lib/bundle-reader.ts | 13 | export function createRecentRunBundleReader(run: RunBundleSummary): BundleReader { | CODE |
| LOW | …amples/flows/replay-viewer/src/lib/view-model-graph.ts | 472 | function isSettledTerminalSelection( | CODE |
| LOW | …amples/flows/replay-viewer/src/lib/view-model-graph.ts | 506 | function createNodePositionResolver( | CODE |
| LOW | …amples/flows/replay-viewer/src/lib/view-model-graph.ts | 540 | function deriveFallbackNodePosition( | CODE |
| LOW | …amples/flows/replay-viewer/src/lib/view-model-graph.ts | 955 | function sortRankByNeighborBarycenter( | CODE |
| LOW | …amples/flows/replay-viewer/src/lib/view-model-graph.ts | 975 | function computeNeighborBarycenter( | CODE |
| LOW | examples/flows/replay-viewer/src/lib/run-projection.ts | 103 | function hasUnrecordedCurrentAttempt(bundle: LoadedRunBundle): boolean { | CODE |
| LOW | examples/flows/replay-viewer/src/lib/run-url.ts | 22 | export function readRequestedRunIdFromWindow(): string | null { | CODE |
| LOW | examples/flows/replay-viewer/src/lib/run-url.ts | 38 | function readRequestedRunIdFromPath(pathname: string): string | null { | CODE |
| 350 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | agents/Claude.md | 54 | and [ACPX filesystem guardrails](../docs/permissions.md#working-directory-and-filesystem-guardrails). | CODE |
| MEDIUM | docs/custom-agents.md | 84 | an OS sandbox. See [Permissions](permissions.md#working-directory-and-filesystem-guardrails) for the | CODE |
| MEDIUM | docs/permissions.md | 167 | ## Working directory and filesystem guardrails | COMMENT |
| MEDIUM | skills/acpx/SKILL.md | 192 | ### Compare (multi-agent one-shot) | COMMENT |
| MEDIUM | skills/acpx/SKILL.md | 533 | ## Flows (multi-agent workflows) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/queue-owner-lifecycle.test.ts | 1121 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/crabbox/SKILL.md | 256 | history. No safe injection path? Report live auth blocked. No fake-key upgrade to | CODE |