AI Slop Code RIsk Monitor

xerrors/Yuxi

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

17.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for xerrors/Yuxi, a Python project with 7,354 GitHub stars. SynthScan examined 299,931 lines of code across 1243 source files, recording 4766 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 17.3 (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.

17.3
Adjusted Signal
17.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
7.4K
Stars
Python
Language
299.9K
Lines of Code
1.2K
Files
4.8K
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 44.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 8.8/100 · LOW

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

Agent Over-Engineering Ratio 52.2/100 · HIGH

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

PR Review Velocity Impact 58.9/100 · HIGH

Which changes need focused human review? 4766 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 1HIGH 62MEDIUM 121LOW 4582

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 4766 distinct pattern matches across 18 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.

Hyper-Verbose Identifiers3414 hits · 3340 pts
SeverityFileLineSnippetContext
LOWdocker/sandbox_provisioner/app.py89def _is_persistent_sandbox_mount_path(path: str) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py123def kubernetes_storage_init_script(uid: str, workdir_path: str | None) -> str:CODE
LOWdocker/sandbox_provisioner/app.py225def sandbox_runtime_environment(profile: str) -> dict[str, str]:CODE
LOWdocker/sandbox_provisioner/app.py260def sandbox_delete_concurrency(value: str | None = None) -> int:CODE
LOWdocker/sandbox_provisioner/app.py276def sandbox_container_stop_timeout_seconds(value: str | None = None) -> int:CODE
LOWdocker/sandbox_provisioner/app.py657 def _normalize_host_bind_path(path_value: str | None) -> str:CODE
LOWdocker/sandbox_provisioner/app.py719 def _shared_workspace_host_path(self, uid: str) -> Path:CODE
LOWdocker/sandbox_provisioner/app.py723 def _validate_directory_without_symlinks(CODE
LOWdocker/sandbox_provisioner/app.py746 def _is_expected_skills_mount(self, container, uid: str) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py756 def _has_expected_user_data_mounts(CODE
LOWdocker/sandbox_provisioner/app.py782 def _has_no_persistent_file_mounts(container) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py834 def _has_expected_network_ownership(network, sandbox_id: str) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py881 def _is_subnet_allocation_conflict(exc: Exception) -> bool:CODE
LOWdocker/sandbox_provisioner/app.py1557 def _discovered_matches_request(CODE
LOWdocker/sandbox_provisioner/app.py1874 def _collect_expired_sandboxes(self) -> list[tuple[str, str | None]]:CODE
LOWdocker/sandbox_provisioner/app.py2122def _delete_sandbox_records_for_quiescence(CODE
LOWdocker/sandbox_provisioner/app.py2162def _delete_sandbox_record_for_quiescence(record: SandboxRecord) -> str | None:CODE
LOWweb/src/apis/base.js65function extractBusinessErrorDetail(errorData) {CODE
LOWweb/src/stores/database.js330 function ensureAutoRefreshForProcessing(filesMap, stats = null) {CODE
LOWweb/src/stores/user.js151 async function validateUsernameAndGenerateUid(username) {CODE
LOWweb/src/stores/agent.js87 async function fetchAccessibleKnowledgeBases() {CODE
LOWweb/src/utils/messageDebug.js8export function formatMessageDebugContent(content) {CODE
LOWweb/src/utils/messageDebug.js19export function isMessageDebugTimelineMarkSelected(selectedTargetKey, groupKey, itemId = null) {CODE
LOWweb/src/utils/messageDebug.js29function constrainMessageDebugInspectorSize(CODE
LOWweb/src/utils/messageDebug.js51export function constrainMessageDebugInspectorHeight(containerHeight, requestedHeight) {CODE
LOWweb/src/utils/messageDebug.js56export function constrainMessageDebugInspectorWidth(containerWidth, requestedWidth) {CODE
LOWweb/src/utils/messageDebug.js104export function mergeMessageDebugMessages(history, ongoing, requests = []) {CODE
LOWweb/src/utils/messageDebug.js298function normalizePersistedUtcTimestamp(value) {CODE
LOWweb/src/utils/messageDebug.js468export function mergeMessageDebugRunGroups(entries, runTraces) {CODE
LOWweb/src/utils/messageDebug.js509export function getMessageDebugEntryTimeRange(entry) {CODE
LOWweb/src/utils/messageDebug.js521export function buildMessageDebugTraceSpans(entries, timelineWindow) {CODE
LOWweb/src/utils/messageDebug.js560export function isMessageDebugEntryInTimeRange(CODE
LOWweb/src/utils/contextUsage.js55export function formatContextUsageTooltip({CODE
LOWweb/src/utils/contextUsage.js97export function resolveContextPressureTokens(usage) {CODE
LOWweb/src/utils/contextUsage.js110export function shouldSuggestContextCompression(ratio) {CODE
LOWweb/src/utils/dashboard.js29export function buildHeatmapMonthSegments(weeks) {CODE
LOWweb/src/components/ConversationNavSection.vue252function showMoreProjectConversations(group) {CODE
LOWweb/src/components/AgentChatComponent.vue2187function mergeOngoingUserMessageIntoHistory(historyConvs, ongoingMessages) {CODE
LOWweb/src/components/AgentChatComponent.vue2226function mergeActiveRunOngoingIntoHistory(historyConvs, ongoingMessages, activeRunId) {CODE
LOW…/components/scheduled-agents/scheduledAgentAutosave.js1export function newScheduledAgentRequestId() {CODE
LOW…/components/scheduled-agents/scheduledAgentAutosave.js8export function createRetriableRequestIds(createRequestId = newScheduledAgentRequestId) {CODE
LOW…/components/scheduled-agents/scheduledAgentAutosave.js28export function createScheduledAgentAutosave({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
LOW⚡backend/test/unit/test_live_api_cleanup.py70async def test_cleanup_rejects_invalid_provisioner_list_payload():CODE
3354 more matches not shown…
Unused Imports469 hits · 454 pts
SeverityFileLineSnippetContext
LOWbackend/test/conftest.py1CODE
LOWbackend/test/live_api_cleanup.py1CODE
LOWbackend/test/unit/test_live_api_cleanup.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…ckend/test/unit/routers/test_scheduled_agent_router.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_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_network_retry.py3CODE
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
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…/test/unit/repositories/test_agent_state_repository.py1CODE
LOW…d/test/unit/repositories/test_department_repository.py3CODE
LOW…it/repositories/test_agent_repository_deep_research.py1CODE
409 more matches not shown…
Excessive Try-Catch Wrapping464 hits · 425 pts
SeverityFileLineSnippetContext
MEDIUMdocker/sandbox_provisioner/app.py1860def _seed_existing(self) -> None:CODE
MEDIUMdocker/sandbox_provisioner/app.py2070def list_sandboxes():CODE
LOWdocker/sandbox_provisioner/app.py148 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py588 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py911 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1069 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1076 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1162 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py1165 except Exception as cleanup_exc:CODE
LOWdocker/sandbox_provisioner/app.py1198 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1213 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1228 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1244 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1316 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py1571 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py1676 except Exception:CODE
LOWdocker/sandbox_provisioner/app.py1728 except Exception as exc:CODE
LOWdocker/sandbox_provisioner/app.py1863 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py1896 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2013 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2033 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2055 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2073 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2095 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2117 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2193 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2219 except Exception as exc: # noqa: BLE001CODE
LOWdocker/sandbox_provisioner/app.py2247 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.py286 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.py301 except Exception:CODE
LOW…kend/test/integration/services/test_agent_run_lease.py76 except Exception:CODE
LOW…kend/test/integration/services/test_agent_run_lease.py329 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py342 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py478 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py559 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py713 except Exception:CODE
LOW…ation/services/test_agent_request_queue_concurrency.py832 except Exception:CODE
LOWbackend/test/performance/matrix.py362 except Exception as exc:CODE
LOWbackend/test/e2e/test_deterministic_agent_path_e2e.py1171 except Exception:CODE
LOWbackend/test/e2e/test_deterministic_agent_path_e2e.py1467 except Exception:CODE
LOWbackend/server/routers/graph_router.py50 except Exception as e:CODE
LOWbackend/server/routers/graph_router.py77 except Exception as e:CODE
LOWbackend/server/routers/graph_router.py94 except Exception as e:CODE
LOWbackend/server/routers/graph_router.py111 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py104 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py121 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py150 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py176 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py197 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py228 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py250 except Exception as e:CODE
LOWbackend/server/routers/knowledge_eval_router.py278 except Exception as e:CODE
404 more matches not shown…
Decorative Section Separators105 hits · 382 pts
SeverityFileLineSnippetContext
MEDIUM⚡backend/test/unit/test_chunking_token_limit.py73# ── nlp.hard_split_by_token_limit ──────────────────────────────────COMMENT
MEDIUM⚡backend/test/unit/test_chunking_token_limit.py120# ── general._ensure_chunk_token_limit ──────────────────────────────COMMENT
MEDIUM⚡backend/test/unit/test_chunking_token_limit.py156# ── general.chunk_markdown 集成 ────────────────────────────────────COMMENT
MEDIUM⚡backend/test/integration/api/test_knowledge_router.py883# =============================================================================COMMENT
MEDIUM⚡backend/test/integration/api/test_knowledge_router.py885# =============================================================================COMMENT
MEDIUM⚡backend/test/integration/api/test_knowledge_router.py944# =============================================================================COMMENT
MEDIUM⚡backend/test/integration/api/test_knowledge_router.py946# =============================================================================COMMENT
MEDIUMbackend/server/main.py5# ==============================================================================COMMENT
MEDIUMbackend/server/main.py8# ==============================================================================COMMENT
MEDIUM⚡backend/server/routers/mcp_router.py96# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/mcp_router.py98# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/mcp_router.py255# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/mcp_router.py257# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/mcp_router.py316# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/mcp_router.py318# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py29# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py31# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py67# =============================================================================COMMENT
MEDIUMbackend/server/routers/mcp_router.py69# =============================================================================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.py21# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py23# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py78# =============================================================================COMMENT
MEDIUMbackend/server/routers/system_router.py80# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/system_router.py183# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/system_router.py185# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/system_router.py244# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/system_router.py246# =============================================================================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.py1009# =============================================================================COMMENT
MEDIUMbackend/server/routers/auth_router.py1011# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py222# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py224# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py638# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py640# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1350# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1352# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1384# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1386# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1758# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1760# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1795# =============================================================================COMMENT
MEDIUM⚡backend/server/routers/knowledge_router.py1797# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1272# =============================================================================COMMENT
MEDIUMbackend/server/routers/knowledge_router.py1274# =============================================================================COMMENT
MEDIUMbackend/server/routers/chat_router.py281# =============================================================================COMMENT
MEDIUMbackend/server/routers/chat_router.py283# =============================================================================COMMENT
MEDIUMbackend/server/routers/chat_router.py386# ================================COMMENT
45 more matches not shown…
Empty Error Handlers41 hits · 205 pts
SeverityFileLineSnippetContext
HIGHdocker/sandbox_provisioner/app.py588except Exception:CODE
HIGHdocker/sandbox_provisioner/app.py1676except Exception:CODE
HIGHbackend/test/unit/agents/test_streaming_toolcall_fix.py71except GraphRecursionError:CODE
HIGH…tegration/services/test_project_workdir_provisioner.py120except Exception:CODE
HIGH…tegration/services/test_project_workdir_provisioner.py170except Exception:CODE
HIGH…tegration/services/test_project_workdir_provisioner.py224except Exception:CODE
HIGH…tegration/services/test_project_workdir_provisioner.py131except Exception:CODE
HIGH…tegration/services/test_project_workdir_provisioner.py181except Exception:CODE
HIGH…tegration/services/test_project_workdir_provisioner.py301except Exception:CODE
HIGH…ation/services/test_agent_request_queue_concurrency.py431except TimeoutError:CODE
HIGHbackend/test/performance/load.py755except httpx.HTTPError:CODE
HIGHbackend/test/e2e/test_deterministic_agent_path_e2e.py1171except Exception:CODE
HIGHbackend/test/e2e/test_deterministic_agent_path_e2e.py1467except Exception:CODE
HIGHbackend/package/yuxi/workspace/preview.py45except FileNotFoundError:CODE
HIGHbackend/package/yuxi/workspace/paths.py163except FileNotFoundError:CODE
HIGHbackend/package/yuxi/workspace/filesystem.py214except FileNotFoundError:CODE
HIGHbackend/package/yuxi/workspace/filesystem.py287except FileNotFoundError:CODE
HIGHbackend/package/yuxi/agents/backends/sandbox/backend.py650except Exception: # noqa: BLE001CODE
HIGH…/agents/skills/buildin/mysql-reporter/scripts/query.py119except Exception:CODE
HIGH…kills/buildin/mysql-reporter/scripts/describe_table.py57except Exception:CODE
HIGH…kills/buildin/mysql-reporter/scripts/describe_table.py93except Exception:CODE
HIGHbackend/package/yuxi/utils/paths.py22except FileExistsError:CODE
HIGHbackend/package/yuxi/models/embed.py179except ValueError:CODE
HIGHbackend/package/yuxi/storage/redis/manager.py92except Exception:CODE
HIGHbackend/package/yuxi/storage/redis/manager.py109except Exception:CODE
HIGH…ckend/package/yuxi/storage/postgres/models_business.py770except json.JSONDecodeError:CODE
HIGHbackend/package/yuxi/knowledge/parser/rapid_ocr.py50except Exception:CODE
HIGH…ckend/package/yuxi/knowledge/parser/mineru_official.py116except Exception:CODE
HIGH…/package/yuxi/knowledge/graphs/milvus_graph_service.py402except TimeoutError:CODE
HIGH…/package/yuxi/knowledge/graphs/milvus_graph_service.py411except TimeoutError:CODE
HIGH…ckend/package/yuxi/knowledge/implementations/milvus.py1376except Exception: # noqa: S110CODE
HIGH…ckend/package/yuxi/knowledge/implementations/notion.py95except ValueError:CODE
HIGH…ckend/package/yuxi/storage_migrations/v071_workdirs.py191except FileExistsError:CODE
HIGH…ckage/yuxi/storage_migrations/v072_runtime_identity.py144except FileNotFoundError:CODE
HIGHbackend/package/yuxi/services/attachment_service.py527except FileNotFoundError:CODE
HIGHbackend/package/yuxi/services/attachment_service.py172except FileNotFoundError:CODE
HIGHbackend/package/yuxi/services/attachment_service.py229except Exception:CODE
HIGH…end/package/yuxi/services/viewer_filesystem_service.py120except FileNotFoundError:CODE
HIGH…end/package/yuxi/services/viewer_filesystem_service.py267except FileNotFoundError:CODE
HIGHbackend/package/yuxi/services/run_queue_service.py249except Exception:CODE
HIGHbackend/package/yuxi/services/skills/edit.py371except FileNotFoundError:CODE
Deep Nesting120 hits · 110 pts
SeverityFileLineSnippetContext
LOWdocker/sandbox_provisioner/app.py986CODE
LOWbackend/test/live_api_cleanup.py667CODE
LOWbackend/test/live_api_cleanup.py808CODE
LOWbackend/test/unit/performance/test_matrix.py370CODE
LOWbackend/test/integration/conftest.py243CODE
LOW…/test/integration/api/test_shared_skill_edit_router.py144CODE
LOW…ration/api/test_agent_config_resource_authorization.py170CODE
LOWbackend/test/integration/api/test_mcp_router.py28CODE
LOW…t/integration/services/test_knowledge_stats_refresh.py171CODE
LOWbackend/test/support/openai_replay_server.py93CODE
LOWbackend/test/performance/matrix.py184CODE
LOWbackend/test/performance/matrix.py330CODE
LOWbackend/test/performance/matrix.py369CODE
LOWbackend/test/performance/analysis.py69CODE
LOWbackend/test/performance/stage_probe.py137CODE
LOWbackend/test/performance/load.py680CODE
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/test/e2e/test_deterministic_agent_path_e2e.py40CODE
LOWbackend/test/e2e/test_deterministic_agent_path_e2e.py818CODE
LOWbackend/test/e2e/test_deterministic_agent_path_e2e.py1477CODE
LOWbackend/server/routers/mcp_router.py322CODE
LOWbackend/server/routers/knowledge_router.py1147CODE
LOWbackend/package/yuxi/workspace/paths.py211CODE
LOWbackend/package/yuxi/workspace/filesystem.py41CODE
LOWbackend/package/yuxi/workspace/filesystem.py87CODE
LOWbackend/package/yuxi/workspace/filesystem.py115CODE
LOWbackend/package/yuxi/agents/context.py371CODE
LOWbackend/package/yuxi/agents/base.py116CODE
LOWbackend/package/yuxi/agents/base.py175CODE
LOWbackend/package/yuxi/agents/backends/sandbox/backend.py573CODE
LOWbackend/package/yuxi/agents/backends/sandbox/backend.py1147CODE
LOW…ckend/package/yuxi/agents/backends/sandbox/provider.py168CODE
LOWbackend/package/yuxi/agents/middlewares/skills.py65CODE
LOWbackend/package/yuxi/agents/middlewares/summary.py616CODE
LOWbackend/package/yuxi/agents/toolkits/utils.py7CODE
LOWbackend/package/yuxi/agents/toolkits/buildin/tools.py320CODE
LOWbackend/package/yuxi/agents/mcp/service.py250CODE
LOWbackend/package/yuxi/agents/skills/runtime.py176CODE
LOW…/agents/skills/buildin/mysql-reporter/scripts/query.py204CODE
LOW…kills/buildin/mysql-reporter/scripts/describe_table.py28CODE
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.py528CODE
LOWbackend/package/yuxi/permissions/resource_permission.py105CODE
LOWbackend/package/yuxi/storage/minio/utils.py31CODE
LOW…ckend/package/yuxi/storage/postgres/models_business.py754CODE
LOWbackend/package/yuxi/storage/postgres/manager.py411CODE
LOWbackend/package/yuxi/knowledge/manager.py132CODE
LOWbackend/package/yuxi/knowledge/base.py180CODE
LOWbackend/package/yuxi/knowledge/base.py787CODE
LOWbackend/package/yuxi/knowledge/base.py977CODE
LOWbackend/package/yuxi/knowledge/utils/url_fetcher.py130CODE
LOWbackend/package/yuxi/knowledge/parser/unified.py116CODE
LOWbackend/package/yuxi/knowledge/parser/unified.py307CODE
LOWbackend/package/yuxi/knowledge/parser/rapid_ocr.py99CODE
LOWbackend/package/yuxi/knowledge/parser/rapid_ocr.py156CODE
LOWbackend/package/yuxi/knowledge/parser/paddleocr_api.py265CODE
60 more matches not shown…
Cross-Language Confusion12 hits · 60 pts
SeverityFileLineSnippetContext
HIGH…/unit/config/test_docker_compose_service_boundaries.py331 "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.py128 commands=("pnpm run lint:check && pnpm run test:unit && pnpm run build",),CODE
HIGH⚡scripts/test_verify_engineering_contracts.py368 "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 Boilerplate53 hits · 56 pts
SeverityFileLineSnippetContext
LOWdocker/sandbox_provisioner/app.py27logger = logging.getLogger(__name__)CODE
LOW⚡…end/test/unit/routers/test_knowledge_router_cleanup.py39 async def set_message(self, message: str) -> None:CODE
LOW⚡…end/test/unit/routers/test_knowledge_router_cleanup.py42 async def set_progress(self, progress: float, message: str | None = None) -> None:CODE
LOW⚡…end/test/unit/routers/test_knowledge_router_cleanup.py45 async def set_result(self, result: dict) -> None:CODE
LOWbackend/test/unit/storage/test_minio_public_images.py21 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.py44 async def update_dataset(self, dataset_id: str, data: dict) -> None:CODE
LOW⚡…st/unit/knowledge/test_evaluation_task_cancellation.py50 async def update_run(self, run_id: str, data: dict) -> None:CODE
LOW…nd/test/unit/services/test_knowledge_folder_service.py20 async def set_progress(self, progress: float, message: str | None = None) -> None:CODE
LOW…nd/test/unit/services/test_knowledge_folder_service.py23 async def set_result(self, result: dict) -> None:CODE
LOWbackend/test/integration/api/test_dashboard_router.py20async def _set_conversation_statuses(subagent_thread_id: str, deleted_thread_id: str) -> None:CODE
LOWbackend/server/worker_main.py16__all__ = ["WorkerSettings"]CODE
LOWbackend/package/yuxi/config/__init__.py57__all__ = [CODE
LOWbackend/package/yuxi/workspace/__init__.py6__all__ = ["Workspace", "Workdir"]CODE
LOWbackend/package/yuxi/agents/__init__.py15__all__ = [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.py95__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__.py11__all__ = [CODE
LOW…nd/package/yuxi/agents/middlewares/tool_error_guard.py15logger = logging.getLogger(__name__)CODE
LOWbackend/package/yuxi/agents/toolkits/__init__.py16__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.py146__all__ = [CODE
LOW…d/package/yuxi/repositories/conversation_repository.py246 async def set_model_spec(self, conversation: Conversation, model_spec: str) -> None:CODE
LOW…d/package/yuxi/repositories/conversation_repository.py967 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.py632 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.py666 async def update_kb_query_params(self, kb_id: str, params: dict[str, Any]) -> None:CODE
LOWbackend/package/yuxi/knowledge/utils/__init__.py14__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.py75 async def set_progress(self, progress: float, message: str | None = None) -> None:CODE
LOWbackend/package/yuxi/services/task_service.py91 async def set_message(self, message: str) -> None:CODE
LOWbackend/package/yuxi/services/task_service.py95 async def set_result(self, result: Any) -> None:CODE
LOWbackend/package/yuxi/services/task_service.py539__all__ = ["process_task", "tasker", "Task", "TaskContext", "Tasker"]CODE
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHbackend/package/yuxi/storage/minio/client.py403 异步上下文管理器:从 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.py133读取知识库运行配置,Redis 未命中时回源 PostgreSQL。 Args: kb_id: 数据库ID Returns: 规范化后的知识库运行配置 STRING
HIGHbackend/package/yuxi/knowledge/utils/kb_utils.py259 解析MinIO URL,提取bucket名称和对象名称 支持标准 HTTP/HTTPS URL 格式: - http(s)://host/bucket-name/path/to/object Args:STRING
HIGHbackend/package/yuxi/knowledge/utils/url_fetcher.py131 Fetch URL content with security checks (size limit, content type, private IP blocking). Args: url: TheSTRING
HIGHbackend/package/yuxi/knowledge/parser/factory.py43 获取文档处理器实例 (单例模式) Args: processor_type: 处理器类型 - "rapid_ocr": RapidOCR 本地 OCSTRING
HIGHbackend/package/yuxi/knowledge/parser/factory.py84 使用指定处理器处理文件 (便捷方法) Args: processor_type: 处理器类型 file_path: 文件路径 parSTRING
HIGHbackend/package/yuxi/knowledge/parser/base.py47 处理文件并返回提取的文本 Args: file_path: 文件路径 params: 处理参数 Returns: STRING
HIGHbackend/package/yuxi/services/ocr_service.py80使用当前运行时配置将文件解析为 Markdown。 这是业务代码唯一应调用的文档解析入口。函数负责区分应用层配置解析和 底层文件转换:对于 PDF 与图片等 OCR 文件,先确定最终 OCR 引擎,再从 数据库 OSTRING
Fake / Example Data22 hits · 28 pts
SeverityFileLineSnippetContext
LOWweb/src/components/RerankModelSelector.vue5 :placeholder="placeholder"CODE
LOWweb/src/components/MessageInputComponent.vue34 :aria-label="placeholder"CODE
LOWweb/src/components/MessageInputComponent.vue36 :data-placeholder="placeholder"CODE
LOWweb/src/components/AgentInputArea.vue14 :placeholder="placeholder"CODE
LOWweb/src/components/EmbeddingModelSelector.vue5 :placeholder="placeholder"CODE
LOWweb/src/components/AiTextarea.vue6 :placeholder="placeholder"CODE
LOW⚡backend/test/unit/routers/test_subagent.py92 async def fake_user():CODE
LOW⚡backend/test/unit/routers/test_subagent.py96 app.dependency_overrides[get_required_user] = fake_userCODE
LOW⚡backend/test/unit/routers/test_subagent.py97 app.dependency_overrides[get_admin_user] = fake_userCODE
LOW⚡…ckend/test/unit/routers/test_scheduled_agent_router.py21 async def fake_user():CODE
LOW⚡…ckend/test/unit/routers/test_scheduled_agent_router.py25 app.dependency_overrides[get_required_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.py140 "placeholder": "http://mineru-api:30001",CODE
LOWbackend/package/yuxi/config/options.py176 "placeholder": "http://paddlex:8080",CODE
LOWbackend/package/yuxi/config/options.py194 "placeholder": "https://paddleocr.aistudio-app.com/api/v2/ocr/jobs",CODE
LOW⚡backend/package/yuxi/knowledge/implementations/dify.py33 "placeholder": "例如: https://api.dify.ai/v1",CODE
LOW⚡backend/package/yuxi/knowledge/implementations/dify.py41 "placeholder": "请输入 Dify API Token",CODE
LOW⚡backend/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 Patterns23 hits · 18 pts
SeverityFileLineSnippetContext
LOWbackend/test/unit/services/test_agent_run_service.py1958CODE
LOWbackend/test/unit/services/test_agent_run_service.py290CODE
LOW…est/unit/services/test_chat_service_langfuse_stream.py120CODE
LOW…est/unit/services/test_chat_service_langfuse_stream.py589CODE
LOWbackend/test/unit/services/test_subagent_run_service.py106CODE
LOWbackend/server/routers/dashboard_router.py290CODE
LOWbackend/server/routers/workspace_router.py161CODE
LOWbackend/server/routers/knowledge_router.py240CODE
LOWbackend/package/yuxi/workspace/filesystem.py41CODE
LOWbackend/package/yuxi/agents/toolkits/registry.py39CODE
LOWbackend/package/yuxi/agents/mcp/service.py413CODE
LOWbackend/package/yuxi/agents/mcp/service.py462CODE
LOW…kend/package/yuxi/repositories/agent_run_repository.py251CODE
LOWbackend/package/yuxi/repositories/agent_repository.py236CODE
LOWbackend/package/yuxi/repositories/agent_repository.py304CODE
LOWbackend/package/yuxi/models/embed.py19CODE
LOWbackend/package/yuxi/storage/minio/client.py165CODE
LOWbackend/package/yuxi/storage/minio/client.py279CODE
LOWbackend/package/yuxi/knowledge/manager.py767CODE
LOWbackend/package/yuxi/services/chat_service.py518CODE
LOWbackend/package/yuxi/services/chat_service.py683CODE
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
MEDIUM⚡backend/test/integration/api/test_apikey_router.py256 # Create an API keyCOMMENT
MEDIUM⚡backend/test/integration/api/test_apikey_router.py285 # Create an API keyCOMMENT
Modern AI Meta-Vocabulary4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMREADME.en.md123### 02 · Knowledge Bases and RAGCOMMENT
MEDIUMREADME.md126### 02 · 知识库与 RAGCOMMENT
MEDIUMdocs/develop-guides/decisions/README.md58`simplification` 提案和 implemented 记录还必须分别在 `## 验收标准` 或 `## 验证` 中包含 `旧能力不存在:` 与 `重新引入条件:`,避免只增加替代物而不删除旧表面。`rejected` 说明拒绝原CODE
MEDIUMdocs/intro/project-overview.md30### 知识库与 RAGCOMMENT
Overly Generic Function Names12 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡backend/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
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALweb/test/unit/agentRuntimeConfigVisibility.test.js51 state.configurableItems.value.knowledges.options.push({ value: 'kb-a', label: '知识库 A' })CODE
Redundant / Tautological Comments7 hits · 8 pts
SeverityFileLineSnippetContext
LOWbackend/server/routers/knowledge_router.py1076 # Check if it is a folderCOMMENT
LOWbackend/server/routers/knowledge_router.py1122 # Check if it is a folderCOMMENT
LOW⚡backend/package/yuxi/agents/backends/sandbox/backend.py684 # 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 Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWbackend/package/yuxi/models/providers/builtin.py21 # "provider_id": "anthropic",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.py194CODE