The agent-native LLM router for OpenClaw. 41+ models, <1ms routing, USDC payments on Base & Solana via x402.
This report presents the forensic synthetic code analysis of BlockRunAI/ClawRouter, a TypeScript project with 6,656 GitHub stars. SynthScan v2.0 examined 73,038 lines of code across 207 source files, recording 259 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 7.3 places this repository in the Low AI signal 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 259 distinct pattern matches across 11 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 |
|---|---|---|---|---|
| MEDIUM | test/resilience-stability.ts | 104 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-stability.ts | 106 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-stability.ts | 199 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-stability.ts | 201 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-stability.ts | 252 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-stability.ts | 254 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 103 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 105 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 140 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 142 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 195 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 197 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 250 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 252 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 281 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 283 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 315 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-errors.ts | 317 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 45 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 48 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 88 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 91 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 111 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 114 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 143 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 146 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 165 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/smoke-wallet-scenarios.ts | 168 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 93 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 95 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 145 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 147 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 174 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 176 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 211 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 213 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 233 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/resilience-lifecycle.ts | 235 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 66 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 68 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 126 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 128 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 185 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 187 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 272 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 274 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 371 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 373 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 466 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 468 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 518 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 520 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 551 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/docker/edge-case-tests.sh | 553 | # ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/integration/multiturn-reasoning.test.ts | 29 | // ─── Mock upstream server ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration/multiturn-reasoning.test.ts | 107 | // ─── Tests ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/sync-install-to-blockrun.sh | 4 | # ============================================================================ | COMMENT |
| MEDIUM | scripts/sync-install-to-blockrun.sh | 6 | # ============================================================================ | COMMENT |
| MEDIUM | scripts/sync-install-to-blockrun.sh | 21 | # ============================================================================ | COMMENT |
| MEDIUM | scripts/update.sh | 7 | # ───────────────────────────────────────────────────────────── | COMMENT |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/e2e.ts | 79 | // System prompt with reasoning/agentic keywords should NOT affect simple queries | COMMENT |
| MEDIUM | test/e2e.ts | 80 | // Bug: if client's system prompt had "step by step" / "edit files" / "fix bugs", ALL queries became REASONING/agentic | COMMENT |
| MEDIUM | test/e2e.ts | 116 | // Coding assistant system prompt should NOT force agentic mode on simple queries | COMMENT |
| MEDIUM | test/e2e.ts | 118 | // triggering agenticScore >= 0.6 on EVERY request, routing all to Sonnet via agentic tiers | COMMENT |
| MEDIUM | test/e2e.ts | 138 | // But if USER explicitly requests agentic work, it SHOULD trigger agentic mode | COMMENT |
| MEDIUM | test/e2e.ts | 139 | // Need 3+ agentic keyword matches for score 0.6: "fix", "deploy", "make sure" | COMMENT |
| MEDIUM | test/e2e.ts | 480 | // Test 6: Agentic score should be 0 for non-agentic queries | COMMENT |
| MEDIUM | docs/features.md | 8 | - [Agentic Auto-Detection](#agentic-auto-detection) | CODE |
| MEDIUM | docs/features.md | 135 | agenticMode: true # Always use agentic tiers | CODE |
| MEDIUM | docs/features.md | 145 | // Request with tools → auto-agentic mode | COMMENT |
| MEDIUM | src/proxy.ts | 793 | // Happens when models like gemini-3.1-flash-lite receive complex agentic requests | COMMENT |
| MEDIUM | src/proxy.ts | 3610 | // model believe those capabilities do not exist, which breaks agentic runs. | COMMENT |
| MEDIUM | src/proxy.ts | 3611 | // Reliability is handled later via agentic routing and tool-support filters. | COMMENT |
| MEDIUM | src/proxy.ts | 4303 | // Tool detection — when tools are present, force agentic tiers for reliable tool use | COMMENT |
| MEDIUM | src/proxy.ts | 4329 | // Keep agentic routing when tools are present, even for SIMPLE queries. | COMMENT |
| MEDIUM | src/proxy.ts | 4331 | // demoting to non-agentic tiers causes fallback to models that refuse | COMMENT |
| MEDIUM | src/proxy.ts | 4802 | // Case A: tool/complex/agentic routing profile — check global model table | COMMENT |
| MEDIUM | src/proxy.ts | 4803 | // Intentionally exclude free models: they cannot handle complex/agentic tasks. | COMMENT |
| MEDIUM | src/proxy.ts | 5073 | // Complex/agentic tasks with no affordable model: already blocked above (before streaming headers). | COMMENT |
| MEDIUM | src/proxy.ts | 5096 | // (A) complex/agentic routing profile tasks (tools / COMPLEX / REASONING tier) | COMMENT |
| MEDIUM | src/models.ts | 140 | "grok-code": "xai/grok-build-0.1", // xAI's agentic coding model (Build 0.1, 2026-06-04) | CODE |
| MEDIUM | src/models.ts | 709 | // Anthropic - all Claude models excel at agentic workflows | COMMENT |
| MEDIUM | src/models.ts | 750 | // Newest Sonnet — near-Opus coding/agentic quality at Sonnet cost. Same | COMMENT |
| MEDIUM | src/polymarket/tool.ts | 11 | // engine's guardrails (confirm:true hard gate, POLYMARKET_MAX_BET_USD per-order | COMMENT |
| MEDIUM | src/router/types.ts | 18 | agenticScore?: number; // 0-1 agentic task score for auto-switching to agentic tiers | CODE |
| MEDIUM | src/router/types.ts | 31 | agenticScore?: number; // 0-1 agentic task score (present when tier routing used) | CODE |
| MEDIUM | src/router/rules.ts | 246 | // Score agentic task indicators — user prompt only | COMMENT |
| MEDIUM | src/router/rules.ts | 249 | // force every request into agentic mode. | COMMENT |
| MEDIUM | src/router/strategy.ts | 96 | // dropping into auto routing (which could select agentic tiers). | COMMENT |
| MEDIUM⚡ | src/router/strategy.ts | 108 | // Auto profile (or undefined): intelligent routing with agentic detection. | COMMENT |
| MEDIUM⚡ | src/router/strategy.ts | 111 | // - `true` → force agentic tiers (ignore heuristics) | COMMENT |
| MEDIUM⚡ | src/router/strategy.ts | 112 | // - `false` → disable agentic tiers entirely (even if tools are present) | COMMENT |
| MEDIUM⚡ | src/router/strategy.ts | 120 | // Explicitly disabled — never use agentic tiers | COMMENT |
| MEDIUM⚡ | src/router/strategy.ts | 123 | // Explicitly enabled — use agentic tiers if available | COMMENT |
| MEDIUM | src/router/strategy.test.ts | 147 | // Regression test for #148: agenticMode: false should disable agentic tier | COMMENT |
| MEDIUM | src/router/strategy.test.ts | 147 | // Regression test for #148: agenticMode: false should disable agentic tier | COMMENT |
| MEDIUM | src/router/config.ts | 904 | // English - File operations (clearly agentic) | COMMENT |
| MEDIUM | src/router/config.ts | 1025 | agenticTask: 0.04, // Reduced - agentic signals influence tier selection, not dominate it | CODE |
| MEDIUM⚡ | src/router/config.ts | 1229 | primary: "anthropic/claude-sonnet-4.6", // 2,110ms — best agentic quality | CODE |
| MEDIUM⚡ | src/router/config.ts | 1234 | "anthropic/claude-sonnet-5", // in-family hot swap — same cost, near-Opus agentic quality | CODE |
| MEDIUM⚡ | src/router/config.ts | 1242 | "openai/gpt-5.5", // Prior flagship — native agent + computer use (exactly the agentic-tier use case) | CODE |
| MEDIUM | src/router/config.ts | 1279 | // Set to `true` to force agentic tiers; `false` to disable them entirely. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/subscription-failover.md | 87 | #### Step 1: Set Primary Model (Your Subscription) | COMMENT |
| LOW | docs/subscription-failover.md | 100 | #### Step 2: Add ClawRouter as Fallback | COMMENT |
| LOW | docs/subscription-failover.md | 110 | #### Step 3: Verify Configuration | COMMENT |
| LOW | docs/subscription-failover.md | 124 | #### Step 4: Test Failover (Optional) | COMMENT |
| LOW | docs/smart-llm-router-14-dimension-classifier.md | 22 | ## Step 1: Benchmarking the Fleet | COMMENT |
| LOW | docs/smart-llm-router-14-dimension-classifier.md | 73 | ## Step 2: Adding the Quality Dimension | COMMENT |
| LOW | docs/smart-llm-router-14-dimension-classifier.md | 125 | ## Step 3: The Failed Experiment (Latency-First Routing) | COMMENT |
| LOW | docs/smart-llm-router-14-dimension-classifier.md | 145 | ## Step 4: The 14-Dimension Scoring System | COMMENT |
| LOW | docs/smart-llm-router-14-dimension-classifier.md | 210 | ## Step 5: Tier-to-Model Mapping | COMMENT |
| LOW | docs/smart-llm-router-14-dimension-classifier.md | 267 | ## Step 6: Context-Aware Filtering | COMMENT |
| LOW | docs/anthropic-cost-savings.md | 227 | ### Step 1: Install | COMMENT |
| LOW | docs/anthropic-cost-savings.md | 235 | ### Step 2: Update Your Code | COMMENT |
| LOW | docs/anthropic-cost-savings.md | 276 | ### Step 3: Fund (optional) | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 784 | # Step 1: Check git status (must be clean) | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 793 | # Step 2: Check we're on main branch | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 803 | # Step 3: Pull latest changes | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 809 | # Step 4: Install dependencies | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 815 | # Step 5: Run typecheck | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 821 | # Step 6: Run build | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 827 | # Step 7: Run tests | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 894 | # Step 10: Rebuild with new version | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 900 | # Step 11: Commit version bump | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 907 | # Step 12: Create git tag | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 913 | # Step 13: Confirm publish | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 929 | # Step 14: Publish to npm | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 935 | # Step 15: Push to GitHub | COMMENT |
| LOW⚡ | docs/plans/2026-02-13-e2e-docker-deployment.md | 942 | # Step 16: Create GitHub release | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 22 | ### Step 1: Add test for 413 Payload Too Large (150KB limit) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 55 | ### Step 2: Add test for 400 Bad Request (malformed JSON) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 76 | ### Step 3: Add test for 400 Bad Request (missing required fields) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 102 | ### Step 4: Add test for large message array (200 messages limit) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 135 | ### Step 5: Add test for invalid model name | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 163 | ### Step 6: Add test for concurrent requests (stress test) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 204 | ### Step 7: Add test for negative max_tokens (should be rejected) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 229 | ### Step 8: Add test for empty messages array | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 252 | ### Step 9: Add test for streaming with large response (token counting) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 301 | ### Step 10: Add test for balance check (verify wallet has funds) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 318 | ### Step 11: Run expanded E2E tests | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 354 | ### Step 12: Commit E2E test expansion | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 386 | ### Step 1: Create Dockerfile for installation testing | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 414 | ### Step 2: Create bash test script with 10 test cases | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 667 | ### Step 3: Make test script executable | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 673 | ### Step 4: Update run-docker-test.sh to include installation tests | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 697 | ### Step 5: Run Docker installation tests | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 734 | ### Step 6: Commit Docker installation tests | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 766 | ### Step 1: Create deployment script | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 841 | # Step 8: Get version bump type | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 882 | # Step 9: Update version in src/version.ts | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 967 | ### Step 2: Make deployment script executable | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 973 | ### Step 3: Add deploy command to package.json | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 999 | ### Step 4: Test deployment script (dry run) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 1017 | ### Step 5: Document deployment process | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 1156 | ### Step 6: Run deployment script (test mode) | COMMENT |
| LOW | docs/plans/2026-02-13-e2e-docker-deployment.md | 1232 | ### Step 7: Commit deployment automation | COMMENT |
| LOW | skills/release/SKILL.md | 18 | ## Step 1: Confirm the New Version | COMMENT |
| LOW | skills/release/SKILL.md | 30 | ## Step 2: Update `package.json` Version | COMMENT |
| LOW | skills/release/SKILL.md | 36 | ## Step 3: Write CHANGELOG Entry | COMMENT |
| LOW | skills/release/SKILL.md | 56 | ## Step 4: Confirm No Manual Server Sync Required | COMMENT |
| LOW | skills/release/SKILL.md | 96 | ## Step 5: Build | COMMENT |
| LOW | skills/release/SKILL.md | 106 | ## Step 6: Run Tests | COMMENT |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test-e2e.ts | 325 | function extractFirstMessageContent(payload: ResponsePayload): string | undefined { | CODE |
| LOW | src/mcp-config.ts | 41 | function normalizeServerDefinition(server: McpServerDefinition): Record<string, unknown> { | CODE |
| LOW⚡ | src/mcp-config.ts | 61 | function looksLikeBlockrunPackageArgs(args: string[]): boolean { | CODE |
| LOW⚡ | src/mcp-config.ts | 65 | function looksLikeLocalBlockrunDistArgs(args: string[]): boolean { | CODE |
| LOW⚡ | src/mcp-config.ts | 69 | export function createBlockrunMcpServerDefinition(opts?: { | CODE |
| LOW | src/mcp-config.ts | 92 | function isManagedBlockrunMcpServerDefinition(value: unknown): value is McpServerDefinition { | CODE |
| LOW | src/mcp-config.ts | 101 | export function ensureBlockrunMcpServerConfig( | CODE |
| LOW | src/mcp-config.ts | 139 | export function removeManagedBlockrunMcpServerConfig(config: OpenClawConfig): boolean { | CODE |
| LOW | src/payment-preauth.ts | 47 | export function createPayFetchWithPreAuth( | CODE |
| LOW | src/web-search-provider.ts | 114 | function normalizeBlockRunExaPayload(query: string, payload: unknown): Record<string, unknown> { | CODE |
| LOW | src/web-search-provider.ts | 149 | function ensureBlockrunExaSelection(config: OpenClawConfig): OpenClawConfig { | CODE |
| LOW | src/share-formatters.ts | 539 | export function transformForTelegramSplit(md: string): string[] { | CODE |
| LOW | src/builder-code.ts | 25 | export function withBuilderCodeServiceCode( | CODE |
| LOW | src/proxy.ts | 618 | export function debugHeadersEnabledFromEnv( | CODE |
| LOW | src/proxy.ts | 756 | export function detectDegradedSuccessResponse(body: string): string | undefined { | CODE |
| LOW | src/proxy.ts | 1002 | function normalizeMessagesForGoogle(messages: ChatMessage[]): ChatMessage[] { | CODE |
| LOW | src/proxy.ts | 1067 | export function normalizeMessagesForThinking( | CODE |
| LOW | src/proxy.ts | 1634 | export function resolvePhoneTelemetryCost(args: { | CODE |
| LOW | src/index.ts | 213 | function isBlockrunWebSearchDisabled(config?: unknown): boolean { | CODE |
| LOW | src/index.ts | 639 | function clearDeferredProxyStartTimer( | CODE |
| LOW | src/index.ts | 680 | function startPendingConfiguredProxyIfQueued( | CODE |
| LOW | src/index.ts | 696 | function resumePendingConfiguredProxyAfterStaleFailure( | CODE |
| LOW | src/index.ts | 705 | function supersedeEmptyConfigStartup(api: OpenClawPluginApi): void { | CODE |
| LOW | src/index.ts | 1085 | function buildImageGenerationProvider(): ImageGenerationProviderPlugin { | CODE |
| LOW | src/index.ts | 1178 | function buildMusicGenerationProvider(): MusicGenerationProviderPlugin { | CODE |
| LOW | src/index.ts | 1258 | function buildVideoGenerationProvider(): VideoGenerationProviderPlugin { | CODE |
| LOW | src/index.ts | 1344 | function restartProxyForChainSwitch(api: OpenClawPluginApi): void { | CODE |
| LOW | src/auth.ts | 222 | export async function resolveOrGenerateWalletKey(): Promise<WalletResolution> { | CODE |
| LOW | src/auth.ts | 284 | export async function recoverWalletFromMnemonic(): Promise<void> { | CODE |
| LOW | src/polymarket/creds.ts | 120 | export function loadDepositWalletForSigner(signer: string): string | undefined { | CODE |
| LOW | src/polymarket/relayer.ts | 34 | export function relayerCredsMissingMessage(): string { | CODE |
| LOW | src/polymarket/relayer.ts | 46 | async function getOrCreateBuilderCreds(): Promise<{ | CODE |
| LOW | src/polymarket/relayer.ts | 117 | export async function deriveDepositWalletNoCreds(): Promise<Hex> { | CODE |
| LOW | src/polymarket/client.ts | 72 | export function installUnderscoreHeaderBridge(instance: { | CODE |
| LOW | src/polymarket/wallet-adapter.ts | 38 | export function getOrCreateWalletKey(): Hex { | CODE |
| LOW | src/compression/layers/whitespace.ts | 52 | export function normalizeMessagesWhitespace(messages: NormalizedMessage[]): WhitespaceResult { | CODE |
| LOW | src/compression/layers/dynamic-codebook.ts | 166 | export function generateDynamicCodebookHeader(codebook: Record<string, string>): string { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/worker-network.md | 1321 | cd /Users/vickyfu/Documents/blockrun-web/ClawRouter | COMMENT |
| LOW | docs/configuration.md | 361 | COMMENT | |
| LOW | scripts/sync-install-to-blockrun.sh | 1 | #!/bin/bash | COMMENT |
| LOW | src/proxy.ts | 121 | ]); | COMMENT |
| LOW | src/proxy.ts | 5681 | if (rsp.choices && Array.isArray(rsp.choices)) { | COMMENT |
| LOW | src/index.ts | 501 | logger.info( | COMMENT |
| LOW | src/index.ts | 2121 | // register() twice during gateway startup. The first call happens before | COMMENT |
| LOW | src/polymarket/tool.ts | 1 | // src/polymarket/tool.ts | COMMENT |
| LOW | src/polymarket/l1-auth-1271.ts | 1 | // src/utils/polymarket/l1-auth-1271.ts | COMMENT |
| LOW | src/polymarket/constants.ts | 1 | // src/utils/polymarket/constants.ts | COMMENT |
| LOW | src/polymarket/creds.ts | 1 | // src/utils/polymarket/creds.ts | COMMENT |
| LOW | src/polymarket/relayer.ts | 1 | // src/utils/polymarket/relayer.ts | COMMENT |
| LOW | src/polymarket/client.ts | 1 | // src/utils/polymarket/client.ts | COMMENT |
| LOW | src/polymarket/wallet-adapter.ts | 1 | // src/polymarket/wallet-adapter.ts | COMMENT |
| LOW | src/polymarket/withdraw.ts | 1 | // src/utils/polymarket/withdraw.ts | COMMENT |
| LOW | src/polymarket/redeem.ts | 1 | // src/utils/polymarket/redeem.ts | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/cli.ts | 546 | // Step 1: detect OpenClaw on PATH | COMMENT |
| LOW | src/cli.ts | 562 | // Step 2: register as an OpenClaw plugin (writes plugins.entries.clawrouter). | COMMENT |
| LOW | src/cli.ts | 586 | // Step 3: sync the models allowlist + provider config + auth profile directly. | COMMENT |
| LOW | src/proxy.ts | 2445 | // Step 1: submit job. Fast models return 200 + image data inline within | COMMENT |
| LOW | src/proxy.ts | 2475 | // Step 2: slow path — BlockRun returned 202 + poll_url (slow model > 30s | COMMENT |
| LOW | src/proxy.ts | 2557 | // Step 3: save images to ~/.openclaw/blockrun/images/ and replace with localhost URLs | COMMENT |
| LOW | src/proxy.ts | 2876 | // Step 1: submit job. Server returns 202 with poll_url. | COMMENT |
| LOW | src/proxy.ts | 2906 | // Step 2: if no poll_url, upstream responded with the final result (legacy server) — | COMMENT |
| LOW | src/proxy.ts | 2993 | // Step 3: download any hosted URLs to local disk + rewrite to localhost. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openclaw.plugin.json | 59 | "placeholder": "0x... (optional — auto-generated)" | CODE |
| LOW | test/test-model-selection.sh | 58 | apiKey: 'dummy-key', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/benchmark.py | 93 | except Exception as e: | CODE |
| LOW | scripts/benchmark.py | 161 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/docker-install-tests.sh | 97 | # Check if openclaw.plugin.json exists in the package | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/sync-install-to-blockrun.sh | 17 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/e2e.ts | 414 | "async function handleRequest() { ... }" | CODE |