AI Slop Code RIsk Monitor

huggingface/ml-intern

Archived — ML Intern is no longer maintained. Continue with HuggingChat.

25.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for huggingface/ml-intern, a Python project with 10,807 GitHub stars. SynthScan examined 65,225 lines of code across 193 source files, recording 1235 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 25.8 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

25.8
Adjusted Signal
25.8
Raw Pattern Score
100%
Time Factor
2026-09-29
Last Push
10.8K
Stars
Python
Language
65.2K
Lines of Code
193
Files
1.2K
Pattern Hits
2026-10-12
Scan Date
0.22
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 44.3/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 763 finding(s).

Hallucinated Dependency & Supply Chain Risk 5.7/100 · LOW

Are imports declared and package/API names verified? 56 finding(s).

Agent Over-Engineering Ratio 68.9/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 1102 finding(s).

PR Review Velocity Impact 73.7/100 · HIGH

Which changes need focused human review? 1235 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 42MEDIUM 148LOW 1045

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1235 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers679 hits · 677 pts
SeverityFileLineSnippetContext
LOWfrontend/src/components/UsageMeter.tsx50function billingUnavailableMessage(error: string | null | undefined): string | null {CODE
LOWfrontend/src/hooks/useAgentChat.ts55function pendingApprovalItemsFromInfo(info: unknown): PendingApprovalItem[] | undefined {CODE
LOWfrontend/src/lib/sse-chat-transport.ts153function approvalContinuationPrelude(parts: UIMessage['parts']): UIMessageChunk[] {CODE
LOWfrontend/src/lib/sse-chat-transport.ts238function createRecoveredFinishedStream(): ReadableStream<UIMessageChunk> {CODE
LOW⚡tests/unit/test_cli_rendering.py21def test_router_anthropic_research_model_is_unchanged():CODE
LOW⚡tests/unit/test_cli_rendering.py28def test_non_anthropic_research_model_is_unchanged():CODE
LOW⚡tests/unit/test_cli_rendering.py32def test_huggingface_prefix_research_model_strips_prefix():CODE
LOW⚡tests/unit/test_cli_rendering.py39def test_hf_router_openai_research_model_is_unchanged():CODE
LOW⚡tests/unit/test_cli_rendering.py46def test_help_output_keeps_descriptions_aligned(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py69def test_help_output_recomputes_widths_from_rows():CODE
LOWtests/unit/test_cli_rendering.py90def test_subagent_display_does_not_spawn_background_redraw(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py130def test_cli_forwards_model_flag_to_interactive_main(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py146def test_cli_forwards_sandbox_flag_to_interactive_main(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py161def test_cli_forwards_sandbox_flag_to_headless_main(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py201async def test_interactive_main_applies_model_override_before_banner(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py231async def test_local_model_local_runtime_skips_hf_token_prompt(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py264async def test_local_model_sandbox_runtime_prompts_for_hf_token(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py304async def test_interactive_main_passes_sandbox_runtime_to_tool_router(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py353async def test_interactive_main_passes_user_plan_to_submission_loop(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py443async def test_headless_main_passes_user_plan_to_submission_loop(monkeypatch):CODE
LOWtests/unit/test_cli_rendering.py513async def test_initial_sandbox_preload_waits_before_prompt():CODE
LOWtests/unit/test_retired_web_app.py16def test_retirement_status_points_to_huggingchat():CODE
LOWtests/unit/test_retired_web_app.py27def test_retired_server_serves_static_frontend(tmp_path):CODE
LOWtests/unit/test_retired_web_app.py49def test_retired_server_does_not_expose_application_routes(path):CODE
LOWtests/unit/test_doom_loop_polling.py41def test_polling_with_progressing_results_does_not_fire():CODE
LOWtests/unit/test_doom_loop_polling.py56def test_truly_stuck_polling_with_identical_results_still_fires():CODE
LOWtests/unit/test_doom_loop_polling.py73def test_identical_calls_with_no_results_yet_still_fires():CODE
LOWtests/unit/test_doom_loop_polling.py87def test_different_args_does_not_fire():CODE
LOWtests/unit/test_kpis_scheduler.py29def test_token_resolution_order(monkeypatch):CODE
LOWtests/unit/test_kpis_scheduler.py53def test_load_build_kpis_exposes_run_for_hour():CODE
LOWtests/unit/test_kpis_scheduler.py60def test_backfill_calls_run_hour_for_each_hour(monkeypatch):CODE
LOWtests/unit/test_kpis_scheduler.py79def test_start_is_no_op_when_disabled(monkeypatch):CODE
LOWtests/unit/test_kpis_scheduler.py88def test_start_skips_cleanly_without_apscheduler(monkeypatch):CODE
LOWtests/unit/test_kpis_scheduler.py113def test_shutdown_is_no_op_when_not_started():CODE
LOWtests/unit/test_session_uploader.py19def test_dataset_card_readme_has_metadata_and_public_warning():CODE
LOWtests/unit/test_session_uploader.py40def test_upload_dataset_card_only_for_claude_code_format():CODE
LOWtests/unit/test_session_uploader.py64def test_personal_token_env_takes_precedence_for_hf_token(monkeypatch):CODE
LOWtests/unit/test_session_uploader.py71def test_update_upload_status_preserves_other_uploader_fields(tmp_path):CODE
LOWtests/unit/test_session_uploader.py102def test_claude_code_jsonl_uses_message_timestamps():CODE
LOWtests/unit/test_session_uploader.py136def test_row_payload_scrubs_messages_events_and_tools(tmp_path):CODE
LOWtests/unit/test_session_uploader.py161def test_row_payload_includes_usage_scalars_and_parseable_metrics(tmp_path):CODE
LOWtests/unit/test_session_uploader.py222def test_claude_code_payload_scrubs_messages_before_conversion(tmp_path):CODE
LOWtests/unit/test_session_uploader.py268def test_claude_code_payload_ignores_usage_metrics(tmp_path):CODE
LOWtests/unit/test_cli_new_clear.py53def test_start_new_conversation_rotates_session_state(monkeypatch):CODE
LOWtests/unit/test_cli_new_clear.py101async def test_new_submission_resets_context_and_reports_clear_flag():CODE
LOWtests/unit/test_cli_new_clear.py122async def test_new_and_clear_slash_commands_share_operation_with_distinct_clear_flags():CODE
LOWtests/unit/test_web_search_tool.py19def test_web_search_extracts_duckduckgo_results_and_filters_domains(monkeypatch):CODE
LOWtests/unit/test_web_search_tool.py65def test_web_search_decodes_duckduckgo_redirects():CODE
LOWtests/unit/test_web_search_tool.py83def test_web_search_generic_fallback_dedupes_and_rejects_bad_base_url(monkeypatch):CODE
LOWtests/unit/test_web_search_tool.py114async def test_web_search_handler_returns_pretty_json(monkeypatch):CODE
LOWtests/unit/test_web_search_tool.py163def test_web_search_is_registered_for_llm():CODE
LOWtests/unit/test_session_persistence.py16async def test_noop_store_keeps_local_cli_and_tests_db_free():CODE
LOWtests/unit/test_session_persistence.py33def test_unsafe_message_payload_is_replaced_with_marker():CODE
LOW⚡tests/unit/test_session_persistence.py100async def test_mark_pro_seen_returns_none_when_unknown_user_starts_pro():CODE
LOW⚡tests/unit/test_session_persistence.py107async def test_mark_pro_seen_emits_conversion_after_seeing_user_as_free():CODE
LOW⚡tests/unit/test_session_persistence.py117async def test_mark_pro_seen_only_fires_conversion_once():CODE
LOWtests/unit/test_session_persistence.py128async def test_noop_store_mark_pro_seen_returns_none():CODE
LOWtests/unit/test_session_persistence.py176def _store_with_fake_usage_db(*, sessions, events) -> MongoSessionStore:CODE
LOWtests/unit/test_session_persistence.py184async def test_load_usage_events_scopes_mongo_queries_to_current_user_and_window():CODE
LOWtests/unit/test_session_persistence.py219async def test_load_usage_events_dev_mode_uses_requested_session_without_user_filter():CODE
619 more matches not shown…
Decorative Section Separators139 hits · 436 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/theme.ts3// ── Shared tokens ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/theme.ts34// ── Dark palette ─────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/theme.ts71// ── Light palette ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/theme.ts108// ── Shared CSS baseline (scrollbar, code, brand-logo) ────────────COMMENT
MEDIUMfrontend/src/theme.ts175// ── Theme builders ───────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1100 // ── Batch approval state ──────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1112 // ── Panel lock state (for auto-follow vs user-selected) ───────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1193 // ── Send all decisions as a single batch ──────────────────────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1262 // ── Show tool panel (shared logic) ────────────────────────────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1328 // ── Panel click handler ───────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1346 // ── Auto-follow currently active tool when not locked ─────────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1373 // ── Parse hf_jobs metadata from output ────────────────────────────COMMENT
MEDIUMfrontend/src/components/Chat/ToolCallGroup.tsx1384 // ── Render ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/CodePanel/CodePanel.tsx22// ── Helpers ──────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/CodePanel/CodePanel.tsx30// ── Markdown styles (adapts via CSS vars) ────────────────────────COMMENT
MEDIUMfrontend/src/components/CodePanel/CodePanel.tsx89// ── View toggle button ──────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/CodePanel/CodePanel.tsx128// ── Component ────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/CodePanel/CodePanel.tsx236 // ── Syntax-highlighted code block (DRY) ────────────────────────COMMENT
MEDIUMfrontend/src/components/CodePanel/CodePanel.tsx255 // ── Content renderer ───────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts111 // ── Per-session state map ───────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts115 // ── Flat state (mirrors active session — UI reads from here) ────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts154 // ── Per-session actions ─────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts168 // ── Global actions (not per-session) ────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts310 // ── Per-session state management ──────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts395 // ── Global flags ──────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts408 // ── Panel (single-artifact) ───────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts453 // ── Plan ──────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts460 // ── Edited scripts ────────────────────────────────────────────────COMMENT
MEDIUM⚡frontend/src/store/agentStore.ts472 // ── Job URLs ────────────────────────────────────────────────────────COMMENT
MEDIUM⚡frontend/src/store/agentStore.ts482 // ── Job Statuses ────────────────────────────────────────────────────COMMENT
MEDIUM⚡frontend/src/store/agentStore.ts492 // ── Trackio Dashboards ──────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts512 // ── Tool Errors ─────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts529 // ── Tool Rejections ──────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts541 // ── Tool Budget Blocks ───────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_persistence.py40# ── mark_pro_seen ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_persistence.py134# ── load_usage_events ────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py175# ── Reaper happy path ───────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py210# ── Spared sessions ─────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py245# ── Submit / reap race ──────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py283# ── Turn-finish timestamp ───────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py324# ── Global reservation race (Part B) ────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py370# ── Per-user concurrent cap interacts with reclaimed slots (Part E) ──────COMMENT
MEDIUMtests/unit/test_session_reaper.py406# ── Persistence safety (resumability invariant) ──────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py481# ── Reap / restore race ──────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_session_reaper.py532# ── Shutdown safety (cancellation must propagate) ────────────────────────COMMENT
MEDIUM⚡tests/unit/test_llm_error_classification.py27# ── context overflow ────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_llm_error_classification.py49# ── rate limit ──────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_llm_error_classification.py74# ── retry schedule selection ────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_compaction_loop_break.py44# ── helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_compaction_loop_break.py68# ── _truncate_oversized ────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_compaction_loop_break.py135# ── compact() raises CompactionFailedError ─────────────────────────────COMMENT
MEDIUMtests/unit/test_compaction_loop_break.py295# ── _compact_and_notify behavior on CompactionFailedError ──────────────COMMENT
MEDIUM⚡tests/unit/test_doom_loop.py40# ── _normalize_args / _hash_args ────────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_doom_loop.py96# ── extract_recent_tool_signatures ──────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_doom_loop.py127# ── detect_identical_consecutive ────────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_doom_loop.py167# ── detect_repeating_sequence ───────────────────────────────────────────COMMENT
MEDIUM⚡tests/unit/test_doom_loop.py198# ── check_for_doom_loop ─────────────────────────────────────────────────COMMENT
MEDIUMbackend/session_manager.py181# ── Capacity limits ─────────────────────────────────────────────────COMMENT
MEDIUMbackend/session_manager.py192# ── Idle-session reaper ─────────────────────────────────────────────COMMENT
MEDIUMbackend/session_manager.py1279 # ── Capacity checks ──────────────────────────────────────────COMMENT
79 more matches not shown…
Excessive Try-Catch Wrapping201 hits · 191 pts
SeverityFileLineSnippetContext
LOW⚡backend/session_manager.py913 except Exception as e:CODE
LOWbackend/session_manager.py105 except Exception as e:CODE
LOWbackend/session_manager.py392 except Exception as e:CODE
LOWbackend/session_manager.py619 except Exception as e:CODE
LOWbackend/session_manager.py836 except Exception as e:CODE
LOWbackend/session_manager.py967 except Exception as e:CODE
LOWbackend/session_manager.py1051 except Exception as e:CODE
LOWbackend/session_manager.py1149 except Exception as e:CODE
LOWbackend/session_manager.py1380 except Exception as e:CODE
LOWbackend/session_manager.py1392 except Exception as e:CODE
LOWbackend/session_manager.py1418 except Exception as e:CODE
LOWbackend/session_manager.py1431 except Exception:CODE
LOWbackend/session_manager.py1444 except Exception as e:CODE
LOWbackend/session_manager.py1486 except Exception as e:CODE
LOWbackend/session_manager.py1522 except Exception as e:CODE
LOWbackend/session_manager.py1560 except Exception as e:CODE
LOWbackend/session_manager.py1603 except Exception as e:CODE
LOWbackend/session_manager.py1714 except Exception as e:CODE
LOWbackend/session_manager.py1741 except Exception as e:CODE
LOWbackend/session_manager.py1913 except Exception as e:CODE
LOWbackend/main.py43 except Exception as e:CODE
LOWbackend/main.py58 except Exception as e:CODE
LOWbackend/main.py67 except Exception as e:CODE
LOWbackend/main.py81 except Exception as e:CODE
LOWbackend/kpis_scheduler.py84 except Exception as e:CODE
LOW⚡backend/routes/agent.py407 except Exception:CODE
LOW⚡backend/routes/agent.py412 except Exception as e:CODE
LOW⚡backend/routes/agent.py419 except Exception:CODE
LOWbackend/routes/agent.py99 except Exception as e:CODE
LOWbackend/routes/agent.py317 except Exception as e:CODE
LOWbackend/routes/agent.py449 except Exception:CODE
LOWbackend/routes/agent.py527 except Exception as e:CODE
LOWbackend/routes/agent.py684 except Exception:CODE
LOWbackend/routes/agent.py914 except Exception:CODE
LOW⚡agent/main.py103 except Exception:CODE
LOWagent/main.py147 except Exception:CODE
LOWagent/main.py198 except Exception:CODE
LOWagent/main.py206 except Exception as e:CODE
LOWagent/main.py853 except Exception as e:CODE
LOWagent/main.py1141 except Exception as e:CODE
LOWagent/main.py1171 except Exception as e:CODE
LOWagent/tools/sandbox_client.py123 except Exception:CODE
LOWagent/tools/sandbox_client.py351 except Exception:CODE
LOWagent/tools/sandbox_client.py390 except Exception as e:CODE
LOWagent/tools/sandbox_client.py425 except Exception as e:CODE
LOWagent/tools/sandbox_client.py439 except Exception as e:CODE
LOWagent/tools/sandbox_client.py466 except Exception as e:CODE
LOWagent/tools/sandbox_client.py590 except Exception:STRING
LOWagent/tools/sandbox_client.py652 except Exception as e:STRING
LOWagent/tools/sandbox_client.py757 except Exception as e:STRING
LOWagent/tools/sandbox_client.py800 except Exception as e:STRING
LOWagent/tools/sandbox_client.py860 except Exception as e:STRING
LOWagent/tools/hf_repo_files_tool.py72 except Exception as e:CODE
LOWagent/tools/hf_repo_files_tool.py359 except Exception as e:CODE
LOWagent/tools/local_tools.py36 except Exception:CODE
LOWagent/tools/local_tools.py85 except Exception:CODE
LOWagent/tools/local_tools.py135 except Exception as e:CODE
LOWagent/tools/local_tools.py150 except Exception as e:CODE
LOWagent/tools/local_tools.py194 except Exception as e:CODE
LOWagent/tools/local_tools.py223 except Exception as e:CODE
141 more matches not shown…
Empty Error Handlers34 hits · 170 pts
SeverityFileLineSnippetContext
HIGHbackend/session_manager.py153except AttributeError:CODE
HIGHbackend/session_manager.py496except AttributeError:CODE
HIGHbackend/session_manager.py1431except Exception:CODE
HIGHbackend/session_manager.py235except asyncio.CancelledError:CODE
HIGHbackend/session_manager.py1724except asyncio.CancelledError:CODE
HIGHbackend/session_manager.py1860except asyncio.CancelledError:CODE
HIGHbackend/kpis_scheduler.py136except RuntimeError:CODE
HIGHbackend/routes/auth.py159except httpx.HTTPError:CODE
HIGHagent/main.py239except OSError:CODE
HIGHagent/main.py1391except KeyboardInterrupt:CODE
HIGHagent/main.py304except asyncio.CancelledError:CODE
HIGHagent/main.py1397except (NotImplementedError, RuntimeError):CODE
HIGHagent/tools/sandbox_client.py590except Exception:CODE
HIGHagent/tools/local_tools.py85except Exception:CODE
HIGHagent/tools/local_tools.py63except OSError:CODE
HIGHagent/tools/github_list_repos.py106except Exception:CODE
HIGHagent/tools/sandbox_tool.py557except Exception:CODE
HIGHagent/tools/github_read_file.py136except Exception:CODE
HIGHagent/tools/dataset_tools.py94except Exception:CODE
HIGHagent/tools/research_tool.py351except Exception:CODE
HIGHagent/core/session_persistence.py48except (InvalidDocument, OverflowError):CODE
HIGHagent/core/agent_loop.py2463except asyncio.CancelledError:CODE
HIGHagent/core/agent_loop.py1783except asyncio.CancelledError:CODE
HIGHagent/core/yolo_budget.py363except Exception:CODE
HIGHagent/core/session_uploader.py621except Exception:CODE
HIGHagent/core/session_uploader.py576except Exception:CODE
HIGHagent/core/session_uploader.py538except Exception:CODE
HIGHagent/core/hf_router_catalog.py125except Exception:CODE
HIGHagent/messaging/gateway.py59except asyncio.CancelledError:CODE
HIGHscripts/build_sft.py141except Exception:CODE
HIGHscripts/build_kpis.py621except Exception:CODE
HIGHscripts/prioritize_backlog.py1254except json.JSONDecodeError:CODE
HIGHscripts/prioritize_backlog.py1261except json.JSONDecodeError:CODE
HIGHscripts/prioritize_backlog.py1269except json.JSONDecodeError:CODE
Unused Imports48 hits · 46 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_kpis_scheduler.py10CODE
LOWtests/unit/test_session_reaper.py8CODE
LOWtests/unit/test_compaction_loop_break.py28CODE
LOWtests/unit/test_session_manager_persistence.py3CODE
LOWtests/integration/test_live_thinking_models.py8CODE
LOWtests/integration/test_live_sandbox_auth.py9CODE
LOWbackend/kpis_scheduler.py24CODE
LOWagent/__init__.py17CODE
LOWagent/tools/trackio_seed.py21CODE
LOWagent/tools/sandbox_client.py37CODE
LOWagent/tools/local_tools.py9CODE
LOWagent/tools/__init__.py5CODE
LOWagent/tools/__init__.py5CODE
LOWagent/tools/__init__.py9CODE
LOWagent/tools/__init__.py9CODE
LOWagent/tools/__init__.py13CODE
LOWagent/tools/__init__.py13CODE
LOWagent/tools/__init__.py17CODE
LOWagent/tools/__init__.py17CODE
LOWagent/tools/__init__.py21CODE
LOWagent/tools/__init__.py21CODE
LOWagent/tools/__init__.py21CODE
LOWagent/tools/__init__.py22CODE
LOWagent/tools/__init__.py23CODE
LOWagent/tools/__init__.py23CODE
LOWagent/tools/sandbox_tool.py12CODE
LOWagent/tools/web_search_tool.py8CODE
LOWagent/tools/edit_utils.py8CODE
LOWagent/core/effort_probe.py21CODE
LOWagent/core/session_resume.py3CODE
LOWagent/core/session_persistence.py8CODE
LOWagent/core/__init__.py6CODE
LOWagent/core/__init__.py6CODE
LOWagent/core/__init__.py6CODE
LOWagent/core/telemetry.py17CODE
LOWagent/core/redact.py10CODE
LOWagent/core/model_switcher.py16CODE
LOWagent/core/hf_access.py9CODE
LOWagent/core/hf_tokens.py3CODE
LOWagent/context_manager/__init__.py5CODE
LOWagent/sft/tagger.py28CODE
LOWagent/messaging/__init__.py1CODE
LOWagent/messaging/__init__.py2CODE
LOWagent/messaging/__init__.py2CODE
LOWagent/messaging/__init__.py2CODE
LOWagent/messaging/__init__.py2CODE
LOWscripts/build_sft.py34CODE
LOWscripts/build_kpis.py91CODE
Deep Nesting55 hits · 44 pts
SeverityFileLineSnippetContext
LOWbackend/session_manager.py500CODE
LOWbackend/session_manager.py1565CODE
LOWbackend/session_manager.py1659CODE
LOWbackend/usage.py186CODE
LOWbackend/routes/agent.py284CODE
LOWagent/main.py364CODE
LOWagent/main.py925CODE
LOWagent/main.py1179CODE
LOWagent/main.py1423CODE
LOWagent/tools/sandbox_client.py806CODE
LOWagent/tools/github_list_repos.py15CODE
LOWagent/tools/docs_tools.py434CODE
LOWagent/tools/docs_tools.py673CODE
LOWagent/tools/sandbox_tool.py589CODE
LOWagent/tools/github_read_file.py20CODE
LOWagent/tools/github_read_file.py67CODE
LOWagent/tools/hf_repo_git_tool.py294CODE
LOWagent/tools/papers_tool.py62CODE
LOWagent/tools/papers_tool.py128CODE
LOWagent/tools/papers_tool.py698CODE
LOWagent/tools/jobs_tool.py322CODE
LOWagent/tools/jobs_tool.py417CODE
LOWagent/tools/jobs_tool.py528CODE
LOWagent/tools/edit_utils.py159CODE
LOWagent/tools/research_tool.py278CODE
LOWagent/core/effort_probe.py153CODE
LOWagent/core/session_resume.py38CODE
LOWagent/core/session_resume.py169CODE
LOWagent/core/tools.py64CODE
LOWagent/core/agent_loop.py832CODE
LOWagent/core/agent_loop.py937CODE
LOWagent/core/agent_loop.py1115CODE
LOWagent/core/agent_loop.py2624CODE
LOWagent/core/agent_loop.py1326CODE
LOWagent/core/session.py279CODE
LOWagent/core/session.py573CODE
LOWagent/core/doom_loop.py59CODE
LOWagent/core/cost_estimation.py171CODE
LOWagent/core/session_uploader.py106CODE
LOWagent/core/session_uploader.py140CODE
LOWagent/core/session_uploader.py459CODE
LOWagent/core/usage_metrics.py243CODE
LOWagent/utils/braille.py102CODE
LOWagent/utils/terminal_display.py325CODE
LOWagent/utils/terminal_display.py346CODE
LOWagent/utils/particle_logo.py63CODE
LOWagent/utils/crt_boot.py27CODE
LOWagent/sft/tagger.py181CODE
LOWagent/messaging/gateway.py126CODE
LOWscripts/build_sft.py63CODE
LOWscripts/build_kpis.py167CODE
LOWscripts/build_kpis.py228CODE
LOWscripts/prioritize_backlog.py469CODE
LOWscripts/prioritize_backlog.py937CODE
LOWscripts/prioritize_backlog.py1030CODE
Modern Structural Boilerplate40 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_session_manager_persistence.py112 async def update_session_fields(self, session_id: str, **fields: Any) -> None:CODE
LOWtests/unit/test_session_resume.py73 def update_model(self, model_name: str) -> None:CODE
LOWbackend/session_manager.py65logger = logging.getLogger(__name__)CODE
LOWbackend/session_manager.py1877 async def update_session_title(self, session_id: str, title: str | None) -> None:CODE
LOWbackend/main.py27logger = logging.getLogger(__name__)CODE
LOWbackend/kpis_scheduler.py34logger = logging.getLogger(__name__)CODE
LOWbackend/usage.py20logger = logging.getLogger(__name__)CODE
LOWbackend/dependencies.py21logger = logging.getLogger(__name__)CODE
LOWbackend/routes/auth.py26logger = logging.getLogger(__name__)CODE
LOWbackend/routes/agent.py70logger = logging.getLogger(__name__)CODE
LOWagent/__init__.py19__all__ = ["submission_loop"]CODE
LOWagent/main.py62logger = logging.getLogger(__name__)CODE
LOWagent/tools/__init__.py25__all__ = [CODE
LOW⚡agent/tools/sandbox_tool.py296async def _update_persisted_sandbox_fields(session: Any, **fields: Any) -> None:CODE
LOWagent/tools/sandbox_tool.py36logger = logging.getLogger(__name__)CODE
LOWagent/tools/jobs_tool.py35logger = logging.getLogger(__name__)CODE
LOWagent/tools/research_tool.py29logger = logging.getLogger(__name__)CODE
LOWagent/core/effort_probe.py35logger = logging.getLogger(__name__)CODE
LOWagent/core/session_resume.py19logger = logging.getLogger(__name__)CODE
LOWagent/core/session_persistence.py19logger = logging.getLogger(__name__)CODE
LOWagent/core/session_persistence.py86 async def update_session_fields(self, *_: Any, **__: Any) -> None:CODE
LOWagent/core/session_persistence.py347 async def update_session_fields(self, session_id: str, **fields: Any) -> None:CODE
LOWagent/core/tools.py59logger = logging.getLogger(__name__)CODE
LOWagent/core/agent_loop.py64logger = logging.getLogger(__name__)CODE
LOW⚡agent/core/session.py238 def set_notification_destinations(self, destinations: list[str]) -> None:CODE
LOWagent/core/session.py25logger = logging.getLogger(__name__)CODE
LOWagent/core/session.py374 def update_model(self, model_name: str) -> None:CODE
LOWagent/core/hub_artifacts.py17logger = logging.getLogger(__name__)CODE
LOWagent/core/__init__.py8__all__ = [CODE
LOWagent/core/telemetry.py26logger = logging.getLogger(__name__)CODE
LOWagent/core/doom_loop.py15logger = logging.getLogger(__name__)CODE
LOWagent/core/yolo_budget.py51def _set_session_spend(session: Any, amount_usd: float) -> None:CODE
LOWagent/core/hf_router_catalog.py24logger = logging.getLogger(__name__)CODE
LOWagent/context_manager/__init__.py7__all__ = ["ContextManager"]CODE
LOWagent/context_manager/manager.py22logger = logging.getLogger(__name__)CODE
LOWagent/utils/braille.py33 def set_pixel(self, x: int, y: int) -> None:CODE
LOWagent/utils/terminal_display.py217 def set_tokens(self, agent_id: str, tokens: int) -> None:CODE
LOWagent/utils/terminal_display.py221 def set_tool_count(self, agent_id: str, count: int) -> None:CODE
LOWagent/messaging/gateway.py19logger = logging.getLogger(__name__)CODE
LOWagent/messaging/__init__.py9__all__ = [CODE
Cross-Language Confusion8 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtests/unit/test_doom_loop_polling.py5long-running job with `bash sleep 300 && wc -l output` four times in aSTRING
HIGHtests/unit/test_doom_loop_polling.py38_POLL_ARGS = '{"command": "sleep 300 && ls /app/images/ | wc -l"}'CODE
HIGHtests/unit/test_hub_artifacts.py394 "pip install -q datasets huggingface_hub && python -c "STRING
HIGHagent/tools/sandbox_client.py965 " kill -0 <PID> 2>/dev/null && echo 'running' || echo 'done'\n"STRING
HIGHagent/tools/local_tools.py132 f" kill -0 <PID> 2>/dev/null && echo 'running' || echo 'done'\n"CODE
HIGHagent/tools/local_tools.py270 " kill -0 <PID> 2>/dev/null && echo 'running' || echo 'done'\n"CODE
HIGHagent/core/hub_artifacts.py753 '_ml_intern_artifacts_dir="$(mktemp -d 2>/dev/null)" 'CODE
HIGHagent/core/session_uploader.py146 "uuid":"...","parentUuid":null,"sessionId":"...","timestamp":"..."}STRING
Redundant / Tautological Comments11 hits · 19 pts
SeverityFileLineSnippetContext
LOWbackend/start.sh13 # Check if this was a port-in-use failure (another instance already running)COMMENT
LOWagent/main.py582 # Check if this is Python mode (script) or Docker mode (command)COMMENT
LOWagent/tools/github_list_repos.py137 # Check if we got fewer results than requested (last page)COMMENT
LOWagent/tools/github_read_file.py147 # Check if it's a fileCOMMENT
LOWagent/tools/jobs_tool.py445 # Push line to queue thread-safelyCOMMENT
LOWagent/tools/github_find_examples.py186 # Check if file is in examples/ directory (highest priority)COMMENT
LOWagent/tools/github_find_examples.py195 # Check if pattern appears as a directory component in the pathCOMMENT
LOW⚡agent/core/tools.py252 # Check if this is a built-in tool with a handlerCOMMENT
LOW⚡agent/core/tools.py257 # Check if handler accepts session argumentCOMMENT
LOW⚡agent/core/tools.py260 # Check if handler also accepts tool_call_id parameterCOMMENT
LOWagent/core/agent_loop.py278 # Check if this is a CPU-only jobCOMMENT
AI Structural Patterns7 hits · 6 pts
SeverityFileLineSnippetContext
LOWagent/tools/sandbox_client.py543CODE
LOWagent/core/session_persistence.py166CODE
LOWagent/core/session_persistence.py227CODE
LOWagent/core/agent_loop.py2624CODE
LOWagent/core/session.py103CODE
LOWagent/core/redact.py51CODE
LOWagent/context_manager/manager.py196CODE
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWagent/tools/github_find_examples.py311 # Step 1: Filter files by example patterns (score >= 60)COMMENT
LOWagent/tools/github_find_examples.py326 # Step 2: If keyword provided, score and filter by keywordCOMMENT
LOWagent/prompts/system_prompt_v2.yaml53 ### Step 1: Create Execution PlanCOMMENT
LOWagent/prompts/system_prompt_v2.yaml77 ### Step 2: Discover & Validate ResourcesCOMMENT
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWagent/tools/github_find_examples.py311 # Step 1: Filter files by example patterns (score >= 60)COMMENT
LOWagent/tools/github_find_examples.py326 # Step 2: If keyword provided, score and filter by keywordCOMMENT
LOWagent/prompts/system_prompt_v2.yaml53 ### Step 1: Create Execution PlanCOMMENT
LOWagent/prompts/system_prompt_v2.yaml77 ### Step 2: Discover & Validate ResourcesCOMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_thinking_history.py110CODE
MEDIUMtests/unit/test_thinking_history.py219CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMagent/core/agent_loop.py2263 # Create a map of tool_call_id -> approval decisionCOMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbackend/session_manager.py1161 # recreates files/packages instead of assuming /app/train.py et al. stillCOMMENT
LOWagent/context_manager/manager.py581 idx = len(self.items) - self.untouched_messagesCOMMENT