Repository Analysis

ColeMurray/background-agents

An open-source background agents coding system

6.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ColeMurray/background-agents, a TypeScript project with 2,693 GitHub stars. SynthScan v2.0 examined 371,939 lines of code across 1775 source files, recording 1731 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 6.4 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.4
Adjusted Score
6.4
Raw Score
100%
Time Factor
2026-08-29
Last Push
2.7K
Stars
TypeScript
Language
371.9K
Lines of Code
1.8K
Files
1.7K
Pattern Hits
2026-08-29
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

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.

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 9HIGH 10MEDIUM 236LOW 1476

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 1731 distinct pattern matches across 16 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 Identifiers1276 hits · 1260 pts
SeverityFileLineSnippetContext
LOW…kages/modal-infra/tests/test_agent_slack_notify_env.py36 async def test_env_set_when_enabled(self, monkeypatch):CODE
LOW…kages/modal-infra/tests/test_agent_slack_notify_env.py54 async def test_env_omitted_when_disabled(self, monkeypatch):CODE
LOW…kages/modal-infra/tests/test_agent_slack_notify_env.py76 async def test_env_set_when_enabled(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_launch.py32async def test_launch_matrix_preserves_common_and_source_specific_behavior(CODE
LOWpackages/modal-infra/tests/test_sandbox_launch.py189async def test_repository_image_create_validates_repo_before_image_lookup(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_code_server.py13 def test_returns_nonempty_password(self):CODE
LOWpackages/modal-infra/tests/test_code_server.py17 def test_generates_unique_passwords(self):CODE
LOWpackages/modal-infra/tests/test_code_server.py28 async def test_returns_tunnel_url_on_success(self):CODE
LOWpackages/modal-infra/tests/test_code_server.py39 async def test_returns_empty_on_exception_after_retries(self):CODE
LOWpackages/modal-infra/tests/test_code_server.py51 async def test_returns_empty_when_port_missing_after_retries(self):CODE
LOWpackages/modal-infra/tests/test_code_server.py62 async def test_retries_then_succeeds(self):CODE
LOWpackages/modal-infra/tests/test_code_server.py84 async def test_handle_contains_code_server_fields(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_code_server.py127 async def test_code_server_skipped_when_disabled(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_code_server.py169 async def test_handle_contains_code_server_fields(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_code_server.py219 async def test_code_server_skipped_when_disabled(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_resources.py22 def test_allows_fractional_cpu(self):CODE
LOWpackages/modal-infra/tests/test_sandbox_resources.py47 async def test_create_sandbox_passes_cpu_and_memory(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_resources.py69 async def test_restore_from_snapshot_passes_resources(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py26def test_has_repository_accepts_complete_or_absent_metadata(repo_owner, repo_name, expected):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py37def test_has_repository_rejects_partial_repo_metadata(repo_owner, repo_name):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py50async def test_create_sandbox_rejects_partial_repo_metadata(repo_owner, repo_name):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py65async def test_restore_rejects_partial_repo_metadata(session_config):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py76async def test_user_env_vars_override_order(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py116async def test_restore_user_env_vars_override_order(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py178async def test_create_preserves_managed_provider_env_isolation(CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py204async def test_restore_preserves_managed_provider_env_isolation(CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py219def test_generated_vnc_password_respects_protocol_limit():CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py224async def test_restore_uses_default_timeout(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py263async def test_restore_uses_custom_timeout(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py305async def test_create_and_restore_timeout_consistency(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py378async def test_restore_includes_branch_in_session_config(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py400async def test_restore_omits_branch_when_none(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py421async def test_restore_serializes_typed_session_config(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py466async def test_vcs_env_vars_default_github(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py508async def test_vcs_env_vars_bitbucket(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py528async def test_repo_image_boot_omits_fallback_tokens(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py557async def test_repo_image_boot_preserves_user_github_cli_token(monkeypatch, token_key):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py587async def test_no_repo_sandbox_gets_provider_host_scoping(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py607async def test_restore_no_repo_gets_host_scoping_without_tokens(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py638async def test_restore_preserves_vcs_clone_token_for_legacy_snapshots(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py678async def test_restore_github_includes_gh_cli_aliases(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_sandbox_env_vars.py716async def test_no_repo_restore_omits_clone_token(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_runtime_manifest.py5def test_runtime_manifest_generation_matches_version() -> None:CODE
LOWpackages/modal-infra/tests/test_clone_token.py20def test_resolve_clone_token_uses_gitlab_access_token(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_clone_token.py27def test_resolve_clone_token_returns_none_for_missing_gitlab_token(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_clone_token.py33def test_resolve_clone_token_generates_github_installation_token(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_clone_token.py39 def fake_generate_installation_token(**kwargs):CODE
LOWpackages/modal-infra/tests/test_clone_token.py55def test_resolve_clone_token_returns_none_when_github_credentials_incomplete(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_clone_token.py67def test_resolve_clone_token_returns_none_when_github_generation_fails(monkeypatch):CODE
LOWpackages/modal-infra/tests/test_vnc.py35 async def test_returns_url_and_password_and_exposes_only_novnc(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_vnc.py62 async def test_disabled_vnc_has_no_credentials_or_port(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_vnc.py84 async def test_generates_credentials_and_returns_them_with_url(self, monkeypatch):CODE
LOWpackages/modal-infra/tests/test_vnc.py108async def test_resolves_custom_novnc_tunnel():CODE
LOWpackages/modal-infra/tests/test_vnc.py132def test_raw_vnc_port_is_never_exposed_as_an_extra_tunnel():CODE
LOWpackages/modal-infra/tests/test_ttyd.py19 def test_terminal_enabled_includes_proxy_port(self):CODE
LOWpackages/modal-infra/tests/test_ttyd.py33 def test_terminal_disabled_excludes_proxy_port(self):CODE
LOWpackages/modal-infra/tests/test_ttyd.py45 def test_terminal_and_code_server_both_enabled(self):CODE
LOWpackages/modal-infra/tests/test_ttyd.py58 def test_terminal_port_deduped_from_tunnel_ports(self):CODE
LOWpackages/modal-infra/tests/test_ttyd.py81 async def test_returns_ttyd_url_when_terminal_enabled(self):CODE
LOWpackages/modal-infra/tests/test_ttyd.py105 async def test_returns_none_when_terminal_disabled(self):CODE
1216 more matches not shown…
Decorative Section Separators228 hits · 716 pts
SeverityFileLineSnippetContext
MEDIUM.openinspect/setup.sh7# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh9# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh21# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh23# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh36# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh38# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh42# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh44# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh48# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh50# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh58# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh60# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh115# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh117# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh125# ---------------------------------------------------------------------------COMMENT
MEDIUM.openinspect/setup.sh127# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/environments/production/web-cloudflare.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/web-cloudflare.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/outputs.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/outputs.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/outputs.tf119# =============================================================================COMMENT
MEDIUMterraform/environments/production/outputs.tf121# =============================================================================COMMENT
MEDIUMterraform/environments/production/workers-github.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/workers-github.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/r2.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/r2.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/main.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/main.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/opencomputer.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/opencomputer.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/modal.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/modal.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/workers-slack.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/workers-slack.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/moved.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/moved.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/e2b.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/e2b.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/workers-linear.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/workers-linear.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/kv.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/kv.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/web-vercel.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/web-vercel.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf1# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf3# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf112# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf114# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf134# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf136# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf161# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf163# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf181# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf183# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf209# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf211# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf238# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf240# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf284# =============================================================================COMMENT
MEDIUMterraform/environments/production/variables.tf286# =============================================================================COMMENT
168 more matches not shown…
Hallucination Indicators9 hits · 95 pts
SeverityFileLineSnippetContext
CRITICALpackages/sandbox-runtime/tests/test_opencode_health.py20 client_type.return_value.__aenter__.return_value.get.assert_not_awaited()CODE
CRITICAL…es/sandbox-runtime/tests/test_entrypoint_build_mode.py1017 supervisor.repository_boot.synchronizer.log.info.assert_any_call(CODE
CRITICAL…es/sandbox-runtime/tests/test_entrypoint_build_mode.py1264 supervisor.repository_boot.synchronizer.log.warn.assert_called_once()CODE
CRITICAL…es/sandbox-runtime/tests/test_entrypoint_build_mode.py1526 supervisor.repository_boot.synchronizer.log.warn.assert_any_call(CODE
CRITICALpackages/slack-bot/src/index.test.ts2134 const sessionCall = env.CONTROL_PLANE.fetch.mock.calls.find(([input]) => {CODE
CRITICALpackages/slack-bot/src/index.test.ts2242 const sessionCall = env.CONTROL_PLANE.fetch.mock.calls.find(([input]) => {CODE
CRITICALpackages/slack-bot/src/index.test.ts2344 const sessionCall = env.CONTROL_PLANE.fetch.mock.calls.find(([input]) => {CODE
CRITICAL…ckages/control-plane/src/session/message-queue.test.ts1010 const enqueueLog = h.log.info.mock.calls.find(([event]) => event === "prompt.enqueue")?.[1];CODE
CRITICAL…ckages/control-plane/src/session/message-queue.test.ts1094 expect(h.wsManager.send.mock.calls.map(([, command]) => command)).toEqual([CODE
Excessive Try-Catch Wrapping62 hits · 72 pts
SeverityFileLineSnippetContext
LOWpackages/modal-infra/src/web_api.py206 except Exception as e:CODE
LOWpackages/modal-infra/src/clone_token.py33 except Exception as e:CODE
LOWpackages/modal-infra/src/app.py123 except Exception as e:CODE
LOWpackages/modal-infra/src/sandbox/manager.py206 except Exception as e:CODE
LOWpackages/modal-infra/src/sandbox/manager.py348 except Exception as e:CODE
LOWpackages/modal-infra/src/sandbox/manager.py608 except Exception as e:CODE
LOW…/sandbox-runtime/src/sandbox_runtime/diff_collector.py927 except Exception as error:CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/boot_warnings.py33 except Exception as error:CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py1003 except Exception as e:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py97 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py109 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py118 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py225 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py254 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py410 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py424 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py429 except Exception as error:CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py454 except Exception as error:CODE
LOW…box-runtime/src/sandbox_runtime/repo_image_callback.py151 except Exception as exc:CODE
LOW…dbox-runtime/src/sandbox_runtime/tunnel_environment.py49 except Exception as error:CODE
LOW…dbox-runtime/src/sandbox_runtime/tunnel_environment.py54 except Exception as error:CODE
LOW…dbox-runtime/src/sandbox_runtime/tunnel_environment.py87 except Exception as error:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py350 except Exception as e:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py507 except Exception as e:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py574 except Exception as e:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py749 except Exception as e:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py869 except Exception as e:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py1075 except Exception:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py1078 except Exception as e:CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py1086 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/event_forwarder.py133 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/event_forwarder.py192 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/event_forwarder.py239 except Exception as e:CODE
LOW…andbox-runtime/src/sandbox_runtime/repository_hooks.py108 except Exception as error:CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_client.py156 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_boot.py88 except Exception as error:CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_boot.py140 except Exception as error:CODE
MEDIUM…sandbox-runtime/src/sandbox_runtime/repository_boot.py85def _write_repo_manifest(self) -> None:CODE
LOW…/sandbox-runtime/src/sandbox_runtime/process_output.py59 except Exception as error:CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/diff_capture.py226 except Exception as error:CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/diff_capture.py240 except Exception as error:CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/diff_capture.py283 except Exception as report_error:CODE
MEDIUM…es/sandbox-runtime/src/sandbox_runtime/diff_capture.py195def _run(self) -> None:CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py256 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py382 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py454 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py528 except Exception as error:CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py595 except Exception as e:CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_sync.py129 except Exception as error:CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_sync.py300 except Exception as error:CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_sync.py330 except Exception as error:CODE
LOW…/sandbox-runtime/src/sandbox_runtime/managed_skills.py583 except Exception:CODE
LOW…/sandbox-runtime/src/sandbox_runtime/managed_skills.py642 except Exception:CODE
LOW…/sandbox-runtime/src/sandbox_runtime/managed_skills.py647 except Exception as error:CODE
LOW…c/sandbox_runtime/credentials/git_credential_helper.py307 except Exception as e:CODE
LOW…c/sandbox_runtime/credentials/git_credential_helper.py345 except Exception as e:CODE
MEDIUMpackages/e2b-infra/build-template.py41 print("Error: E2B_TEMPLATE_CPU must be a positive integer", file=sys.stderr)CODE
MEDIUMpackages/e2b-infra/build-template.py44 print("Error: E2B_TEMPLATE_MEMORY_MB must be a positive even number", file=sys.stderr)CODE
MEDIUMpackages/e2b-infra/build-template.py63 print("Error: E2B_TEMPLATE_ID is not set", file=sys.stderr)CODE
MEDIUMpackages/e2b-infra/build-template.py76 print(f"Error: sandbox-runtime not found at {RUNTIME_SRC}", file=sys.stderr)CODE
2 more matches not shown…
Unused Imports53 hits · 52 pts
SeverityFileLineSnippetContext
LOWpackages/modal-infra/src/log_config.py3CODE
LOWpackages/modal-infra/src/log_config.py3CODE
LOWpackages/modal-infra/src/log_config.py3CODE
LOWpackages/modal-infra/src/__init__.py5CODE
LOWpackages/modal-infra/src/__init__.py6CODE
LOWpackages/modal-infra/src/images/__init__.py3CODE
LOWpackages/modal-infra/src/images/__init__.py3CODE
LOWpackages/modal-infra/src/sandbox/__init__.py8CODE
LOWpackages/modal-infra/src/sandbox/__init__.py8CODE
LOWpackages/modal-infra/src/sandbox/__init__.py8CODE
LOWpackages/sandbox-runtime/tests/conftest.py11CODE
LOWpackages/sandbox-runtime/tests/test_gh_wrapper.py15CODE
LOW…es/sandbox-runtime/tests/test_git_credential_helper.py3CODE
LOW…/sandbox-runtime/src/sandbox_runtime/diff_collector.py9CODE
LOW…/sandbox-runtime/src/sandbox_runtime/runtime_config.py3CODE
LOW…runtime/src/sandbox_runtime/modal_image_build_start.py3CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/boot_warnings.py1CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py3CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/web_terminal.py1CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py3CODE
LOW…box-runtime/src/sandbox_runtime/repo_image_callback.py3CODE
LOW…dbox-runtime/src/sandbox_runtime/tunnel_environment.py1CODE
LOW…ges/sandbox-runtime/src/sandbox_runtime/code_server.py1CODE
LOW…ckages/sandbox-runtime/src/sandbox_runtime/__init__.py12CODE
LOW…ckages/sandbox-runtime/src/sandbox_runtime/__init__.py12CODE
LOW…ckages/sandbox-runtime/src/sandbox_runtime/__init__.py12CODE
LOW…ckages/sandbox-runtime/src/sandbox_runtime/__init__.py12CODE
LOW…box-runtime/src/sandbox_runtime/message_attribution.py3CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/git_excludes.py3CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/entrypoint.py4CODE
LOW…sandbox-runtime/src/sandbox_runtime/event_forwarder.py3CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/diff_baseline.py3CODE
LOW…andbox-runtime/src/sandbox_runtime/repository_hooks.py1CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_client.py3CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_boot.py1CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/git_signer.py3CODE
LOW…/sandbox-runtime/src/sandbox_runtime/process_output.py3CODE
LOW…ox-runtime/src/sandbox_runtime/agent_bridge_process.py1CODE
LOW…box-runtime/src/sandbox_runtime/opencode_identifier.py3CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/diff_capture.py3CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py1CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_sync.py1CODE
LOW…sandbox-runtime/src/sandbox_runtime/browser_desktop.py1CODE
LOW…/sandbox-runtime/src/sandbox_runtime/managed_skills.py3CODE
LOW…/sandbox-runtime/src/sandbox_runtime/child_activity.py3CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/auth/__init__.py3CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/auth/__init__.py4CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/auth/__init__.py4CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/auth/__init__.py4CODE
LOW…c/sandbox_runtime/credentials/git_credential_helper.py26CODE
LOWpackages/daytona-infra/src/bootstrap.py3CODE
LOWpackages/daytona-infra/src/config.py3CODE
LOWpackages/daytona-infra/src/toolchain.py3CODE
Cross-Language Confusion7 hits · 42 pts
SeverityFileLineSnippetContext
HIGHpackages/modal-infra/src/images/base.py106 "apt-get update && apt-get install -y gh && rm -rf /var/lib/apt/lists/*",CODE
HIGHpackages/modal-infra/src/images/base.py141 "opencode --version || echo 'OpenCode installed'",CODE
HIGHpackages/modal-infra/src/images/base.py165 "cd /app/opencode-deps && npm install --ignore-scripts --no-audit --no-fund",CODE
HIGHpackages/sandbox-runtime/tests/test_mcp.py235 "pkg && cat /etc/passwd",CODE
HIGHpackages/e2b-infra/build-template.py56 "command -v python && command -v node && command -v bun && command -v opencode "CODE
HIGHpackages/e2b-infra/build-template.py58 '&& test "$(command -v gh)" = /usr/local/bin/gh && test -x /usr/bin/gh 'CODE
HIGHpackages/daytona-infra/src/toolchain.py45 "apt-get update && apt-get install -y gh && rm -rf /var/lib/apt/lists/*",CODE
Structural Annotation Overuse23 hits · 36 pts
SeverityFileLineSnippetContext
LOWdocs/OPENAI_MODELS.md30### Step 1: Connect ChatGPTCOMMENT
LOWdocs/OPENAI_MODELS.md44### Step 2: Configure DefaultsCOMMENT
LOWdocs/OPENAI_MODELS.md57### Step 3: Select AuthenticationCOMMENT
LOWdocs/GETTING_STARTED.md71## Step 1: Fork the RepositoryCOMMENT
LOWdocs/GETTING_STARTED.md97## Step 2: Create Cloud Provider CredentialsCOMMENT
LOWdocs/GETTING_STARTED.md278## Step 3: Create GitHub AppCOMMENT
LOWdocs/GETTING_STARTED.md359## Step 4: Create Slack App (Optional)COMMENT
LOWdocs/GETTING_STARTED.md453## Step 5: Generate Security SecretsCOMMENT
LOWdocs/GETTING_STARTED.md478## Step 6: Configure TerraformCOMMENT
LOWdocs/GETTING_STARTED.md677## Step 7: Deploy with TerraformCOMMENT
LOWdocs/GETTING_STARTED.md861## Step 8: Deploy the Web AppCOMMENT
LOWdocs/GETTING_STARTED.md921## Step 9: Verify DeploymentCOMMENT
LOWdocs/GETTING_STARTED.md956## Step 10: Set Up CI/CD (Optional)COMMENT
LOWdocs/GROK_MODELS.md28### Step 1: Connect SuperGrokCOMMENT
LOWdocs/GROK_MODELS.md42### Step 2: Configure DefaultsCOMMENT
LOWdocs/GROK_MODELS.md53### Step 3: Enable and Select GrokCOMMENT
LOWdocs/SETUP_GUIDE.md49## Step 0: Bootstrap the RepoCOMMENT
LOWpackages/control-plane/src/db/user-store.ts317 // Step 1: Look up by provider identityCOMMENT
LOWpackages/control-plane/src/db/user-store.ts321 // Step 2: Existing identity → load linked user, update if neededCOMMENT
LOWpackages/control-plane/src/db/user-store.ts380 // Step 3: No identity found — try email-based cross-provider linkingCOMMENT
LOWpackages/control-plane/src/db/user-store.ts400 // Step 4: Brand new user — batch user + identity creation so a UNIQUECOMMENT
LOWpackages/control-plane/src/session/initialize.ts136 // Step 1: D1 index (must succeed before DO init starts sandbox warming)COMMENT
LOWpackages/control-plane/src/session/initialize.ts163 // Step 2: DO initCOMMENT
Deep Nesting23 hits · 23 pts
SeverityFileLineSnippetContext
LOWpackages/modal-infra/src/web_api.py226CODE
LOWpackages/modal-infra/src/sandbox/manager.py182CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py183CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py318CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py391CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py616CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py821CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/prompt_stream.py934CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/web_terminal.py90CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py76CODE
LOW…ages/sandbox-runtime/src/sandbox_runtime/supervisor.py355CODE
LOW…dbox-runtime/src/sandbox_runtime/tunnel_environment.py57CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py320CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py458CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py598CODE
LOWpackages/sandbox-runtime/src/sandbox_runtime/bridge.py1057CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_client.py175CODE
LOW…sandbox-runtime/src/sandbox_runtime/repository_boot.py149CODE
LOW…ges/sandbox-runtime/src/sandbox_runtime/repo_config.py178CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py322CODE
LOW…sandbox-runtime/src/sandbox_runtime/browser_desktop.py169CODE
LOW…/sandbox-runtime/src/sandbox_runtime/managed_skills.py426CODE
LOW…/sandbox-runtime/src/sandbox_runtime/managed_skills.py620CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…s/sandbox-runtime/src/sandbox_runtime/auth/internal.py51 Verify an internal API token from the Authorization header. Token format: `Bearer timestamp.signature` where: STRING
HIGH…sandbox-runtime/src/sandbox_runtime/auth/github_app.py39 Exchange a JWT for an installation access token. Args: jwt_token: The signed JWT installation_STRING
HIGH…sandbox-runtime/src/sandbox_runtime/auth/github_app.py70 Generate a fresh GitHub App installation token. This is the main entry point for token generation. It: 1. STRING
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippetContext
LOWterraform/environments/production/main.tf1# =============================================================================COMMENT
LOWterraform/environments/production/e2b.tf41 template_id = var.e2b_template_idCOMMENT
LOWterraform/environments/production/backend.tf1# Terraform State Backend ConfigurationCOMMENT
LOWdocs/GETTING_STARTED.md521modal_token_id = "your-modal-token-id"COMMENT
LOWdocs/GETTING_STARTED.md601COMMENT
LOWpackages/modal-infra/src/images/base.py21# Get the path to the sandbox runtime code (provider-agnostic)COMMENT
LOWpackages/modal-infra/src/images/base.py141 "opencode --version || echo 'OpenCode installed'",COMMENT
LOWpackages/modal-infra/src/images/base.py201 # Install the git credential helper shim.COMMENT
LOW…kages/sandbox-runtime/src/sandbox_runtime/constants.py41# for. The manager's write can land before the entrypoint starts (it onlyCOMMENT
LOW…kages/sandbox-runtime/src/sandbox_runtime/constants.py61# Canonical repository manifest written by the supervisor before any childCOMMENT
LOWpackages/shared/src/types/sessions.test.ts61});COMMENT
LOWpackages/shared/src/triggers/github/normalizer.test.ts761 expect(parsed.pullRequest).toEqual(event!.pullRequest);COMMENT
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOW…runtime/src/sandbox_runtime/plugins/xai-auth-plugin.js10const OAUTH_DUMMY_KEY = "opencode-oauth-dummy-key";CODE
LOW…ntime/src/sandbox_runtime/plugins/codex-auth-plugin.js16const OAUTH_DUMMY_KEY = "opencode-oauth-dummy-key";CODE
LOWpackages/shared/src/slack/resolve-users.test.ts65 real_name: "John Doe",CODE
LOWpackages/shared/src/slack/resolve-users.test.ts66 profile: { display_name: "", real_name: "John Doe" },CODE
LOWpackages/slack-bot/src/index.test.ts2160 real_name: "Jane Doe",CODE
LOW…ckages/slack-bot/src/sessions/session-launcher.test.ts105 email: "user@example.com",CODE
LOW…ckages/slack-bot/src/sessions/session-launcher.test.ts168 actorEmail: "user@example.com",CODE
LOW…ne/test/integration/provider-account-atomicity.test.ts24 VALUES ('user-1', 'Test User', 'user@example.com', ?, ?)`CODE
LOW…e/test/integration/provider-account-foundation.test.ts123 VALUES ('user-1', 'Test User', 'user@example.com', ?, ?)`CODE
LOW…e/test/integration/provider-account-foundation.test.ts163 VALUES ('user-1', 'Test User', 'user@example.com', ?, ?)`CODE
LOW…e/test/integration/provider-account-foundation.test.ts199 VALUES ('user-1', 'Test User', 'user@example.com', ?, ?)`CODE
LOW…e/src/source-control/providers/github-provider.test.ts49 privateKey: "fake-key",CODE
Verbosity Indicators6 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/control-plane/src/db/user-store.ts317 // Step 1: Look up by provider identityCOMMENT
LOWpackages/control-plane/src/db/user-store.ts321 // Step 2: Existing identity → load linked user, update if neededCOMMENT
LOWpackages/control-plane/src/db/user-store.ts380 // Step 3: No identity found — try email-based cross-provider linkingCOMMENT
LOWpackages/control-plane/src/db/user-store.ts400 // Step 4: Brand new user — batch user + identity creation so a UNIQUECOMMENT
LOWpackages/control-plane/src/session/initialize.ts136 // Step 1: D1 index (must succeed before DO init starts sandbox warming)COMMENT
LOWpackages/control-plane/src/session/initialize.ts163 // Step 2: DO initCOMMENT
Modern Structural Boilerplate10 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/modal-infra/deploy.py46__all__ = ["app"]CODE
LOWpackages/modal-infra/src/log_config.py5__all__ = ["StructuredLogger", "configure_logging", "get_logger"]CODE
LOWpackages/modal-infra/src/__init__.py8__all__ = ["app", "web_api"]CODE
LOWpackages/modal-infra/src/images/__init__.py5__all__ = ["OPENCODE_VERSION", "base_image"]CODE
LOWpackages/modal-infra/src/sandbox/__init__.py10__all__ = [CODE
LOW…ckages/sandbox-runtime/src/sandbox_runtime/__init__.py19__all__ = [CODE
LOW…ges/sandbox-runtime/src/sandbox_runtime/git_signing.py209 async def _set_git_config(self, repository: Path, key: str, value: str) -> None:CODE
LOW…es/sandbox-runtime/src/sandbox_runtime/diff_capture.py211 async def _settle(self, attempt: _RefreshAttempt) -> None:CODE
LOW…sandbox-runtime/src/sandbox_runtime/opencode_server.py322 def _setup_managed_oauth(self) -> None:CODE
LOW…s/sandbox-runtime/src/sandbox_runtime/auth/__init__.py10__all__ = [CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMterraform/environments/production/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUM…es/sandbox-runtime/tests/test_entrypoint_build_mode.py1289 # Create the directory so _update_existing_repo proceeds after clone.COMMENT
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…l-plane/test/integration/browser-auth-callback.test.ts24function handleRequest(CODE
LOW…trol-plane/test/integration/auth-sign-in-claim.test.ts29function handleRequest(CODE
LOW…rol-plane/test/integration/browser-auth-router.test.ts12function handleRequest(CODE
LOWpackages/control-plane/src/router.ts376export async function handleRequest(CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/modal-infra/src/sandbox/manager.py612CODE