Repository Analysis

arc53/DocsGPT

Private AI platform for agents, assistants and enterprise search. Built-in Agent Builder, Deep research, Document analysis, Multi-model support, and API connectivity for agents.

38.0 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of arc53/DocsGPT, a Python project with 18,231 GitHub stars. SynthScan v2.0 examined 430,671 lines of code across 1436 source files, recording 11701 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 38.0 places this repository in the Strong 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).

38.0
Adjusted Score
38.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
18.2K
Stars
Python
Language
430.7K
Lines of Code
1.4K
Files
11.7K
Pattern Hits
2026-08-29
Scan Date
0.07
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 7HIGH 88MEDIUM 1995LOW 9611

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 11701 distinct pattern matches across 23 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 Identifiers7523 hits · 6893 pts
SeverityFileLineSnippetContext
LOWmd-gen.py3def create_markdown_from_directory(directory=".", output_file="combined.md"):CODE
LOWfrontend/src/agents/schedules/TimezoneCombobox.tsx64function computeTimezoneOffsetLabel(tz: string): string {CODE
LOWfrontend/src/agents/schedules/cronBuilder.ts169export function parseScheduleToFormValues(CODE
LOWfrontend/src/agents/workflow/documentConfig.ts38export function documentsModeToInputDocuments(CODE
LOWfrontend/src/agents/workflow/documentConfig.ts72export function toDocumentVariableOptions(CODE
LOWfrontend/src/agents/workflow/documentConfig.ts102export function withChosenDocumentOptions(CODE
LOWfrontend/src/agents/workflow/workflowPreviewSlice.ts55export function handleWorkflowPreviewAbort() {CODE
LOWfrontend/src/agents/workflow/workflowPreviewSlice.ts71export function collectCompletedAttachmentIds(CODE
LOWfrontend/src/components/artifactViewUtils.ts249export function filenameFromContentDisposition(CODE
LOWfrontend/src/conversation/conversationHandlers.ts247export function handleFetchAnswerSteaming(CODE
LOWfrontend/src/conversation/conversationHandlers.ts898export function handleFetchSharedAnswerStreaming(CODE
LOWtests/test_events_substrate.py62 def test_digit_count_does_not_break_int_compare(self):CODE
LOWtests/test_events_substrate.py67 def test_missing_seq_treated_as_zero(self):CODE
LOWtests/test_events_substrate.py70 def test_malformed_input_raises(self):CODE
LOWtests/test_events_substrate.py166 def test_returns_none_on_missing_user_id(self):CODE
LOWtests/test_events_substrate.py169 def test_returns_none_on_missing_event_type(self):CODE
LOWtests/test_events_substrate.py174 def test_returns_none_when_push_disabled(self, mock_settings, mock_redis):CODE
LOWtests/test_events_substrate.py184 def test_returns_none_when_redis_unavailable(self, mock_settings, mock_redis):CODE
LOWtests/test_events_substrate.py192 def test_returns_none_on_unserializable_payload(CODE
LOWtests/test_events_substrate.py287 def test_publish_returns_zero_when_redis_unavailable(self, mock_redis):CODE
LOWtests/test_events_substrate.py292 def test_publish_calls_redis_publish(self, mock_redis):CODE
LOWtests/test_events_substrate.py301 def test_publish_swallows_exceptions(self, mock_redis):CODE
LOWtests/test_events_substrate.py309 def test_subscribe_returns_immediately_when_redis_unavailable(CODE
LOWtests/test_events_substrate.py317 def test_subscribe_yields_none_on_poll_timeout(self, mock_redis):CODE
LOWtests/test_events_substrate.py42 def test_connection_counter_key(self):CODE
LOWtests/test_events_substrate.py112 def test_terminator_regex_compiles(self):CODE
LOWtests/test_events_substrate.py208 def test_xadd_and_publish_both_invoked_on_happy_path(CODE
LOWtests/test_events_substrate.py255 def test_xadd_failure_skips_live_publish(CODE
LOWtests/test_events_substrate.py335 def test_subscribe_fires_on_subscribe_after_ack(self, mock_redis):CODE
LOWtests/test_events_substrate.py359 def test_subscribe_cleans_up_on_generator_close(self, mock_redis):CODE
LOWtests/test_events_substrate.py377 def test_subscribe_skips_unsubscribe_if_subscribe_never_acked(CODE
LOWtests/test_todo_tool.py74 def update_title_by_tool_and_todo_id(self, user_id, tool_id, todo_id, title):CODE
LOWtests/test_todo_tool.py88 def delete_by_tool_and_todo_id(self, user_id, tool_id, todo_id):CODE
LOWtests/test_todo_tool.py177def test_isolation_per_tool_id(monkeypatch):CODE
LOWtests/test_todo_tool.py205def test_sentinel_tool_id_short_circuits():CODE
LOWtests/test_todo_tool.py215def test_no_user_id_returns_error():CODE
LOWtests/test_client_tools.py54 def test_merge_multiple_tools(self):CODE
LOWtests/test_client_tools.py85 def test_merge_preserves_existing_tools(self):CODE
LOWtests/test_client_tools.py120 def test_client_tools_included_in_llm_schema(self):CODE
LOWtests/test_client_tools.py151 def test_mixed_server_and_client_tools(self):CODE
LOWtests/test_client_tools.py203 def test_get_tools_merges_client_tools(self, monkeypatch):CODE
LOWtests/test_client_tools.py225 def test_get_tools_no_client_tools(self, monkeypatch):CODE
LOWtests/test_client_tools.py258 def test_client_tool_triggers_pause(self):CODE
LOWtests/test_client_tools.py278 def test_server_tool_no_pause(self):CODE
LOWtests/test_client_tools.py320 def test_client_tool_pauses_stream(self):CODE
LOWtests/test_client_tools.py377 def test_mixed_server_and_client_tools_in_batch(self):CODE
LOWtests/test_utils.py38 def test_returns_same_instance(self):CODE
LOWtests/test_utils.py47 def test_returns_llm_name_when_set(self):CODE
LOWtests/test_utils.py54 def test_falls_back_to_provider_map(self):CODE
LOWtests/test_utils.py61 def test_unknown_provider_returns_empty(self):CODE
LOWtests/test_utils.py98 def test_non_string_returns_zero(self):CODE
LOWtests/test_utils.py106 def test_special_token_text_counts_instead_of_raising(self):CODE
LOWtests/test_utils.py116 def test_unbroken_cjk_run_counts_in_bounded_time(self):CODE
LOWtests/test_utils.py198 def test_check_required_fields_pass(self):CODE
LOWtests/test_utils.py206 def test_check_required_fields_fail(self):CODE
LOWtests/test_utils.py215 def test_get_field_validation_errors_none_when_valid(self):CODE
LOWtests/test_utils.py219 def test_get_field_validation_errors_missing(self):CODE
LOWtests/test_utils.py224 def test_get_field_validation_errors_empty(self):CODE
LOWtests/test_utils.py229 def test_validate_required_fields_pass(self):CODE
LOWtests/test_utils.py237 def test_validate_required_fields_missing(self):CODE
7463 more matches not shown…
Decorative Section Separators1813 hits · 6468 pts
SeverityFileLineSnippetContext
MEDIUMsetup.sh173# ========================COMMENT
MEDIUMsetup.sh175# ========================COMMENT
MEDIUMtests/test_events_substrate.py281# ── Topic ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_events_substrate.py31# ── keys ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_events_substrate.py46# ── stream_id_compare ───────────────────────────────────────────────────COMMENT
MEDIUMtests/test_events_substrate.py82# ── _format_sse ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_events_substrate.py117# ── _normalize_last_event_id ────────────────────────────────────────────COMMENT
MEDIUMtests/test_events_substrate.py148# ── publisher ───────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_client_tools.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py242# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py244# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py295# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_client_tools.py297# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py58# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py137# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_namespaces.py20# ── SystemNamespace ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py74# ── PassthroughNamespace ───────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py157# ── ToolsNamespace ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py342# ── NamespaceBuilder ABC ──────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py372# ── NamespaceManager ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py442# ── AttachmentsNamespace ────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py519# ── SystemNamespace platform block ─────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py116# ── SourceNamespace ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py207# ── ArtifactsNamespace ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py491# ── tools.enabled gate (the condition used verbatim in the prompt files) ────────COMMENT
MEDIUMtests/test_target_coverage.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py303# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py307# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_target_coverage.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py72# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py74# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py94# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py134# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py205# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py248# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py250# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py271# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py273# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py505# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py507# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py326# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_code_executor_tool.py328# ---------------------------------------------------------------------------COMMENT
1753 more matches not shown…
Excessive Try-Catch Wrapping1048 hits · 1017 pts
SeverityFileLineSnippetContext
LOWmd-gen.py41 except Exception as e:CODE
MEDIUMmd-gen.py42 print(f"Error processing file {filepath}: {e}")CODE
LOWtests/test_target_coverage.py296 except Exception:CODE
LOWtests/test_target_coverage.py207 except Exception as e:CODE
LOWtests/test_target_coverage.py239 except Exception as e:CODE
LOWtests/test_target_coverage.py260 except Exception as e:CODE
LOWtests/test_integration.py806 except Exception:CODE
LOWtests/test_integration.py815 except Exception as e:CODE
LOWtests/test_integration.py976 except Exception as e:CODE
LOWtests/test_integration.py1001 except Exception as e:CODE
LOWtests/test_integration.py1030 except Exception as e:CODE
LOWtests/test_integration.py68 except Exception as exc:CODE
LOWtests/test_integration.py183 except Exception as e:CODE
LOWtests/test_integration.py247 except Exception as e:CODE
LOWtests/test_integration.py404 except Exception:CODE
LOWtests/test_integration.py413 except Exception as e:CODE
LOWtests/test_integration.py449 except Exception as e:CODE
LOWtests/test_integration.py559 except Exception:CODE
LOWtests/test_integration.py568 except Exception as e:CODE
LOWtests/test_integration.py662 except Exception as e:CODE
LOWtests/test_integration.py736 except Exception as e:CODE
LOWtests/test_integration.py914 except Exception as e:CODE
LOWtests/test_integration.py1065 except Exception as e:CODE
LOWtests/test_integration.py1202 except Exception as e:CODE
LOWtests/test_integration.py337 except Exception:STRING
LOWtests/test_integration.py346 except Exception as e:STRING
LOWtests/test_integration.py1276 except Exception as e:STRING
LOWtests/test_coverage_gaps.py2527 except Exception as e:CODE
LOWtests/test_coverage_gaps.py2597 except Exception as e:CODE
LOWtests/graphrag/test_extraction.py33 except Exception:CODE
LOWtests/graphrag/test_extraction.py66 except Exception as exc:CODE
LOWtests/graphrag/test_retriever_live.py58 except Exception:CODE
LOWtests/graphrag/test_retriever_live.py84 except Exception as exc:CODE
LOWtests/graphrag/test_store.py86 except Exception as exc:CODE
LOWtests/graphrag/test_store.py50 except Exception:CODE
LOWtests/integration/test_workflows.py69 except Exception:CODE
LOWtests/integration/test_worker_drain_e2e.py85 except Exception:CODE
LOWtests/integration/test_worker_drain_e2e.py89 except Exception:CODE
LOWtests/integration/test_worker_drain_e2e.py92 except Exception:CODE
LOWtests/integration/test_worker_drain_e2e.py97 except Exception:CODE
LOWtests/integration/test_worker_drain_e2e.py106 except Exception:CODE
LOWtests/integration/test_worker_drain_e2e.py123 except Exception:CODE
MEDIUMtests/integration/test_worker_drain_e2e.py82def _reap(proc, fh) -> None:CODE
MEDIUMtests/integration/test_worker_drain_e2e.py120def _run():CODE
LOWtests/integration/test_misc.py108 except Exception as e:CODE
LOWtests/integration/test_misc.py169 except Exception as e:CODE
LOWtests/integration/test_misc.py211 except Exception as e:CODE
LOWtests/integration/test_misc.py248 except Exception as e:CODE
LOWtests/integration/test_misc.py276 except Exception as e:CODE
LOWtests/integration/test_misc.py77 except Exception as e:CODE
LOWtests/integration/test_misc.py140 except Exception as e:CODE
LOWtests/integration/test_prompts.py77 except Exception:CODE
LOWtests/integration/test_prompts.py157 except Exception as e:CODE
LOWtests/integration/test_prompts.py299 except Exception as e:CODE
LOWtests/integration/test_prompts.py342 except Exception as e:CODE
LOWtests/integration/test_prompts.py386 except Exception as e:CODE
LOWtests/integration/test_prompts.py66 except Exception:CODE
LOWtests/integration/test_prompts.py119 except Exception as e:CODE
LOWtests/integration/test_prompts.py193 except Exception as e:CODE
LOWtests/integration/test_prompts.py227 except Exception as e:CODE
988 more matches not shown…
Unused Imports429 hits · 404 pts
SeverityFileLineSnippetContext
LOWtests/test_events_substrate.py9CODE
LOWtests/test_todo_tool.py15CODE
LOWtests/conftest.py30CODE
LOWtests/test_memory_tool.py8CODE
LOWtests/test_authz.py3CODE
LOWtests/test_code_executor_tool.py8CODE
LOWtests/test_code_executor_tool.py255CODE
LOWtests/test_notes_tool.py8CODE
LOWtests/test_version_check.py9CODE
LOWtests/test_event_replay.py23CODE
LOWtests/test_message_journal.py8CODE
LOWtests/test_pubsub_timeouts.py11CODE
LOWtests/core/test_models_config_dir.py10CODE
LOWtests/core/test_model_registry_yaml.py13CODE
LOWtests/core/test_log_context.py3CODE
LOWtests/core/test_byom_user_aware_helpers.py13CODE
LOWtests/core/test_db_uri.py16CODE
LOWtests/core/test_registry_user_layer.py9CODE
LOWtests/core/test_openai_compatible.py9CODE
LOWtests/core/test_logging_config.py10CODE
LOWtests/guardrails/test_engine.py3CODE
LOWtests/guardrails/test_redaction_boundaries.py8CODE
LOWtests/guardrails/test_config_salvage.py8CODE
LOWtests/guardrails/test_review_regressions.py3CODE
LOWtests/guardrails/test_agent_integration.py3CODE
LOWtests/guardrails/test_checks.py3CODE
LOWtests/guardrails/test_review_fixes.py3CODE
LOWtests/guardrails/test_stream.py3CODE
LOWtests/security/test_safe_url.py9CODE
LOWtests/graphrag/test_extraction.py9CODE
LOWtests/graphrag/test_graphrag_available.py3CODE
LOWtests/graphrag/test_retriever_live.py11CODE
LOWtests/graphrag/test_store.py16CODE
LOWtests/integration/test_worker_drain_e2e.py10CODE
LOWtests/integration/conftest.py28CODE
LOWtests/integration/_drain_harness_app.py10CODE
LOWtests/integration/test_users_repository.py22CODE
LOWtests/integration/__init__.py35CODE
LOWtests/integration/__init__.py35CODE
LOWtests/integration/__init__.py35CODE
LOWtests/integration/__init__.py35CODE
LOWtests/integration/__init__.py36CODE
LOWtests/integration/__init__.py37CODE
LOWtests/integration/__init__.py38CODE
LOWtests/integration/__init__.py39CODE
LOWtests/integration/__init__.py40CODE
LOWtests/integration/__init__.py41CODE
LOWtests/integration/__init__.py42CODE
LOWtests/integration/__init__.py43CODE
LOWtests/integration/__init__.py44CODE
LOWtests/integration/__init__.py45CODE
LOWtests/integration/test_scim.py13CODE
LOW…ts/agents/test_tool_executor_duplicate_registration.py10CODE
LOWtests/agents/test_tool_call_projection.py18CODE
LOW…sts/agents/test_workflow_engine_structured_recovery.py3CODE
LOWtests/agents/test_workflow_run_scoped_artifacts.py10CODE
LOWtests/agents/test_workflow_agent_pg_write.py13CODE
LOWtests/agents/test_tool_artifact_reporting.py10CODE
LOWtests/agents/test_workflow_input_documents.py9CODE
LOWtests/agents/test_default_tools.py3CODE
369 more matches not shown…
Deep Nesting293 hits · 217 pts
SeverityFileLineSnippetContext
LOWmd-gen.py3CODE
LOWtests/test_zip_extraction_security.py289CODE
LOWtests/test_target_coverage.py245CODE
LOWtests/test_integration.py105CODE
LOWtests/test_integration.py418CODE
LOWtests/test_integration.py453CODE
LOWtests/test_integration.py573CODE
LOWtests/test_integration.py667CODE
LOWtests/test_integration.py741CODE
LOWtests/test_integration.py1089CODE
LOWtests/test_coverage_gaps.py2143CODE
LOWtests/test_remaining_coverage.py533CODE
LOWtests/llm/handlers/test_llm_handlers.py2217CODE
LOWtests/llm/handlers/test_llm_handlers.py2262CODE
LOWtests/integration/test_misc.py36CODE
LOWtests/integration/test_prompts.py124CODE
LOWtests/integration/test_chat.py122CODE
LOWtests/integration/test_chat.py160CODE
LOWtests/integration/test_chat.py233CODE
LOWtests/integration/test_chat.py294CODE
LOWtests/integration/test_chat.py527CODE
LOWtests/integration/test_chat.py635CODE
LOWtests/integration/test_chat.py849CODE
LOWtests/integration/test_chat.py979CODE
LOWtests/integration/test_v1_api.py249CODE
LOWtests/integration/test_v1_api.py402CODE
LOWtests/integration/test_v1_api.py494CODE
LOWtests/integration/test_v1_tool_calls.py99CODE
LOWtests/integration/test_sources.py49CODE
LOWtests/integration/test_sources.py108CODE
LOWtests/integration/test_sources.py121CODE
LOWtests/integration/test_tools.py191CODE
LOWtests/integration/test_tools.py232CODE
LOWtests/integration/test_mcp.py195CODE
LOWtests/integration/base.py223CODE
LOWtests/integration/test_agents.py50CODE
LOWtests/parser/remote/test_s3_loader.py660CODE
LOWtests/parser/remote/test_s3_loader.py687CODE
LOWtests/parser/remote/test_s3_loader.py709CODE
LOWtests/parser/remote/test_s3_loader.py831CODE
LOWtests/api/user/attachments/test_routes.py1952CODE
LOWtests/api/user/attachments/test_routes.py1992CODE
LOWtests/api/user/attachments/test_routes.py2060CODE
LOWtests/api/user/attachments/test_routes.py2165CODE
LOWtests/api/user/attachments/test_routes.py2199CODE
LOWtests/api/user/attachments/test_routes.py2266CODE
LOWtests/services/test_search_service.py292CODE
LOWtests/devices/conftest.py63CODE
LOWscripts/migrate_conversation_id_dbref_to_objectid.py26CODE
LOWscripts/qa/durability_e2e.py1692CODE
LOWscripts/db/backfill.py208CODE
LOWscripts/db/backfill.py284CODE
LOWscripts/db/backfill.py325CODE
LOWscripts/db/backfill.py393CODE
LOWscripts/db/backfill.py438CODE
LOWscripts/db/backfill.py479CODE
LOWscripts/db/backfill.py545CODE
LOWscripts/db/backfill.py674CODE
LOWscripts/db/backfill.py841CODE
LOWscripts/db/backfill.py1020CODE
233 more matches not shown…
Docstring Block Structure33 hits · 165 pts
SeverityFileLineSnippetContext
HIGHapplication/cache.py46Stable fingerprint of the generation-affecting kwargs. Args: extra: Keyword arguments forwarded to the geneSTRING
HIGHapplication/cache.py195Build the Redis key for one generation call. Args: messages: Chat messages for the call. model: ModSTRING
HIGHapplication/utils.py392 Convert PDF pages to images for LLMs that support images but not PDFs. This enables "synthetic PDF support" bySTRING
HIGHapplication/llm/openai.py668Send a request, retrying once without tools on a tools-unsupported 400. Args: create: The provider STRING
HIGHapplication/core/url_validation.py94 Validate a URL to prevent SSRF attacks. This function checks that: 1. The URL has an allowed scheme (http STRING
HIGHapplication/core/secret_key.py57Return a shared configured secret or a stable local-development secret. Args: configured_secret: Operator-sSTRING
HIGHapplication/agents/tools/api_body_serializer.py31 Serialize body data to appropriate format. Args: body_data: Dictionary of body parameters STRING
HIGHapplication/agents/tools/ntfy.py21 Execute the specified action with given parameters. Args: action_name (str): Name of the aSTRING
HIGHapplication/agents/tools/ntfy.py43 Send a message to an ntfy topic on the specified server. Args: server_url (str): Base URL STRING
HIGHapplication/agents/tools/spec_parser.py23 Parse an API specification and convert operations to action definitions. Supports OpenAPI 3.x and Swagger 2.0 STRING
HIGHapplication/parser/embedding_pipeline.py254Embeds documents and stores them in a vector store. Resumable across Celery autoretries of the *same* task: when STRING
HIGHapplication/parser/chunking_creator.py34Instantiate the chunker registered under ``strategy``. Args: strategy: Registry key (e.g. ``classicSTRING
HIGHapplication/parser/connectors/connector_creator.py31 Create a connector instance for the specified type. Args: connector_type: Type of connectoSTRING
HIGHapplication/parser/connectors/connector_creator.py51 Create an auth provider instance for the specified connector type. Args: connector_type: TSTRING
HIGHapplication/parser/file/bulk.py264Load data from the input directory. Args: concatenate (bool): whether to concatenate all files intoSTRING
HIGHapplication/parser/file/pdfium_parser.py109Measure how much extractable text the PDF carries. Args: file: Path to the PDF. Returns: STRING
HIGHapplication/parser/file/pdfium_parser.py168Hand the file to the fallback parser. Args: file: Path to the PDF. errors: Decoding lenSTRING
HIGHapplication/parser/file/pdfium_parser.py203Parse a PDF, preferring its embedded text layer. Args: file: Path to the PDF. errors: DSTRING
HIGHapplication/parser/file/docling_parser.py124Run a lightweight fallback parser, normalizing its failures. Anything the fallback raises is converted to ``DocumenSTRING
HIGHapplication/parser/file/docling_parser.py523Retry a near-empty OCR parse once on a fresh full-page-OCR converter. Docling caches its pipeline (and the threSTRING
HIGHapplication/parser/file/docling_parser.py622Parse file using docling with hybrid OCR. Uses smart OCR approach where the layout model detects text vs bitmapSTRING
HIGHapplication/storage/base.py69Return a short-lived presigned download URL; not all backends support it. Args: path: Path to the fSTRING
HIGH…lication/storage/db/repositories/connector_sessions.py233Upsert by shallow-merging ``patch`` into ``session_data``. Writes ``server_url`` to the scalar column so downstSTRING
HIGHapplication/prompts/composer.py76Assemble a preset from its fragments. Args: preset_id: One of the keys in :data:`PRESET_VARIANTS`. RetSTRING
HIGHapplication/api/answer/services/prompt_renderer.py122 Render prompt with full context from all namespaces. Args: prompt_content: Raw prompt tempSTRING
HIGHapplication/api/answer/services/compression/service.py55 Compress conversation history up to specified index. Args: conversation: Full conversationSTRING
HIGHapplication/api/answer/services/compression/service.py175 Compress conversation and save to database. Args: conversation_id: Conversation ID STRING
HIGH…tion/api/answer/services/compression/prompt_builder.py24 Load prompt template from file. Args: version: Version string (e.g., 'v1.0') RetuSTRING
HIGHapplication/api/user/base.py281Build an ASCII storage filename without discarding a Unicode file's suffix. Args: filename: Original multipSTRING
HIGHapplication/api/user/agents/routes.py384Validate an inbound ``config`` payload, returning the normalized dict. Strict on write: an unknown check, an actionSTRING
HIGHapplication/templates/template_engine.py36 Render template with provided context. Args: template_content: Raw template string with JiSTRING
HIGHapplication/services/search_service.py223Resolve an agent by API key and search its sources. Args: api_key: Agent API key (the opaque string stored STRING
HIGHapplication/vectorstore/faiss.py43Build a safe local path for a FAISS index. Args: path: Source identifier provided by the caller. ReturSTRING
Modern Structural Boilerplate160 hits · 159 pts
SeverityFileLineSnippetContext
LOWtests/integration/__init__.py47__all__ = [CODE
LOWtests/parser/file/test_docling_parser.py1035def _set_threshold(monkeypatch, value: int) -> None:CODE
LOWtests/worker/test_worker_sse_publishes.py727 def _setup_client(self) -> None:CODE
LOWapplication/cache.py13logger = logging.getLogger(__name__)CODE
LOWapplication/utils.py20logger = logging.getLogger(__name__)CODE
LOWapplication/usage.py9logger = logging.getLogger(__name__)CODE
LOWapplication/mcp_server.py29logger = logging.getLogger(__name__)CODE
LOWapplication/llm/llm_creator.py5logger = logging.getLogger(__name__)CODE
LOWapplication/llm/anthropic.py12logger = logging.getLogger(__name__)CODE
LOWapplication/llm/anthropic.py423 def _set_finish_reason(self, stop_reason: Optional[str]) -> None:CODE
LOWapplication/llm/base.py13logger = logging.getLogger(__name__)CODE
LOWapplication/llm/providers/openai_compatible.py29logger = logging.getLogger(__name__)CODE
LOWapplication/llm/providers/__init__.py45__all__ = ["ALL_PROVIDERS", "PROVIDERS_BY_NAME", "Provider"]CODE
LOWapplication/llm/handlers/base.py10logger = logging.getLogger(__name__)CODE
LOWapplication/core/model_settings.py6logger = logging.getLogger(__name__)CODE
LOWapplication/core/model_registry.py37logger = logging.getLogger(__name__)CODE
LOWapplication/core/model_yaml.py29logger = logging.getLogger(__name__)CODE
LOWapplication/guardrails/config.py17logger = logging.getLogger(__name__)CODE
LOWapplication/guardrails/__init__.py17__all__ = [CODE
LOWapplication/guardrails/runtime.py18logger = logging.getLogger(__name__)CODE
LOWapplication/guardrails/engine.py23logger = logging.getLogger(__name__)CODE
LOWapplication/guardrails/checks/__init__.py26__all__ = ["BUILTIN_CHECKS"]CODE
LOWapplication/security/encryption.py13logger = logging.getLogger(__name__)CODE
LOWapplication/graphrag/extraction.py33logger = logging.getLogger(__name__)CODE
LOWapplication/agents/classic_agent.py9logger = logging.getLogger(__name__)CODE
LOWapplication/agents/agent_creator.py8logger = logging.getLogger(__name__)CODE
LOWapplication/agents/agentic_agent.py9logger = logging.getLogger(__name__)CODE
LOWapplication/agents/default_tools.py13logger = logging.getLogger(__name__)CODE
LOWapplication/agents/research_agent.py17logger = logging.getLogger(__name__)CODE
LOWapplication/agents/headless_runner.py22logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tool_executor.py29logger = logging.getLogger(__name__)CODE
LOWapplication/agents/base.py32logger = logging.getLogger(__name__)CODE
LOWapplication/agents/workflow_agent.py28logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/api_body_serializer.py8logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/code_executor.py36logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/code_executor.py40__all__ = ["CodeExecutorTool", "_infer_mime", "_kind_for_mime", "_tail", "_OUTPUT_TAIL_BYTES"]CODE
LOWapplication/agents/tools/tool_action_parser.py5logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/brave.py7logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/memory.py11logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/api_tool.py16logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/telegram.py7logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/remote_device.py28logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/postgres.py7logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/artifact_generator.py32logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/mcp_tool.py30logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/mcp_tool.py918 async def set_tokens(self, tokens: OAuthToken) -> None:CODE
LOWapplication/agents/tools/mcp_tool.py962 async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:CODE
LOWapplication/agents/tools/scheduler.py24logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/spec_parser.py15logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/attachment_bridge.py22logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/internal_search.py10logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/wiki.py14logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/duckduckgo.py7logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tools/read_document.py37logger = logging.getLogger(__name__)CODE
LOWapplication/agents/workflows/workflow_engine.py37logger = logging.getLogger(__name__)CODE
LOWapplication/updates/version_check.py41logger = logging.getLogger(__name__)CODE
LOWapplication/parser/chunking.py8logger = logging.getLogger(__name__)CODE
LOWapplication/parser/chunking_strategies.py21logger = logging.getLogger(__name__)CODE
LOWapplication/parser/chunking_strategies.py322__all__ = [CODE
LOWapplication/parser/document_reader.py25logger = logging.getLogger(__name__)CODE
100 more matches not shown…
Cross-Language Confusion25 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtests/test_template_engine.py62 "{{ content }}", {"content": "<code>a < b && c == 'd'</code>"}CODE
HIGHtests/test_template_engine.py64 assert result == "<code>a < b && c == 'd'</code>"CODE
HIGH…sts/agents/test_workflow_engine_structured_recovery.py18 ok, val = _engine()._parse_structured_output('```json\n{"a": 1, "b": null}\n```')CODE
HIGHtests/agents/test_cel_evaluator.py103 assert evaluate_cel("a && b", {"a": True, "b": True}) is TrueCODE
HIGHtests/agents/test_cel_evaluator.py104 assert evaluate_cel("a && b", {"a": True, "b": False}) is FalseCODE
HIGHtests/agents/test_cel_evaluator.py105 assert evaluate_cel("a || b", {"a": False, "b": True}) is TrueCODE
HIGHtests/agents/test_workflow_code_node.py506 assert evaluate_cel('report.size > 0 && report.mime_type == "application/pdf"', state) is TrueCODE
HIGHtests/parser/file/test_tabular_parser.py209 assert result == "COLUMNS: A | B || x | y"CODE
HIGHtests/api/test_workflow_portability.py434 # Explicit null, with no prior workflow to fall back on.COMMENT
HIGHtests/devices/test_splitter.py11 assert split_command("ls && rm -rf /") == ["ls", "rm -rf /"]CODE
HIGHtests/devices/test_splitter.py15 assert split_command("foo || bar") == ["foo", "bar"]CODE
HIGHtests/devices/test_splitter.py71 assert head_tokens("ls && rm -rf / | grep foo") == ["ls", "rm", "grep"]CODE
HIGHtests/devices/test_splitter.py75 assert head_tokens("timeout 5 ls && nohup git push") == ["ls", "git"]CODE
HIGHtests/devices/test_normalizer.py37 assert normalize_command("ls -la && rm -rf /tmp") == "ls * && rm *"CODE
HIGHtests/devices/test_normalizer.py42 assert normalize_command("ls /tmp && whoami") == "ls * && whoami"CODE
HIGHtests/devices/test_normalizer.py44 normalize_command("ls /tmp && rm /tmp/x")CODE
HIGHtests/devices/test_normalizer.py45 != normalize_command("ls /tmp && whoami")CODE
HIGHtests/devices/test_denylist.py208 assert check_denylist("echo safe && rm -rf /") == "rm -rf /"CODE
HIGHscripts/db/backfill.py233 SET agent_preferences = users.agent_preferences || EXCLUDED.agent_preferences,STRING
HIGH…lication/storage/db/repositories/connector_sessions.py281 (connector_sessions.session_data || EXCLUDED.session_data)STRING
HIGHapplication/alembic/versions/0019_agent_slug.py4``(user_id, slug)`` where slug is not null, so an exported agent can beSTRING
HIGHapplication/devices/normalizer.py12 ``ls /tmp && whoami`` -> ``ls * && whoami``STRING
HIGHapplication/devices/normalizer.py71 normalized segment sequence (approving ``ls /tmp && whoami`` won'tSTRING
HIGHapplication/devices/normalizer.py72 auto-approve ``ls /tmp && rm /tmp/x``). Empty segments are skipped;STRING
HIGHapplication/devices/denylist.py146 ``echo safe && rm -rf /`` still trips. Returns ``None`` if no segmentSTRING
Self-Referential Comments41 hits · 142 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_agent_token_tracking.py163 # Create a concrete handler for testingCOMMENT
MEDIUMtests/test_zip_extraction_security.py175 # Create a small valid zipCOMMENT
MEDIUMtests/test_zip_extraction_security.py189 # Create a zip with many files (just over limit)COMMENT
MEDIUMtests/test_zip_extraction_security.py205 # Create a zip with path traversalCOMMENT
MEDIUMtests/test_zip_extraction_security.py383 # Create a file with highly compressible content (all zeros)COMMENT
MEDIUMtests/test_zip_extraction_security.py386 # Create a large file with repetitive content - compresses extremely wellCOMMENT
MEDIUMtests/test_zip_extraction_security.py402 # Create a zip with random-ish content that doesn't compress wellCOMMENT
MEDIUMtests/test_zip_extraction_security.py223 # Create a corrupted "zip" fileCOMMENT
MEDIUMtests/test_zip_extraction_security.py242 # Create a valid zipCOMMENT
MEDIUMtests/test_zip_extraction_security.py295 # Create a chain of nested zipsCOMMENT
MEDIUMtests/test_zip_extraction_security.py324 # Create a malicious zipCOMMENT
MEDIUMtests/test_zip_extraction_security.py362 # Create a corrupted fileCOMMENT
MEDIUMtests/test_zip_extraction_security.py424 # Create a zip with a reasonable size (no compression to avoid ratio issues)COMMENT
MEDIUMtests/test_compression_service.py931 # Create a long conversation with important info buried in the middleCOMMENT
MEDIUMtests/test_integration.py268 # Create a simple text file for uploadCOMMENT
MEDIUMtests/test_integration.py299 # Create a file-like objectSTRING
MEDIUMtests/test_coverage_gaps.py2175 # Create the BulkIndexError mockCOMMENT
MEDIUMtests/test_remaining_coverage.py882 # Create an object where accessing certain attrs raises AttributeErrorCOMMENT
MEDIUMtests/llm/test_openai.py1410 # Create a schema with a problematic object that raises during iterationCOMMENT
MEDIUMtests/integration/test_misc.py186 # Create a small test file contentCOMMENT
MEDIUMtests/integration/test_misc.py224 # Create a larger test file (1KB)COMMENT
MEDIUMtests/integration/test_prompts.py359 # Create a prompt specifically for deletionCOMMENT
MEDIUMtests/integration/test_conversations.py281 # Create a conversation specifically for deletionCOMMENT
MEDIUMtests/integration/test_tools.py441 # Create a tool specifically for deletion - must use available tool nameCOMMENT
MEDIUMtests/integration/test_agents.py316 # Create an agent firstCOMMENT
MEDIUMtests/integration/test_agents.py521 # Create a fresh agent for deletionCOMMENT
MEDIUMtests/integration/test_agents.py74 # Create a minimal test sourceCOMMENT
MEDIUMtests/agents/test_tool_executor.py1355 # Create a fake call object matching what ToolActionParser expectsCOMMENT
MEDIUMtests/agents/test_workflow_engine_coverage.py120 # Create a cycle: start -> state -> state (loop)COMMENT
MEDIUM…sts/storage/db/repositories/test_pending_tool_state.py90 # Create a state with TTL of 0 seconds (already expired)COMMENT
MEDIUMtests/storage/db/repositories/test_users.py247 # Create an agent with a known legacy_mongo_idCOMMENT
MEDIUMtests/storage/db/repositories/test_users.py251 # Create a user whose pinned list has the ObjectId, an already-UUID,COMMENT
MEDIUMtests/stt/test_faster_whisper.py217 # Create a segment that uses getattr fallbacksCOMMENT
MEDIUMscripts/e2e/env.sh5# This file is intentionally passive: it exports variables and nothing else.COMMENT
MEDIUMapplication/worker.py2160 # Create a clean config for storageCOMMENT
MEDIUMapplication/worker.py311# Define a function to extract metadata from a given filename.COMMENT
MEDIUMapplication/worker.py372# Define a function to generate a random string of a given length.COMMENT
MEDIUMapplication/worker.py563# Define the main function for ingesting and processing documents.COMMENT
MEDIUMapplication/seed/config/agents_template.yaml2# This file contains template agents that will be seeded into the databaseCOMMENT
MEDIUMapplication/parser/file/docs_parser.py37 # Create a PDF objectCOMMENT
MEDIUMapplication/parser/remote/crawler_markdown.py63 # Create a Document for each visited pageCOMMENT
Modern AI Meta-Vocabulary41 hits · 140 pts
SeverityFileLineSnippetContext
MEDIUMtests/core/test_models_config_dir.py122 # Override anthropic claude-haiku-4-5 to claim a 1M context windowSTRING
MEDIUMtests/integration/test_chat.py1212 # Workflow with agentic node testsCOMMENT
MEDIUMtests/agents/test_workflow_agent_types.py180# Workflow engine: agentic agent node executionCOMMENT
MEDIUMtests/agents/test_research_agent.py791# _gen_inner (full orchestration tests)COMMENT
MEDIUM…sts/api/answer/services/test_stream_processor_utils.py643 # agentic ones instruct the model to call the search tool.COMMENT
MEDIUM…sts/api/answer/services/test_stream_processor_utils.py651 # prompt — the agentic swap must still apply.COMMENT
MEDIUM…sts/api/answer/services/test_stream_processor_utils.py668 # agentic ones instruct the model to call the search tool.COMMENT
MEDIUM…s/api/answer/services/compression/test_orchestrator.py166 # the user's declared context window in the threshold check.COMMENT
MEDIUMtests/api/user/agents/test_guardrails_routes.py136# GET /api/guardrails/catalogCOMMENT
MEDIUMtests/api/user/agents/test_guardrails_routes.py210# GET /api/guardrails/eventsCOMMENT
MEDIUMtests/api/user/agents/test_guardrails_routes.py273# GET /api/guardrails/summaryCOMMENT
MEDIUMtests/e2e/specs/tier-b/guardrails.spec.ts511 // agent (minus its guardrails) is the worst outcome: the operatorCOMMENT
MEDIUMtests/e2e/specs/tier-b/guardrails.spec.ts751 // /api/guardrails/catalog has resolved.COMMENT
MEDIUMtests/e2e/specs/tier-b/guardrails-runtime.spec.ts9 * // inside `StreamingOutputGuard` (application/guardrails/stream.py). Once aCOMMENT
MEDIUMtests/e2e/specs/tier-b/guardrails-runtime.spec.ts38 * // blocked prompts through `/api/guardrails/events`.COMMENT
MEDIUMtests/e2e/specs/tier-b/guardrails-runtime.spec.ts777 // (application/guardrails/config.py:129-136) — that downgrade is theCOMMENT
MEDIUMscripts/e2e/mock_llm.py519 # tool_calls are present, matching what RAG code paths expect.COMMENT
MEDIUMapplication/llm/openai.py243 # the model's chain-of-thought survives the in-turn tool round-trip.COMMENT
MEDIUMapplication/agents/research_agent.py163 # Main orchestrationCOMMENT
MEDIUMapplication/agents/headless_runner.py191 # agent, so it carries the same guardrails an interactive turn would.COMMENT
MEDIUMapplication/agents/tool_executor.py1000 # Journal it like the branches below, so a hallucination stormCOMMENT
MEDIUMapplication/agents/tools/internal_search.py57 # Dispatch per-source so on-demand agentic search honours the sameCOMMENT
MEDIUMapplication/agents/tools/read_document.py350 # application/guardrails/engine.py. ``shutdown(cancel_futures=True)``COMMENT
MEDIUMapplication/agents/workflows/workflow_engine.py380 # No ``agent_config`` here, deliberately: per-agent guardrails are notCOMMENT
MEDIUMapplication/storage/db/models.py345 # Per-agent behavior contract (AgentConfig — guardrails today). EmptyCOMMENT
MEDIUMapplication/storage/db/models.py346 # ``{}`` parses to guardrails-disabled.COMMENT
MEDIUMapplication/storage/db/repositories/token_usage.py130 # title generation, history compression, RAG question condensing,COMMENT
MEDIUMapplication/api/answer/routes/base.py884 # blobs, never plaintext chain-of-thought.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1752 # tools_dict (classic/agentic/research), and only when a writable wikiCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1760 # D11: agentic/research always carry a retriever_config; classic carriesCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1766 # to it; otherwise (agentic/research only) the tool exposes everyCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py319 # actual context window instead of the default 128k.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py841 # Per-agent behavior contract (guardrails). The floor isCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py944 # the upstream context window for any small (e.g. 8k/32k) BYOM.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1362 # agentic swap below still applies.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1364 # Agentic/research agents use the agentic preset variants (searchCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1567 # A resumed turn is still the same turn: rebuild it with the guardrailsCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1623 # _get_prompt_content handles the agentic preset swap and caching;COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1670 # Create LLM and handler (dependency injection)COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1789 # Per-source list so on-demand agentic search dispatches eachCOMMENT
MEDIUM…n/api/answer/services/compression/threshold_checker.py53 # Get context window limit for modelCOMMENT
Cross-File Repetition27 hits · 135 pts
SeverityFileLineSnippetContext
HIGHtests/test_todo_tool.py0a ``default_{user_id}`` tool_id must no-op with a polite error.STRING
HIGHtests/test_memory_tool.py0a ``default_{user_id}`` tool_id must no-op with a polite error.STRING
HIGHtests/test_notes_tool.py0a ``default_{user_id}`` tool_id must no-op with a polite error.STRING
HIGHtests/graphrag/test_extraction.py0never leak a pool into another test; the ephemeral dsn dies with its db.STRING
HIGHtests/graphrag/test_store.py0never leak a pool into another test; the ephemeral dsn dies with its db.STRING
HIGHtests/graphrag/test_retriever_live.py0never leak a pool into another test; the ephemeral dsn dies with its db.STRING
HIGH…torage/db/repositories/test_reconciliation_liveness.py0update tool_call_attempts set attempted_at = clock_timestamp() - make_interval(mins => :age), updated_at = clock_timestaSTRING
HIGHtests/storage/db/repositories/test_reconciliation.py0update tool_call_attempts set attempted_at = clock_timestamp() - make_interval(mins => :age), updated_at = clock_timestaSTRING
HIGHtests/api/user/test_reconciliation.py0update tool_call_attempts set attempted_at = clock_timestamp() - make_interval(mins => :age), updated_at = clock_timestaSTRING
HIGHtests/storage/db/repositories/test_todos.py0insert a user_tools row and return its uuid as a string.STRING
HIGHtests/storage/db/repositories/test_memories.py0insert a user_tools row and return its uuid as a string.STRING
HIGHtests/storage/db/repositories/test_notes.py0insert a user_tools row and return its uuid as a string.STRING
HIGHtests/vectorstore/test_milvus.py0deterministic 3-dim embeddings: distinct texts get distinct directions.STRING
HIGHtests/vectorstore/test_qdrant.py0deterministic 3-dim embeddings: distinct texts get distinct directions.STRING
HIGHtests/vectorstore/test_faiss.py0deterministic 3-dim embeddings: distinct texts get distinct directions.STRING
HIGHapplication/llm/handlers/google.py0create a tool result message in the standard internal format.STRING
HIGHapplication/llm/handlers/openai.py0create a tool result message in the standard internal format.STRING
HIGHapplication/llm/handlers/anthropic.py0create a tool result message in the standard internal format.STRING
HIGHapplication/agents/tools/memory.py0initialize the tool. args: tool_config: optional tool configuration. should include: - tool_id: unique identifier for thSTRING
HIGHapplication/agents/tools/todo_list.py0initialize the tool. args: tool_config: optional tool configuration. should include: - tool_id: unique identifier for thSTRING
HIGHapplication/agents/tools/notes.py0initialize the tool. args: tool_config: optional tool configuration. should include: - tool_id: unique identifier for thSTRING
HIGHapplication/agents/tools/memory.py0return json metadata describing supported actions for tool schemas.STRING
HIGHapplication/agents/tools/todo_list.py0return json metadata describing supported actions for tool schemas.STRING
HIGHapplication/agents/tools/notes.py0return json metadata describing supported actions for tool schemas.STRING
HIGHapplication/storage/db/repositories/todos.py0resolve a prompt by pg uuid or legacy mongo objectid. picks the lookup path from the id shape so non-uuid input never reSTRING
HIGHapplication/storage/db/repositories/notes.py0resolve a prompt by pg uuid or legacy mongo objectid. picks the lookup path from the id shape so non-uuid input never reSTRING
HIGHapplication/storage/db/repositories/prompts.py0resolve a prompt by pg uuid or legacy mongo objectid. picks the lookup path from the id shape so non-uuid input never reSTRING
Dead Code58 hits · 111 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_logging.py339CODE
MEDIUMtests/test_extra_coverage.py205CODE
MEDIUMtests/test_extra_coverage.py269CODE
MEDIUMtests/test_version_check.py64CODE
MEDIUMtests/test_event_replay.py141CODE
MEDIUMtests/seed/test_seeder.py181CODE
MEDIUMtests/llm/test_base.py580CODE
MEDIUMtests/llm/test_base.py601CODE
MEDIUMtests/agents/test_workflow_agent_graph.py178CODE
MEDIUMtests/agents/test_workflow_agent_graph.py259CODE
MEDIUMtests/agents/test_research_agent.py1309CODE
MEDIUMtests/agents/test_workflow_engine_coverage.py1079CODE
MEDIUMtests/parser/file/test_embedding_pipeline.py270CODE
MEDIUMtests/scripts/test_grant_admin.py96CODE
MEDIUMtests/api/test_events_routes.py293CODE
MEDIUMtests/api/v1/test_v1_idempotency.py392CODE
MEDIUMtests/api/v1/test_routes_extended.py248CODE
MEDIUMtests/api/v1/test_routes_extended.py292CODE
MEDIUMtests/api/answer/services/test_conversation_service.py84CODE
MEDIUMtests/api/answer/services/test_conversation_service.py802CODE
MEDIUMtests/api/answer/services/test_conversation_service.py854CODE
MEDIUMtests/api/answer/services/test_conversation_service.py906CODE
MEDIUMtests/api/user/test_sharing.py228CODE
MEDIUMtests/api/user/test_sharing.py337CODE
MEDIUMtests/api/user/test_prompts.py209CODE
MEDIUMtests/api/user/test_prompts.py261CODE
MEDIUMtests/api/user/test_prompts.py399CODE
MEDIUMtests/api/user/test_prompts.py556CODE
MEDIUMtests/api/user/test_analytics.py203CODE
MEDIUMtests/api/user/test_analytics.py262CODE
MEDIUMtests/api/user/test_analytics.py329CODE
MEDIUMtests/api/user/test_analytics.py471CODE
MEDIUMtests/api/user/test_analytics.py1156CODE
MEDIUMtests/api/user/test_tools_routes.py1154CODE
MEDIUMtests/api/user/test_tools_routes.py1196CODE
MEDIUMtests/api/user/test_conversations.py203CODE
MEDIUMtests/api/user/test_conversations.py248CODE
MEDIUMtests/api/user/test_conversations.py292CODE
MEDIUMtests/api/user/test_conversations.py409CODE
MEDIUMtests/api/user/test_conversations.py632CODE
MEDIUMtests/api/user/test_conversations.py753CODE
MEDIUMtests/api/user/workflows/test_routes_coverage.py354CODE
MEDIUMtests/api/user/workflows/test_routes_coverage.py421CODE
MEDIUMtests/api/user/workflows/test_routes_coverage.py536CODE
MEDIUMtests/api/user/workflows/test_routes_coverage.py596CODE
MEDIUMtests/api/user/agents/test_sharing.py106CODE
MEDIUMtests/api/user/agents/test_sharing.py170CODE
MEDIUMtests/api/user/agents/test_sharing.py278CODE
MEDIUMtests/api/user/agents/test_routes_happy.py137CODE
MEDIUMtests/api/user/agents/test_routes_happy.py945CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1202CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1378CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1428CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1609CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1654CODE
MEDIUMtests/api/user/sources/test_chunks.py78CODE
MEDIUMtests/api/user/sources/test_routes.py105CODE
MEDIUMtests/worker/test_ingest_checkpoint.py514CODE
Hallucination Indicators7 hits · 105 pts
SeverityFileLineSnippetContext
CRITICALtests/sandbox/test_daytona.py863 assert created.fs.create_folder.call_args.kwargs.get("request_timeout") == 60.0CODE
CRITICALtests/sandbox/test_daytona.py890 assert created.fs.create_folder.call_args.kwargs.get("request_timeout") == 60.0CODE
CRITICALtests/sandbox/test_daytona.py897 assert created.fs.get_file_info.call_args.kwargs.get("request_timeout") == 60.0CODE
CRITICALtests/sandbox/test_daytona.py904 assert created.fs.list_files.call_args.kwargs.get("request_timeout") == 60.0CODE
CRITICALtests/sandbox/test_daytona.py911 assert created.fs.delete_file.call_args.kwargs.get("request_timeout") == 60.0CODE
CRITICALtests/sandbox/test_daytona.py918 assert sandbox._client.get.call_args.kwargs.get("request_timeout") == 60.0CODE
CRITICALtests/sandbox/test_daytona.py928 assert box._client.list.call_args.kwargs.get("request_timeout") == 60.0CODE
Over-Commented Block79 hits · 70 pts
SeverityFileLineSnippetContext
LOWfrontend/src/vite-env.d.ts1/// <reference types="vite/client" />COMMENT
LOWfrontend/src/settings/types/index.ts81 status: boolean;COMMENT
LOWfrontend/src/hooks/useTokenAuth.ts21COMMENT
LOWfrontend/src/events/eventStreamClient.ts121 notifyHealth('connecting');COMMENT
LOWfrontend/src/events/useEventStream.ts41 // inside ``connectEventStream``.COMMENT
LOWfrontend/src/conversation/MarkdownAnswer.tsx21 type SandboxArtifact,COMMENT
LOWtests/agents/test_workflow_agent_pg_write.py81 # ------------------------------------------------------------------COMMENT
LOWtests/parser/connectors/confluence/test_auth.py301 + datetime.timedelta(seconds=30)COMMENT
LOWtests/sandbox/test_daytona.py781#COMMENT
LOWtests/api/answer/test_base_routes.py901 # same ``pg_conn`` so the journal write can see the message rowCOMMENT
LOWtests/e2e/specs/auth/session_jwt.spec.ts61 ).toBeVisible();COMMENT
LOWtests/e2e/specs/tier-a/attachments.spec.ts421 );COMMENT
LOWtests/e2e/specs/tier-a/agents.spec.ts321 // cannot reliably assert non-empty `sources[]` in the responseCOMMENT
LOWtests/e2e/specs/tier-b/streaming-ux.spec.ts181 // released by `revert_stale_resuming`'s 600 s grace, which locked the userCOMMENT
LOWdeployment/k8s/docsgpt-secrets.yaml1apiVersion: v1COMMENT
LOW…oyment/k8s/network-policies/sandbox-egress-policy.yaml1# Egress / SSRF NetworkPolicy for the docsgpt-sandbox runner.COMMENT
LOW…oyment/k8s/network-policies/sandbox-egress-policy.yaml41 # DNS to cluster resolvers (kube-dns). Restricted to UDP/TCP 53 so theCOMMENT
LOWdeployment/k8s/deployments/sandbox-deploy.yaml1# docsgpt-sandbox runner (Jupyter Kernel Gateway). OPT-IN: this manifest and itsCOMMENT
LOWdeployment/k8s/deployments/sandbox-deploy.yaml21# sibling kernels or bypass the session cap). The gateway fails closed if theCOMMENT
LOW…ployment/optional/docker-compose.optional.sandbox.yaml1# Optional code-execution sandbox overlay.COMMENT
LOW…ployment/optional/docker-compose.optional.sandbox.yaml21# container/uid and are isolated by working directory only -- sibling workspacesCOMMENT
LOW…t/optional/docker-compose.optional.sandbox-egress.yaml1# Optional egress-firewall overlay for the docsgpt-sandbox runner (compose).COMMENT
LOW…t/optional/docker-compose.optional.sandbox-egress.yaml21# `networks: [sandbox-net]` override silently leaves the runner on its old net.COMMENT
LOW…t/optional/docker-compose.optional.sandbox-egress.yaml41# deny-private proxy); (1) is the host-firewall DROP that closes theCOMMENT
LOW…t/optional/docker-compose.optional.sandbox-egress.yaml61# (These container-to-container DROPs require the host'sCOMMENT
LOW…t/optional/docker-compose.optional.sandbox-egress.yaml81# -f deployment/optional/docker-compose.optional.sandbox-egress.yaml up -dCOMMENT
LOWdeployment/sandbox/kernel-launch.sh1#!/bin/shCOMMENT
LOWdeployment/sandbox/gateway-launch.sh1#!/bin/shCOMMENT
LOWscripts/qa/durability_e2e.py1421 redis.Redis(host="127.0.0.1", port=6379, db=backend_db).flushdb()COMMENT
LOWscripts/e2e/mock_llm.py81# arguments. Some OpenAI-compatible gateways restate a shortCOMMENT
LOWscripts/e2e/env.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/e2e/down.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/e2e/up.sh1#!/usr/bin/env bashCOMMENT
LOWapplication/cache.py21COMMENT
LOWapplication/seed/config/agents_template.yaml21 loader: "url" # Type of loader (url, pdf, txt, etc.)COMMENT
LOWapplication/llm/openai.py241 # Per-instance state for the Responses API path. ``_reasoning_for_calls``COMMENT
LOWapplication/llm/base.py561 # The primary already delivered a finish signal — onlyCOMMENT
LOWapplication/llm/handlers/base.py1181 logger.error(f"Error executing tool: {str(e)}", exc_info=True)COMMENT
LOWapplication/llm/handlers/base.py1361 # emit content as bare strings (yielded straight through) andCOMMENT
LOWapplication/llm/handlers/base.py1381 except Exception:COMMENT
LOWapplication/core/settings.py61 CELERY_RESULT_BACKEND: str = "redis://localhost:6379/1"COMMENT
LOWapplication/core/settings.py121 # loudly instead of indexing an empty document. 0 disables the guard.COMMENT
LOWapplication/core/settings.py301COMMENT
LOWapplication/core/settings.py341 # Registry-key allowlist; values must match GuardrailCreator.checks keys.COMMENT
LOWapplication/core/settings.py361 # Master switch — when False, /api/events emits a "push_disabled" commentCOMMENT
LOWapplication/core/settings.py381 # ``Last-Event-ID=<oldest>`` reconnects can only enumerate thisCOMMENT
LOWapplication/core/settings.py421 SCHEDULE_RUN_OUTPUT_RETENTION_DAYS: int = 90COMMENT
LOWapplication/core/settings.py461 WORKFLOW_NODE_NATIVE_MAX_FILES: int = 5COMMENT
LOWapplication/guardrails/base.py61COMMENT
LOWapplication/agents/default_tools.py21_FK_BOUND_TOOLS = frozenset({"notes", "todo_list"})COMMENT
LOWapplication/agents/tool_executor.py561 # list index in ``_get_user_tools``) and once as the synthesized defaultCOMMENT
LOWapplication/agents/tool_executor.py961 # A tool the model invented will never resolve, so re-running it justCOMMENT
LOWapplication/agents/tools/tool_action_parser.py61 return _MALFORMED_ARGUMENTSCOMMENT
LOWapplication/agents/workflows/workflow_engine.py421COMMENT
LOWapplication/agents/workflows/workflow_engine.py821 else:COMMENT
LOWapplication/parser/embedding_pipeline.py361COMMENT
LOWapplication/streaming/event_replay.py41DEFAULT_WATCHDOG_INTERVAL_SECONDS = 5.0COMMENT
LOWapplication/api/v1/routes.py181 model_name = _get_model_name(agent_doc, api_key)COMMENT
LOWapplication/api/v1/routes.py301 # A missing/expired durable continuation has no reserved WALCOMMENT
LOWapplication/api/answer/routes/base.py261 """COMMENT
19 more matches not shown…
Redundant / Tautological Comments23 hits · 34 pts
SeverityFileLineSnippetContext
LOWsetup.sh80 # Check if Docker is runningCOMMENT
LOWsetup.sh546 if [[ "$CONTAINER_STATUS" == *"ollama"* ]]; then # Check if 'ollama' service is in running servicesCODE
LOWsetup.sh745# Check if .env file exists and is not emptyCOMMENT
LOWtests/test_integration.py719 # Check if it's the detailed validation error or generic errorCOMMENT
LOWtests/test_integration.py919 # Check if conversation was compressed by examining metadataCOMMENT
LOWtests/test_integration.py1050 # Check if the critical info was preservedCOMMENT
LOWextensions/react-widget/publish.sh11# Check if a specific version was providedCOMMENT
LOWapplication/llm/google_ai.py607 # Check if we have both tools and file attachmentsCOMMENT
LOWapplication/llm/openai.py103 # Check if it looks like a data URL with base64COMMENT
LOWapplication/llm/openai.py1803 # Check if this is a pre-converted image (from PDF-to-image conversion)COMMENT
LOWapplication/llm/handlers/base.py240 # Check if provider supports images but not PDF (synthetic PDF support)COMMENT
LOWapplication/llm/handlers/base.py664 # Check if compression actually reduced tokensCOMMENT
LOWapplication/llm/handlers/base.py1596 # Check if context limit was reached during tool execution.COMMENT
LOWapplication/core/url_validation.py135 # Check if hostname is an IP address directlyCOMMENT
LOWapplication/agents/tools/memory.py283 # Check if viewing directory (ends with / or is root)COMMENT
LOWapplication/agents/tools/memory.py381 # Check if old_str exists (case-insensitive)COMMENT
LOWapplication/agents/tools/memory.py443 # Check if it's a directory (ends with /)COMMENT
LOWapplication/agents/tools/internal_search.py213 # Check if it's a file metadata dict or a folderCOMMENT
LOWapplication/parser/file/pptx_parser.py63 # Check if the shape has a 'text' attribute and append that to the slide_textSTRING
LOWapplication/parser/remote/sitemap_loader.py18 # Check if the input is a list and if it is, use the first elementCOMMENT
LOWapplication/parser/remote/github_loader.py313 # Check if it's a rate limit issueCOMMENT
LOWapplication/api/answer/services/stream_processor.py286 # Check if compression is enabled and neededCOMMENT
LOWapplication/api/answer/services/compression/service.py80 # Check if there are existing compressions. ``compression_metadata``COMMENT
Fake / Example Data26 hits · 29 pts
SeverityFileLineSnippetContext
LOWfrontend/src/locale/zh.json1084 "placeholder": "输入更新的查询..."CODE
LOWfrontend/src/locale/de.json1084 "placeholder": "Aktualisierte Anfrage eingeben..."CODE
LOWfrontend/src/locale/ru.json1084 "placeholder": "Введите обновленный запрос..."CODE
LOWfrontend/src/locale/en.json1089 "placeholder": "Type the updated query..."CODE
LOWfrontend/src/locale/jp.json1084 "placeholder": "更新されたクエリを入力..."CODE
LOWfrontend/src/locale/zh-TW.json1084 "placeholder": "輸入更新的查詢..."CODE
LOWfrontend/src/locale/es.json1084 "placeholder": "Ingrese la consulta actualizada..."CODE
LOWtests/test_oidc.py215 assert claims["email"] == "user@example.com"CODE
LOWtests/test_oidc.py1123 "oidc-user-1", email="user@example.com"CODE
LOWtests/test_oidc.py1127 assert call.kwargs["metadata"] == {"email": "user@example.com", "groups": None}CODE
LOWtests/test_oidc.py1138 "oidc-user-1", "user@example.com"CODE
LOWtests/test_oidc.py1415 email="user@example.com", name="OIDC User", oidc_sid="sess-2"CODE
LOWtests/test_oidc.py1425 assert decoded["email"] == "user@example.com"CODE
LOWtests/test_oidc.py64 "email": "user@example.com",CODE
LOWtests/test_oidc.py756 assert decoded["email"] == "user@example.com"CODE
LOWtests/llm/test_fallback.py170 get_api_key=lambda prov: "fake-key",CODE
LOWtests/agents/test_tool_action_parser.py34 call.arguments = '{"to": "user@example.com"}'CODE
LOWtests/agents/test_tool_action_parser.py40 assert call_args == {"to": "user@example.com"}CODE
LOWtests/parser/connectors/test_share_point_auth.py243 "preferred_username": "user@example.com",CODE
LOWtests/parser/connectors/test_share_point_auth.py253 assert mapped["user_info"]["email"] == "user@example.com"CODE
LOWtests/storage/db/repositories/test_conversations.py522 placeholder_response="placeholder",CODE
LOWtests/storage/db/repositories/test_conversations.py529 assert msg["response"] == "placeholder"CODE
LOWtests/api/test_connector_routes_happy.py363 "user_email": "user@example.com",CODE
LOWscripts/e2e/env.sh79export API_KEY="e2e-fake-key"CODE
LOWscripts/e2e/env.sh80export OPENAI_API_KEY="e2e-fake-key"CODE
LOWscripts/e2e/env.sh83export EMBEDDINGS_KEY="e2e-fake-key"CODE
AI Structural Patterns30 hits · 28 pts
SeverityFileLineSnippetContext
LOWtests/core/test_model_utils.py23CODE
LOWapplication/worker.py1219CODE
LOWapplication/worker.py2062CODE
LOWapplication/guardrails/base.py14CODE
LOWapplication/agents/tool_executor.py278CODE
LOWapplication/agents/base.py42CODE
LOWapplication/agents/tools/brave.py33CODE
LOWapplication/agents/tools/mcp_tool.py678CODE
LOWapplication/agents/tools/internal_search.py464CODE
LOWapplication/parser/file/bulk.py183CODE
LOWapplication/retriever/dispatcher.py54CODE
LOWapplication/retriever/graph_rag.py50CODE
LOWapplication/retriever/classic_rag.py25CODE
LOWapplication/storage/db/repositories/stack_logs.py48CODE
LOWapplication/storage/db/repositories/attachments.py40CODE
LOWapplication/storage/db/repositories/sources.py130CODE
LOW…lication/storage/db/repositories/connector_sessions.py47CODE
LOWapplication/storage/db/repositories/token_usage.py26CODE
LOWapplication/storage/db/repositories/artifacts.py43CODE
LOWapplication/storage/db/repositories/artifacts.py546CODE
LOWapplication/storage/db/repositories/user_tools.py49CODE
LOWapplication/storage/db/repositories/schedules.py30CODE
LOWapplication/storage/db/repositories/device_audit_log.py66CODE
LOWapplication/sandbox/daytona.py57CODE
LOWapplication/api/answer/routes/base.py200CODE
LOWapplication/api/answer/services/conversation_service.py85CODE
LOWapplication/api/answer/services/conversation_service.py244CODE
LOWapplication/api/answer/services/conversation_service.py382CODE
LOWapplication/api/user/tasks.py415CODE
LOWapplication/vectorstore/pgvector.py33CODE
Verbosity Indicators15 hits · 27 pts
SeverityFileLineSnippetContext
LOWtests/test_integration.py981 # Step 2: Send CRITICAL informationCOMMENT
LOWtests/test_integration.py1006 # Step 3: Send more general questions to bury the critical infoCOMMENT
LOWtests/test_integration.py1035 # Step 4: Ask about the critical informationCOMMENT
LOWtests/test_integration.py950 # Step 1: Send general questionsCOMMENT
LOWtests/integration/test_v1_tool_calls.py328 # Step 1: trigger a tool callCOMMENT
LOWtests/integration/test_v1_tool_calls.py350 # Step 2: send continuation with tool result + top-level conversation_idCOMMENT
LOWtests/integration/test_v1_tool_calls.py423 # Step 1: trigger a tool callCOMMENT
LOWtests/integration/test_v1_tool_calls.py449 # Step 2: send continuation (standard format, top-level conversation_id)COMMENT
LOW.github/workflows/sync_fork.yaml18 # Step 1: run a standard checkout actionCOMMENT
LOW.github/workflows/sync_fork.yaml22 # Step 2: run the sync actionCOMMENT
LOWapplication/worker.py2167 # Step 2: Download files to temp directoryCOMMENT
LOWapplication/worker.py2142 # Step 1: Initialize the appropriate loaderCOMMENT
LOWapplication/worker.py2205 # Step 3: Use SimpleDirectoryReader to process downloaded filesCOMMENT
LOWapplication/worker.py2224 # Step 4: Process documents (chunking, embedding, etc.)COMMENT
LOWapplication/worker.py2275 # Step 6: Upload index filesCOMMENT
Structural Annotation Overuse15 hits · 27 pts
SeverityFileLineSnippetContext
LOWtests/test_integration.py981 # Step 2: Send CRITICAL informationCOMMENT
LOWtests/test_integration.py1006 # Step 3: Send more general questions to bury the critical infoCOMMENT
LOWtests/test_integration.py1035 # Step 4: Ask about the critical informationCOMMENT
LOWtests/test_integration.py950 # Step 1: Send general questionsCOMMENT
LOWtests/integration/test_v1_tool_calls.py328 # Step 1: trigger a tool callCOMMENT
LOWtests/integration/test_v1_tool_calls.py350 # Step 2: send continuation with tool result + top-level conversation_idCOMMENT
LOWtests/integration/test_v1_tool_calls.py423 # Step 1: trigger a tool callCOMMENT
LOWtests/integration/test_v1_tool_calls.py449 # Step 2: send continuation (standard format, top-level conversation_id)COMMENT
LOW.github/workflows/sync_fork.yaml18 # Step 1: run a standard checkout actionCOMMENT
LOW.github/workflows/sync_fork.yaml22 # Step 2: run the sync actionCOMMENT
LOWapplication/worker.py2167 # Step 2: Download files to temp directoryCOMMENT
LOWapplication/worker.py2142 # Step 1: Initialize the appropriate loaderCOMMENT
LOWapplication/worker.py2205 # Step 3: Use SimpleDirectoryReader to process downloaded filesCOMMENT
LOWapplication/worker.py2224 # Step 4: Process documents (chunking, embedding, etc.)COMMENT
LOWapplication/worker.py2275 # Step 6: Upload index filesCOMMENT
AI Slop Vocabulary7 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/package-lock.json11958 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
MEDIUMtests/test_compression_service.py1052 "response": """Python decorators are a powerful feature that allows you to modify or enhance functions and cCODE
LOWtests/agents/test_workflow_agent_graph.py213 # Should just return None since workflow not found in DBCOMMENT
MEDIUMtests/retriever/test_prescreen.py66 # A robust model judges relevance and drops the irrelevant chunk evenCOMMENT
MEDIUMtests/api/v1/test_reasoning_heartbeat_liveness.py120# Test harnessCOMMENT
MEDIUMtests/api/v1/test_v1_tool_pause_finalization.py143# Test harnessCOMMENT
MEDIUMdocs/package-lock.json7986 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs/content/Models/embeddings.md77EMBEDDINGS_KEY=YOUR_API_KEY # optional; sent as a Bearer tokenCODE
HIGHextensions/react-widget/README.md120 apiKey="your-api-key"CODE
HIGHextensions/react-widget/README.md148 apiKey: 'your-api-key-here',CODE
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMapplication/parser/file/docs_parser.py24 # alternatively you can use local vision capable LLMCOMMENT
MEDIUMapplication/parser/file/image_parser.py24 # alternatively you can use local vision capable LLMCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_compression_service.py805 def process_data(self, input_data: List[str]) -> Dict[str, Any]:CODE
LOWtests/test_compression_service.py1071 def my_function():CODE
LOWapplication/security/safe_url.py529 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE