Repository Analysis

xerrors/Yuxi

可私有部署的多租户知识智能体平台:统一 RAG、知识图谱、多智能体、MCP/Skills、沙盒与权限管理。Self-hosted knowledge agent platform for RAG, knowledge graphs and multi-agent workflows.

16.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of xerrors/Yuxi, a Python project with 6,580 GitHub stars. SynthScan v2.0 examined 254,129 lines of code across 1023 source files, recording 3970 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 16.8 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

16.8
Adjusted Score
16.8
Raw Score
100%
Time Factor
2026-08-28
Last Push
6.6K
Stars
Python
Language
254.1K
Lines of Code
1.0K
Files
4.0K
Pattern Hits
2026-08-29
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

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

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

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

CRITICAL 0HIGH 21MEDIUM 136LOW 3813

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3970 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2696 hits · 2643 pts
SeverityFileLineSnippetContext
LOWdocker/sandbox_provisioner/app.py50def _is_persistent_sandbox_mount_path(path: str) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py84def kubernetes_storage_init_script(uid: str, workdir_path: str | None) -> str:CODE
LOWdocker/sandbox_provisioner/app.py454 def _normalize_host_bind_path(path_value: str | None) -> str:CODE
LOWdocker/sandbox_provisioner/app.py507 def _shared_workspace_host_path(self, uid: str) -> Path:CODE
LOWdocker/sandbox_provisioner/app.py511 def _validate_directory_without_symlinks(CODE
LOWdocker/sandbox_provisioner/app.py534 def _is_expected_skills_mount(self, container, uid: str) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py544 def _has_expected_user_data_mounts(CODE
LOWdocker/sandbox_provisioner/app.py570 def _has_no_persistent_file_mounts(container) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py622 def _has_expected_network_ownership(network, sandbox_id: str) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py1267 def _discovered_matches_request(CODE
LOWdocker/sandbox_provisioner/app.py1584 def _collect_expired_sandboxes(self) -> list[tuple[str, str | None]]:CODE
LOWweb/src/stores/database.js330 function ensureAutoRefreshForProcessing(filesMap, stats = null) {CODE
LOWweb/src/stores/user.js148 async function validateUsernameAndGenerateUid(username) {CODE
LOWweb/src/utils/messageDebug.js36export function mergeMessageDebugMessages(history, ongoing, activeRunId = null) {CODE
LOWweb/src/utils/contextUsage.js55export function formatContextUsageTooltip({CODE
LOWweb/src/utils/dashboard.js22export function buildHeatmapMonthSegments(weeks) {CODE
LOWweb/src/components/AgentChatComponent.vue2104function mergeOngoingUserMessageIntoHistory(historyConvs, ongoingMessages) {CODE
LOWweb/src/components/AgentChatComponent.vue2141function mergeActiveRunOngoingIntoHistory(historyConvs, ongoingMessages, activeRunId) {CODE
LOWbackend/test/live_api_cleanup.py68def make_test_conversation_title(label: str) -> str:CODE
LOWbackend/test/live_api_cleanup.py82def make_test_conversation_metadata(test_name: str, *, e2e: bool = False, **extra: object) -> dict[str, object]:CODE
LOWbackend/test/live_api_cleanup.py92async def _list_provisioned_sandbox_ids(CODE
LOWbackend/test/live_api_cleanup.py116async def cleanup_provisioned_sandboxes(CODE
LOWbackend/test/live_api_cleanup.py170def is_test_conversation_title(title: object) -> bool:CODE
LOWbackend/test/live_api_cleanup.py325async def list_test_conversation_resources(owner_uid: str) -> dict[str, CleanupConversationResource]:CODE
LOWbackend/test/live_api_cleanup.py422async def validate_test_workdirs_exclusive(CODE
LOWbackend/test/live_api_cleanup.py437async def _validate_test_workdirs_exclusive(CODE
LOWbackend/test/live_api_cleanup.py484async def validate_test_runs_terminal(thread_ids: set[str]) -> None:CODE
LOWbackend/test/live_api_cleanup.py504async def list_test_queued_request_ids(thread_ids: set[str]) -> list[str]:CODE
LOWbackend/test/live_api_cleanup.py522async def delete_test_conversation_rows(thread_ids: set[str]) -> None:CODE
LOWbackend/test/live_api_cleanup.py538async def delete_test_conversation_resources(CODE
LOWbackend/test/live_api_cleanup.py578async def _delete_test_conversation_rows(conn: asyncpg.Connection, thread_ids_list: list[str]) -> None:CODE
LOWbackend/test/live_api_cleanup.py637async def delete_orphaned_test_projects(owner_uid: str) -> None:CODE
LOWbackend/test/live_api_cleanup.py653async def _assert_test_conversations_deleted(conn: asyncpg.Connection, thread_ids_list: list[str]) -> None:CODE
LOWbackend/test/live_api_cleanup.py667async def cleanup_test_chat_resources(CODE
LOWbackend/test/live_api_cleanup.py808async def cleanup_pytest_knowledge_resources(CODE
LOWbackend/test/unit/test_live_api_cleanup.py70async def test_cleanup_rejects_invalid_provisioner_list_payload():CODE
LOWbackend/test/unit/test_live_api_cleanup.py83async def _patch_chat_cleanup_database(CODE
LOWbackend/test/unit/test_live_api_cleanup.py435async def test_test_resource_names_use_one_visible_prefix():CODE
LOWbackend/test/unit/test_live_api_cleanup.py444async def test_legacy_title_matching_is_exact_and_does_not_capture_user_titles():CODE
LOWbackend/test/unit/test_live_api_cleanup.py454async def test_cleanup_discovery_failure_has_no_destructive_side_effect(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py25async def test_cleanup_deletes_every_sandbox_through_provisioner_api():CODE
LOWbackend/test/unit/test_live_api_cleanup.py55async def test_cleanup_rejects_delete_that_does_not_remove_sandbox():CODE
LOWbackend/test/unit/test_live_api_cleanup.py116async def test_cleanup_deletes_pytest_evaluation_resources_and_knowledge_databases():CODE
LOWbackend/test/unit/test_live_api_cleanup.py161async def test_cleanup_rejects_knowledge_list_error_payload():CODE
LOWbackend/test/unit/test_live_api_cleanup.py250async def test_cleanup_only_exempts_projects_whose_managed_workdir_is_deleted(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py305async def test_cleanup_paginates_active_threads(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py365async def test_cleanup_removes_deleted_and_subagent_thread_storage(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py485async def test_cleanup_guard_failure_has_no_destructive_side_effect(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py534async def test_cleanup_stops_when_cancelled_request_remains_queued(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py585async def test_remove_test_workdir_stays_inside_project_boundary(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py597async def test_remove_test_workdir_rejects_non_project_path(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py608async def test_remove_test_workdir_rejects_symlink(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_live_api_cleanup.py625async def test_remove_test_workdir_is_idempotent_when_directory_is_gone(tmp_path, monkeypatch):CODE
LOWbackend/test/unit/test_tmp_attachment_service.py101 async def adelete_objects_by_prefix(self, bucket_name: str, prefix: str) -> int:CODE
LOWbackend/test/unit/test_tmp_attachment_service.py127 async def get_conversation_by_thread_id(self, thread_id: str):CODE
LOWbackend/test/unit/test_tmp_attachment_service.py181 async def get_active_run_by_thread_for_user(self, **kwargs):CODE
LOWbackend/test/unit/test_tmp_attachment_service.py187def stub_attachment_usage_checks(monkeypatch: pytest.MonkeyPatch):CODE
LOWbackend/test/unit/test_tmp_attachment_service.py228 async def get_active_run_by_thread_for_user(self, **kwargs):CODE
LOWbackend/test/unit/test_tmp_attachment_service.py234async def test_upload_tmp_attachment_writes_user_scoped_minio_object(monkeypatch):CODE
LOWbackend/test/unit/test_tmp_attachment_service.py249async def test_upload_tmp_attachment_cleans_only_expired_user_tmp_groups(monkeypatch):CODE
2636 more matches not shown…
Decorative Section Separators121 hits · 448 pts
SeverityFileLineSnippetContext
MEDIUMbackend/test/unit/test_chunking_token_limit.py73# ── nlp.hard_split_by_token_limit ──────────────────────────────────COMMENT
MEDIUMbackend/test/unit/test_chunking_token_limit.py120# ── general._ensure_chunk_token_limit ──────────────────────────────COMMENT
MEDIUMbackend/test/unit/test_chunking_token_limit.py156# ── general.chunk_markdown 集成 ────────────────────────────────────COMMENT
MEDIUMbackend/test/integration/api/test_knowledge_router.py883# =============================================================================COMMENT
MEDIUMbackend/test/integration/api/test_knowledge_router.py885# =============================================================================COMMENT
MEDIUMbackend/test/integration/api/test_knowledge_router.py944# =============================================================================COMMENT
MEDIUMbackend/test/integration/api/test_knowledge_router.py946# =============================================================================COMMENT
MEDIUMbackend/server/main.py5# ==============================================================================COMMENT
MEDIUMbackend/server/main.py8# ==============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py95# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py97# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py250# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py252# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py307# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py309# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py28# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py30# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py66# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py68# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_dept_router.py24# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_dept_router.py26# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_dept_router.py57# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_dept_router.py59# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py22# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py24# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py80# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py82# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py183# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py185# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py238# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py240# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py202# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py204# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py215# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py217# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py332# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py334# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py441# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py443# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py516# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py518# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py1007# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py1009# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py234# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py236# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py672# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py674# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1815# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1817# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1849# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1851# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py2230# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py2232# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py2263# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py2265# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1743# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1745# =============================================================================COMMENT
MEDIUMbackend/server/routers/chat_router.py243# =============================================================================COMMENT
MEDIUMbackend/server/routers/chat_router.py245# =============================================================================COMMENT
MEDIUMbackend/server/routers/chat_router.py348# ================================COMMENT
61 more matches not shown…
Excessive Try-Catch Wrapping473 hits · 427 pts
SeverityFileLineSnippetContext
MEDIUMdocker/sandbox_provisioner/app.py1570def _seed_existing(self) -> None:CODE
MEDIUMdocker/sandbox_provisioner/app.py1776def list_sandboxes():CODE
LOWdocker/sandbox_provisioner/app.py109 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py401 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py783 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py790 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py873 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py876 except Exception as cleanup_exc:CODE
LOWdocker/sandbox_provisioner/app.py909 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py924 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py939 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py955 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1027 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py1281 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py1386 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py1438 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1573 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1606 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1719 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1739 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1761 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1779 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1801 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1814 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1842 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1868 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1896 except Exception as exc: # noqa: BLE001CODE
LOWbackend/test/live_api_cleanup.py572 except Exception as exc: # noqa: BLE001CODE
LOWbackend/test/live_api_cleanup.py716 except Exception as exc: # noqa: BLE001CODE
LOWbackend/test/integration/conftest.py285 except Exception as exc:CODE
LOW…st/integration/services/test_identity_admin_service.py174 except Exception as exc:CODE
LOW…tegration/services/test_project_workdir_provisioner.py120 except Exception:CODE
LOW…tegration/services/test_project_workdir_provisioner.py131 except Exception:CODE
LOW…tegration/services/test_project_workdir_provisioner.py170 except Exception:CODE
LOW…tegration/services/test_project_workdir_provisioner.py181 except Exception:CODE
LOW…tegration/services/test_project_workdir_provisioner.py224 except Exception:CODE
LOW…tegration/services/test_project_workdir_provisioner.py294 except Exception:CODE
LOW…kend/test/integration/services/test_agent_run_lease.py51 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py230 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py363 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py444 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py598 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py716 except Exception:CODE
LOWbackend/test/e2e/test_deterministic_agent_path_e2e.py489 except Exception:CODE
LOWbackend/server/routers/graph_router.py48 except Exception as e:CODE
LOWbackend/server/routers/graph_router.py75 except Exception as e:CODE
LOWbackend/server/routers/graph_router.py92 except Exception as e:CODE
LOWbackend/server/routers/graph_router.py109 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py104 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py119 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py148 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py172 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py191 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py220 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py240 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py266 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py281 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py320 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py340 except Exception as e:CODE
LOWbackend/server/routers/mcp_router.py245 except Exception as e:CODE
413 more matches not shown…
Unused Imports417 hits · 406 pts
SeverityFileLineSnippetContext
LOWbackend/test/conftest.py1CODE
LOWbackend/test/live_api_cleanup.py1CODE
LOWbackend/test/unit/test_live_api_cleanup.py1CODE
LOWbackend/test/unit/test_tmp_attachment_service.py1CODE
LOWbackend/test/unit/test_auth_utils.py1CODE
LOWbackend/test/unit/routers/test_user_config_router.py1CODE
LOWbackend/test/unit/routers/test_mention_router.py1CODE
LOW…t/unit/routers/test_agent_invocation_channel_router.py1CODE
LOWbackend/test/unit/routers/test_skill_router.py1CODE
LOWbackend/test/unit/routers/test_system_router.py1CODE
LOWbackend/test/unit/routers/test_subagent.py1CODE
LOWbackend/test/unit/routers/test_auth_router_cli_auth.py1CODE
LOWbackend/test/unit/routers/test_api_key_security.py1CODE
LOW…/test/unit/routers/test_dashboard_superadmin_access.py1CODE
LOW…end/test/unit/routers/test_workspace_knowledge_tree.py1CODE
LOW…d/test/unit/routers/test_knowledge_workspace_import.py1CODE
LOW…est/unit/routers/test_agent_invocation_router_split.py1CODE
LOWbackend/test/unit/routers/test_mcp_router.py1CODE
LOW…kend/test/unit/config/test_preview_owner_boundaries.py3CODE
LOWbackend/test/unit/config/test_options.py1CODE
LOWbackend/test/unit/config/test_runtime.py3CODE
LOWbackend/test/unit/config/test_lite_import_boundary.py3CODE
LOWbackend/test/unit/config/test_user_config.py1CODE
LOWbackend/test/unit/plugins/test_ragflow_like_chunking.py1CODE
LOWbackend/test/unit/plugins/test_notion_kb.py1CODE
LOWbackend/test/unit/plugins/test_dify_kb.py1CODE
LOW…/test/unit/backends/test_sandbox_provisioner_client.py1CODE
LOW…kend/test/unit/backends/test_knowledge_base_backend.py1CODE
LOWbackend/test/unit/backends/test_sandbox_backends.py3CODE
LOWbackend/test/unit/workspace/test_filesystem.py1CODE
LOW…ckend/test/unit/middlewares/test_summary_middleware.py1CODE
LOWbackend/test/unit/middlewares/test_steer_safety_gate.py3CODE
LOW…test/unit/middlewares/test_subagent_task_middleware.py1CODE
LOW…d/test/unit/middlewares/test_model_input_middleware.py1CODE
LOW…d/test/unit/middlewares/test_token_usage_middleware.py1CODE
LOWbackend/test/unit/middlewares/test_skills_middleware.py1CODE
LOWbackend/test/unit/middlewares/test_memory_middleware.py1CODE
LOWbackend/test/unit/agents/test_context_auth.py1CODE
LOWbackend/test/unit/agents/test_summary_graph_config.py1CODE
LOW…end/test/unit/agents/test_base_tool_event_normalize.py1CODE
LOWbackend/test/unit/agents/test_subagent_tool_filter.py1CODE
LOWbackend/test/unit/agents/skills/test_remote_install.py1CODE
LOW…test/unit/agents/skills/test_mysql_reporter_scripts.py1CODE
LOWbackend/test/unit/toolkits/test_install_skill.py1CODE
LOWbackend/test/unit/toolkits/test_tool_registry.py1CODE
LOWbackend/test/unit/toolkits/test_kbs_tools.py1CODE
LOWbackend/test/unit/toolkits/test_ocr_parse_file_tool.py1CODE
LOWbackend/test/unit/utils/test_thread_utils.py1CODE
LOWbackend/test/unit/utils/test_filepreview.py1CODE
LOWbackend/test/unit/utils/test_image_processor.py1CODE
LOWbackend/test/unit/utils/test_lifespan.py3CODE
LOWbackend/test/unit/repositories/test_agent_repository.py1CODE
LOWbackend/test/unit/repositories/test_user_repository.py3CODE
LOW…t/repositories/test_knowledge_base_repository_cache.py1CODE
LOW…nd/test/unit/repositories/test_agent_run_repository.py1CODE
LOW…/unit/repositories/test_agent_run_output_repository.py1CODE
LOW…nd/test/unit/repositories/test_conversation_workdir.py1CODE
LOW…/unit/repositories/test_conversation_memory_history.py1CODE
LOW…unit/repositories/test_agent_run_request_repository.py3CODE
LOW…d/test/unit/repositories/test_department_repository.py3CODE
357 more matches not shown…
Deep Nesting115 hits · 104 pts
SeverityFileLineSnippetContext
LOWdocker/sandbox_provisioner/app.py700CODE
LOWbackend/test/live_api_cleanup.py667CODE
LOWbackend/test/live_api_cleanup.py808CODE
LOWbackend/test/integration/conftest.py242CODE
LOWbackend/test/e2e/test_subagent_stream_e2e.py158CODE
LOWbackend/test/e2e/test_subagent_stream_e2e.py174CODE
LOWbackend/test/e2e/test_subagent_stream_e2e.py231CODE
LOWbackend/server/routers/mcp_router.py313CODE
LOWbackend/server/routers/knowledge_router.py750CODE
LOWbackend/server/routers/knowledge_router.py1133CODE
LOWbackend/server/routers/knowledge_router.py1198CODE
LOWbackend/server/routers/knowledge_router.py1620CODE
LOWbackend/server/routers/knowledge_router.py780CODE
LOWbackend/package/yuxi/workspace/paths.py179CODE
LOWbackend/package/yuxi/workspace/filesystem.py41CODE
LOWbackend/package/yuxi/workspace/filesystem.py87CODE
LOWbackend/package/yuxi/workspace/filesystem.py115CODE
LOWbackend/package/yuxi/agents/context.py454CODE
LOWbackend/package/yuxi/agents/context.py382CODE
LOWbackend/package/yuxi/agents/base.py125CODE
LOWbackend/package/yuxi/agents/base.py196CODE
LOWbackend/package/yuxi/agents/base.py308CODE
LOWbackend/package/yuxi/agents/buildin/__init__.py48CODE
LOWbackend/package/yuxi/agents/backends/sandbox/backend.py572CODE
LOWbackend/package/yuxi/agents/backends/sandbox/backend.py1078CODE
LOW…ckend/package/yuxi/agents/backends/sandbox/provider.py163CODE
LOW…ckend/package/yuxi/agents/backends/sandbox/provider.py213CODE
LOWbackend/package/yuxi/agents/middlewares/skills.py65CODE
LOWbackend/package/yuxi/agents/middlewares/summary.py68CODE
LOWbackend/package/yuxi/agents/middlewares/summary.py309CODE
LOWbackend/package/yuxi/agents/toolkits/utils.py7CODE
LOW…/package/yuxi/agents/toolkits/buildin/install_skill.py74CODE
LOWbackend/package/yuxi/agents/toolkits/buildin/tools.py320CODE
LOWbackend/package/yuxi/agents/mcp/service.py251CODE
LOWbackend/package/yuxi/agents/skills/service.py395CODE
LOWbackend/package/yuxi/agents/skills/service.py1155CODE
LOWbackend/package/yuxi/agents/skills/runtime.py134CODE
LOWbackend/package/yuxi/agents/skills/remote_install.py225CODE
LOW…/agents/skills/buildin/mysql-reporter/scripts/query.py257CODE
LOW…kills/buildin/mysql-reporter/scripts/describe_table.py84CODE
LOWbackend/package/yuxi/utils/image_processor.py86CODE
LOWbackend/package/yuxi/utils/paths.py11CODE
LOWbackend/package/yuxi/utils/question_utils.py65CODE
LOW…kend/package/yuxi/repositories/dashboard_repository.py474CODE
LOWbackend/package/yuxi/permissions/resource_permission.py105CODE
LOWbackend/package/yuxi/storage/minio/utils.py31CODE
LOW…ckend/package/yuxi/storage/postgres/models_business.py679CODE
LOWbackend/package/yuxi/storage/postgres/manager.py304CODE
LOWbackend/package/yuxi/knowledge/manager.py130CODE
LOWbackend/package/yuxi/knowledge/base.py186CODE
LOWbackend/package/yuxi/knowledge/base.py757CODE
LOWbackend/package/yuxi/knowledge/base.py970CODE
LOWbackend/package/yuxi/knowledge/utils/url_fetcher.py37CODE
LOWbackend/package/yuxi/knowledge/parser/unified.py133CODE
LOWbackend/package/yuxi/knowledge/parser/unified.py295CODE
LOWbackend/package/yuxi/knowledge/parser/rapid_ocr.py96CODE
LOWbackend/package/yuxi/knowledge/parser/rapid_ocr.py153CODE
LOWbackend/package/yuxi/knowledge/parser/paddleocr_api.py261CODE
LOWbackend/package/yuxi/knowledge/parser/paddleocr_api.py297CODE
LOWbackend/package/yuxi/knowledge/parser/mineru.py30CODE
55 more matches not shown…
Cross-Language Confusion12 hits · 60 pts
SeverityFileLineSnippetContext
HIGH…/unit/config/test_docker_compose_service_boundaries.py258 "cat >/dev/null || true\n",CODE
HIGH…d/test/unit/config/test_docker_compose_checkpointer.py123 "curl -f http://localhost:5050/api/system/ready || exit 1",CODE
HIGH…tegration/services/test_project_workdir_provisioner.py57 "mkdir -p /home/gem/user-data/outputs && printf ephemeral > /home/gem/user-data/outputs/check.txt",CODE
HIGH…tegration/services/test_project_workdir_provisioner.py91 f"mkdir -p {project_root}/outputs && printf shared-bytes > {project_file} "CODE
HIGH…tegration/services/test_project_workdir_provisioner.py152 f"mkdir -p {project_root}/outputs && printf persistent > {project_file} "CODE
HIGH…tegration/services/test_project_workdir_provisioner.py203 f"mkdir -p {project_root}/outputs && printf realtime > {project_file}",CODE
HIGHbackend/test/e2e/test_agent_steer_e2e.py43 "command 必须是 `sleep 12 && echo TOOL_FINISHED`;工具结束后原任务本应回答 OLD_SHOULD_NOT_COMPLETE。"CODE
HIGHbackend/test/e2e/test_agent_steer_e2e.py104 and command == "sleep 12 && echo TOOL_FINISHED"CODE
HIGHscripts/test_dependency_update_policy.py75 group: dependency-audit-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}STRING
HIGHscripts/verify_engineering_contracts.py127 commands=("pnpm run lint:check && pnpm run test:unit && pnpm run build",),CODE
HIGHscripts/test_verify_engineering_contracts.py361 "python3 scripts/verify_engineering_contracts.py || true",CODE
HIGHscripts/test_verify_engineering_contracts.py110 - run: pnpm run lint:check && pnpm run test:unit && pnpm run buildSTRING
Modern Structural Boilerplate51 hits · 56 pts
SeverityFileLineSnippetContext
LOWdocker/sandbox_provisioner/app.py23logger = logging.getLogger(__name__)CODE
LOW…end/test/unit/routers/test_knowledge_router_cleanup.py34 async def set_message(self, message: str) -> None:CODE
LOW…end/test/unit/routers/test_knowledge_router_cleanup.py37 async def set_progress(self, progress: float, message: str | None = None) -> None:CODE
LOW…end/test/unit/routers/test_knowledge_router_cleanup.py40 async def set_result(self, result: dict) -> None:CODE
LOWbackend/test/unit/storage/test_minio_public_images.py18 def set_bucket_policy(self, bucket_name: str, policy: str) -> None:CODE
LOW…st/unit/knowledge/test_evaluation_task_cancellation.py18 async def set_progress(self, progress: float, message: str | None = None) -> None:CODE
LOW…st/unit/knowledge/test_evaluation_task_cancellation.py21 async def set_message(self, message: str) -> None:CODE
LOW…st/unit/knowledge/test_evaluation_task_cancellation.py36 async def update_dataset(self, dataset_id: str, data: dict) -> None:CODE
LOW…st/unit/knowledge/test_evaluation_task_cancellation.py43 async def update_run(self, run_id: str, data: dict) -> None:CODE
LOWbackend/test/integration/api/test_dashboard_router.py21async def _set_conversation_statuses(subagent_thread_id: str, deleted_thread_id: str) -> None:CODE
LOWbackend/server/worker_main.py15__all__ = ["WorkerSettings"]CODE
LOWbackend/package/yuxi/config/__init__.py45__all__ = [CODE
LOWbackend/package/yuxi/workspace/__init__.py6__all__ = ["Workspace", "Workdir"]CODE
LOWbackend/package/yuxi/agents/__init__.py17__all__ = [CODE
LOWbackend/package/yuxi/agents/buildin/__init__.py95__all__ = ["agent_manager"]CODE
LOWbackend/package/yuxi/agents/buildin/chatbot/__init__.py5__all__ = ["ChatBotContext", "ChatBotState", "ChatbotAgent", "SubAgentRunState", "merge_subagent_runs"]CODE
LOW…ckend/package/yuxi/agents/buildin/subagent/__init__.py4__all__ = ["SubAgentBackend", "SubAgentContext"]CODE
LOWbackend/package/yuxi/agents/backends/paths.py82__all__ = [CODE
LOWbackend/package/yuxi/agents/backends/__init__.py19__all__ = [CODE
LOW…ckend/package/yuxi/agents/backends/sandbox/__init__.py11__all__ = [CODE
LOWbackend/package/yuxi/agents/middlewares/__init__.py9__all__ = [CODE
LOWbackend/package/yuxi/agents/toolkits/__init__.py27__all__ = [CODE
LOW…ckend/package/yuxi/agents/toolkits/buildin/__init__.py5__all__ = [CODE
LOWbackend/package/yuxi/agents/toolkits/kbs/__init__.py7__all__ = ["find_kb_document", "get_common_kb_tools", "open_kb_document"]CODE
LOWbackend/package/yuxi/agents/toolkits/debug/__init__.py3__all__ = []CODE
LOWbackend/package/yuxi/utils/logging_config.py91__all__ = ["logger"]CODE
LOWbackend/package/yuxi/utils/paths.py90__all__ = [CODE
LOWbackend/package/yuxi/utils/datetime_utils.py139__all__ = [CODE
LOW…d/package/yuxi/repositories/conversation_repository.py223 async def set_model_spec(self, conversation: Conversation, model_spec: str) -> None:CODE
LOW…d/package/yuxi/repositories/conversation_repository.py864 async def _update_message_count(self, conversation_id: int) -> None:CODE
LOWbackend/package/yuxi/repositories/__init__.py1__all__ = []CODE
LOWbackend/package/yuxi/models/__init__.py1__all__ = ["select_model", "select_embedding_model", "get_embedding_model_info_by_id"]CODE
LOWbackend/package/yuxi/permissions/__init__.py19__all__ = [CODE
LOWbackend/package/yuxi/storage/neo4j/__init__.py10__all__ = [CODE
LOWbackend/package/yuxi/storage/redis/__init__.py14__all__ = [CODE
LOWbackend/package/yuxi/storage/minio/__init__.py11__all__ = [CODE
LOWbackend/package/yuxi/knowledge/manager.py618 async def update_file_params(self, kb_id: str, file_id: str, params: dict, operator_id: str | None = None) -> None:CODE
LOWbackend/package/yuxi/knowledge/manager.py652 async def update_kb_query_params(self, kb_id: str, params: dict[str, Any]) -> None:CODE
LOWbackend/package/yuxi/knowledge/utils/__init__.py13__all__ = [CODE
LOWbackend/package/yuxi/knowledge/chunking/__init__.py1__all__ = []CODE
LOW…ckage/yuxi/knowledge/chunking/ragflow_like/__init__.py3__all__ = ["chunk_file", "chunk_markdown"]CODE
LOW…xi/knowledge/chunking/ragflow_like/parsers/__init__.py3__all__ = ["general", "qa", "book", "laws", "separator"]CODE
LOWbackend/package/yuxi/knowledge/graphs/__init__.py3__all__ = ["MilvusGraphService"]CODE
LOW…d/package/yuxi/knowledge/graphs/extractors/__init__.py5__all__ = [CODE
LOW…end/package/yuxi/knowledge/implementations/__init__.py14__all__ = ["MilvusKB", "DifyKB", "NotionKB", "ReadOnlyConnectors"]CODE
LOW…ckend/package/yuxi/knowledge/implementations/notion.py444 def _set_cached_page_markdown(self, cache_key: tuple[str, str, str, str], content: str) -> None:CODE
LOWbackend/package/yuxi/services/oidc_service.py719async def update_oidc_user_login(db, user: User) -> None:CODE
LOWbackend/package/yuxi/services/task_service.py90 async def set_progress(self, progress: float, message: str | None = None) -> None:CODE
LOWbackend/package/yuxi/services/task_service.py97 async def set_message(self, message: str) -> None:CODE
LOWbackend/package/yuxi/services/task_service.py100 async def set_result(self, result: Any) -> None:CODE
LOWbackend/package/yuxi/services/task_service.py516__all__ = ["tasker", "TaskContext", "Tasker"]CODE
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHbackend/package/yuxi/storage/minio/client.py404 异步上下文管理器:从 MinIO URL 下载文件到临时文件,使用后自动清理 Args: url: MinIO 文件 URL allowed_extensiSTRING
HIGHbackend/package/yuxi/knowledge/factory.py29 创建知识库实例 Args: kb_type: 知识库类型 work_dir: 工作目录 **kwargs: 其他初始化参数 STRING
HIGHbackend/package/yuxi/knowledge/manager.py131读取知识库运行配置,Redis 未命中时回源 PostgreSQL。 Args: kb_id: 数据库ID Returns: 规范化后的知识库运行配置 STRING
HIGHbackend/package/yuxi/knowledge/utils/kb_utils.py249 解析MinIO URL,提取bucket名称和对象名称 支持标准 HTTP/HTTPS URL 格式: - http(s)://host/bucket-name/path/to/object Args:STRING
HIGHbackend/package/yuxi/knowledge/utils/url_fetcher.py38 Fetch URL content with security checks (size limit, content type, private IP blocking). Args: url: TheSTRING
HIGHbackend/package/yuxi/knowledge/parser/factory.py45 获取文档处理器实例 (单例模式) Args: processor_type: 处理器类型 - "rapid_ocr": RapidOCR 本地 OCSTRING
HIGHbackend/package/yuxi/knowledge/parser/factory.py86 使用指定处理器处理文件 (便捷方法) Args: processor_type: 处理器类型 file_path: 文件路径 parSTRING
HIGHbackend/package/yuxi/knowledge/parser/base.py53 处理文件并返回提取的文本 Args: file_path: 文件路径 params: 处理参数 Returns: STRING
HIGHbackend/package/yuxi/services/ocr_service.py72使用当前运行时配置将文件解析为 Markdown。 这是业务代码唯一应调用的文档解析入口。函数负责区分应用层配置解析和 底层文件转换:对于 PDF 与图片等 OCR 文件,先确定最终 OCR 引擎,再从 数据库 OSTRING
Fake / Example Data18 hits · 24 pts
SeverityFileLineSnippetContext
LOWweb/src/components/MessageInputComponent.vue49 :aria-label="placeholder"CODE
LOWweb/src/components/MessageInputComponent.vue51 :data-placeholder="placeholder"CODE
LOWweb/src/components/AgentInputArea.vue14 :placeholder="placeholder"CODE
LOWweb/src/components/AiTextarea.vue6 :placeholder="placeholder"CODE
LOWbackend/test/unit/routers/test_subagent.py100 async def fake_user():CODE
LOWbackend/test/unit/routers/test_subagent.py104 app.dependency_overrides[get_required_user] = fake_userCODE
LOWbackend/test/unit/routers/test_subagent.py105 app.dependency_overrides[get_admin_user] = fake_userCODE
LOW…est/unit/routers/test_agent_invocation_router_split.py26 async def fake_user():CODE
LOW…est/unit/routers/test_agent_invocation_router_split.py29 app.dependency_overrides[get_required_user] = fake_userCODE
LOWbackend/package/yuxi/config/options.py158 "placeholder": "http://mineru-api:30001",CODE
LOWbackend/package/yuxi/config/options.py194 "placeholder": "http://paddlex:8080",CODE
LOWbackend/package/yuxi/config/options.py212 "placeholder": "https://paddleocr.aistudio-app.com/api/v2/ocr/jobs",CODE
LOWbackend/package/yuxi/knowledge/implementations/dify.py33 "placeholder": "例如: https://api.dify.ai/v1",CODE
LOWbackend/package/yuxi/knowledge/implementations/dify.py41 "placeholder": "请输入 Dify API Token",CODE
LOWbackend/package/yuxi/knowledge/implementations/dify.py48 "placeholder": "请输入 Dify dataset_id",CODE
LOW…ckend/package/yuxi/knowledge/implementations/notion.py192 "placeholder": "留空则使用 NOTION_TOKEN / NOTION_API_KEY",CODE
LOW…ckend/package/yuxi/knowledge/implementations/notion.py200 "placeholder": "请输入 Notion data_source_id",CODE
LOW…ckend/package/yuxi/knowledge/implementations/notion.py208 "placeholder": NOTION_DEFAULT_VERSION,CODE
AI Structural Patterns25 hits · 20 pts
SeverityFileLineSnippetContext
LOWbackend/test/unit/services/test_agent_run_service.py1589CODE
LOWbackend/test/unit/services/test_agent_run_service.py237CODE
LOW…est/unit/services/test_chat_service_langfuse_stream.py42CODE
LOW…est/unit/services/test_chat_service_langfuse_stream.py312CODE
LOWbackend/test/unit/services/test_subagent_run_service.py106CODE
LOWbackend/server/routers/dashboard_router.py289CODE
LOWbackend/server/routers/workspace_router.py161CODE
LOWbackend/server/routers/knowledge_router.py250CODE
LOWbackend/package/yuxi/workspace/filesystem.py41CODE
LOWbackend/package/yuxi/agents/toolkits/registry.py39CODE
LOWbackend/package/yuxi/agents/mcp/service.py412CODE
LOWbackend/package/yuxi/agents/mcp/service.py461CODE
LOW…kend/package/yuxi/repositories/agent_run_repository.py232CODE
LOWbackend/package/yuxi/repositories/agent_repository.py392CODE
LOWbackend/package/yuxi/repositories/agent_repository.py452CODE
LOWbackend/package/yuxi/models/embed.py24CODE
LOWbackend/package/yuxi/storage/minio/client.py169CODE
LOWbackend/package/yuxi/storage/minio/client.py283CODE
LOWbackend/package/yuxi/knowledge/manager.py753CODE
LOWbackend/package/yuxi/services/chat_service.py524CODE
LOWbackend/package/yuxi/services/chat_service.py605CODE
LOW…d/package/yuxi/services/agent_request_queue_service.py97CODE
LOWbackend/package/yuxi/services/agent_run_service.py411CODE
LOWpackages/yuxi-cli/src/yuxi_cli/main.py189CODE
LOWpackages/yuxi-cli/src/yuxi_cli/main.py319CODE
Self-Referential Comments4 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMbackend/test/integration/api/test_apikey_router.py109 # Create a keyCOMMENT
MEDIUMbackend/test/integration/api/test_apikey_router.py150 # Create a keyCOMMENT
MEDIUMbackend/test/integration/api/test_apikey_router.py256 # Create an API keyCOMMENT
MEDIUMbackend/test/integration/api/test_apikey_router.py285 # Create an API keyCOMMENT
Overly Generic Function Names12 hits · 10 pts
SeverityFileLineSnippetContext
LOWbackend/test/unit/test_live_api_cleanup.py73 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py32 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py58 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py141 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py164 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py225 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py284 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py325 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py394 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py465 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py516 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWbackend/test/unit/test_live_api_cleanup.py565 def handle_request(request: httpx.Request) -> httpx.Response:CODE
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md131### 02 · 知识库与可追溯 RAGCOMMENT
MEDIUMdocs/develop-guides/decisions/README.md54`simplification` 提案和 implemented 记录还必须分别在 `## 验收标准` 或 `## 验证` 中包含 `旧能力不存在:` 与 `重新引入条件:`,避免只增加替代物而不删除旧表面。`rejected` 说明拒绝原CODE
MEDIUMdocs/intro/project-overview.md30### 知识库与 RAGCOMMENT
Redundant / Tautological Comments7 hits · 8 pts
SeverityFileLineSnippetContext
LOWbackend/server/routers/knowledge_router.py1551 # Check if it is a folderCOMMENT
LOWbackend/server/routers/knowledge_router.py1597 # Check if it is a folderCOMMENT
LOWbackend/package/yuxi/agents/backends/sandbox/backend.py683 # Check if old_string existsSTRING
LOWbackend/package/yuxi/knowledge/utils/url_validator.py39 # Check if URL has a valid schemeCOMMENT
LOWbackend/package/yuxi/knowledge/utils/url_validator.py58 # Check if hostname is in whitelistCOMMENT
LOWbackend/package/yuxi/knowledge/utils/url_validator.py63 # Check if hostname ends with the domain (or matches exactly)COMMENT
LOWscripts/init.sh193# Check if .env file existsCOMMENT
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOW…b/src/components/dashboard/KnowledgeStatsComponent.vue101// const databases = props.knowledgeStats?.total_databases || 0COMMENT
LOWbackend/package/yuxi/config/static/bad_keywords.txt1# ==========================================================COMMENT
LOWscripts/bump-version.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/bump-version.sh21# - 用户只说“更新 tag”或“添加 tag”时,先读取 backend/package/pyproject.toml:COMMENT
LOWscripts/bump-version.sh41# git tag v0.7.1.dev2COMMENT
LOWscripts/dependency-audit-fixtures/vulnerable.py1# /// scriptCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…nd/test/unit/knowledge/test_knowledge_runtime_cache.py193CODE