AI Slop Code Risk Monitor

lsdefine/GenericAgent

SlopCodeMonitor badge for lsdefine/GenericAgent Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Self-evolving agent: grows skill tree from 3.3K-line seed, achieving full system control with 6x less token consumption

49.8 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for lsdefine/GenericAgent, a Python project with 14,376 GitHub stars. SynthScan examined 58,753 lines of code across 166 source files, recording 1801 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 49.8 (High 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.

49.8
Adjusted Signal
49.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
14.4K
Stars
Python
Language
58.8K
Lines of Code
166
Files
1.8K
Pattern Hits
2026-10-31
Scan Date
2.16
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 32.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 32.4/100 · MEDIUM

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

Agent Over-Engineering Ratio 85.9/100 · CRITICAL

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

PR Review Velocity Impact 96.7/100 · CRITICAL

Which changes need focused human review? 1801 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 359MEDIUM 197LOW 1245

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 1801 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.

Empty Error Handlers284 hits · 1130 pts
SeverityFileLineSnippetContext
HIGHTMWebDriver.py9except: passCODE
HIGHTMWebDriver.py105except Exception: passCODE
HIGHagentmain.py13except Exception: passCODE
HIGHagentmain.py141except Exception: passCODE
HIGHagentmain.py143except Exception: passCODE
HIGHagentmain.py158except (json.JSONDecodeError, ValueError): passCODE
HIGHagentmain.py312except Exception: passCODE
HIGHagentmain.py345except Exception: passCODE
HIGHagentmain.py84except: passCODE
HIGHagentmain.py138except OSError: passCODE
HIGHagentmain.py354except Exception: passCODE
HIGHllmcore.py1143except AttributeError: pass # legacy先import时半初始化, 其尾部自会回挂CODE
HIGHllmcore.py131except OSError: passCODE
HIGHllmcore.py263except: passCODE
HIGHllmcore.py959except: passCODE
HIGHllmcore.py962except: passCODE
HIGHllmcore.py964except: passCODE
HIGHllmcore.py925except: passCODE
HIGHllmcore.py933except: passCODE
HIGHsimphtml.py638except: passCODE
HIGHsimphtml.py824except: passCODE
HIGHga.py14except: passCODE
HIGHga.py228except (PermissionError, OSError): passCODE
HIGHga.py595except FileNotFoundError: passCODE
HIGHga.py55except: passCODE
HIGHga.py265except Exception: passCODE
HIGHlegacy_llmcore.py134except: passCODE
HIGHmemory/ljqCtrlBg.py13except Exception: passCODE
HIGHmemory/ljqCtrlBg.py109except Exception: passCODE
HIGHmemory/ljqCtrlBg.py102except Exception: passCODE
HIGHmemory/ljqCtrl.py22except: passCODE
HIGHmemory/autonomous_operation_sop/helper.py117except:CODE
HIGHmemory/L4_raw_sessions/compress_session.py230except Exception: passCODE
HIGHplugins/langfuse_tracing.py44except Exception:CODE
HIGHplugins/langfuse_tracing.py68except Exception:CODE
HIGHplugins/langfuse_tracing.py80except Exception:CODE
HIGHplugins/langfuse_tracing.py93except Exception:CODE
HIGHplugins/langfuse_tracing.py140except Exception:CODE
HIGHplugins/hooks.py31except KeyError:CODE
HIGHfrontends/desktop_history.py63except (ValueError, OverflowError, OSError):CODE
HIGHfrontends/desktop_history.py131except OSError:CODE
HIGHfrontends/stapp2.py6except: passCODE
HIGHfrontends/stapp2.py8except: passCODE
HIGHfrontends/cost_tracker.py183except Exception:CODE
HIGHfrontends/cost_tracker.py408except Exception: passCODE
HIGHfrontends/cost_tracker.py421except Exception: passCODE
HIGHfrontends/cost_tracker.py148except Exception:CODE
HIGHfrontends/cost_tracker.py305except Exception:CODE
HIGHfrontends/cost_tracker.py310except Exception:CODE
HIGHfrontends/qqapp.py40except Exception:CODE
HIGHfrontends/ga_contract_probe.py65except (ValueError, TypeError):CODE
HIGHfrontends/ga_contract_probe.py73except (ValueError, TypeError):CODE
HIGHfrontends/ga_contract_probe.py87except (ValueError, TypeError):CODE
HIGHfrontends/tuiapp_v2.py1435except OSError: passCODE
HIGHfrontends/tuiapp_v2.py1593except Exception:CODE
HIGHfrontends/tuiapp_v2.py2158except Exception:CODE
HIGHfrontends/tuiapp_v2.py2180except Exception:CODE
HIGHfrontends/tuiapp_v2.py2623except Exception:CODE
HIGHfrontends/tuiapp_v2.py2629except Exception:CODE
HIGHfrontends/tuiapp_v2.py2832except Exception: passCODE
224 more matches not shown…
Excessive Try-Catch Wrapping686 hits · 574 pts
SeverityFileLineSnippetContext
LOWTMWebDriver.py77 except Exception: traceback.print_exc()CODE
LOWTMWebDriver.py103 except Exception as e: return json.dumps({'r': {'error': str(e)}}, ensure_ascii=False)CODE
LOWTMWebDriver.py105 except Exception: passCODE
LOWTMWebDriver.py155 except Exception as e:CODE
MEDIUMTMWebDriver.py156 safe_print(f"Error handling message: {e}")CODE
MEDIUMTMWebDriver.py128def handle(self) -> None: CODE
LOW⚡agentmain.py312 except Exception: passCODE
LOW⚡agentmain.py319 except Exception as e: print(f'[Reflect] reload error: {e}')CODE
LOW⚡agentmain.py321 except Exception as e:CODE
LOW⚡agentmain.py332 except Exception as e:CODE
LOW⚡agentmain.py340 except Exception as e: print(f'[Reflect] on_done error: {e}')CODE
LOW⚡agentmain.py345 except Exception: passCODE
LOW⚡agentmain.py349 except Exception: model = '?'CODE
LOW⚡agentmain.py354 except Exception: passCODE
LOWagentmain.py13except Exception: passCODE
LOWagentmain.py91 except Exception as e: print(f'\n\n\n[ERROR] Failed to init MixinSession with cfg {s["mixin_cfg"]}: CODE
LOWagentmain.py141 except Exception: passCODE
LOWagentmain.py143 except Exception: passCODE
LOWagentmain.py217 except Exception as e:CODE
LOWagentmain.py226 except Exception as e: print(f'[ERROR] Failed to reload models: {e}')CODE
MEDIUMllmcore.py396def _i(v, default=0):CODE
LOWllmcore.py55 except Exception:CODE
LOWllmcore.py196 except Exception as e:CODE
LOWllmcore.py540 except Exception as e:CODE
MEDIUMsimphtml.py837 print(f"Error: {error_msg}")CODE
LOWsimphtml.py833 except Exception as e:CODE
LOWsimphtml.py658 except Exception as e:STRING
LOWsimphtml.py720 except Exception: print(f'[cutlist] skip invalid selector: {sel}'); continueSTRING
MEDIUMga.py48def stream_reader(proc, logs):CODE
LOWga.py94 except Exception as e:CODE
LOWga.py146 except Exception as e:CODE
LOWga.py177 except Exception as e: return {"status": "error", "msg": format_error(e)}CODE
LOWga.py220 except Exception as e: return {"status": "error", "msg": str(e)}CODE
LOWga.py265 except Exception: passCODE
LOWga.py267 except Exception as e: return f"Error: {str(e)}"CODE
LOWga.py325 except Exception as e: result = f'Error: {e}'CODE
LOWga.py427 except Exception as e:CODE
LOWmemory/checklist_helper.py93 except Exception: return FalseCODE
LOWmemory/adb_ui.py19 except Exception as e:CODE
LOWmemory/ui_detect.py52 except Exception: return FalseCODE
LOWmemory/ui_detect.py66 except Exception: return _yolo_local(image_path, conf)CODE
LOWmemory/ui_detect.py199 except Exception as e:CODE
MEDIUMmemory/ui_detect.py194def do_POST(self):CODE
LOWmemory/vision_api.template.py28 except Exception as e:CODE
MEDIUMmemory/vision_api.template.py25def ask_vision(image_input, prompt="详细描述这张图片的内容", timeout=60, max_pixels=1440000CODE
LOWmemory/keychain.py34 except Exception as e:CODE
LOWmemory/macljqCtrl.py38except Exception:CODE
LOWmemory/macljqCtrl.py64 except Exception:CODE
LOWmemory/macljqCtrl.py68 except Exception:CODE
LOWmemory/macljqCtrl.py327 except Exception:CODE
LOWmemory/macljqCtrl.py381 except Exception: before = NoneCODE
LOWmemory/macljqCtrl.py388 except Exception:CODE
LOWmemory/ljqCtrlBg.py13except Exception: passCODE
LOWmemory/ljqCtrlBg.py102 except Exception: passCODE
LOWmemory/ljqCtrlBg.py109 except Exception: passCODE
LOWmemory/procmem_scanner.py143 except Exception as e:CODE
MEDIUMmemory/procmem_scanner.py144 print(f"Error: {e}")CODE
LOWmemory/ljqCtrl.py95 except Exception:CODE
LOWmemory/autonomous_operation_sop/helper.py95 except Exception as e:CODE
LOWmemory/autonomous_operation_sop/helper.py113 except Exception as e:CODE
626 more matches not shown…
Cross-Language Confusion73 hits · 364 pts
SeverityFileLineSnippetContext
HIGH⚡simphtml.py13 (sourceNode.id && ignoreIds.includes(sourceNode.id))CODE
HIGH⚡simphtml.py15 return null;CODE
HIGH⚡simphtml.py22 try { if (sourceNode.matches && sourceNode.matches(':-webkit-autofill')) { clone.setAttribute('data-autofilled', 'trCODE
HIGH⚡simphtml.py27 const isSmallDropdown = _ddItems > 0 && _ddItems <= 7 && sourceNode.textContent.length < 500;CODE
HIGH⚡simphtml.py31 const childClone = cloneNode(child, keep || isSmallDropdown);CODE
HIGH⚡simphtml.py32 if (childClone) childNodes.push(childClone);CODE
HIGH⚡simphtml.py36 const iDoc = sourceNode.contentDocument || sourceNode.contentWindow?.document;CODE
HIGH⚡simphtml.py37 if (iDoc && iDoc.body && iDoc.body.children.length > 0) {CODE
HIGH⚡simphtml.py44 if (wrapper.childNodes.length) childNodes.push(wrapper);CODE
HIGH⚡simphtml.py51 if (shadowClone) childNodes.push(shadowClone);CODE
HIGH⚡simphtml.py58 const isVisible = (rect.width > 1 && rect.height > 1 &&CODE
HIGH⚡simphtml.py61 Math.abs(rect.left) < 5000 && Math.abs(rect.top) < 5000)CODE
HIGH⚡simphtml.py76 const childrenInfos = nonTextChildren.map(c => nodeInfo.get(c)).filter(i => i && i.rect && i.rect.width > 0 && i.rCODE
HIGH⚡simphtml.py79 if (!c || c === 'transparent') return 0;CODE
HIGH⚡simphtml.py83 const hasVisualBg = bgAlpha > 0.1 || style.backgroundImage !== 'none' || (style.backdropFilter && style.backdropFiCODE
HIGH⚡simphtml.py83 const hasVisualBg = bgAlpha > 0.1 || style.backgroundImage !== 'none' || (style.backdropFilter && style.backdropFiCODE
HIGH⚡simphtml.py85 if (!hasVisualBg && childrenInfos.length > 0) {CODE
HIGH⚡simphtml.py87 const flowChildren = childrenInfos.filter(cInfo => cInfo.style && cInfo.style.position !== 'fixed' && cInfo.stylCODE
HIGH⚡simphtml.py100 if (maxC && maxC.area > 10000 && (!isVisible || maxC.area > info.area * 5)) info = maxC;CODE
HIGH⚡simphtml.py100 if (maxC && maxC.area > 10000 && (!isVisible || maxC.area > info.area * 5)) info = maxC;CODE
HIGH⚡simphtml.py105 if (sourceNode.nodeType === 1 && sourceNode.tagName === 'DIV') {CODE
HIGH⚡simphtml.py106 if (!hasValidChildren && !sourceNode.textContent.trim()) return null;CODE
HIGH⚡simphtml.py109 if (sourceNode.getAttribute && sourceNode.getAttribute('aria-hidden') === 'true' && !info.isVisible) {CODE
HIGH⚡simphtml.py110 return null;CODE
HIGH⚡simphtml.py112 if (info.isVisible || hasValidChildren || keep) {CODE
HIGH⚡simphtml.py116 return null;CODE
HIGH⚡simphtml.py124 return info && info.isVisible;CODE
HIGH⚡simphtml.py214 if (pathType !== 'main' && highClassNameVariety && childrenInfo.length > 5) {CODE
HIGH⚡simphtml.py223 const hasStandardButton = container.querySelector('button, input[type="button"], input[type="submit"], [role="buttonCODE
HIGH⚡simphtml.py225 const hasClassButton = container.querySelector('[class*="-btn"], [class*="-button"], .button, .btn, [class*="btn-"]'CODE
HIGH⚡simphtml.py232 if (_efp) { let _el = _efp; while (_el) { const _h = childrenInfo.find(c => c.node.id && c.node.id === _el.id); if (CODE
HIGH⚡simphtml.py253 if (isComplex && centerDiff < 0.2 &&CODE
HIGH⚡simphtml.py254 ((minDimensionRatio > 0.2 && rect.width/window.innerWidth < 0.98) || minDimensionRatio > 0.95)) {CODE
HIGH⚡simphtml.py264 if (isComplex && isNearTop && maxDimensionRatio > 0.4 && top.isVisible) {CODE
HIGH⚡simphtml.py266 } else if (isMostlyText || isComplex || isDialog) {CODE
HIGH⚡simphtml.py286 return !(x1 + r1.width <= x2 + epsilon || x1 >= x2 + r2.width - epsilon ||CODE
HIGH⚡simphtml.py287 y1 + r1.height <= y2 + epsilon || y1 >= y2 + r2.height - epsilonCODE
HIGH⚡simphtml.py297 if (!info?.rect || info.style.position !== 'fixed') return false;CODE
HIGH⚡simphtml.py300 return cover > 0.15 && cover < 1.0 && cd < 0.3 && el.querySelector('button, input, a, [role="button"], iframe');CODE
HIGH⚡simphtml.py301}).filter((el, _, arr) => !arr.some(o => o !== el && o.contains(el)))CODE
HIGH⚡simphtml.py378 if (!dominated) kept.push(cand);CODE
HIGH⚡simphtml.py383 const cTag = container ? container.tagName : null;CODE
HIGH⚡simphtml.py393 if (score !== undefined) result.score = score;CODE
HIGH⚡simphtml.py479 el.className && el.className.split(/\s+/).includes(cls)CODE
HIGH⚡simphtml.py484 groups.push({selector, elements, score: scoreGroup(selector, elements)});CODE
HIGH⚡simphtml.py493 el.className && el.className.split(/\s+/).includes(topClasses[i]) && elCODE
HIGH⚡simphtml.py497 groups.push({selector, elements,score: scoreGroup(selector, elements)});CODE
HIGHsimphtml.py153 if (rectn.width < window.innerWidth * 0.8 && rectn.height < window.innerHeight * 0.8) return node;CODE
HIGHsimphtml.py166 area: info.area, zIndex: (info.zIndex || 0), isVisible: info.isVisible };CODE
HIGHsimphtml.py184 if (!child.dataset.mark || child.dataset.mark[0] !== 'R') analyzeNode(child, pathType);CODE
HIGHsimphtml.py194 (childrenInfo.length === 1 || childrenInfo[0].area > childrenInfo[1].area * 2);CODE
HIGHsimphtml.py329js_findMainList = r'''function findMainList(startElement = null) {CODE
HIGHsimphtml.py330 const root = startElement || document.body;CODE
HIGHsimphtml.py344 if (score >= MIN_CHILDREN) candidates.push({node, score});CODE
HIGHsimphtml.py358 allCandidates.push({ container, selector: groupInfo.selector, items, score });CODE
HIGHsimphtml.py451 groups.push({CODE
HIGHsimphtml.py463 groups.push({CODE
HIGHsimphtml.py516 if (!container || items.length < 3) return 0;CODE
HIGHsimphtml.py532 itemAreas.push(area);CODE
HIGHsimphtml.py571 if (uniqueRows === 1 || uniqueCols === 1) { layoutScore = 20;CODE
13 more matches not shown…
Hyper-Verbose Identifiers308 hits · 296 pts
SeverityFileLineSnippetContext
LOWllmcore.py111def _sanitize_leading_user_msg(msg):CODE
LOWllmcore.py180def _raise_if_retryable_overload(emsg):CODE
LOWga.py455 def do_update_working_checkpoint(self, args, response):CODE
LOWga.py513 def do_start_long_term_update(self, args, response):CODE
LOWlegacy_llmcore.py58 def _prepare_tool_instruction(self, tools):CODE
LOWfrontends/stapp2.py684 function ensureSidebarSettingsTitle() {CODE
LOWfrontends/stapp2.py831def build_dynamic_font_update_script(scale_percent: float) -> str:STRING
LOW⚡frontends/stapp2.py853def build_header_agent_badge_script() -> str:STRING
LOWfrontends/cost_tracker.py85def _migrate_legacy_history_unlocked() -> None:CODE
LOWfrontends/qqapp.py56 async def on_group_at_message_create(self, message: GroupMessage):CODE
LOWfrontends/dcapp.py39def _extract_discord_progress(text):CODE
LOWfrontends/dcapp.py48def _strip_discord_transcript(text):CODE
LOW⚡frontends/tuiapp_v2.py2639 def has_valid_selection_parent(self) -> bool:CODE
LOW⚡frontends/tuiapp_v2.py2872 def _paste_file_from_clipboard(self) -> bool:CODE
LOW⚡frontends/tuiapp_v2.py6896 def _return_to_free_text_edit(self, confirm_msg: ChatMessage) -> None:CODE
LOW⚡frontends/tuiapp_v2.py6913 def _maybe_intercept_free_text(self, sess: AgentSession, text: str) -> bool:CODE
LOW⚡frontends/tuiapp_v2.py7362 def _scroll_active_session_into_view(self) -> None:CODE
LOW⚡frontends/tuiapp_v2.py8093 def _remount_assistant_message(self, m: ChatMessage) -> None:CODE
LOW⚡frontends/tuiapp_v2.py8851 def on_clickable_tree_node_clicked(self, msg) -> None:CODE
LOW⚡frontends/tuiapp_v2.py8854 def on_option_list_option_selected(self, ev) -> None:CODE
LOWfrontends/tuiapp_v2.py76def _hint_terminal_capabilities() -> None:CODE
LOWfrontends/tuiapp_v2.py944def _patch_markdown_table_overflow():CODE
LOWfrontends/tuiapp_v2.py1048def _cjk_compute_wrap_offsets(text, width, tab_size, fold=True,CODE
LOWfrontends/tuiapp_v2.py1207def _build_passthrough_source(narrow_plain: str):CODE
LOWfrontends/tuiapp_v2.py1684def _palette_from_resolved_vars(v: dict[str, str], dark: bool) -> dict[str, str]:CODE
LOWfrontends/tuiapp_v2.py3018 def _suppress_palette_next_change(self) -> None:CODE
LOWfrontends/tuiapp_v2.py3067 def _shift_is_physically_down(self) -> bool:CODE
LOWfrontends/tuiapp_v2.py3902 def _patch_auto_scroll_for_selection(self) -> None:CODE
LOWfrontends/tuiapp_v2.py4065 def _install_write_snapshot_hook(self) -> None:CODE
LOWfrontends/tuiapp_v2.py4952 def on_option_list_option_selected(self, event: OptionList.OptionSelected) -> None:CODE
LOWfrontends/tuiapp_v2.py6636 def _install_intervene_replay_hook(self, sess: AgentSession) -> None:CODE
LOWfrontends/tuiapp_v2.py7092 def _render_planbar_placeholder(self, bar: Static, sess: AgentSession) -> None:CODE
LOWfrontends/tuiapp_v2.py7963 def _mount_assistant_segments(self, container, m: ChatMessage, segs: list[tuple],CODE
LOW⚡frontends/tuiapp_v2.py3798 def _is_stale_selectable_mouse_event(self, event) -> bool:STRING
LOWfrontends/tuiapp_v2.py3554 async def on_option_list_option_highlighted(self, event):STRING
LOWfrontends/tuiapp_v2.py3566 def on_option_list_option_selected(self, event):STRING
LOWfrontends/tuiapp_v2.py3637 def on_option_list_option_highlighted(self, ev) -> None:STRING
LOWfrontends/tuiapp_v2.py3642 def on_option_list_option_selected(self, ev) -> None:STRING
LOWfrontends/qtapp.py460def _build_prompt_with_uploads(prompt: str, files: list) -> tuple:STRING
LOWfrontends/qtapp.py1313 def _reset_history_items_style(self):STRING
LOWfrontends/qtapp.py1814 def _refresh_model_rows_style(self):STRING
LOWfrontends/desktop_settings.py95def write_settings_atomically(settings_path: Path, document: dict) -> None:CODE
LOW⚡frontends/desktop_bridge.py2970async def get_token_history_handler(request):CODE
LOW⚡frontends/desktop_bridge.py2991async def subscription_portal_handler(request):CODE
LOWfrontends/desktop_bridge.py66def _configured_conductor_port() -> int:CODE
LOWfrontends/desktop_bridge.py144def normalize_final_turn_segs(full: str, outputs: Any) -> Optional[List[str]]:CODE
LOWfrontends/desktop_bridge.py313def _sanitize_desktop_plan_path(session_id: str, plan_path: str) -> str:CODE
LOWfrontends/desktop_bridge.py360 def _session_has_unfinished_work(session: "Session") -> bool:CODE
LOWfrontends/desktop_bridge.py368 def _running_session_ids_locked(self) -> List[str]:CODE
LOWfrontends/desktop_bridge.py384 def _assert_mutation_allowed_locked(self) -> None:CODE
LOWfrontends/desktop_bridge.py1984def _bridge_shutdown_services() -> None:CODE
LOWfrontends/desktop_bridge.py2078def _is_safe_cross_site_resource_get(request) -> bool:CODE
LOWfrontends/desktop_bridge.py2105def _add_cors_response_headers(response: web.StreamResponse, origin: Optional[str]) -> None:CODE
LOWfrontends/desktop_bridge.py2215def _resolve_conductor_model_state(doc: dict, profile_count: int) -> dict:CODE
LOWfrontends/desktop_bridge.py2646def _reveal_path_in_file_manager(target: Path) -> None:CODE
LOWfrontends/desktop_bridge.py2717async def _run_worker_to_completion(function, *args):CODE
LOWfrontends/desktop_bridge.py2735async def memory_import_inspect_handler(request):CODE
LOWfrontends/desktop_bridge.py2824async def conductor_model_get_handler(request):CODE
LOWfrontends/desktop_bridge.py2829async def conductor_model_save_handler(request):CODE
LOWfrontends/desktop_bridge.py2910async def service_capabilities_handler(request):CODE
248 more matches not shown…
Decorative Section Separators116 hits · 291 pts
SeverityFileLineSnippetContext
MEDIUMmemory/vision_api.template.py16# =================================================================COMMENT
MEDIUM⚡plugins/langfuse_tracing.py24 # ── Agent trace ──────────────────────────────────────────────COMMENT
MEDIUM⚡plugins/langfuse_tracing.py47 # ── LLM generation span (replaces _write_llm_log patch) ─────COMMENT
MEDIUMplugins/langfuse_tracing.py96 # ── Usage tracking: tee SSE data for token counts ───────────COMMENT
MEDIUM⚡frontends/cost_tracker.py314# ── Core API ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontends/cost_tracker.py74# ── Per-call ledger ──────────────────────────────────────────────────────────COMMENT
MEDIUMfrontends/tuiapp_v2.py249# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/tuiapp_v2.py271# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/tuiapp_v2.py1408# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/tuiapp_v2.py8151#============================================================================COMMENT
MEDIUMfrontends/tuiapp_v2.py8153#============================================================================COMMENT
MEDIUMfrontends/tuiapp_v2.py3655# ===========================================================================STRING
MEDIUMfrontends/tuiapp_v2.py3663# ===========================================================================STRING
MEDIUM⚡frontends/qtapp.py282# ══════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡frontends/qtapp.py284# ══════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡frontends/qtapp.py286# ── constants ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡frontends/qtapp.py2309 # ── settings actions ───────────────────────────────────────────────────────COMMENT
MEDIUM⚡frontends/qtapp.py2393 # ── helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡frontends/qtapp.py2403# ══════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡frontends/qtapp.py2405# ══════════════════════════════════════════════════════════════════════COMMENT
MEDIUMfrontends/qtapp.py35# ══════════════════════════════════════════════════════════════════════COMMENT
MEDIUMfrontends/qtapp.py37# ══════════════════════════════════════════════════════════════════════COMMENT
MEDIUMfrontends/qtapp.py78 # ── Animation ────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py98 # ── Painting ──────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py221 # ── Mouse events (drag + click) ───────────────────────COMMENT
MEDIUMfrontends/qtapp.py254 # ── Toggle panel ──────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py1092 # ── UI construction ───────────────────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py1115 # ── title bar ─────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py2215 # ── inject (autonomous mode) ───────────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py2221 # ── history ────────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py2286 # ── SOP ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py2426 # ── Agent initialisation ──────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py2437 # ── Windows ───────────────────────────────────────────COMMENT
MEDIUMfrontends/qtapp.py2453 # ── Idle monitor (autonomous mode) ────────────────────COMMENT
MEDIUMfrontends/qtapp.py439# ── utilities ─────────────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py520# ── small reusable widgets ────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1038# ── Main panel ────────────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1346 # ── status bar ─────────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1397 # ── tab bar ───────────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1457 # ── chat page ─────────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1624 # ── history page ──────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1667 # ── SOP page ──────────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1705 # ── settings page ─────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1767 # ── model list ────────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1882 # ── event filter (Enter key in text edit, Escape to close search) ──────────STRING
MEDIUMfrontends/qtapp.py1902 # ── file attachment ────────────────────────────────────────────────────────STRING
MEDIUMfrontends/qtapp.py1949 # ── send / streaming ───────────────────────────────────────────────────────STRING
MEDIUM⚡frontends/desktop_bridge.py1447# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡frontends/desktop_bridge.py1449# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡frontends/desktop_bridge.py1474# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡frontends/desktop_bridge.py1476# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/desktop_bridge.py195# ─── Test-only control plane ────────────────────────────────────────────────COMMENT
MEDIUMfrontends/desktop_bridge.py229# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/desktop_bridge.py231# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/desktop_bridge.py2039# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/desktop_bridge.py2041# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontends/continue_cmd.py896# ===========================================================================COMMENT
MEDIUMfrontends/continue_cmd.py909# ===========================================================================COMMENT
MEDIUM⚡frontends/tui_v3.py1002# ────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡frontends/tui_v3.py1004# ────────────────────────────────────────────────────────────────────────────COMMENT
56 more matches not shown…
Deep Nesting175 hits · 116 pts
SeverityFileLineSnippetContext
LOWTMWebDriver.py125CODE
LOWTMWebDriver.py188CODE
LOWTMWebDriver.py128CODE
LOWagentmain.py67CODE
LOWagentmain.py166CODE
LOWagent_loop.py42CODE
LOWllmcore.py77CODE
LOWllmcore.py185CODE
LOWllmcore.py273CODE
LOWllmcore.py418CODE
LOWllmcore.py475CODE
LOWllmcore.py586CODE
LOWllmcore.py622CODE
LOWllmcore.py757CODE
LOWllmcore.py1030CODE
LOWsimphtml.py596CODE
LOWga.py16CODE
LOWga.py223CODE
LOWga.py229CODE
LOWga.py303CODE
LOWga.py553CODE
LOWlegacy_llmcore.py103CODE
LOWmemory/ui_detect.py119CODE
LOWmemory/vision_api.template.py25CODE
LOWmemory/procmem_scanner.py86CODE
LOWmemory/L4_raw_sessions/compress_session.py70CODE
LOWmemory/L4_raw_sessions/compress_session.py103CODE
LOWmemory/L4_raw_sessions/compress_session.py154CODE
LOWplugins/langfuse_tracing.py98CODE
LOWfrontends/desktop_history.py84CODE
LOWfrontends/chatapp_common.py319CODE
LOWfrontends/cost_tracker.py187CODE
LOWfrontends/cost_tracker.py273CODE
LOWfrontends/cost_tracker.py316CODE
LOWfrontends/cost_tracker.py366CODE
LOWfrontends/cost_tracker.py373CODE
LOWfrontends/qqapp.py31CODE
LOWfrontends/dcapp.py216CODE
LOWfrontends/dcapp.py283CODE
LOWfrontends/model_cmd.py33CODE
LOWfrontends/tuiapp_v2.py506CODE
LOWfrontends/tuiapp_v2.py536CODE
LOWfrontends/tuiapp_v2.py675CODE
LOWfrontends/tuiapp_v2.py1242CODE
LOWfrontends/tuiapp_v2.py3309CODE
LOWfrontends/tuiapp_v2.py2509CODE
LOWfrontends/tuiapp_v2.py3902CODE
LOWfrontends/tuiapp_v2.py4065CODE
LOWfrontends/tuiapp_v2.py4952CODE
LOWfrontends/tuiapp_v2.py4988CODE
LOWfrontends/tuiapp_v2.py5787CODE
LOWfrontends/tuiapp_v2.py6092CODE
LOWfrontends/tuiapp_v2.py6747CODE
LOWfrontends/tuiapp_v2.py6862CODE
LOWfrontends/tuiapp_v2.py7018CODE
LOWfrontends/tuiapp_v2.py7476CODE
LOWfrontends/tuiapp_v2.py7809CODE
LOWfrontends/tuiapp_v2.py7872CODE
LOWfrontends/tuiapp_v2.py7989CODE
LOWfrontends/tuiapp_v2.py8457CODE
115 more matches not shown…
Unused Imports91 hits · 76 pts
SeverityFileLineSnippetContext
LOWagentmain.py344CODE
LOWllmcore.py1CODE
LOWllmcore.py1CODE
LOWllmcore.py1142CODE
LOWsimphtml.py662CODE
LOWmemory/ui_detect.py128CODE
LOWmemory/macljqCtrl.py31CODE
LOWmemory/macljqCtrl.py42CODE
LOWmemory/macljqCtrl.py35CODE
LOWmemory/macljqCtrl.py35CODE
LOWmemory/macljqCtrl.py35CODE
LOWmemory/macljqCtrl.py35CODE
LOWmemory/ljqCtrlBg.py6CODE
LOWmemory/procmem_scanner.py5CODE
LOWmemory/procmem_scanner.py6CODE
LOWmemory/ljqCtrl.py13CODE
LOWmemory/ljqCtrl.py13CODE
LOWmemory/ljqCtrl.py13CODE
LOWmemory/ljqCtrl.py20CODE
LOWmemory/ljqCtrl.py20CODE
LOWmemory/ljqCtrl.py20CODE
LOWmemory/autonomous_operation_sop/helper.py13CODE
LOWmemory/L4_raw_sessions/compress_session.py4CODE
LOWmemory/L4_raw_sessions/compress_session.py4CODE
LOWplugins/langfuse_tracing.py10CODE
LOWfrontends/desktop_history.py2CODE
LOWfrontends/cost_tracker.py11CODE
LOWfrontends/dcapp.py11CODE
LOWfrontends/tuiapp_v2.py13CODE
LOWfrontends/tuiapp_v2.py1415CODE
LOWfrontends/tuiapp_v2.py1449CODE
LOWfrontends/genericagent_acp_bridge.py43CODE
LOWfrontends/qtapp.py7CODE
LOWfrontends/qtapp.py21CODE
LOWfrontends/qtapp.py21CODE
LOWfrontends/qtapp.py21CODE
LOWfrontends/qtapp.py21CODE
LOWfrontends/qtapp.py32CODE
LOWfrontends/qtapp.py32CODE
LOWfrontends/desktop_settings.py3CODE
LOWfrontends/desktop_bridge.py41CODE
LOWfrontends/desktop_bridge.py43CODE
LOWfrontends/slash_cmds.py22CODE
LOWfrontends/stapp.py13CODE
LOWfrontends/stapp.py20CODE
LOWfrontends/conductor.py1CODE
LOWfrontends/conductor.py4CODE
LOWfrontends/fsapp.py10CODE
LOWfrontends/workspace_cmd.py22CODE
LOWfrontends/btw_cmd.py9CODE
LOWfrontends/keysym.py11CODE
LOWfrontends/tui_v3.py7CODE
LOWfrontends/tui_v3.py9CODE
LOWfrontends/tui_v3.py9CODE
LOWfrontends/tui_v3.py27CODE
LOWfrontends/tui_v3.py34CODE
LOWfrontends/tui_v3.py6034CODE
LOWfrontends/tui_v3.py6035CODE
LOWfrontends/tuiapp.py17CODE
LOWfrontends/tuiapp.py25CODE
31 more matches not shown…
Structural Annotation Overuse17 hits · 28 pts
SeverityFileLineSnippetContext
LOW⚡memory/github_contribution_sop.md30### Step 1: 确认目标COMMENT
LOW⚡memory/github_contribution_sop.md35### Step 2: 创建分支COMMENT
LOW⚡memory/github_contribution_sop.md41### Step 3: 实现变更COMMENT
LOWmemory/github_contribution_sop.md52### Step 4: 测试(不可跳过)COMMENT
LOWmemory/github_contribution_sop.md63### Step 5: 推送 + 提 PRCOMMENT
LOWmemory/github_contribution_sop.md75### Step 6: CI 检查COMMENT
LOWmemory/github_contribution_sop.md84### Step 7: 回应 ReviewCOMMENT
LOWmemory/review_sop/review_inline_prompt.en.txt21## Step 1: mandatory readingCOMMENT
LOWmemory/review_sop/review_inline_prompt.en.txt28## Step 2: lock the review scopeCOMMENT
LOWmemory/review_sop/review_inline_prompt.en.txt43## Step 3: file_read each reviewed fileCOMMENT
LOWmemory/review_sop/review_inline_prompt.en.txt48## Step 4: Q1-Q4 adversarial framing (at least 1 concrete evidence per Q)COMMENT
LOWmemory/review_sop/review_inline_prompt.en.txt60## Step 5: list P0-P3 findingsCOMMENT
LOWdocs/installation.md218### Step 0: Inspect before actingCOMMENT
LOWdocs/installation.md228### Step 1: Choose the install pathCOMMENT
LOWdocs/installation.md254### Step 2: Configure keys safelyCOMMENT
LOWdocs/installation.md265### Step 3: Verify setupCOMMENT
LOWdocs/installation.md283### Step 4: Verification and Next StepsCOMMENT
Over-Commented Block23 hits · 16 pts
SeverityFileLineSnippetContext
LOWmykey_template_en.py1# GenericAgent: copy to mykey.py, uncomment ONE block below, and fill in its three fields.COMMENT
LOWmykey_template_en.py21# ===== Ready to go. Everything below is optional. =====COMMENT
LOWmykey_template_en.py41COMMENT
LOWmykey_template_en.py61# dingtalk_client_id, dingtalk_client_secret = 'YOUR_APP_KEY', 'YOUR_APP_SECRET'COMMENT
LOWmykey_template.py1# GenericAgent 配置:复制为 mykey.py,下面两段选一段取消注释,填好三项即可。COMMENT
LOWmykey_template.py21# ===== 到这里就可以用了。以下均可跳过,需要时再加。=====COMMENT
LOWmykey_template.py41COMMENT
LOWmykey_template.py61# dingtalk_client_id, dingtalk_client_secret = '填 App Key', '填 App Secret'COMMENT
LOWfrontends/tuiapp_v2.py101 r"|\x1b[=>]"COMMENT
LOWfrontends/tuiapp_v2.py121COMMENT
LOWfrontends/tuiapp_v2.py241 if name == "ask_user":COMMENT
LOWfrontends/tuiapp_v2.py261# the invariant `_align_md_renders` relies on (K==W branch).COMMENT
LOWfrontends/tuiapp_v2.py281# stream but NOT the plain (wide) copy source, so mouse-copy stays margin-free.COMMENT
LOWfrontends/tuiapp_v2.py1941 # Interactive choice supportCOMMENT
LOWfrontends/tuiapp_v2.py1961 # `/rewind` uses it so picking an entry opens the mode picker with the listCOMMENT
LOWfrontends/tuiapp_v2.py2041 # Pending `{question:str}` after the user picks free-text in an ask_userCOMMENT
LOWfrontends/tuiapp_v2.py2401 passCOMMENT
LOWfrontends/tuiapp_v2.py8041 # as literal `[31m` glyphs (visible as ANSI garbage until done flipsCOMMENT
LOWfrontends/tui_v3.py1381 self.agent._ga_project_mode_workspace_path = ''COMMENT
LOWfrontends/tui_v3.py2461 self._sbq: list[str] = []COMMENT
LOWfrontends/tui_v3.py3581 el = time.time() - self._t0_anchorCOMMENT
LOWfrontends/tui_v3.py5461 closed_lines = _indent_rows(closed_body, w)COMMENT
LOWfrontends/tui_v3.py5861 if getattr(kp, 'key', None) == Keys.BracketedPaste:COMMENT
Magic Placeholder Names2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHmykey_template_en.py8# 'apikey': 'YOUR_API_KEY',COMMENT
HIGHmykey_template_en.py16# 'apikey': 'YOUR_API_KEY',COMMENT
Modern Structural Boilerplate15 hits · 11 pts
SeverityFileLineSnippetContext
LOWllmcore.py40 if not isinstance(data, dict): raise ValueError('mykey configuration must be a dict')CODE
LOW⚡frontends/tuiapp_v2.py7125 def _set_planbar_visible(self, bar: Static, visible: bool) -> None:CODE
LOW⚡frontends/tuiapp_v2.py7310 def _update_terminal_title(self) -> None:CODE
LOW⚡frontends/tuiapp_v2.py7399 def _update_history_open(self) -> None:CODE
LOWfrontends/tuiapp_v2.py7018 def _update_plan_state(self, sess: AgentSession, _stream_text: str = "") -> None:CODE
LOWfrontends/tuiapp_v2.py8237 def set_rows(self, rows: List[RenderRow]) -> None:CODE
LOWfrontends/tuiapp_v2.py8493 def _set_left_selection(self, key: int, keep_focus: bool = False) -> None:CODE
LOWfrontends/tuiapp_v2.py8760 def _set_focus(self, right: bool) -> None:CODE
LOWfrontends/session_names.py49def set_name(log_path: str, name: str) -> None:CODE
LOWfrontends/p2p_ws_client.py1085__all__ = [CODE
LOWfrontends/desktop_bridge.py208def _set_e2e_next_turn(mode: str) -> None:CODE
LOWfrontends/tui_v3.py2039def _set_term_title(text: str) -> None:CODE
LOWfrontends/tui_v3.py4343 def _set_session_name(self, ag, name: str) -> None:CODE
LOWfrontends/tuiapp.py394 def _set_assistant_message(self, agent_id: int, task_id: int, text: str, *, done: bool) -> None:CODE
LOWassets/ga_ultraplan.py7__all__ = ["plan", "phase", "parallel", "mapchain"]CODE
Fake / Example Data5 hits · 4 pts
SeverityFileLineSnippetContext
LOWllmcore.py754 if not has_thinking: m["content"] = [{"type": "thinking", "thinking": "...", "signature": "placeholder"}, *c]CODE
LOWsimphtml.py135 const p=[el.tagName,el.id&&'#'+el.id,el.getAttribute('name')&&'name='+el.getAttribute('name'),el.tagName==='INPUT'&&CODE
LOWsimphtml.py611 if attr not in ['id', 'class', 'name', 'src', 'href', 'alt', 'value', 'type', 'placeholder',CODE
LOWfrontends/plan_state.py369 return {"active": True, "placeholder": True, "done": 0, "total": 0, "complete": False, "step": step, "pathHint":CODE
LOWfrontends/plan_state.py372 return {"active": True, "placeholder": False, "done": n_done, "total": n_total, "complete": is_complete(pairs), "steCODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMmemory/ultraplan_sop.md37### Why orchestrateCOMMENT
AI Structural Patterns4 hits · 3 pts
SeverityFileLineSnippetContext
LOWmemory/ljqCtrlBg.py148CODE
LOWfrontends/p2p_ws_client.py658CODE
LOWfrontends/hub.py19CODE
LOWfrontends/tui_v3.py2796CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWassets/ga_httpapp.py17def run_task(prompt):CODE