Repository Analysis

huggingface/ml-intern

🤗 ml-intern: an open-source ML engineer that reads papers, trains models, and ships ML models

23.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of huggingface/ml-intern, a Python project with 10,644 GitHub stars. SynthScan v2.0 examined 65,192 lines of code across 193 source files, recording 1198 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 23.2 places this repository in the Moderate 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).

23.2
Adjusted Score
23.2
Raw Score
100%
Time Factor
2026-07-09
Last Push
10.6K
Stars
Python
Language
65.2K
Lines of Code
193
Files
1.2K
Pattern Hits
2026-07-14
Scan Date
0.04
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 0HIGH 8MEDIUM 148LOW 1042

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 1198 distinct pattern matches across 14 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 Identifiers676 hits · 678 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
LOWtests/unit/test_cli_rendering.py21def test_router_anthropic_research_model_is_unchanged():CODE
LOWtests/unit/test_cli_rendering.py28def test_non_anthropic_research_model_is_unchanged():CODE
LOWtests/unit/test_cli_rendering.py32def test_huggingface_prefix_research_model_strips_prefix():CODE
LOWtests/unit/test_cli_rendering.py39def test_hf_router_openai_research_model_is_unchanged():CODE
LOWtests/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_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
LOWtests/unit/test_session_persistence.py100async def test_mark_pro_seen_returns_none_when_unknown_user_starts_pro():CODE
LOWtests/unit/test_session_persistence.py107async def test_mark_pro_seen_emits_conversion_after_seeing_user_as_free():CODE
LOWtests/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
LOWtests/unit/test_sandbox_script_resolution.py23async def test_resolve_sandbox_script_accepts_bare_python_filename():CODE
LOWtests/unit/test_sandbox_script_resolution.py34async def test_resolve_sandbox_script_accepts_relative_python_path():CODE
LOWtests/unit/test_sandbox_script_resolution.py54async def test_resolve_sandbox_script_ignores_non_path_scripts(script):CODE
616 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
MEDIUMfrontend/src/store/agentStore.ts472 // ── Job URLs ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/store/agentStore.ts482 // ── Job Statuses ────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/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
MEDIUMtests/unit/test_llm_error_classification.py27# ── context overflow ────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_llm_error_classification.py49# ── rate limit ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_llm_error_classification.py74# ── retry schedule selection ────────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_compaction_loop_break.py44# ── helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/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
MEDIUMtests/unit/test_doom_loop.py40# ── _normalize_args / _hash_args ────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_doom_loop.py96# ── extract_recent_tool_signatures ──────────────────────────────────────COMMENT
MEDIUMtests/unit/test_doom_loop.py127# ── detect_identical_consecutive ────────────────────────────────────────COMMENT
MEDIUMtests/unit/test_doom_loop.py167# ── detect_repeating_sequence ───────────────────────────────────────────COMMENT
MEDIUMtests/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 · 192 pts
SeverityFileLineSnippetContext
LOWbackend/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
LOWbackend/routes/agent.py407 except Exception:CODE
LOWbackend/routes/agent.py412 except Exception as e:CODE
LOWbackend/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
LOWagent/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…
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 · 46 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
LOWagent/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
LOWagent/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.sh12 # 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
LOWagent/core/tools.py252 # Check if this is a built-in tool with a handlerCOMMENT
LOWagent/core/tools.py257 # Check if handler accepts session argumentCOMMENT
LOWagent/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