AI Slop Code RIsk Monitor

zhenxun-org/zhenxun_bot

基于 Nonebot2 开发,实现多平台适配和多Bot管理的,非常可爱的绪山真寻Bot

18.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for zhenxun-org/zhenxun_bot, a Python project with 3,839 GitHub stars. SynthScan examined 112,863 lines of code across 547 source files, recording 1871 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 18.7 (Elevated pattern signal); it is not an authorship estimate.

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

18.7
Adjusted Signal
18.7
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
3.8K
Stars
Python
Language
112.9K
Lines of Code
547
Files
1.9K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 23.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 22.1/100 · LOW

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

Agent Over-Engineering Ratio 43.0/100 · MEDIUM

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

PR Review Velocity Impact 63.3/100 · HIGH

Which changes need focused human review? 1871 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 67MEDIUM 29LOW 1775

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

Excessive Try-Catch Wrapping540 hits · 547 pts
SeverityFileLineSnippetContext
LOWzhenxun/cli.py274 except Exception as e:CODE
LOWzhenxun/cli.py292 except Exception as e:CODE
LOWzhenxun/cli.py342 except Exception:CODE
MEDIUMzhenxun/cli.py148def _print_version() -> None:CODE
LOWzhenxun/builtin_plugins/withdraw.py69 except Exception:STRING
LOWzhenxun/builtin_plugins/withdraw.py75 except Exception:STRING
LOWzhenxun/builtin_plugins/__init__.py54 except Exception as e:CODE
LOWzhenxun/builtin_plugins/__init__.py116 except Exception:STRING
LOWzhenxun/builtin_plugins/__init__.py125 except Exception:STRING
LOWzhenxun/builtin_plugins/__init__.py145 except Exception as e:STRING
LOWzhenxun/builtin_plugins/__init__.py161 except Exception as e:CODE
MEDIUMzhenxun/builtin_plugins/__init__.py90def _():CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py415 except Exception as e:CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py741 except Exception as e:CODE
LOWzhenxun/builtin_plugins/plugin_store/__init__.py97 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py117 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py130 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py143 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py165 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py179 except Exception as e:STRING
LOWzhenxun/builtin_plugins/init/init_task.py137 except Exception as e:CODE
LOWzhenxun/builtin_plugins/init/init_config.py105 except Exception as e:CODE
LOWzhenxun/builtin_plugins/sign_in/__init__.py187 except Exception as e:STRING
MEDIUMzhenxun/builtin_plugins/sign_in/__init__.py183def _():CODE
LOWzhenxun/builtin_plugins/chat_history/chat_message.py96 except Exception as e:CODE
LOW…uiltin_plugins/platform/qq/group_handle/data_source.py211 except Exception as e:CODE
LOWzhenxun/builtin_plugins/admin/group_update.py49 except Exception:STRING
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py377 except Exception as e:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py446 except Exception as e:CODE
LOW…ltin_plugins/admin/group_member_update/_data_source.py122 except Exception as e:CODE
LOW…ltin_plugins/admin/group_member_update/_data_source.py165 except Exception as e:CODE
LOW…/builtin_plugins/admin/group_member_update/__init__.py127 except Exception as e:STRING
LOW…/builtin_plugins/admin/group_member_update/__init__.py135 except Exception as e:STRING
LOW…/builtin_plugins/admin/group_member_update/__init__.py225 except Exception as e:STRING
LOW…/builtin_plugins/admin/group_member_update/__init__.py231 except Exception as e:STRING
LOW…n/builtin_plugins/admin/welcome_message/data_source.py50 except Exception as e:CODE
LOWzhenxun/builtin_plugins/scheduler/auto_backup.py54 except Exception as e:CODE
LOWzhenxun/builtin_plugins/scheduler/chat_check.py66 except Exception:CODE
LOWzhenxun/builtin_plugins/scheduler/auto_update_group.py25 except Exception as e:CODE
LOWzhenxun/builtin_plugins/scheduler/auto_update_group.py45 except Exception as e:CODE
LOWzhenxun/builtin_plugins/superuser/ui_manager.py125 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/ui_manager.py144 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/exec_sql.py100 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/exec_sql.py122 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/clear_data.py76 except Exception as e:STRING
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py487 except Exception as e:CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py558 except Exception as e:CODE
LOWzhenxun/builtin_plugins/superuser/request_manage.py165 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/update_fg_info.py69 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/update_fg_info.py95 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/group_manage.py208 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/fg_manage.py73 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/fg_manage.py91 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/broadcast/__init__.py202 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/broadcast/__init__.py238 except Exception as e:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py40 except Exception:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py299 except Exception as e_extract:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py364 except Exception as e:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py449 except Exception as e:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py546 except Exception as e:CODE
480 more matches not shown…
Unused Imports546 hits · 516 pts
SeverityFileLineSnippetContext
LOWscripts/auth_stage3_perf_summary.py1CODE
LOWzhenxun/cli.py9CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py36CODE
LOWzhenxun/ui/models/__init__.py1CODE
LOWzhenxun/ui/models/__init__.py1CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/core/containers.py10CODE
LOWzhenxun/ui/models/core/__init__.py1CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
486 more matches not shown…
Hyper-Verbose Identifiers301 hits · 299 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py26def pytest_collection_modifyitems(items: list[pytest.Item]):CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py51def test_repository_branch_is_resolved_per_source() -> None:CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py69async def test_default_source_falls_back_to_github_for_all_plugins(CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py163async def test_zero_byte_aliyun_binary_falls_back_to_github(CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py229async def test_forced_aliyun_does_not_fall_back(CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py259async def test_root_plugin_uses_exact_sparse_paths(CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py332async def test_repo_manager_sparse_checkout_preserves_exact_paths(CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py370async def test_sparse_checkout_retries_git_fetch(CODE
LOW…builtin_plugins/plugin_store/test_download_strategy.py413async def test_git_checkout_preserves_binary(tmp_path: Path) -> None:CODE
LOW…sts/builtin_plugins/plugin_store/test_remove_plugin.py66async def test_plugin_not_exist_remove(CODE
LOW…sts/builtin_plugins/plugin_store/test_remove_plugin.py99async def test_remove_plugin_not_install(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py17async def test_update_plugin_basic_need_update(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py68async def test_update_plugin_basic_is_new(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py118async def test_plugin_not_exist_update(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py157async def test_update_plugin_not_install(CODE
LOW…sts/builtin_plugins/plugin_store/test_search_plugin.py58async def test_search_plugin_author(CODE
LOW…sts/builtin_plugins/plugin_store/test_search_plugin.py100async def test_plugin_not_exist_search(CODE
LOW…builtin_plugins/plugin_store/test_update_all_plugin.py17async def test_update_all_plugin_basic_need_update(CODE
LOW…builtin_plugins/plugin_store/test_update_all_plugin.py68async def test_update_all_plugin_basic_is_new(CODE
LOWtests/builtin_plugins/plugin_store/test_add_plugin.py66async def test_add_plugin_basic_commit_version(CODE
LOWtests/builtin_plugins/plugin_store/test_add_plugin.py113async def test_add_plugin_basic_is_not_dir(CODE
LOWtests/builtin_plugins/plugin_store/test_add_plugin.py207async def test_plugin_not_exist_add(CODE
LOWtests/builtin_plugins/auto_update/test_check_update.py77def add_files_and_folders_to_zip(CODE
LOWtests/builtin_plugins/auto_update/test_check_update.py110def add_files_and_folders_to_tar(CODE
LOWtests/builtin_plugins/auto_update/test_check_update.py229async def test_check_update_release(CODE
LOWscripts/bot_check.py31def _collect_loaded_plugin_names() -> set[str]:CODE
LOWzhenxun/cli.py249def _get_worker_creationflags() -> int:CODE
LOWzhenxun/builtin_plugins/withdraw.py53def _resolve_delete_message_id(bot: Bot, reply_id: str | int):STRING
LOWzhenxun/builtin_plugins/statistics/statistics_hook.py111async def _flush_statistics_on_shutdown():CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py108 def _resolve_local_plugin_path(CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py473 def _get_plugin_repository_branch(CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py488 async def _download_plugin_to_staging(CODE
LOWzhenxun/builtin_plugins/sign_in/utils.py68def _is_sign_card_cache_stale(card_file: Path) -> bool:CODE
LOWzhenxun/builtin_plugins/sign_in/utils.py141def get_level_and_next_impression(impression: float) -> tuple[int, int | float, int]:CODE
LOWzhenxun/builtin_plugins/chat_history/chat_message.py54async def _write_chat_history_batch(batch: list[ChatHistory], reason: str) -> None:CODE
LOW…uiltin_plugins/platform/qq/group_handle/data_source.py50async def _safe_get_group_member_info(bot: Bot, group_id: str, user_id: str) -> dict:CODE
LOW…uiltin_plugins/platform/qq/group_handle/data_source.py76async def _refresh_member_info_async(CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py26 async def _calculate_affected_groups(CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py294 async def batch_set_group_active_status(CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/ui.py221async def render_group_active_status(bot: Bot) -> bytes:CODE
LOWzhenxun/builtin_plugins/superuser/reload_setting.py61def _get_auto_reload_interval() -> int:STRING
LOWzhenxun/builtin_plugins/superuser/reload_setting.py80def _reschedule_auto_reload_job() -> None:STRING
LOWzhenxun/builtin_plugins/superuser/reload_setting.py99async def _reload_plugin_limit_config() -> None:STRING
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py70 def get_last_broadcast_msg_ids(cls) -> dict[str, int]:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py75 def clear_last_broadcast_msg_ids(cls) -> None:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py232 async def _extract_message_id_from_result(CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py314 async def _check_group_availability(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py168async def _create_custom_node_from_data(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py190async def _extract_broadcast_content(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py446async def _extract_content_from_message(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py527async def get_broadcast_target_groups(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py623async def send_broadcast_and_notify(CODE
LOWzhenxun/builtin_plugins/llm_manager/data_source.py247 async def add_mcp_servers_from_json(json_str: str) -> tuple[bool, str]:CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py29 async def format_model_list_as_image(CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py67 async def format_model_details_as_markdown_image(details: dict[str, Any]) -> bytes:CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py111 async def format_key_status_as_image(CODE
LOWzhenxun/builtin_plugins/mahiro_bank/data_source.py140 async def complete_projected_revenue(cls, user_id: str) -> int:CODE
LOWzhenxun/builtin_plugins/hooks/limiter_hook.py8async def _concurrency_release_hook(matcher: Matcher):CODE
LOWzhenxun/builtin_plugins/hooks/auth_hook.py50async def _start_auth_runtime_tasks():CODE
LOWzhenxun/builtin_plugins/hooks/auth_hook.py70async def _drop_message_before_cache_ready(event: Event):CODE
241 more matches not shown…
Empty Error Handlers56 hits · 280 pts
SeverityFileLineSnippetContext
HIGHzhenxun/cli.py342except Exception:CODE
HIGHzhenxun/builtin_plugins/__init__.py125except Exception:CODE
HIGHzhenxun/builtin_plugins/__init__.py116except Exception:CODE
HIGH…iltin_plugins/superuser/broadcast/message_processor.py270except Exception:CODE
HIGHzhenxun/builtin_plugins/hooks/auth_pipeline.py428except Exception:CODE
HIGH…enxun/builtin_plugins/web_ui/api/tabs/main/__init__.py309except (CODE
HIGH…enxun/builtin_plugins/web_ui/api/tabs/main/__init__.py290except (WebSocketDisconnect, ConnectionClosedError, ConnectionClosedOK):CODE
HIGH…enxun/builtin_plugins/web_ui/api/tabs/main/__init__.py307except asyncio.TimeoutError:CODE
HIGHzhenxun/builtin_plugins/web_ui/api/logs/logs.py31except WebSocketDisconnect:CODE
HIGHzhenxun/builtin_plugins/auto_update/_data_source.py123except (InvalidVersion, TypeError):CODE
HIGHzhenxun/utils/utils.py224except Exception:CODE
HIGHzhenxun/utils/utils.py275except Exception:CODE
HIGHzhenxun/utils/lifespan.py175except asyncio.CancelledError:CODE
HIGHzhenxun/utils/lifespan.py117except asyncio.TimeoutError:CODE
HIGHzhenxun/utils/manager/virtual_env_package_manager.py156except Exception:CODE
HIGHzhenxun/services/avatar_service.py108except FileNotFoundError:CODE
HIGHzhenxun/services/low_priority_writer.py317except BaseException:CODE
HIGHzhenxun/services/low_priority_writer.py159except asyncio.TimeoutError:CODE
HIGHzhenxun/services/send_queue.py297except Exception:CODE
HIGHzhenxun/services/renderer/theme.py179except Exception:CODE
HIGHzhenxun/services/renderer/theme.py874except Exception:CODE
HIGHzhenxun/services/llm/__init__.py237except Exception:CODE
HIGHzhenxun/services/db_context/__init__.py72except Exception:CODE
HIGHzhenxun/services/db_context/__init__.py248except Exception:CODE
HIGHzhenxun/services/db_context/__init__.py259except Exception:CODE
HIGHzhenxun/services/db_context/__init__.py268except Exception:CODE
HIGHzhenxun/services/cache/__init__.py743except Exception:CODE
HIGHzhenxun/services/cache/runtime_cache.py650except Exception:CODE
HIGHzhenxun/services/cache/runtime_cache.py656except Exception:CODE
HIGHzhenxun/services/scheduler/engine.py70except JobLookupError:CODE
HIGHzhenxun/services/ai/message_builder.py525except Exception:CODE
HIGHzhenxun/services/ai/message_builder.py549except Exception:CODE
HIGHzhenxun/services/ai/message_builder.py296except Exception:CODE
HIGHzhenxun/services/ai/tools/core/decorators.py210except Exception:CODE
HIGHzhenxun/services/ai/tools/providers/mcp/toolkit.py99except anyio.ClosedResourceError:CODE
HIGHzhenxun/services/ai/tools/providers/mcp/toolkit.py108except Exception:CODE
HIGHzhenxun/services/ai/tools/providers/builtin/memory.py228except Exception:CODE
HIGHzhenxun/services/ai/tools/providers/builtin/sandbox.py201except Exception:CODE
HIGHzhenxun/services/ai/tools/engine/executor.py186except Exception:CODE
HIGHzhenxun/services/ai/llm/adapters/openrouter.py169except Exception:CODE
HIGHzhenxun/services/ai/llm/adapters/base.py639except Exception:CODE
HIGH…n/services/ai/llm/adapters/handlers/gemini_handlers.py342except json.JSONDecodeError:CODE
HIGH…n/services/ai/llm/adapters/handlers/openai_handlers.py411except (json.JSONDecodeError, KeyError, binascii.Error):CODE
HIGHzhenxun/services/ai/llm/system/network.py266except asyncio.CancelledError:CODE
HIGHzhenxun/services/ai/core/engine/token_counter.py120except Exception:CODE
HIGHzhenxun/services/ai/sandbox/runtimes.py310except Exception:CODE
HIGHzhenxun/services/ai/sandbox/manager.py183except Exception:CODE
HIGHzhenxun/services/ai/sandbox/drivers/docker.py658except Exception:CODE
HIGHzhenxun/services/ai/sandbox/drivers/docker.py651except Exception:CODE
HIGHzhenxun/services/ai/sandbox/addons/mcp_proxy.py73except anyio.ClosedResourceError:CODE
HIGHzhenxun/services/ai/sandbox/addons/mcp_proxy.py95except anyio.ClosedResourceError:CODE
HIGHzhenxun/services/ai/sandbox/addons/mcp_proxy.py82except Exception:CODE
HIGHzhenxun/services/ai/run/ui.py83except Exception:CODE
HIGHzhenxun/services/ai/flow/agent/engine/executor.py394except Exception:CODE
HIGHzhenxun/services/ai/flow/team/strategy.py224except Exception:CODE
HIGHzhenxun/services/ai/flow/workflow/nodes.py459except asyncio.CancelledError:CODE
Deep Nesting284 hits · 274 pts
SeverityFileLineSnippetContext
LOWzhenxun/cli.py169CODE
LOWzhenxun/cli.py264CODE
LOWzhenxun/cli.py307CODE
LOWzhenxun/cli.py394CODE
LOWzhenxun/ui/models/charts.py133CODE
LOWzhenxun/ui/models/core/base.py15CODE
LOWzhenxun/builtin_plugins/withdraw.py62CODE
LOWzhenxun/builtin_plugins/__init__.py90CODE
LOWzhenxun/builtin_plugins/catchphrase.py19CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py377CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py768CODE
LOWzhenxun/builtin_plugins/init/init_config.py59CODE
LOWzhenxun/builtin_plugins/init/manager.py74CODE
LOWzhenxun/builtin_plugins/init/manager.py204CODE
LOWzhenxun/builtin_plugins/init/manager.py215CODE
LOWzhenxun/builtin_plugins/init/manager.py226CODE
LOWzhenxun/builtin_plugins/init/manager.py315CODE
LOW…un/builtin_plugins/chat_history/chat_message_handle.py96CODE
LOWzhenxun/builtin_plugins/shop/_data_source.py248CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py59CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py188CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/ui.py122CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/ui.py283CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py143CODE
LOWzhenxun/builtin_plugins/admin/ban/_data_source.py24CODE
LOW…ltin_plugins/admin/group_member_update/_data_source.py22CODE
LOW…/builtin_plugins/admin/group_member_update/__init__.py194CODE
LOW…n/builtin_plugins/admin/welcome_message/data_source.py96CODE
LOWzhenxun/builtin_plugins/scheduler/auto_backup.py34CODE
LOWzhenxun/builtin_plugins/scheduler/chat_check.py30CODE
LOWzhenxun/builtin_plugins/superuser/exec_sql.py73CODE
LOWzhenxun/builtin_plugins/superuser/clear_data.py59CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py198CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py382CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py522CODE
LOWzhenxun/builtin_plugins/superuser/request_manage.py188CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py232CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py486CODE
LOWzhenxun/builtin_plugins/superuser/broadcast/utils.py11CODE
LOWzhenxun/builtin_plugins/superuser/broadcast/utils.py112CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py36CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py190CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py357CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py446CODE
LOWzhenxun/builtin_plugins/llm_manager/data_source.py203CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py111CODE
LOWzhenxun/builtin_plugins/hooks/auth_hook.py141CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py149CODE
LOWzhenxun/builtin_plugins/hooks/call_hook.py14CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py533CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py674CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py904CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py1046CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py1153CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py299CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py329CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py354CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py866CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py1002CODE
LOWzhenxun/builtin_plugins/hooks/auth_snapshot.py208CODE
224 more matches not shown…
Modern Structural Boilerplate110 hits · 112 pts
SeverityFileLineSnippetContext
LOWzhenxun/ui/__init__.py425__all__ = [CODE
LOWzhenxun/ui/models/__init__.py48__all__ = [CODE
LOWzhenxun/ui/models/core/containers.py12__all__ = [CODE
LOWzhenxun/ui/models/core/__init__.py40__all__ = [CODE
LOWzhenxun/ui/models/core/content.py16__all__ = [CODE
LOWzhenxun/ui/models/core/base.py12__all__ = ["ContainerComponent", "RenderableComponent"]CODE
LOWzhenxun/ui/models/components/feedback.py8__all__ = ["Alert", "Badge", "ProgressBar"]CODE
LOWzhenxun/ui/models/components/__init__.py5__all__ = [CODE
LOWzhenxun/ui/models/components/display.py7__all__ = ["Avatar", "AvatarGroup", "Divider", "Rectangle", "UserInfoBlock"]CODE
LOWzhenxun/ui/models/components/data.py7__all__ = ["KpiCard", "Timeline", "TimelineItem"]CODE
LOWzhenxun/ui/models/presets/plugin_menu.py5__all__ = [CODE
LOWzhenxun/ui/models/presets/plugin_help_page.py5__all__ = [CODE
LOWzhenxun/ui/models/presets/__init__.py9__all__ = [CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py50 async def set_default_status(self, entity: Any, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py62 async def set_all_default_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py67 async def set_all_global_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py113 async def set_default_status(self, entity: PluginInfo, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py124 async def set_all_default_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py130 async def set_all_global_status(self, status: bool) -> None:CODE
LOW⚡zhenxun/builtin_plugins/admin/plugin_switch/strategy.py164 async def set_default_status(self, entity: TaskInfo, status: bool) -> None:CODE
LOW⚡zhenxun/builtin_plugins/admin/plugin_switch/strategy.py174 async def set_all_default_status(self, status: bool) -> None:CODE
LOW⚡zhenxun/builtin_plugins/admin/plugin_switch/strategy.py179 async def set_all_global_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/hooks/auth_policy.py262__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_legacy_fallback.py54__all__ = ["legacy_pure_auth_fallback"]CODE
LOWzhenxun/builtin_plugins/hooks/auth_profile.py122__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py361__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_types.py57__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py1554__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_trace.py37__all__ = ["HookTraceRecorder"]CODE
LOWzhenxun/builtin_plugins/hooks/auth_snapshot.py395__all__ = ["AuthSnapshot", "build_auth_snapshot", "get_or_build_auth_snapshot"]CODE
LOWzhenxun/builtin_plugins/hooks/auth/data_provider.py143__all__ = [CODE
LOWzhenxun/builtin_plugins/scheduler_admin/__init__.py8__all__ = ["commands", "handlers"]CODE
LOWzhenxun/utils/pydantic_compat.py63__all__ = [CODE
LOWzhenxun/utils/repo_utils/__init__.py34__all__ = [CODE
LOWzhenxun/utils/github_utils/__init__.py7__all__ = [CODE
LOWzhenxun/models/bot_console.py159 async def set_bot_status(cls, status: bool, bot_id: str | None = None) -> None:CODE
LOWzhenxun/configs/config.py8__all__ = ["BotConfig", "Config"]CODE
LOWzhenxun/configs/utils/models.py10__all__ = [CODE
LOWzhenxun/configs/utils/__init__.py526__all__ = [CODE
LOWzhenxun/services/__init__.py35__all__ = [CODE
LOWzhenxun/services/data_access.py58 def set_null_result_ttl(cls, seconds: int) -> None:CODE
LOW⚡zhenxun/services/runtime_bootstrap.py122 async def _setup_runtime_concurrency() -> None:CODE
LOW⚡zhenxun/services/renderer/theme.py401 def _set_asset_resolution_cache(self, key: tuple[str, str], value: str) -> None:CODE
LOW⚡zhenxun/services/renderer/theme.py409 def _set_global_template_cache(self, key: str, value: str) -> None:CODE
LOWzhenxun/services/renderer/__init__.py22__all__ = ["RenderResult", "Renderable", "renderer_service"]CODE
LOW⚡zhenxun/services/renderer/engine.py492 def _update_rss_baseline_nolock(self, current_rss: int) -> None:STRING
LOWzhenxun/services/llm/__init__.py363__all__ = [CODE
LOWzhenxun/services/db_context/__init__.py42__all__ = [CODE
LOWzhenxun/services/cache/__init__.py75__all__ = [CODE
LOWzhenxun/services/cache/runtime_cache.py926 def set_plugin(cls, plugin) -> None:CODE
LOWzhenxun/services/cache/runtime_cache.py1110 async def update_status(cls, bot_id: str | None, status: bool) -> None:CODE
LOWzhenxun/services/scheduler/__init__.py13__all__ = ["ExecutionPolicy", "ScheduleContext", "Trigger", "scheduler_manager"]CODE
LOWzhenxun/services/scheduler/targeting.py17__all__ = [CODE
LOWzhenxun/services/tags/__init__.py11__all__ = ["tag_manager"]CODE
LOWzhenxun/services/ai/__init__.py7__all__ = [CODE
LOWzhenxun/services/ai/tools/models.py368__all__ = [CODE
LOWzhenxun/services/ai/tools/__init__.py23__all__ = [CODE
LOWzhenxun/services/ai/tools/core/__init__.py13__all__ = [CODE
LOWzhenxun/services/ai/tools/core/decorators.py414__all__ = [CODE
LOWzhenxun/services/ai/tools/providers/mcp/provider.py218 def _setup_toolkit(self, name: str, conf: MCPServerConfig) -> None:CODE
50 more matches not shown…
Cross-Language Confusion5 hits · 32 pts
SeverityFileLineSnippetContext
HIGH⚡zhenxun/models/chat_history.py152 "alter table chat_history alter group_id drop not null;",CODE
HIGH⚡zhenxun/models/chat_history.py154 "alter table chat_history alter text drop not null;",CODE
HIGH⚡zhenxun/models/chat_history.py156 "alter table chat_history alter plain_text drop not null;",CODE
HIGHzhenxun/services/renderer/engine.py792 document.fonts && document.fonts.size > 0CODE
HIGHzhenxun/services/ai/sandbox/runtimes.py278 await self.session.run_process("pkill -9 -f jupyter-server || true")CODE
AI Structural Patterns15 hits · 15 pts
SeverityFileLineSnippetContext
LOWzhenxun/ui/models/core/content.py86CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py143CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py286CODE
LOWzhenxun/builtin_plugins/scheduler_admin/handlers.py61CODE
LOWzhenxun/utils/decorator/retry.py123CODE
LOWzhenxun/utils/decorator/shop.py186CODE
LOWzhenxun/services/llm/__init__.py335CODE
LOWzhenxun/services/scheduler/targeting.py35CODE
LOWzhenxun/services/scheduler/targeting.py46CODE
LOWzhenxun/services/scheduler/manager.py393CODE
LOWzhenxun/services/ai/tools/providers/mcp/toolkit.py270CODE
LOWzhenxun/services/ai/context/memory/capabilities.py32CODE
LOWzhenxun/services/ai/context/knowledge/vector.py61CODE
LOWzhenxun/services/ai/sandbox/runtimes.py557CODE
LOWzhenxun/services/ai/flow/agent/agent.py336CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHzhenxun/services/ai/config/manager.py21 "api_key": "YOUR_API_KEY",CODE
HIGHzhenxun/services/ai/config/manager.py57 "api_key": "YOUR_API_KEY",CODE
HIGHzhenxun/services/ai/config/manager.py93 "api_key": "YOUR_API_KEY",CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHzhenxun/builtin_plugins/plugin_store/data_source.py0被动技能文本风格 参数: column: 表头 text: 文本内容 返回: rowstyle: rowstyleSTRING
HIGHzhenxun/builtin_plugins/superuser/bot_manage/task.py0被动技能文本风格 参数: column: 表头 text: 文本内容 返回: rowstyle: rowstyleSTRING
HIGHzhenxun/builtin_plugins/superuser/bot_manage/plugin.py0被动技能文本风格 参数: column: 表头 text: 文本内容 返回: rowstyle: rowstyleSTRING
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql.yml61 uses: github/codeql-action/init@v3COMMENT
LOWzhenxun/builtin_plugins/init/init_plugin.py141 # for limit in limit_list:COMMENT
LOWzhenxun/builtin_plugins/superuser/fg_manage.py41)COMMENT
LOWzhenxun/builtin_plugins/mahiro_bank/__init__.py221COMMENT
LOWzhenxun/builtin_plugins/mahiro_bank/__init__.py241# )COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/codeql.yml53 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMzhenxun/models/level_user.py112CODE