Repository Analysis

microsoft/SkillOpt

SkillOpt is a text-space optimizer that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits, validation-gated updates, and deployable best_skill.md artifacts.

21.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/SkillOpt, a Python project with 12,703 GitHub stars. SynthScan v2.0 examined 71,716 lines of code across 309 source files, recording 1073 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 21.9 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).

21.9
Adjusted Score
21.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
12.7K
Stars
Python
Language
71.7K
Lines of Code
309
Files
1.1K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

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

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 4MEDIUM 226LOW 843

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 1073 distinct pattern matches across 13 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.

Decorative Section Separators220 hits · 694 pts
SeverityFileLineSnippetContext
MEDIUMrequirements.txt1# ── Core ──────────────────────────────────────────COMMENT
MEDIUMrequirements.txt10# ── Optional: ALFWorld benchmark ──────────────────COMMENT
MEDIUMrequirements.txt14# ── Optional: Claude model backend ────────────────COMMENT
MEDIUMrequirements.txt17# ── Optional: Qwen local model (via vLLM) ────────COMMENT
MEDIUMrequirements.txt26# ── Optional: WebUI dashboard ────────────────────COMMENT
MEDIUMrequirements.txt29# ── Optional: Documentation site ─────────────────COMMENT
MEDIUMskillopt_webui/app.py28# ─── Config helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMskillopt_webui/app.py174# ─── Training process management ────────────────────────────────────────────COMMENT
MEDIUMskillopt_webui/app.py435# ─── Pipeline Stage HTML ────────────────────────────────────────────────────COMMENT
MEDIUMskillopt_webui/app.py466# ─── Gradio UI ──────────────────────────────────────────────────────────────COMMENT
MEDIUMskillopt_webui/app.py478 # ── Tab 1: Configure & Launch ────────────────────────────COMMENT
MEDIUMskillopt_webui/app.py554 # ── Tab 2: Monitor ───────────────────────────────────────COMMENT
MEDIUMskillopt_webui/app.py585 # ── Tab 3: Results ───────────────────────────────────────COMMENT
MEDIUMplugins/devin/harvest_devin.py44# ── cross-platform path resolution (Linux + Windows + macOS) ──────────────────COMMENT
MEDIUMplugins/devin/harvest_devin.py104# ── workspace auto-detection ─────────────────────────────────────────────────COMMENT
MEDIUMplugins/devin/harvest_devin.py149# ── helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/devin/harvest_devin.py213# ── task identity + outcome extraction (fuel for the validation gate) ─────────COMMENT
MEDIUMplugins/devin/harvest_devin.py331# ── source 1: Devin ATIF-v1.7 transcripts ────────────────────────────────────COMMENT
MEDIUMplugins/devin/harvest_devin.py412# ── source 2: agentmemory ─────────────────────────────────────────────────────COMMENT
MEDIUMplugins/devin/harvest_devin.py438# ── source 3: skill files (.devin/skills) ─────────────────────────────────────COMMENT
MEDIUMplugins/devin/harvest_devin.py473# ── main ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/claude-code/scripts/install-cron.sh17# ── SkillOpt-Sleep nightly cycle ────────────────────────────────────────────COMMENT
MEDIUMplugins/claude-code/scripts/install-cron.sh29# ────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMplugins/openclaw/skillopt_sleep_openclaw.py84# ── Backend implementation ────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_scheduler.py34# ── ConstantScheduler ────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_scheduler.py79# ── LinearScheduler ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_scheduler.py165# ── CosineScheduler ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_scheduler.py267# ── AutonomousScheduler ──────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_scheduler.py298# ── build_scheduler factory ──────────────────────────────────────────────────COMMENT
MEDIUMtests/test_scheduler.py332# ── Abstract base class ──────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_types.py8# ── Edit ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_types.py140# ── Patch ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_types.py251# ── RolloutResult ────────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/guide/new-benchmark.md239 # ── Lifecycle ───────────────────────────────────────────────────────COMMENT
MEDIUMdocs/guide/new-benchmark.md248 # ── Env construction ────────────────────────────────────────────────COMMENT
MEDIUMdocs/guide/new-benchmark.md266 # ── The rollout method (reflect is inherited) ───────────────────────COMMENT
MEDIUMdocs/sleep/examples/runner.py32# ----------------------------------------------------------------------------COMMENT
MEDIUMdocs/reference/api.md30 # ── Lifecycle hooks (have defaults; override only if needed) ────────COMMENT
MEDIUMdocs/reference/api.md40 # ── Abstract methods (subclasses MUST implement) ────────────────────COMMENT
MEDIUMconfigs/features/soft_gate.yaml1# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/features/soft_gate.yaml3# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/features/soft_gate.yaml33# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/run_spreadsheetbench.sh2# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/run_spreadsheetbench.sh8# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/run_searchqa.sh2# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/run_searchqa.sh9# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/eval_only.py45# ── Reuse registry from train.py ───────────────────────────────────────────COMMENT
MEDIUMscripts/eval_only.py125# ── CLI ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/train.py34# ── Environment registry ────────────────────────────────────────────────────COMMENT
MEDIUMscripts/train.py121# ── CLI ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/train.py510# ── Main ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/run_alfworld.sh2# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/run_alfworld.sh13# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMskillopt_sleep/handoff_backend.py83 # ── prompt/answer plumbing ────────────────────────────────────────────COMMENT
MEDIUMskillopt_sleep/handoff_backend.py103 # ── handoff file emission ─────────────────────────────────────────────COMMENT
MEDIUMskillopt_sleep/cycle.py126 # ── live skill/memory docs ───────────────────────────────────────────COMMENT
MEDIUMskillopt_sleep/cycle.py144 # ── 1+2. harvest + mine (unless seed_tasks injected) ─────────────────COMMENT
MEDIUMskillopt_sleep/cycle.py223 # ── 3+4. replay + consolidate (gate), with opt-in dream + recall ──────COMMENT
MEDIUMskillopt_sleep/cycle.py266 # ── 5. stage (unless dry-run) ────────────────────────────────────────COMMENT
MEDIUMskillopt_sleep/cycle.py317 # ── 6. adopt (opt-in) ────────────────────────────────────────────COMMENT
160 more matches not shown…
Hyper-Verbose Identifiers330 hits · 338 pts
SeverityFileLineSnippetContext
LOWplugins/devin/harvest_devin.py67def _devin_transcript_candidates() -> List[str]:CODE
LOWplugins/devin/harvest_devin.py106def _workspaces_from_registry(storage_root: str) -> List[tuple]:CODE
LOWplugins/devin/harvest_devin.py333def harvest_devin_transcripts(CODE
LOWtests/test_json_utils.py47 def test_no_json_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py50 def test_empty_string_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py53 def test_malformed_json_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py59 def test_json_with_escaped_chars(self) -> None:CODE
LOWtests/test_json_utils.py63 def test_only_fence_with_no_json_syntax(self) -> None:CODE
LOWtests/test_json_utils.py75 def test_two_top_level_objects(self) -> None:CODE
LOWtests/test_json_utils.py78 def test_brace_inside_quoted_prose_is_ignored(self) -> None:CODE
LOWtests/test_json_utils.py83 def test_real_object_after_quoted_brace(self) -> None:CODE
LOWtests/test_json_utils.py95 def test_two_top_level_arrays(self) -> None:CODE
LOWtests/test_json_utils.py98 def test_array_inside_object_is_ignored(self) -> None:CODE
LOWtests/test_json_utils.py101 def test_bracket_inside_quoted_prose_is_ignored(self) -> None:CODE
LOWtests/test_json_utils.py104 def test_unmatched_prose_brace_does_not_hide_later_array(self) -> None:CODE
LOWtests/test_json_utils.py108 def test_many_unmatched_braces_scan_linearly(self) -> None:CODE
LOWtests/test_json_utils.py145 def test_json_string_values_with_quotes_still_repair(self) -> None:CODE
LOWtests/test_json_utils.py152 def test_no_warning_on_quoted_prose(self, recwarn: pytest.WarningsRecorder) -> None:CODE
LOWtests/test_json_utils.py159 def test_no_warning_on_plain_text(self, recwarn: pytest.WarningsRecorder) -> None:CODE
LOWtests/test_json_utils.py165 def test_trailing_comma_repaired_when_available(self) -> None:CODE
LOWtests/test_json_utils.py170 def test_two_malformed_objects_too_ambiguous(self) -> None:CODE
LOWtests/test_json_utils.py205 def test_no_array_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py208 def test_empty_string_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py211 def test_malformed_array_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py221 def test_object_not_confused_with_array(self) -> None:CODE
LOWtests/test_json_utils.py226 def test_ignores_prose_brackets_before_valid_array(self) -> None:CODE
LOWtests/test_json_utils.py230 def test_multiple_valid_arrays_are_ambiguous(self) -> None:CODE
LOWtests/test_json_utils.py234 def test_nested_object_array_not_confused_with_array_answer(self) -> None:CODE
LOWtests/test_json_utils.py238 def test_unmatched_prose_brace_before_valid_array(self) -> None:CODE
LOWtests/test_json_utils.py25 def test_code_fence_takes_precedence(self) -> None:CODE
LOWtests/test_json_utils.py33 def test_broken_fence_falls_back_to_bare(self) -> None:CODE
LOWtests/test_json_utils.py127 def test_prose_pseudo_json_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py133 def test_single_quoted_and_backticked_prose_returns_none(self) -> None:CODE
LOWtests/test_json_utils.py187 def test_code_fence_takes_precedence(self) -> None:CODE
LOWtests/test_json_utils.py194 def test_broken_fence_falls_back_to_bare(self) -> None:CODE
LOWtests/test_sleep_engine.py44 def test_protected_region_roundtrip(self):CODE
LOWtests/test_sleep_engine.py72 def test_digest_real_transcript_if_present(self):CODE
LOWtests/test_sleep_engine.py98 def test_digest_codex_archived_session_sanitizes_and_skips_meta(self):CODE
LOWtests/test_sleep_engine.py139 def test_harvest_codex_filters_project_and_cli_source(self):CODE
LOWtests/test_sleep_engine.py184 def test_cli_exposes_limits_progress_and_target_skill_path(self):CODE
LOWtests/test_sleep_engine.py219 def test_cli_report_payload_includes_rejected_edits(self):CODE
LOWtests/test_sleep_engine.py236 def test_tasks_file_roundtrip_and_split_assignment(self):CODE
LOWtests/test_sleep_engine.py259 def test_cfg_uses_tasks_file_target_skill_path_metadata(self):CODE
LOWtests/test_sleep_engine.py289 def test_cmd_run_uses_tasks_file_without_harvest(self):CODE
LOWtests/test_sleep_engine.py344 def test_cmd_run_refuses_unreviewed_tasks_file_for_real_backend(self):CODE
LOWtests/test_sleep_engine.py403 def test_split_stable_and_nonempty(self):CODE
LOWtests/test_sleep_engine.py412 def test_dream_never_in_val_or_test(self):CODE
LOWtests/test_sleep_engine.py428 def test_target_filter_prefers_matching_skill_terms(self):CODE
LOWtests/test_sleep_engine.py721 def test_codex_auth_error_surfaces_not_scored_as_response(self):CODE
LOWtests/test_sleep_engine.py749 def test_codex_attempt_with_tools_surfaces_error_not_silent(self):CODE
LOWtests/test_sleep_engine.py786 def test_budget_exhaustion_and_plan(self):CODE
LOWtests/test_sleep_engine.py798 def test_contrastive_reflect_with_stub(self):CODE
LOWtests/test_sleep_engine.py817 def test_protected_field_roundtrip(self):CODE
LOWtests/test_sleep_engine.py837 def test_run_slow_update_with_stub_backend(self):CODE
LOWtests/test_sleep_engine.py863 def test_tool_called_judge_via_replay(self):CODE
LOWtests/test_sleep_engine.py888 def test_cycle_stage_then_adopt_with_backup(self):CODE
LOWtests/test_sleep_engine.py915 def test_cycle_can_target_repo_scoped_skill_path(self):CODE
LOWtests/test_sleep_engine.py951 def test_parse_jsonl_concatenates_assistant_messages(self):CODE
LOWtests/test_sleep_engine.py962 def test_parse_jsonl_ignores_non_assistant_and_blank(self):CODE
LOWtests/test_sleep_engine.py978 def test_isolated_home_by_default(self):CODE
270 more matches not shown…
Unused Imports200 hits · 196 pts
SeverityFileLineSnippetContext
LOWplugins/devin/harvest_devin.py31CODE
LOWplugins/devin/harvest_devin.py40CODE
LOWplugins/devin/judge.py23CODE
LOWplugins/devin/mcp_server.py21CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py10CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py15CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py16CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py16CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py18CODE
LOWplugins/openclaw/slash_sleep.py16CODE
LOWplugins/openclaw/slash_sleep.py24CODE
LOWplugins/openclaw/run_sleep.py17CODE
LOWplugins/copilot/mcp_server.py18CODE
LOWplugins/copilot/skillopt/mcp_server.py23CODE
LOWtests/test_json_utils.py2CODE
LOWtests/test_sleep_engine.py7CODE
LOWtests/test_sleep_engine.py1338CODE
LOWtests/test_claude_backend_tempdir.py2CODE
LOWtests/test_azure_openai_compat.py14CODE
LOWtests/test_azure_openai_compat.py32CODE
LOWtests/test_scheduler.py20CODE
LOWtests/test_scoring.py2CODE
LOWtests/test_openai_compatible_backend.py3CODE
LOWtests/test_gate.py8CODE
LOWtests/test_semantic_density.py2CODE
LOWtests/test_handoff_backend.py3CODE
LOWtests/test_skill_aware_reflection.py14CODE
LOWtests/test_qwen_backend.py3CODE
LOWtests/test_types.py2CODE
LOWscripts/eval_only.py14CODE
LOWscripts/train.py15CODE
LOWscripts/materialize_searchqa.py3CODE
LOWskillopt_sleep/mine.py15CODE
LOWskillopt_sleep/mine.py21CODE
LOWskillopt_sleep/handoff_backend.py29CODE
LOWskillopt_sleep/cycle.py10CODE
LOWskillopt_sleep/slow_update.py21CODE
LOWskillopt_sleep/slow_update.py23CODE
LOWskillopt_sleep/backend.py21CODE
LOWskillopt_sleep/consolidate.py9CODE
LOWskillopt_sleep/consolidate.py13CODE
LOWskillopt_sleep/config.py12CODE
LOWskillopt_sleep/llm_miner.py19CODE
LOWskillopt_sleep/llm_miner.py21CODE
LOWskillopt_sleep/llm_miner.py22CODE
LOWskillopt_sleep/memory.py8CODE
LOWskillopt_sleep/tasks_file.py2CODE
LOWskillopt_sleep/budget.py8CODE
LOWskillopt_sleep/__init__.py17CODE
LOWskillopt_sleep/dream.py17CODE
LOWskillopt_sleep/types.py9CODE
LOWskillopt_sleep/replay.py10CODE
LOWskillopt_sleep/judges.py20CODE
LOWskillopt_sleep/rollout.py16CODE
LOWskillopt_sleep/rollout.py19CODE
LOWskillopt_sleep/harvest.py16CODE
LOWskillopt_sleep/gate.py9CODE
LOWskillopt_sleep/scheduler.py18CODE
LOWskillopt_sleep/harvest_sources.py2CODE
LOWskillopt_sleep/staging.py8CODE
140 more matches not shown…
Excessive Try-Catch Wrapping140 hits · 130 pts
SeverityFileLineSnippetContext
LOWskillopt_webui/app.py112 except Exception as exc:CODE
LOWskillopt_webui/app.py223 except Exception as e:CODE
LOWskillopt_webui/app.py526 except Exception as e:CODE
LOWskillopt_webui/app.py617 except Exception:CODE
LOWskillopt_webui/app.py627 except Exception:CODE
LOWplugins/devin/harvest_devin.py121 except Exception:CODE
LOWplugins/devin/harvest_devin.py346 except Exception:CODE
LOWplugins/devin/harvest_devin.py377 except Exception:CODE
LOWplugins/devin/judge.py102 except Exception as exc: # network/auth/parse — degrade gracefullyCODE
LOWplugins/devin/mcp_server.py116 except Exception as exc:CODE
LOWplugins/devin/mcp_server.py174 except Exception as e:CODE
LOWplugins/devin/mcp_server.py230 except Exception:CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py62 except Exception as e:CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py80 except Exception:CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py174 except Exception:STRING
LOWplugins/openclaw/skillopt_sleep_openclaw.py273 except Exception as e:STRING
LOWplugins/copilot/mcp_server.py119 except Exception as e:CODE
LOWplugins/copilot/mcp_server.py170 except Exception:CODE
LOWplugins/copilot/skillopt/mcp_server.py95 except Exception as e: # noqa: BLE001CODE
LOWplugins/copilot/skillopt/mcp_server.py219 except Exception:CODE
LOWdocs/sleep/examples/watchdog.py39 except Exception as e:CODE
LOWdocs/sleep/examples/watchdog.py49 except Exception as e:CODE
LOWskillopt_sleep/mine.py303 except Exception:CODE
LOWskillopt_sleep/cycle.py50 except Exception:CODE
LOWskillopt_sleep/cycle.py189 except Exception:CODE
LOWskillopt_sleep/cycle.py309 except Exception:CODE
LOWskillopt_sleep/backend.py268 except Exception:CODE
LOWskillopt_sleep/backend.py410 except Exception:CODE
LOWskillopt_sleep/backend.py637 except Exception as exc:CODE
LOWskillopt_sleep/backend.py648 except Exception:CODE
LOWskillopt_sleep/backend.py706 except Exception as exc:CODE
LOWskillopt_sleep/backend.py723 except Exception:CODE
LOWskillopt_sleep/backend.py755 except Exception:CODE
LOWskillopt_sleep/backend.py814 except Exception as exc:CODE
LOWskillopt_sleep/backend.py822 except Exception as exc:CODE
LOWskillopt_sleep/backend.py838 except Exception:CODE
LOWskillopt_sleep/backend.py927 except Exception as exc: # noqa: BLE001CODE
LOWskillopt_sleep/backend.py933 except Exception:CODE
LOWskillopt_sleep/backend.py952 except Exception:CODE
LOWskillopt_sleep/backend.py1008 except Exception:CODE
LOWskillopt_sleep/backend.py1037 except Exception:CODE
LOWskillopt_sleep/backend.py1043 except Exception:CODE
LOWskillopt_sleep/backend.py1056 except Exception:CODE
LOWskillopt_sleep/backend.py1151 except Exception:CODE
LOWskillopt_sleep/backend.py1163 except Exception:CODE
LOWskillopt_sleep/backend.py1397 except Exception:CODE
LOWskillopt_sleep/backend.py1407 except Exception as e: # noqa: BLE001CODE
LOWskillopt_sleep/backend.py1506 except Exception:CODE
LOWskillopt_sleep/backend.py1511 except Exception as e: # noqa: BLE001CODE
LOWskillopt_sleep/config.py146 except Exception:CODE
LOWskillopt_sleep/config.py158 except Exception:CODE
LOWskillopt_sleep/harvest.py60 except Exception:CODE
LOWskillopt_sleep/scheduler.py38 except Exception:CODE
LOWskillopt_sleep/scheduler.py47 except Exception:CODE
MEDIUMskillopt_sleep/scheduler.py34def _read_crontab() -> str:CODE
LOWskillopt_sleep/__main__.py45 except Exception:CODE
LOWskillopt_sleep/__main__.py261 except Exception:CODE
LOWskillopt_sleep/__main__.py294 except Exception:CODE
LOWskillopt_sleep/state.py50 except Exception:CODE
LOWskillopt_sleep/experiments/gbrain_bench.py49 except Exception:CODE
80 more matches not shown…
Deep Nesting74 hits · 68 pts
SeverityFileLineSnippetContext
LOWskillopt_webui/app.py468CODE
LOWskillopt_webui/app.py253CODE
LOWskillopt_webui/app.py306CODE
LOWskillopt_webui/app.py599CODE
LOWplugins/devin/harvest_devin.py333CODE
LOWplugins/openclaw/skillopt_sleep_openclaw.py25CODE
LOWscripts/eval_only.py209CODE
LOWscripts/train.py380CODE
LOWskillopt_sleep/mine.py137CODE
LOWskillopt_sleep/slow_update.py75CODE
LOWskillopt_sleep/backend.py414CODE
LOWskillopt_sleep/backend.py1064CODE
LOWskillopt_sleep/consolidate.py87CODE
LOWskillopt_sleep/llm_miner.py108CODE
LOWskillopt_sleep/llm_miner.py116CODE
LOWskillopt_sleep/memory.py73CODE
LOWskillopt_sleep/harvest.py51CODE
LOWskillopt_sleep/harvest.py66CODE
LOWskillopt_sleep/harvest.py199CODE
LOWskillopt_sleep/__main__.py380CODE
LOWskillopt_sleep/harvest_codex.py40CODE
LOWskillopt_sleep/harvest_codex.py123CODE
LOWskillopt_sleep/experiments/gbrain_bench.py39CODE
LOWskillopt_sleep/experiments/sweep.py78CODE
LOWskillopt_sleep/experiments/report.py16CODE
LOWskillopt/gradient/aggregate.py70CODE
LOWskillopt/gradient/reflect.py65CODE
LOWskillopt/gradient/reflect.py112CODE
LOWskillopt/gradient/reflect.py472CODE
LOWskillopt/optimizer/slow_update.py111CODE
LOWskillopt/optimizer/slow_update.py159CODE
LOWskillopt/optimizer/slow_update.py240CODE
LOWskillopt/optimizer/clip.py25CODE
LOWskillopt/utils/json_utils.py9CODE
LOWskillopt/utils/json_utils.py74CODE
LOWskillopt/model/azure_openai.py356CODE
LOWskillopt/model/azure_openai.py439CODE
LOWskillopt/model/azure_openai.py575CODE
LOWskillopt/model/claude_backend.py83CODE
LOWskillopt/model/codex_harness.py144CODE
LOWskillopt/model/codex_harness.py320CODE
LOWskillopt/model/codex_harness.py725CODE
LOWskillopt/model/codex_harness.py950CODE
LOWskillopt/model/codex_backend.py104CODE
LOWskillopt/model/codex_backend.py280CODE
LOWskillopt/envs/alfworld/adapter.py319CODE
LOWskillopt/envs/alfworld/rollout.py148CODE
LOWskillopt/envs/livemathematicianbench/rollout.py111CODE
LOWskillopt/envs/livemathematicianbench/rollout.py290CODE
LOWskillopt/envs/_template/loader_template.py52CODE
LOWskillopt/envs/spreadsheetbench/react_agent.py168CODE
LOWskillopt/envs/spreadsheetbench/adapter.py92CODE
LOWskillopt/envs/spreadsheetbench/rollout.py108CODE
LOWskillopt/envs/spreadsheetbench/rollout.py213CODE
LOWskillopt/envs/spreadsheetbench/rollout.py453CODE
LOWskillopt/envs/spreadsheetbench/rollout.py587CODE
LOWskillopt/envs/spreadsheetbench/rollout.py841CODE
LOWskillopt/envs/spreadsheetbench/codegen_agent.py88CODE
LOWskillopt/envs/spreadsheetbench/codegen_agent.py338CODE
LOWskillopt/envs/spreadsheetbench/codegen_agent.py503CODE
14 more matches not shown…
AI Structural Patterns53 hits · 50 pts
SeverityFileLineSnippetContext
LOWskillopt_sleep/backend.py1549CODE
LOWskillopt_sleep/consolidate.py87CODE
LOWskillopt_sleep/dream.py99CODE
LOWskillopt_sleep/experiments/run_experiment.py124CODE
LOWskillopt_sleep/experiments/run_experiment.py52CODE
LOWskillopt/gradient/reflect.py256CODE
LOWskillopt/gradient/reflect.py366CODE
LOWskillopt/gradient/reflect.py472CODE
LOWskillopt/datasets/base.py236CODE
LOWskillopt/model/minimax_backend.py263CODE
LOWskillopt/model/qwen_backend.py255CODE
LOWskillopt/model/qwen_backend.py413CODE
LOWskillopt/model/qwen_backend.py439CODE
LOWskillopt/model/openai_compatible_backend.py276CODE
LOWskillopt/model/openai_compatible_backend.py302CODE
LOWskillopt/model/openai_compatible_backend.py364CODE
LOWskillopt/model/__init__.py209CODE
LOWskillopt/model/__init__.py281CODE
LOWskillopt/model/__init__.py357CODE
LOWskillopt/model/__init__.py477CODE
LOWskillopt/model/__init__.py520CODE
LOWskillopt/model/__init__.py588CODE
LOWskillopt/model/azure_openai.py600CODE
LOWskillopt/model/azure_openai.py788CODE
LOWskillopt/model/azure_openai.py816CODE
LOWskillopt/model/azure_openai.py845CODE
LOWskillopt/model/backend_config.py91CODE
LOWskillopt/model/router.py196CODE
LOWskillopt/envs/alfworld/adapter.py66CODE
LOWskillopt/envs/alfworld/rollout.py148CODE
LOWskillopt/envs/alfworld/dataloader.py14CODE
LOWskillopt/envs/livemathematicianbench/adapter.py42CODE
LOWskillopt/envs/livemathematicianbench/rollout.py111CODE
LOWskillopt/envs/livemathematicianbench/rollout.py290CODE
LOWskillopt/envs/livemathematicianbench/dataloader.py151CODE
LOWskillopt/envs/_template/env_template.py32CODE
LOWskillopt/envs/spreadsheetbench/react_agent.py359CODE
LOWskillopt/envs/spreadsheetbench/adapter.py29CODE
LOWskillopt/envs/spreadsheetbench/rollout.py587CODE
LOWskillopt/envs/spreadsheetbench/rollout.py841CODE
LOWskillopt/envs/spreadsheetbench/codegen_agent.py402CODE
LOWskillopt/envs/spreadsheetbench/codegen_agent.py503CODE
LOWskillopt/envs/spreadsheetbench/dataloader.py14CODE
LOWskillopt/envs/officeqa/adapter.py12CODE
LOWskillopt/envs/officeqa/tool_runtime.py441CODE
LOWskillopt/envs/officeqa/rollout.py140CODE
LOWskillopt/envs/officeqa/rollout.py717CODE
LOWskillopt/envs/officeqa/rollout.py510CODE
LOWskillopt/envs/officeqa/rollout.py718CODE
LOWskillopt/envs/docvqa/adapter.py10CODE
LOWskillopt/envs/docvqa/rollout.py261CODE
LOWskillopt/envs/searchqa/adapter.py16CODE
LOWskillopt/envs/searchqa/rollout.py360CODE
Modern Structural Boilerplate33 hits · 43 pts
SeverityFileLineSnippetContext
LOWskillopt_sleep/__init__.py19__all__ = ["__version__"]CODE
LOWskillopt_sleep/state.py69 def set_last_harvest(self, project: str, iso_ts: str) -> None:CODE
LOWskillopt_sleep/state.py76 def set_slow_memory(self, content: str) -> None:CODE
LOWskillopt/optimizer/select.py4__all__ = ["rank_and_select"]CODE
LOWskillopt/datasets/base.py83 def set_out_root(self, out_root: str) -> None:CODE
LOWskillopt/model/minimax_backend.py296def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/minimax_backend.py300def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/qwen_backend.py473def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/qwen_backend.py477def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/qwen_backend.py482def set_optimizer_deployment(deployment: str) -> None:CODE
LOWskillopt/model/openai_compatible_backend.py432def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/openai_compatible_backend.py438def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/openai_compatible_backend.py444def set_optimizer_deployment(deployment: str) -> None:CODE
LOWskillopt/model/__init__.py619def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/__init__.py627def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/__init__.py635def set_optimizer_deployment(deployment: str) -> None:CODE
LOWskillopt/model/azure_openai.py882def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/azure_openai.py898def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/azure_openai.py909def set_optimizer_deployment(deployment: str) -> None:CODE
LOWskillopt/model/claude_backend.py362def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/claude_backend.py367def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/claude_backend.py373def set_optimizer_deployment(deployment: str) -> None:CODE
LOWskillopt/model/backend_config.py49def set_optimizer_backend(backend: str) -> None:CODE
LOWskillopt/model/backend_config.py64def set_target_backend(backend: str) -> None:CODE
LOWskillopt/model/router.py181def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/router.py186def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/router.py191def set_optimizer_deployment(deployment: str) -> None:CODE
LOWskillopt/model/codex_backend.py652def set_target_deployment(deployment: str) -> None:CODE
LOWskillopt/model/codex_backend.py658def set_reasoning_effort(effort: str | None) -> None:CODE
LOWskillopt/model/codex_backend.py663def set_optimizer_deployment(deployment: str) -> None:CODE
LOWskillopt/envs/alfworld/__init__.py5__all__ = ["ALFWorldAdapter"]CODE
LOWskillopt/envs/spreadsheetbench/__init__.py5__all__ = ["SpreadsheetBenchAdapter"]CODE
LOWskillopt/engine/__init__.py9__all__ = ["ReflACTTrainer"]CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHskillopt/envs/alfworld/reflect.py0searchqa reflect stage. prompts are now loaded from .md files by the base adapter.STRING
HIGHskillopt/envs/livemathematicianbench/reflect.py0searchqa reflect stage. prompts are now loaded from .md files by the base adapter.STRING
HIGHskillopt/envs/spreadsheetbench/reflect.py0searchqa reflect stage. prompts are now loaded from .md files by the base adapter.STRING
HIGHskillopt/envs/searchqa/reflect.py0searchqa reflect stage. prompts are now loaded from .md files by the base adapter.STRING
AI Slop Vocabulary4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMskillopt_sleep/backend.py481 # user for the range" rule scores 0 because the harness can't run VBA andCOMMENT
MEDIUMskillopt_sleep/consolidate.py57 # be robust if a split is empty: fall back so a night still does something,COMMENT
MEDIUMskillopt_sleep/rollout.py123 # single-shot reflect uses — prevents harness-violating rules like "return VBA"COMMENT
LOWskillopt/envs/_template/env_template.py78 # Dataset-backed envs typically just pass items straight through.COMMENT
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWrequirements.txt21# backends (Claude/Qwen). Without it extract_json() falls back safely andCOMMENT
LOWplugins/claude-code/scripts/install-cron.sh21# (unless you pass --auto-adopt below).COMMENT
LOWconfigs/features/soft_gate.yaml1# ─────────────────────────────────────────────────────────────────────────────COMMENT
LOWconfigs/features/soft_gate.yaml21# `soft` or `mixed` lets these partial improvements be accepted.COMMENT
LOWscripts/run_alfworld.sh1#!/usr/bin/env bashCOMMENT
LOWskillopt_sleep/backend.py601 self.last_call_error = combined[:500]COMMENT
LOWskillopt/utils/json_utils.py201 # JSON strict json.loads rejects — unescaped ASCII quotes inside CJK stringCOMMENT
LOWskillopt/envs/_template/config_template.yaml1# ──────────────────────────────────────────────────COMMENT
Example Usage Blocks3 hits · 7 pts
SeverityFileLineSnippetContext
LOWscripts/run_spreadsheetbench.sh5# Usage:COMMENT
LOWscripts/run_searchqa.sh5# Usage:COMMENT
LOWscripts/run_alfworld.sh9# Usage:COMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWdocs/guide/new-backend.md120## Step 1: implement the module contractCOMMENT
LOWdocs/guide/new-backend.md153## Step 2: register and route the backendCOMMENT
LOWdocs/guide/new-backend.md177## Step 3: test the integrationCOMMENT
Fake / Example Data1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtests/test_sleep_engine.py1222 self.assertIn("placeholder", res.rejected_edits[0].content)CODE