Repository Analysis

NVIDIA-NeMo/Switchyard

6.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of NVIDIA-NeMo/Switchyard, a Rust project with 1,069 GitHub stars. SynthScan v2.0 examined 59,476 lines of code across 257 source files, recording 323 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 6.6 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).

6.6
Adjusted Score
6.6
Raw Score
100%
Time Factor
2026-08-13
Last Push
1.1K
Stars
Rust
Language
59.5K
Lines of Code
257
Files
323
Pattern Hits
2026-08-13
Scan Date
0.01
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 3MEDIUM 29LOW 291

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 323 distinct pattern matches across 9 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 Identifiers165 hits · 159 pts
SeverityFileLineSnippetContext
LOWmkdocs_hooks.py66def _rewrite_link_destinations(CODE
LOWmkdocs_hooks.py94def _rewrite_outside_code_spans(CODE
LOWbenchmark/run_manifest.py140def snapshot_dataset_manifest(source: Path | None, run_dir: Path) -> Path | None:CODE
LOWbenchmark/prepare_harbor_dataset.py129def _exported_dataset_candidates(download_root: Path, source_dataset: str) -> list[Path]:CODE
LOWbenchmark/prepare_harbor_dataset.py144def _proxy_allowlist_hosts_for_dataset(source_dataset: str) -> tuple[str, ...]:CODE
LOWbenchmark/prepare_harbor_dataset.py151def _find_exported_dataset_root(download_root: Path, source_dataset: str) -> Path:CODE
LOWbenchmark/prepare_harbor_dataset.py182def _remove_toml_key_from_table(text: str, table: str, key: str) -> str:CODE
LOWswitchyard/cli/launchers/claude_code_launcher.py114def _run_claude_with_switchyard(CODE
LOWswitchyard/cli/launchers/codex_cli_launcher.py142def _run_codex_with_switchyard(CODE
LOWswitchyard/cli/launchers/openclaw_launcher.py73def _openclaw_model_display_name(model_id: str) -> str:CODE
LOWswitchyard/cli/launchers/openclaw_launcher.py119def _write_openclaw_workspace(CODE
LOWswitchyard/cli/launchers/openclaw_launcher.py137def _remove_openclaw_workspace(workspace: str | None) -> None:CODE
LOWswitchyard/cli/launchers/openclaw_launcher.py181def _run_openclaw_with_switchyard(CODE
LOWswitchyard/cli/launchers/launcher_runtime.py36def configure_debug_file_logging(*, display_model: str) -> Path:CODE
LOWswitchyard/cli/launchers/launcher_runtime.py128def _format_strategy_indented(CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py31def _fallback_codex_model_template() -> dict[str, Any]:CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py76def _load_codex_model_template(codex_bin: str) -> dict[str, Any]:CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py106def _build_codex_model_catalog(CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py127def _write_codex_model_catalog(CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py148def _remove_codex_model_catalog(path: str | None) -> None:CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py158def _codex_model_display_name(model_id: str) -> str:CODE
LOWtests/test_run_baseline_script.py127def _write_fake_harbor_python(tmp_path: Path, *, patched: bool = True) -> Path:CODE
LOWtests/test_run_baseline_script.py237def _write_closed_book_dataset(path: Path) -> Path:STRING
LOWtests/test_run_baseline_script.py251def test_direct_mode_requires_model(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py258def test_direct_mode_defaults_to_openrouter_upstream_without_switchyard(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py285def test_direct_mode_uses_generic_upstream_key_when_set(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py304def test_direct_mode_requires_selected_api_key_env(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py317def test_direct_mode_rejects_server_only_options(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py341def test_legacy_routing_profiles_are_rejected(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py356def test_dry_run_claude_code_opus_defaults_high_reasoning(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py378def test_dry_run_codex_gpt_defaults_high_reasoning(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py404def test_dry_run_explicit_empty_reasoning_omits_kwarg(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py427def test_dry_run_explicit_reasoning_overrides_default(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py449def test_dry_run_explicit_claude_thinking_overrides_adaptive_default(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py475def test_harbor_path_is_required(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py492def test_closed_book_dataset_rejects_unpatched_harbor(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py518def test_dry_run_server_config_uses_rust_switchyard_server(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py542def test_foreground_server_run_collects_rust_stats_endpoint(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py568def test_dry_run_route_model_alias_uses_rust_switchyard_server(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py589def test_dry_run_server_config_honors_explicit_harbor_model(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py608def test_dry_run_harbor_extra(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py631def test_dry_run_harbor_path_uses_local_dataset_and_closed_book_artifact(STRING
LOWtests/test_run_baseline_script.py676def test_dry_run_open_book_uses_proxy_topology_without_tool_disables(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py708def test_dry_run_claude_closed_book_merges_disallowed_tools(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py736def test_dry_run_opencode_closed_book_disables_webfetch(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py761def test_task_list_file_expands_to_include_task_name(tmp_path: Path) -> None:STRING
LOWtests/test_run_baseline_script.py782def test_dry_run_uses_harbor_bin_override(tmp_path: Path) -> None:STRING
LOWtests/test_dev_wheel_versioning.py27def test_parse_dev_wheel_version(raw_version: str, normalized: str) -> None:CODE
LOWtests/test_dev_wheel_versioning.py43def test_parse_dev_wheel_version_rejects_non_dev_versions(raw_version: str) -> None:CODE
LOWtests/test_dev_wheel_versioning.py48def test_metadata_file_updates(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py53def test_find_exported_dataset_root_uses_harbor_package_short_name(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py66def test_find_exported_dataset_root_keeps_legacy_dataset_name(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py76def test_find_exported_dataset_root_ignores_other_exported_datasets(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py142def test_swe_bench_pro_dataset_keeps_agent_proxy_allowlist_empty(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py163def test_legacy_dataset_keeps_proxy_allowlist_empty(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py176def test_prebuilt_docker_image_task_becomes_derived_dockerfile(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py195def test_dockerfile_only_task_gets_prebake_layer(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py213def test_generated_compose_contains_closed_book_proxy_topology(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py274def test_generated_dataset_manifest_records_pins_tasks_and_digests(tmp_path: Path) -> None:CODE
LOWtests/test_prepare_harbor_dataset.py297def test_generated_compose_bakes_task_id_into_proxy_env(tmp_path: Path) -> None:CODE
105 more matches not shown…
Decorative Section Separators24 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUMcrates/libsy/src/algorithms/stage.rs328 // ── routing integration tests ────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/llm_class.rs440// ── Escalation classifier ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/llm_class.rs1736 // ── with_escalation tests ──────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/tool_signals.rs23// ─── severity constants ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/tool_signals.rs29// ─── pattern table ────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/tool_signals.rs199// ─── output type ─────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/tool_signals.rs333// ─── extraction entry point ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/tool_signals.rs501// ─── pure helpers ─────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/tool_signals.rs600// ─── tests ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/tool_signals.rs963 // ─── asymmetric-signal extensions ────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/stage.rs669 // ─── StageClassifier ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/libsy/src/algorithms/util/stage.rs820 // ─── handoff notes ───────────────────────────────────────────────────COMMENT
MEDIUM.github/workflows/perf.yml57 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml62 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml129 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml131 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml168 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml173 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml184 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml186 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml219 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml221 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml228 # ------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/perf.yml230 # ------------------------------------------------------------------COMMENT
Over-Commented Block69 hits · 69 pts
SeverityFileLineSnippetContext
LOW.sir-merge-a-lot.yml1# .sir-merge-a-lot.yml — switchyardCOMMENT
LOW.sir-merge-a-lot.yml21# bot was explicitly invited to groom (on_demand mode). Every LLMCOMMENT
LOWbenchmark/tb_lite_subset_20.txt1# Curated 20-task iteration subset for openthoughts-tblite@2.0.COMMENT
LOWbenchmark/closed_book_proxy/proxy/allowlist-base.txt1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWswitchyard/cli/launchers/shell_tui.py121 self._out_lock = threading.Lock()COMMENT
LOWswitchyard/cli/launchers/shell_tui.py341 fcntl.fcntl(COMMENT
LOWswitchyard/cli/launchers/cost_estimator.py121 ),COMMENT
LOWswitchyard/cli/launchers/cost_estimator.py161 input=1.50, output=9.00, cached=0.15, cache_write=1.50,COMMENT
LOWcrates/libsy-llm-client/src/client.rs441 metadata,COMMENT
LOWcrates/libsy-llm-client/src/client.rs661// Drops fields accepted by OpenAI-like APIs but rejected by Anthropic Messages.COMMENT
LOWcrates/libsy-llm-client/src/error.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy-llm-client/src/lib.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy-llm-client/src/raw.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy-llm-client/src/run.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy-llm-client/src/run.rs21COMMENT
LOWcrates/protocol/src/llm.rs261 pub response_format: Option<Value>,COMMENT
LOWcrates/protocol/src/llm.rs281 pub fields: Map<String, Value>,COMMENT
LOWcrates/protocol/src/llm.rs321 /// Provider fields without first-class normalized equivalents.COMMENT
LOWcrates/protocol/src/llm.rs421#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]COMMENT
LOWcrates/protocol/src/stream.rs301 message: String,COMMENT
LOWcrates/protocol/src/client.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/protocol/src/client.rs21/// Failures a routed LLM client can surface to its caller.COMMENT
LOWcrates/protocol/src/client.rs161 pub fn reasoning(&self) -> Option<&str> {COMMENT
LOWcrates/protocol/src/client.rs181#[async_trait]COMMENT
LOWcrates/protocol/src/metadata.rs161 pub session_id: Option<String>,COMMENT
LOWcrates/protocol/src/metadata.rs221 ///COMMENT
LOWcrates/protocol/src/model_id.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/protocol/src/envelope.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/switchyard-skill-distillation/src/lib.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/switchyard-skill-distillation/src/model.rs21#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]COMMENT
LOWcrates/switchyard-skill-distillation/src/model.rs41 /// Model used for the run, when known.COMMENT
LOWcrates/switchyard-skill-distillation/src/model.rs61 /// Optional source-local run or session ID kept when this record is created.COMMENT
LOWcrates/switchyard-skill-distillation/src/model.rs101 /// Additional event fields, including source-specific identifiers.COMMENT
LOWcrates/switchyard-skill-distillation/src/model.rs121 pub metrics: BTreeMap<String, f64>,COMMENT
LOWcrates/switchyard-skill-distillation/src/model.rs261 Ok(())COMMENT
LOWcrates/switchyard-skill-distillation/src/model.rs301 /// Stable human-readable check name.COMMENT
LOWcrates/libsy/src/observability.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/observability.rs21//! tasks create there (see the `tracing` docs on spans in asynchronous code).COMMENT
LOWcrates/libsy/src/core/processor.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/core/classifier.rs81 /// Stateless classifiers do not need to implement this hook.COMMENT
LOWcrates/libsy/src/core/algorithm.rs41COMMENT
LOWcrates/libsy/src/core/algorithm.rs81 ///COMMENT
LOWcrates/libsy/src/core/algorithm.rs221}COMMENT
LOWcrates/libsy/src/core/algorithm.rs501 decision = fallback_decision(&target, &next, reason);COMMENT
LOWcrates/libsy/src/core/algorithm.rs521///COMMENT
LOWcrates/libsy/src/core/testing.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/algorithms/stage.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/algorithms/stage.rs81pub struct StageRouterConfig {COMMENT
LOWcrates/libsy/src/algorithms/llm_class.rs101/// start therefore moves back to the nearest one that keeps every tool pair whole.COMMENT
LOWcrates/libsy/src/algorithms/llm_class.rs221COMMENT
LOWcrates/libsy/src/algorithms/fall_through.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/algorithms/fall_through.rs41COMMENT
LOWcrates/libsy/src/algorithms/util/affinity.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/algorithms/util/affinity.rs41/// another request's selected model.COMMENT
LOWcrates/libsy/src/algorithms/util/prompts.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/algorithms/util/prompts.rs21//! request — so an addition that leaves exact replay in place never reaches theCOMMENT
LOWcrates/libsy/src/algorithms/util/prompts.rs61/// its normal path, which encodes from the request itself.COMMENT
LOWcrates/libsy/src/algorithms/util/escalation.rs41COMMENT
LOWcrates/libsy/src/algorithms/util/subagent.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcrates/libsy/src/algorithms/util/tool_signals.rs181// matched as-is. Patterns that pair with a count (e.g. "failed", "errors")COMMENT
9 more matches not shown…
Unused Imports35 hits · 35 pts
SeverityFileLineSnippetContext
LOWbenchmark/run_manifest.py11CODE
LOWbenchmark/prepare_harbor_dataset.py6CODE
LOWbenchmark/codex_model_catalog.py6CODE
LOWbenchmark/closed_book_proxy/proxy/rewriter.py6CODE
LOWswitchyard/cli/launchers/session_summary.py6CODE
LOWswitchyard/cli/launchers/native_server.py6CODE
LOWswitchyard/cli/launchers/stats_source.py6CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py12CODE
LOWswitchyard/cli/launchers/shell_tui.py18CODE
LOWswitchyard/cli/launchers/cost_estimator.py21CODE
LOWswitchyard/cli/launchers/live_stats_footer.py10CODE
LOWswitchyard/libsy/algorithms.py6CODE
LOWswitchyard/libsy/algorithms.py7CODE
LOWswitchyard/libsy/algorithms.py8CODE
LOWswitchyard/libsy/algorithms.py9CODE
LOWswitchyard/libsy/__init__.py6CODE
LOWswitchyard/libsy/__init__.py6CODE
LOWswitchyard/libsy/__init__.py6CODE
LOWswitchyard/libsy/__init__.py6CODE
LOWswitchyard/libsy/__init__.py6CODE
LOWswitchyard/libsy/__init__.py6CODE
LOWswitchyard/libsy/__init__.py15CODE
LOWtests/test_run_baseline_script.py4CODE
LOWtests/test_prepare_harbor_dataset.py4CODE
LOWtests/test_shell_tui.py28CODE
LOWtests/test_live_stats_footer.py10CODE
LOWtests/test_no_stale_module_paths.py6CODE
LOWtests/test_run_manifest.py4CODE
LOWtests/test_cost_estimator_gemini.py11CODE
LOWtests/e2e/test_closed_book_proxy_integration.py4CODE
LOWswitchyard_rust/server.py6CODE
LOWswitchyard_rust/_native.py6CODE
LOWswitchyard_rust/libsy.py6CODE
LOW…/experimental/litellm/src/switchyard_litellm/client.py6CODE
LOW…xperimental/litellm/src/switchyard_litellm/__init__.py6CODE
Modern Structural Boilerplate15 hits · 15 pts
SeverityFileLineSnippetContext
LOWswitchyard/__init__.py14__all__ = ["__version__"]CODE
LOWswitchyard/cli/launch_command.py61__all__ = [CODE
LOWswitchyard/cli/command_utils.py16__all__ = ["strip_forwarded_args"]CODE
LOWswitchyard/cli/launchers/claude_code_launcher.py27logger = logging.getLogger(__name__)CODE
LOWswitchyard/cli/launchers/native_server.py56__all__ = ["HttpStatsSource", "NativeServer"]CODE
LOWswitchyard/cli/launchers/codex_cli_launcher.py35logger = logging.getLogger(__name__)CODE
LOWswitchyard/cli/launchers/openclaw_launcher.py31logger = logging.getLogger(__name__)CODE
LOWswitchyard/cli/launchers/stats_source.py20__all__ = ["StatsSource"]CODE
LOWswitchyard/cli/launchers/codex_model_catalog.py23logger = logging.getLogger(__name__)CODE
LOWswitchyard/cli/launchers/shell_tui.py58def _set_winsize(fd: int, rows: int, cols: int) -> None:CODE
LOWswitchyard/libsy/algorithms.py11__all__ = ["llm_task_classifier", "noop", "random", "stage_router"]CODE
LOWswitchyard/libsy/__init__.py17__all__ = [CODE
LOWswitchyard_rust/server.py46__all__ = ["Server"]CODE
LOWswitchyard_rust/libsy.py118__all__ = [*sorted(_EXPORTS), "LlmClient"]CODE
LOW…xperimental/litellm/src/switchyard_litellm/__init__.py8__all__ = ["LiteLLMSyClient"]CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHswitchyard/cli/launchers/claude_code_launcher.py0start the native server; kept separate for supervision tests.STRING
HIGHswitchyard/cli/launchers/codex_cli_launcher.py0start the native server; kept separate for supervision tests.STRING
HIGHswitchyard/cli/launchers/openclaw_launcher.py0start the native server; kept separate for supervision tests.STRING
Excessive Try-Catch Wrapping7 hits · 9 pts
SeverityFileLineSnippetContext
LOWswitchyard/cli/launchers/session_summary.py28 except Exception:CODE
LOWswitchyard/cli/launchers/native_server.py35 except Exception:CODE
LOWswitchyard/cli/launchers/proxy_health_monitor.py37 except Exception:CODE
LOWswitchyard/cli/launchers/launcher_runtime.py31 except Exception:CODE
LOWswitchyard/cli/launchers/launcher_runtime.py98 except Exception:CODE
MEDIUM.hooks/add_spdx_headers.py67 print(f"Error reading {filepath}: {e}", file=sys.stderr)CODE
MEDIUM.hooks/add_spdx_headers.py96 print(f"Error writing {filepath}: {e}", file=sys.stderr)CODE
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMswitchyard/cli/launchers/cost_estimator.py74 # context window. OpenAI wire format on NIH; no cache_write premium.COMMENT
MEDIUMcrates/protocol/src/client.rs72 #[error("context window exceeded for model {model}: {message}")]COMMENT
MEDIUMcrates/libsy/src/error.rs54 #[error("every target exceeded its context window")]COMMENT
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWswitchyard/cli/launchers/shell_tui.py316CODE
LOW…/experimental/litellm/src/switchyard_litellm/client.py112CODE