AI Slop Code RIsk Monitor

1Panel-dev/MaxKB

🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。

10.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for 1Panel-dev/MaxKB, a Python project with 22,938 GitHub stars. SynthScan examined 246,902 lines of code across 1951 source files, recording 1662 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 10.7 (Moderate 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.

10.7
Adjusted Signal
10.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
22.9K
Stars
Python
Language
246.9K
Lines of Code
2.0K
Files
1.7K
Pattern Hits
2026-10-12
Scan Date
0.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 12.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 9.3/100 · LOW

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

Agent Over-Engineering Ratio 33.3/100 · MEDIUM

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

PR Review Velocity Impact 43.8/100 · MEDIUM

Which changes need focused human review? 1662 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 7HIGH 200MEDIUM 59LOW 1396

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 1662 distinct pattern matches across 16 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.

Cross-File Repetition163 hits · 815 pts
SeverityFileLineSnippetContext
HIGHapps/tools/serializers/tool.py0加密敏感字段数据 加密方式是 如果密码是 1234567890 那么给前端则是 123******890 :param message: :return:STRING
HIGHapps/models_provider/base_model_provider.py0加密敏感字段数据 加密方式是 如果密码是 1234567890 那么给前端则是 123******890 :param message: :return:STRING
HIGHapps/common/utils/common.py0加密敏感字段数据 加密方式是 如果密码是 1234567890 那么给前端则是 123******890 :param message: :return:STRING
HIGHapps/tools/views/tool_workflow_version.py0@project: maxkb @author:虎虎 @file: application_version.py.py @date:2025/6/3 15:46 @desc:STRING
HIGHapps/knowledge/views/knowledge_workflow_version.py0@project: maxkb @author:虎虎 @file: application_version.py.py @date:2025/6/3 15:46 @desc:STRING
HIGHapps/application/views/application_version.py0@project: maxkb @author:虎虎 @file: application_version.py.py @date:2025/6/3 15:46 @desc:STRING
HIGH…er/impl/regolo_model_provider/regolo_model_provider.py0@project: maxkb @author:虎 @file: openai_model_provider.py @date:2024/3/28 16:26 @desc:STRING
HIGH…er/impl/openai_model_provider/openai_model_provider.py0@project: maxkb @author:虎 @file: openai_model_provider.py @date:2024/3/28 16:26 @desc:STRING
HIGH…conCloud_model_provider/siliconCloud_model_provider.py0@project: maxkb @author:虎 @file: openai_model_provider.py @date:2024/3/28 16:26 @desc:STRING
HIGH…l/anthropic_model_provider/anthropic_model_provider.py0@project: maxkb @author:虎 @file: openai_model_provider.py @date:2024/3/28 16:26 @desc:STRING
HIGH…models_provider/impl/regolo_model_provider/__init__.py0@project: maxkb @author:虎 @file: __init__.py.py @date:2024/3/28 16:25 @desc:STRING
HIGH…models_provider/impl/openai_model_provider/__init__.py0@project: maxkb @author:虎 @file: __init__.py.py @date:2024/3/28 16:25 @desc:STRING
HIGH…els_provider/impl/docker_ai_model_provider/__init__.py0@project: maxkb @author:虎 @file: __init__.py.py @date:2024/3/28 16:25 @desc:STRING
HIGH…_provider/impl/siliconCloud_model_provider/__init__.py0@project: maxkb @author:虎 @file: __init__.py.py @date:2024/3/28 16:25 @desc:STRING
HIGH…els_provider/impl/anthropic_model_provider/__init__.py0@project: maxkb @author:虎 @file: __init__.py.py @date:2024/3/28 16:25 @desc:STRING
HIGH…der/impl/regolo_model_provider/credential/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 16:45 @desc:STRING
HIGH…vider/impl/vllm_model_provider/credential/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 16:45 @desc:STRING
HIGH…der/impl/openai_model_provider/credential/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 16:45 @desc:STRING
HIGH…/impl/docker_ai_model_provider/credential/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 16:45 @desc:STRING
HIGH…volcanic_engine_model_provider/credential/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 16:45 @desc:STRING
HIGH…pl/siliconCloud_model_provider/credential/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 16:45 @desc:STRING
HIGH…der/impl/gemini_model_provider/credential/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 16:45 @desc:STRING
HIGH…_provider/impl/regolo_model_provider/credential/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/7/11 18:32 @desc:STRING
HIGH…_provider/impl/openai_model_provider/credential/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/7/11 18:32 @desc:STRING
HIGH…ovider/impl/docker_ai_model_provider/credential/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/7/11 18:32 @desc:STRING
HIGH…der/impl/siliconCloud_model_provider/credential/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/7/11 18:32 @desc:STRING
HIGH…ovider/impl/anthropic_model_provider/credential/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/7/11 18:32 @desc:STRING
HIGH…provider/impl/regolo_model_provider/model/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 17:44 @desc:STRING
HIGH…s_provider/impl/vllm_model_provider/model/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 17:44 @desc:STRING
HIGH…provider/impl/openai_model_provider/model/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 17:44 @desc:STRING
HIGH…vider/impl/docker_ai_model_provider/model/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 17:44 @desc:STRING
HIGH…_provider/impl/azure_model_provider/model/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 17:44 @desc:STRING
HIGH…provider/impl/gemini_model_provider/model/embedding.py0@project: maxkb @author:虎 @file: embedding.py @date:2024/7/12 17:44 @desc:STRING
HIGH…odels_provider/impl/regolo_model_provider/model/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/4/18 15:28 @desc:STRING
HIGH…odels_provider/impl/openai_model_provider/model/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/4/18 15:28 @desc:STRING
HIGH…ls_provider/impl/docker_ai_model_provider/model/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/4/18 15:28 @desc:STRING
HIGH…provider/impl/siliconCloud_model_provider/model/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/4/18 15:28 @desc:STRING
HIGH…ls_provider/impl/anthropic_model_provider/model/llm.py0@project: maxkb @author:虎 @file: llm.py @date:2024/4/18 15:28 @desc:STRING
HIGH…/aliyun_bai_lian_model_provider/credential/reranker.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/ttv.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/itv.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…provider/impl/minimax_model_provider/credential/ttv.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…provider/impl/minimax_model_provider/credential/itv.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…_provider/impl/gemini_model_provider/credential/ttv.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…_provider/impl/gemini_model_provider/credential/itv.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/tts.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/tti.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…provider/impl/minimax_model_provider/credential/tti.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…l/aliyun_bai_lian_model_provider/credential/stt/stt.py0validate the model credentials. :param model_type: type of the model (e.g., 'stt'). :param model_name: name of the modelSTRING
HIGH…/aliyun_bai_lian_model_provider/credential/reranker.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/ttv.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/tts.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/tti.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…/impl/aliyun_bai_lian_model_provider/credential/itv.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…l/aliyun_bai_lian_model_provider/credential/stt/stt.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…provider/impl/minimax_model_provider/credential/ttv.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…provider/impl/minimax_model_provider/credential/tti.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…provider/impl/minimax_model_provider/credential/itv.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…_provider/impl/gemini_model_provider/credential/ttv.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
HIGH…_provider/impl/gemini_model_provider/credential/itv.py0encrypt sensitive fields in the model dictionary. :param model: dictionary containing model details. :return: dictionarySTRING
103 more matches not shown…
Hyper-Verbose Identifiers454 hits · 477 pts
SeverityFileLineSnippetContext
LOW…src/components/resource-authorization-drawer/index.vue261function filterHasPermissionFolderIds(folderIds: string[]) {CODE
LOWui/src/components/codemirror-editor/index.vue89function getRangeFromLineAndColumn(state: any, line: number, column: number, end_column?: number) {CODE
LOWui/src/components/resource_mapping/index.vue568function handleDependencySizeChange() {CODE
LOWui/src/workflow/nodes/base-node/index.vue501function submitLongTermSettingDialog(data: any) {CODE
LOWui/src/workflow/nodes/ai-chat-node/index.vue897function getApplicationSelectOptions() {CODE
LOWui/src/workflow/nodes/ai-chat-node/index.vue934function getSkillToolSelectOptions() {CODE
LOWui/src/workflow/common/validate.ts424export function validateWorkflowDefaultModels(work_flow: any, default_model_setting: any) {CODE
LOW…lication-overview/xpack-component/XPackLimitDrawer.vue282function generateAuthenticationValue(length: number = 10) {CODE
LOWui/src/views/home/component/QuickCreate.vue459function openCreateApplicationDialog(type?: string) {CODE
LOWui/src/views/home/component/QuickCreate.vue490function openCreateKnowledgeDialog(data: any) {CODE
LOWui/src/views/home/component/QuickCreate.vue592function openCreateDataSourceDialog() {CODE
LOWui/src/views/knowledge-workflow/index.vue273function toggleDefaultModelSetting() {CODE
LOWui/src/views/knowledge-workflow/index.vue277function clickoutsideDefaultModelSetting() {CODE
LOWui/src/views/tool-workflow/index.vue240function toggleDefaultModelSetting() {CODE
LOWui/src/views/tool-workflow/index.vue244function clickoutsideDefaultModelSetting() {CODE
LOWui/src/views/application-workflow/index.vue238function toggleDefaultModelSetting() {CODE
LOWui/src/views/application-workflow/index.vue242function clickoutsideDefaultModelSetting() {CODE
LOW…c/views/knowledge/component/KnowledgeListContainer.vue780function openAuthorizedWorkspaceDialog(row: any) {CODE
LOWui/src/views/model/component/ModelCard.vue308function openAuthorizedWorkspaceDialog(row: any) {CODE
LOWui/src/views/application/index.vue541function openBatchClearStrategyDialog() {CODE
LOWui/src/views/application/ApplicationSetting.vue1101function submitNoReferencesPromptDialog(val: string) {CODE
LOWui/src/views/application/ApplicationSetting.vue1231function submitLongTermSettingDialog(data: any) {CODE
LOWui/src/views/application/ApplicationSetting.vue1304function getApplicationSelectOptions() {CODE
LOWui/src/views/application/ApplicationSetting.vue1369function getSkillToolSelectOptions() {CODE
LOW…/views/application/component/LongTermSettingDialog.vue267function openLongTermParamSettingDialog() {CODE
LOW…views/system-resource-management/ToolResourceIndex.vue661function openCreateDataSourceDialog(data?: any) {CODE
LOW…views/system-resource-management/ToolResourceIndex.vue679function openCreateSkillToolDialog(data?: any) {CODE
LOWui/src/views/tool/component/ToolListContainer.vue791function openAuthorizedWorkspaceDialog(row: any) {CODE
LOWui/src/views/tool/component/ToolListContainer.vue891function openCreateDataSourceDialog(data?: any) {CODE
LOWapps/tools/serializers/tool_workflow.py63def is_valid_tool_workflow_circular_dependency(workflow, _id, visited=None, stack=None):CODE
LOWapps/tools/serializers/tool_workflow.py267 def get_tool_knowledge_mapping(application_knowledge_id_list, knowledge_id_list, tool_id):CODE
LOWapps/tools/serializers/tool_workflow.py484def update_resource_mapping_by_tool(tool_id: str, other_resource_mapping=None):CODE
LOWapps/tools/views/tool_workflow_version.py27def get_knowledge_operation_object(knowledge_id):CODE
LOWapps/tools/views/tool.py32def get_tool_operation_object(tool_id):CODE
LOWapps/tools/views/tool.py39def get_tool_operation_object_batch(tool_id_list):CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py29def _get_active_trigger_tasks(trigger_id: str) -> list[dict]:CODE
LOWapps/trigger/handler/impl/task/application_task.py78def get_application_execute_parameters(parameter_setting, application_parameters_setting, kwargs):CODE
LOWapps/trigger/handler/impl/task/application_task.py130def get_user_field_component_input_type(input_type):CODE
LOWapps/trigger/handler/impl/task/application_task.py138def get_application_parameters_setting(application):CODE
LOW…gger/handler/impl/task/tool_task/workflow_tool_task.py46def get_tool_execute_parameters(input_field_list, parameter_setting, kwargs):CODE
LOW…/trigger/handler/impl/task/tool_task/base_tool_task.py46def get_tool_execute_parameters(input_field_list, parameter_setting, kwargs):CODE
LOWapps/trigger/serializers/trigger.py77 def validate_api_input_field_list(self, value):CODE
LOWapps/trigger/serializers/trigger.py80 def validate_user_input_field_list(self, value):CODE
LOWapps/trigger/serializers/trigger.py100 def validate_user_input_field_list(self, value):CODE
LOWapps/trigger/serializers/trigger.py129 def _validate_non_empty_array(value, field_name):CODE
LOWapps/trigger/serializers/trigger.py165 def _validate_scheduled_setting(self, setting):CODE
LOWapps/trigger/serializers/trigger.py402 def batch_get_source_active_status(trigger_tasks: list) -> Dict[tuple, bool]:CODE
LOWapps/trigger/views/trigger.py34def get_trigger_operation_object(trigger_id):CODE
LOWapps/trigger/views/trigger.py42def get_trigger_operation_object_batch(trigger_id_list):CODE
LOWapps/models_provider/tools.py144def get_model_instance_by_model_workspace_id(model_id, workspace_id, **kwargs):CODE
LOWapps/models_provider/base_model_provider.py137 def get_model_params_setting_form(self, model_name):CODE
LOWapps/models_provider/base_model_provider.py221 def append_default_model_info(self, model_info: ModelInfo):CODE
LOWapps/models_provider/base_model_provider.py228 def get_model_list_by_model_type(self, model_type):CODE
LOWapps/models_provider/base_model_provider.py254 def append_default_model_info(self, model_info: ModelInfo):CODE
LOWapps/models_provider/tests.py33 def test_compress_documents_accepts_string_documents(self, client_mock):CODE
LOWapps/models_provider/tests.py44 def test_extracts_text_from_legacy_document_object(self):CODE
LOWapps/models_provider/tests.py49 def test_extracts_text_from_current_document_string(self):CODE
LOWapps/models_provider/impl/base_chat_open_ai.py27def _convert_delta_to_message_chunk(CODE
LOWapps/models_provider/impl/base_chat_open_ai.py92 def get_num_tokens_from_messages(CODE
LOWapps/models_provider/impl/base_chat_open_ai.py139 def _convert_chunk_to_generation_chunk(CODE
394 more matches not shown…
Excessive Try-Catch Wrapping389 hits · 424 pts
SeverityFileLineSnippetContext
LOWmain.py47 except Exception as e:CODE
LOWmain.py85 except Exception as exc:CODE
LOWapps/tools/serializers/tool_workflow.py383 except Exception as e:CODE
LOWapps/tools/serializers/tool_workflow.py479 except Exception as e:CODE
LOWapps/tools/serializers/tool.py167 except Exception as e:CODE
LOWapps/tools/serializers/tool.py492 except Exception as e:CODE
LOWapps/tools/serializers/tool.py609 except Exception as e:CODE
LOWapps/tools/serializers/tool.py850 except Exception as e:CODE
LOWapps/tools/serializers/tool.py1091 except Exception as e:CODE
LOWapps/tools/serializers/tool.py1113 except Exception as e:CODE
LOWapps/tools/serializers/tool.py1326 except Exception as e:CODE
LOWapps/tools/serializers/tool.py1396 except Exception as e:CODE
LOWapps/tools/serializers/tool.py1454 except Exception as e:CODE
LOWapps/tools/serializers/tool.py1659 except Exception as e:CODE
MEDIUMapps/tools/serializers/tool.py829def export(self):CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py44 except Exception:CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py75 except Exception:CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py82 except Exception:CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py116 except Exception:CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py123 except Exception:CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py179 except Exception:CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py209 except Exception as e:CODE
LOWapps/trigger/handler/impl/task/application_task.py38 except Exception as e:CODE
LOWapps/trigger/handler/impl/task/application_task.py245 except Exception as e:CODE
LOW…gger/handler/impl/task/tool_task/workflow_tool_task.py127 except Exception as e:CODE
LOW…/trigger/handler/impl/task/tool_task/base_tool_task.py142 except Exception as e:CODE
LOWapps/models_provider/impl/base_chat_open_ai.py108 except Exception as e:CODE
LOWapps/models_provider/impl/base_chat_open_ai.py121 except Exception as e:CODE
LOW…der/impl/regolo_model_provider/credential/embedding.py37 except Exception as e:CODE
LOW…_provider/impl/regolo_model_provider/credential/llm.py59 except Exception as e:CODE
LOW…_provider/impl/regolo_model_provider/credential/tti.py71 except Exception as e:STRING
LOW…rovider/impl/regolo_model_provider/credential/image.py56 except Exception as e:CODE
LOW…odels_provider/impl/regolo_model_provider/model/tti.py60 except Exception as e:CODE
LOW…ovider/impl/vllm_model_provider/credential/reranker.py46 except Exception as e:CODE
LOW…vider/impl/vllm_model_provider/credential/embedding.py36 except Exception as e:CODE
LOW…ls_provider/impl/vllm_model_provider/credential/llm.py41 except Exception as e:CODE
LOW…ls_provider/impl/vllm_model_provider/credential/llm.py50 except Exception as e:CODE
LOW…der/impl/vllm_model_provider/credential/whisper_stt.py42 except Exception as e:CODE
LOW…_provider/impl/vllm_model_provider/credential/image.py55 except Exception as e:CODE
LOW…provider/impl/vllm_model_provider/model/whisper_sst.py68 except Exception as err:CODE
LOW…/aliyun_bai_lian_model_provider/credential/reranker.py74 except Exception as e:CODE
LOW…aliyun_bai_lian_model_provider/credential/embedding.py72 except Exception as e:CODE
LOW…/impl/aliyun_bai_lian_model_provider/credential/ttv.py90 except Exception as e:CODE
LOW…/impl/aliyun_bai_lian_model_provider/credential/tts.py127 except Exception as e:CODE
LOW…/impl/aliyun_bai_lian_model_provider/credential/llm.py77 except Exception as e:CODE
LOW…/impl/aliyun_bai_lian_model_provider/credential/tti.py114 except Exception as e:CODE
LOW…/impl/aliyun_bai_lian_model_provider/credential/itv.py87 except Exception as e:CODE
LOW…mpl/aliyun_bai_lian_model_provider/credential/image.py69 except Exception as e:CODE
LOW…yun_bai_lian_model_provider/credential/stt/omni_stt.py52 except Exception as e:CODE
LOW…iyun_bai_lian_model_provider/credential/stt/asr_stt.py44 except Exception as e:CODE
LOW…_bai_lian_model_provider/credential/stt/default_stt.py61 except Exception as e:CODE
LOW…l/aliyun_bai_lian_model_provider/credential/stt/stt.py69 except Exception as e:CODE
LOW…l/aliyun_bai_lian_model_provider/model/stt/omni_stt.py89 except Exception as err:CODE
MEDIUM…l/aliyun_bai_lian_model_provider/model/stt/omni_stt.py48def speech_to_text(self, audio_file):CODE
LOW…pl/aliyun_bai_lian_model_provider/model/stt/asr_stt.py72 except Exception as err:CODE
MEDIUM…pl/aliyun_bai_lian_model_provider/model/stt/asr_stt.py45def speech_to_text(self, audio_file):CODE
LOW…s_provider/impl/zhipu_model_provider/credential/llm.py56 except Exception as e:CODE
LOW…s_provider/impl/zhipu_model_provider/credential/tti.py51 except Exception as e:CODE
LOW…provider/impl/zhipu_model_provider/credential/image.py55 except Exception as e:CODE
LOW⚡…models_provider/impl/zhipu_model_provider/model/llm.py46 except Exception as e:CODE
329 more matches not shown…
Unused Imports397 hits · 397 pts
SeverityFileLineSnippetContext
LOWapps/tools/admin.py1CODE
LOWapps/tools/tests.py1CODE
LOWapps/tools/models/__init__.py3CODE
LOWapps/tools/models/__init__.py4CODE
LOWapps/tools/serializers/tool_workflow.py15CODE
LOWapps/tools/serializers/tool_workflow.py18CODE
LOWapps/tools/serializers/tool_workflow.py37CODE
LOWapps/tools/serializers/tool_workflow.py38CODE
LOWapps/tools/serializers/tool_workflow.py38CODE
LOWapps/tools/serializers/tool_workflow.py42CODE
LOWapps/tools/serializers/tool_workflow.py44CODE
LOWapps/tools/serializers/tool_workflow.py47CODE
LOWapps/tools/serializers/tool_workflow.py50CODE
LOWapps/tools/serializers/tool_workflow.py52CODE
LOWapps/tools/serializers/tool_workflow.py54CODE
LOWapps/tools/serializers/tool_workflow.py57CODE
LOWapps/tools/serializers/tool_workflow.py58CODE
LOWapps/tools/views/__init__.py1CODE
LOWapps/tools/views/__init__.py2CODE
LOWapps/tools/views/__init__.py3CODE
LOWapps/trigger/tasks.py3CODE
LOWapps/trigger/tasks.py6CODE
LOWapps/trigger/admin.py1CODE
LOWapps/trigger/tests.py1CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py2CODE
LOWapps/trigger/models/__init__.py9CODE
LOWapps/trigger/views/__init__.py9CODE
LOWapps/trigger/views/__init__.py10CODE
LOWapps/trigger/views/trigger.py15CODE
LOWapps/models_provider/admin.py1CODE
LOWapps/models_provider/impl/base_chat_open_ai.py11CODE
LOW…rovider/impl/regolo_model_provider/credential/image.py2CODE
LOW…rovider/impl/regolo_model_provider/credential/image.py3CODE
LOW…odels_provider/impl/regolo_model_provider/model/llm.py9CODE
LOW…odels_provider/impl/regolo_model_provider/model/llm.py11CODE
LOW…odels_provider/impl/regolo_model_provider/model/llm.py11CODE
LOW…odels_provider/impl/regolo_model_provider/model/llm.py12CODE
LOW…der/impl/vllm_model_provider/credential/whisper_stt.py2CODE
LOW…der/impl/vllm_model_provider/credential/whisper_stt.py6CODE
LOW…provider/impl/vllm_model_provider/model/whisper_sst.py1CODE
LOW…/impl/aliyun_bai_lian_model_provider/credential/ttv.py9CODE
LOW…/impl/aliyun_bai_lian_model_provider/credential/itv.py9CODE
LOW…yun_bai_lian_model_provider/credential/stt/__init__.py9CODE
LOW…yun_bai_lian_model_provider/credential/stt/__init__.py10CODE
LOW…yun_bai_lian_model_provider/credential/stt/__init__.py11CODE
LOW…yun_bai_lian_model_provider/credential/stt/__init__.py12CODE
LOW…/impl/aliyun_bai_lian_model_provider/model/reranker.py10CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py2CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py3CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py4CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py4CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py4CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py6CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py7CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py8CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py8CODE
LOW…der/impl/aliyun_bai_lian_model_provider/model/image.py9CODE
LOW…l/aliyun_bai_lian_model_provider/model/stt/__init__.py10CODE
LOW…l/aliyun_bai_lian_model_provider/model/stt/__init__.py11CODE
LOW…l/aliyun_bai_lian_model_provider/model/stt/__init__.py12CODE
337 more matches not shown…
Empty Error Handlers35 hits · 175 pts
SeverityFileLineSnippetContext
HIGHmain.py29except:CODE
HIGHapps/trigger/handler/impl/task/application_task.py38except Exception as e:CODE
HIGHapps/models_provider/impl/base_chat_open_ai.py54except KeyError:CODE
HIGHapps/chat/serializers/chat_authentication.py35except Exception as e:CODE
HIGHapps/common/handle/impl/qa/zip_parse_qa_handle.py137except Exception:CODE
HIGHapps/common/handle/impl/text/zip_split_handle.py173except Exception:CODE
HIGHapps/common/handle/impl/text/doc_split_handle.py139except Exception as e:CODE
HIGHapps/common/handle/impl/text/doc_split_handle.py62except Exception as e:CODE
HIGHapps/common/handle/impl/text/pdf_split_handle.py554except BaseException:CODE
HIGHapps/common/encoder/encoder.py33except:CODE
HIGH…s/common/management/commands/services/services/base.py142except:CODE
HIGH…s/common/management/commands/services/services/base.py104except:CODE
HIGH…s/common/management/commands/services/services/base.py166except:CODE
HIGHapps/common/utils/common.py81except ValueError:CODE
HIGHapps/common/log/log.py159except Exception as e:CODE
HIGHapps/common/log/log.py97except Exception as e:CODE
HIGHapps/knowledge/serializers/document.py1692except AlreadyQueued as e:CODE
HIGHapps/knowledge/serializers/document.py1536except AlreadyQueued as e:CODE
HIGHapps/knowledge/serializers/document.py1550except AlreadyQueued as e:CODE
HIGHapps/knowledge/task/sync.py74except Exception as e:CODE
HIGHapps/knowledge/task/embedding.py128except Exception as e:CODE
HIGHapps/knowledge/task/generate.py71except Exception as e:CODE
HIGHapps/maxkb/settings/mem.py20except Exception:CODE
HIGHapps/ops/celery/hmac_signed_serializer.py12except ImportError:CODE
HIGHapps/ops/celery/signal_handler.py63except ImportError:CODE
HIGHapps/application/flow/workflow_manage.py72except IndexError as e:CODE
HIGHapps/application/flow/loop_workflow_manage.py65except IndexError as e:CODE
HIGH…cation/flow/step_node/form_node/impl/base_form_node.py41except Exception as _:CODE
HIGH…le_splitting_node/impl/base_variable_splitting_node.py62except Exception:CODE
HIGHapps/application/flow/compare/ge_compare.py23except Exception:CODE
HIGHapps/application/flow/compare/gt_compare.py23except Exception:CODE
HIGHapps/application/flow/compare/__init__.py68except Exception:CODE
HIGHapps/application/flow/compare/__init__.py73except Exception:CODE
HIGHapps/application/flow/compare/lt_compare.py23except Exception:CODE
HIGHapps/application/flow/compare/le_compare.py23except Exception:CODE
Deep Nesting141 hits · 134 pts
SeverityFileLineSnippetContext
LOWapps/tools/serializers/init_field.py114CODE
LOWapps/tools/serializers/tool_workflow.py63CODE
LOWapps/tools/serializers/tool_workflow.py432CODE
LOWapps/tools/serializers/tool_workflow.py291CODE
LOWapps/tools/serializers/tool.py643CODE
LOWapps/tools/serializers/tool.py748CODE
LOWapps/tools/serializers/tool.py790CODE
LOWapps/tools/serializers/tool.py1281CODE
LOWapps/trigger/handler/impl/trigger/scheduled_trigger.py238CODE
LOWapps/trigger/handler/impl/trigger/event_trigger.py29CODE
LOWapps/trigger/handler/impl/task/application_task.py78CODE
LOWapps/trigger/handler/impl/task/application_task.py111CODE
LOWapps/trigger/handler/impl/task/application_task.py138CODE
LOW…/trigger/handler/impl/task/tool_task/base_tool_task.py56CODE
LOWapps/trigger/serializers/trigger.py165CODE
LOWapps/models_provider/impl/base_chat_open_ai.py92CODE
LOW…vider/impl/aliyun_bai_lian_model_provider/model/tts.py46CODE
LOW…vider/impl/aliyun_bai_lian_model_provider/model/tti.py67CODE
LOW…r/impl/aliyun_bai_lian_model_provider/model/stt/stt.py48CODE
LOW…els_provider/impl/xf_model_provider/model/embedding.py27CODE
LOW…els_provider/impl/xf_model_provider/model/zh_en_stt.py195CODE
LOW…/models_provider/impl/xf_model_provider/model/image.py19CODE
LOW…ps/models_provider/impl/xf_model_provider/model/stt.py137CODE
LOW…impl/xf_model_provider/model/tts/super_humanoid_tts.py129CODE
LOW…_provider/impl/tencent_model_provider/model/hunyuan.py32CODE
LOW…odels_provider/impl/openai_model_provider/model/tti.py51CODE
LOW…ls_provider/impl/docker_ai_model_provider/model/tti.py51CODE
LOW…vider/impl/volcanic_engine_model_provider/model/tts.py141CODE
LOW…vider/impl/volcanic_engine_model_provider/model/tti.py50CODE
LOW…dels_provider/impl/minimax_model_provider/model/ttv.py180CODE
LOW…dels_provider/impl/minimax_model_provider/model/ttv.py198CODE
LOW…dels_provider/impl/minimax_model_provider/model/ttv.py217CODE
LOW…dels_provider/impl/minimax_model_provider/model/ttv.py235CODE
LOW…dels_provider/impl/minimax_model_provider/model/tti.py50CODE
LOW…er/impl/azure_model_provider/model/azure_chat_model.py58CODE
LOW…models_provider/impl/azure_model_provider/model/tti.py54CODE
LOW…odels_provider/impl/gemini_model_provider/model/tti.py50CODE
LOW…odels_provider/impl/gemini_model_provider/model/stt.py51CODE
LOWapps/models_provider/serializers/model_serializer.py73CODE
LOWapps/models_provider/serializers/model_serializer.py575CODE
LOWapps/models_provider/serializers/model_serializer.py440CODE
LOWapps/chat/serializers/chat_record.py62CODE
LOWapps/chat/serializers/chat_embed_serializers.py91CODE
LOWapps/chat/views/mcp.py10CODE
LOWapps/common/middleware/doc_headers_middleware.py117CODE
LOWapps/common/middleware/cross_domain_middleware.py25CODE
LOWapps/common/locale/config_helper.py136CODE
LOWapps/common/locale/manager.py42CODE
LOWapps/common/locale/manager.py104CODE
LOWapps/common/chunk/impl/mark_chunk_handle.py15CODE
LOWapps/common/handle/base_parse_qa_handle.py21CODE
LOWapps/common/handle/impl/common_handle.py62CODE
LOWapps/common/handle/impl/common_handle.py121CODE
LOWapps/common/handle/impl/qa/md_parse_qa_handle.py26CODE
LOWapps/common/handle/impl/qa/md_parse_qa_handle.py68CODE
LOWapps/common/handle/impl/qa/zip_parse_qa_handle.py72CODE
LOWapps/common/handle/impl/qa/zip_parse_qa_handle.py116CODE
LOW…ps/common/handle/impl/table/xlsx_parse_table_handle.py21CODE
LOWapps/common/handle/impl/table/xls_parse_table_handle.py19CODE
LOWapps/common/handle/impl/text/csv_split_handle.py31CODE
81 more matches not shown…
Hallucination Indicators7 hits · 85 pts
SeverityFileLineSnippetContext
CRITICALui/src/workflow/nodes/search-knowledge-node/index.vue279 const list = props.nodeModel.properties.node_data.knowledge_id_list.filter((v: any) => v !== id)CODE
CRITICALui/src/workflow/nodes/search-knowledge-node/index.vue292 const allList = props.nodeModel.properties.node_data.all_knowledge_id_list.filter(CODE
CRITICALui/src/workflow/nodes/search-document-node/index.vue308 const list = props.nodeModel.properties.node_data.knowledge_id_list.filter((v: any) => v !== id)CODE
CRITICAL⚡ui/src/workflow/nodes/ai-chat-node/index.vue838 const list = props.nodeModel.properties.node_data.tool_ids.filter((v: any) => v !== id)CODE
CRITICAL⚡ui/src/workflow/nodes/ai-chat-node/index.vue842 const list = props.nodeModel.properties.node_data.mcp_tool_ids.filter((v: any) => v !== id)CODE
CRITICAL⚡ui/src/workflow/nodes/ai-chat-node/index.vue846 const list = props.nodeModel.properties.node_data.skill_tool_ids.filter((v: any) => v !== id)CODE
CRITICALui/src/workflow/common/app-node.ts83 globalFields = this.props.model.properties.config.globalFields.map((item: any) => ({CODE
Decorative Section Separators20 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUMui/src/components/markdown/EchartsRander.vue17// ── props ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMui/src/components/markdown/EchartsRander.vue20// ── refs ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMui/src/components/markdown/EchartsRander.vue135// ── resize 防抖 ────────────────────────────────────────────────────────────COMMENT
MEDIUMui/src/components/markdown/EchartsRander.vue144// ── 生命周期 ───────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡apps/application/flow/tools.py541 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py545 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py551 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py554 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py566 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py568 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py574 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py576 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py644 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py646 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py655 # ----------------------------------------------------------------COMMENT
MEDIUM⚡apps/application/flow/tools.py660 # ----------------------------------------------------------------COMMENT
MEDIUMapps/application/flow/tools.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMapps/application/flow/tools.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMapps/application/flow/tools.py590 # ----------------------------------------------------------------COMMENT
MEDIUMapps/application/flow/tools.py592 # ----------------------------------------------------------------COMMENT
AI Structural Patterns24 hits · 23 pts
SeverityFileLineSnippetContext
LOWapps/chat/serializers/chat_embed_serializers.py88CODE
LOWapps/common/init/init_doc.py56CODE
LOWapps/common/forms/multi_select.py19CODE
LOWapps/common/forms/single_select_field.py20CODE
LOWapps/common/utils/split_model.py434CODE
LOWapps/common/utils/fork.py126CODE
LOWapps/knowledge/serializers/common.py122CODE
LOW…pplication/chat_pipeline/step/chat_step/i_chat_step.py109CODE
LOW…on/chat_pipeline/step/chat_step/impl/base_chat_step.py227CODE
LOW…on/chat_pipeline/step/chat_step/impl/base_chat_step.py459CODE
LOW…on/chat_pipeline/step/chat_step/impl/base_chat_step.py559CODE
LOW…on/chat_pipeline/step/chat_step/impl/base_chat_step.py630CODE
LOW…on/chat_pipeline/step/chat_step/impl/base_chat_step.py698CODE
LOW…p/search_dataset_step/impl/base_search_dataset_step.py78CODE
LOWapps/application/flow/i_step_node.py370CODE
LOWapps/application/flow/workflow_manage.py93CODE
LOWapps/application/flow/workflow_manage.py567CODE
LOWapps/application/flow/workflow_manage.py788CODE
LOWapps/application/flow/loop_workflow_manage.py193CODE
LOW…cation/flow/step_node/ai_chat_step_node/i_chat_node.py76CODE
LOW…low/step_node/ai_chat_step_node/impl/base_chat_node.py169CODE
LOW…extraction_node/impl/base_parameter_extraction_node.py63CODE
LOW…/flow/step_node/application_node/i_application_node.py100CODE
LOW…ep_node/application_node/impl/base_application_node.py184CODE
Over-Commented Block15 hits · 14 pts
SeverityFileLineSnippetContext
LOWui/src/utils/permission/data.ts1import { Permission, Role, Edition } from '@/utils/permission/type'COMMENT
LOW…m/resource-authorization/component/PermissionTable.vue181 isComputedFirst.value = falseCOMMENT
LOWinstaller/sandbox.c1#define _GNU_SOURCECOMMENT
LOWinstaller/sandbox.c21#include <linux/sched.h>COMMENT
LOW…vider/impl/aliyun_bai_lian_model_provider/model/tti.py41 model_name=model_name,COMMENT
LOW…odels_provider/impl/tencent_model_provider/__init__.py1#!/usr/bin/env pythonCOMMENT
LOW…l/docker_ai_model_provider/docker_ai_model_provider.py41open_ai_embedding_credential = DockerAIEmbeddingCredential()COMMENT
LOW…s_provider/impl/aws_bedrock_model_provider/__init__.py1#!/usr/bin/env pythonCOMMENT
LOW…ovider/impl/volcanic_engine_model_provider/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWapps/models_provider/serializers/model_serializer.py181 def delete(self, with_valid=True):COMMENT
LOWapps/models_provider/views/model.py81 # @extend_schema(methods=['PUT'],COMMENT
LOWapps/knowledge/serializers/__init__.py1# coding=utf-8COMMENT
LOWapps/oss/serializers/__init__.py1# coding=utf-8COMMENT
LOWapps/application/flow/tools.py21COMMENT
LOWapps/application/flow/tools.py541 # ----------------------------------------------------------------COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHui/src/views/tool/DataSourceToolFormDrawer.vue318 下载文件 支持下载文档(docx)、表格(sheet)和普通文件 - 对于文档和表格,先创建导出任务,轮询等待导出完成后下载 - 对于普通文件,直接下载 Args: app_idSTRING
HIGHapps/common/init/init_template.py26Format a template using jinja2. *Security warning*: As of LangChain 0.0.329, this method uses Jinja2's STRING
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…_provider/impl/tencent_model_provider/model/hunyuan.py29logger = logging.getLogger(__name__)CODE
LOWapps/common/locale/__init__.py10__all__ = [CODE
LOW…mmon/management/commands/services/services/gunicorn.py6__all__ = ['GunicornService']CODE
LOW…anagement/commands/services/services/celery_default.py7__all__ = ['CeleryDefaultService']CODE
LOW…mon/management/commands/services/services/scheduler.py6__all__ = ['SchedulerService']CODE
LOW…n/management/commands/services/services/local_model.py15__all__ = ['GunicornLocalModelService']CODE
LOWapps/common/mcp/client.py7__all__ = ["InternalMCPConfig", "validate_mcp_servers", "create_mcp_client"]CODE
LOWapps/maxkb/const.py9__all__ = ['BASE_DIR', 'PROJECT_DIR', 'VERSION', 'CONFIG']CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMapps/knowledge/vector/pg_vector.py131 # Query per knowledge base to leverage per-KB partial HNSW indexesCOMMENT
MEDIUMapps/knowledge/vector/pg_vector.py167 # Query per knowledge base to leverage per-KB partial HNSW indexesCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md84### RAG / knowledge (`apps/knowledge/`)COMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWapps/tools/serializers/init_field.py22 "placeholder", "disabled", "clearable", "style", "class",CODE
LOW…data_source_web_node/impl/base_data_source_web_node.py23 'placeholder': _('Please enter the Web root address')})CODE
LOW…data_source_web_node/impl/base_data_source_web_node.py25 'placeholder': _('The default is body, you can enter .classname/#idname/tagname')})CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…rovider/impl/aws_bedrock_model_provider/model/image.py45 # Check if proxy URL is providedCOMMENT