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.2 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of arc53/DocsGPT, a Python project with 17,983 GitHub stars. SynthScan v2.0 examined 381,345 lines of code across 1311 source files, recording 10125 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 38.2 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.2
Adjusted Score
38.2
Raw Score
100%
Time Factor
2026-07-13
Last Push
18.0K
Stars
Python
Language
381.3K
Lines of Code
1.3K
Files
10.1K
Pattern Hits
2026-07-14
Scan Date
0.05
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 61MEDIUM 1917LOW 8147

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 10125 distinct pattern matches across 22 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.

Decorative Section Separators1753 hits · 6297 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.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py136# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py138# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_namespaces.py18# ── SystemNamespace ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py72# ── PassthroughNamespace ───────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py155# ── ToolsNamespace ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py340# ── NamespaceBuilder ABC ──────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py370# ── NamespaceManager ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py440# ── AttachmentsNamespace ────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py114# ── SourceNamespace ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py205# ── ArtifactsNamespace ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_namespaces.py489# ── 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
MEDIUMtests/test_extra_coverage.py65# ---------------------------------------------------------------------------COMMENT
1693 more matches not shown…
Hyper-Verbose Identifiers6297 hits · 5772 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.py36 def test_returns_same_instance(self):CODE
LOWtests/test_utils.py45 def test_returns_llm_name_when_set(self):CODE
LOWtests/test_utils.py52 def test_falls_back_to_provider_map(self):CODE
LOWtests/test_utils.py59 def test_unknown_provider_returns_empty(self):CODE
LOWtests/test_utils.py171 def test_check_required_fields_pass(self):CODE
LOWtests/test_utils.py179 def test_check_required_fields_fail(self):CODE
LOWtests/test_utils.py188 def test_get_field_validation_errors_none_when_valid(self):CODE
LOWtests/test_utils.py192 def test_get_field_validation_errors_missing(self):CODE
LOWtests/test_utils.py197 def test_get_field_validation_errors_empty(self):CODE
LOWtests/test_utils.py202 def test_validate_required_fields_pass(self):CODE
LOWtests/test_utils.py210 def test_validate_required_fields_missing(self):CODE
LOWtests/test_utils.py219 def test_validate_required_fields_empty(self):CODE
LOWtests/test_utils.py227 def test_validate_required_fields_both_missing_and_empty(self):CODE
LOWtests/test_utils.py528 def test_removes_horizontal_rules(self):CODE
6237 more matches not shown…
Excessive Try-Catch Wrapping941 hits · 920 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.py2656 except Exception as e:CODE
LOWtests/test_coverage_gaps.py2726 except Exception as e:CODE
LOWtests/graphrag/test_extraction.py65 except Exception as exc:CODE
LOWtests/graphrag/test_store.py76 except Exception as exc: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
LOWtests/integration/test_prompts.py270 except Exception as e:CODE
LOWtests/integration/test_analytics.py91 except Exception as e:CODE
LOWtests/integration/test_analytics.py154 except Exception as e:CODE
LOWtests/integration/test_analytics.py217 except Exception as e:CODE
881 more matches not shown…
Unused Imports367 hits · 346 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/security/test_safe_url.py9CODE
LOWtests/graphrag/test_extraction.py9CODE
LOWtests/graphrag/test_graphrag_available.py3CODE
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…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_workflow_input_documents.py9CODE
LOWtests/agents/test_default_tools.py3CODE
LOWtests/agents/test_scheduler_agent_builtin.py4CODE
LOWtests/agents/test_scheduler_agent_builtin.py15CODE
LOWtests/agents/test_workflow_node_attachments.py9CODE
LOWtests/agents/test_scheduler_utils.py3CODE
LOWtests/agents/test_tool_executor_headless.py3CODE
LOWtests/agents/tools/test_artifact_generator_unit.py8CODE
LOWtests/agents/tools/test_attachment_bridge.py10CODE
LOWtests/agents/tools/test_scheduler.py3CODE
LOWtests/agents/tools/test_scheduler.py16CODE
LOWtests/agents/tools/test_read_document_tool.py9CODE
LOWtests/agents/tools/test_memory.py12CODE
LOWtests/agents/tools/test_artifact_ref.py7CODE
307 more matches not shown…
Deep Nesting275 hits · 211 pts
SeverityFileLineSnippetContext
LOWmd-gen.py3CODE
LOWtests/test_zip_extraction_security.py170CODE
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.py2272CODE
LOWtests/test_remaining_coverage.py538CODE
LOWtests/llm/handlers/test_llm_handlers.py1848CODE
LOWtests/llm/handlers/test_llm_handlers.py1893CODE
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.py1732CODE
LOWtests/api/user/attachments/test_routes.py1772CODE
LOWtests/api/user/attachments/test_routes.py1840CODE
LOWtests/api/user/attachments/test_routes.py1945CODE
LOWtests/api/user/attachments/test_routes.py1979CODE
LOWtests/api/user/attachments/test_routes.py2046CODE
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
LOWscripts/db/backfill.py1175CODE
215 more matches not shown…
Self-Referential Comments42 hits · 145 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_agent_token_tracking.py163 # Create a concrete handler for testingCOMMENT
MEDIUMtests/test_zip_extraction_security.py56 # Create a small valid zipCOMMENT
MEDIUMtests/test_zip_extraction_security.py70 # Create a zip with many files (just over limit)COMMENT
MEDIUMtests/test_zip_extraction_security.py86 # Create a zip with path traversalCOMMENT
MEDIUMtests/test_zip_extraction_security.py246 # Create a file with highly compressible content (all zeros)COMMENT
MEDIUMtests/test_zip_extraction_security.py249 # Create a large file with repetitive content - compresses extremely wellCOMMENT
MEDIUMtests/test_zip_extraction_security.py265 # Create a zip with random-ish content that doesn't compress wellCOMMENT
MEDIUMtests/test_zip_extraction_security.py104 # Create a corrupted "zip" fileCOMMENT
MEDIUMtests/test_zip_extraction_security.py123 # Create a valid zipCOMMENT
MEDIUMtests/test_zip_extraction_security.py176 # Create a chain of nested zipsCOMMENT
MEDIUMtests/test_zip_extraction_security.py207 # Create a malicious zipCOMMENT
MEDIUMtests/test_zip_extraction_security.py226 # Create a corrupted fileCOMMENT
MEDIUMtests/test_zip_extraction_security.py287 # Create a zip with a reasonable size (no compression to avoid ratio issues)COMMENT
MEDIUMtests/test_compression_service.py920 # 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.py2304 # Create the BulkIndexError mockCOMMENT
MEDIUMtests/test_remaining_coverage.py886 # Create an object where accessing certain attrs raises AttributeErrorCOMMENT
MEDIUMtests/llm/test_openai.py1246 # 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.py1349 # 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.py1891 # Create a clean config for storageCOMMENT
MEDIUMapplication/worker.py219# Define a function to extract metadata from a given filename.COMMENT
MEDIUMapplication/worker.py280# Define a function to generate a random string of a given length.COMMENT
MEDIUMapplication/worker.py495# 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
MEDIUMapplication/vectorstore/qdrant.py117 # Create a copy to avoid modifying the original metadataCOMMENT
Modern Structural Boilerplate144 hits · 143 pts
SeverityFileLineSnippetContext
LOWtests/integration/__init__.py47__all__ = [CODE
LOWtests/worker/test_worker_sse_publishes.py727 def _setup_client(self) -> None:CODE
LOWapplication/cache.py13logger = logging.getLogger(__name__)CODE
LOWapplication/utils.py19logger = 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.py10logger = logging.getLogger(__name__)CODE
LOWapplication/llm/base.py10logger = logging.getLogger(__name__)CODE
LOWapplication/llm/providers/openai_compatible.py29logger = logging.getLogger(__name__)CODE
LOWapplication/llm/providers/__init__.py49__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/graphrag/extraction.py31logger = logging.getLogger(__name__)CODE
LOWapplication/agents/classic_agent.py12logger = logging.getLogger(__name__)CODE
LOWapplication/agents/agent_creator.py8logger = logging.getLogger(__name__)CODE
LOWapplication/agents/agentic_agent.py12logger = 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.py20logger = logging.getLogger(__name__)CODE
LOWapplication/agents/tool_executor.py24logger = logging.getLogger(__name__)CODE
LOWapplication/agents/base.py22logger = logging.getLogger(__name__)CODE
LOWapplication/agents/workflow_agent.py25logger = 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.py4logger = 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.py34logger = logging.getLogger(__name__)CODE
LOWapplication/agents/workflows/workflow_engine.py36logger = 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.py325__all__ = [CODE
LOWapplication/parser/document_reader.py25logger = logging.getLogger(__name__)CODE
LOWapplication/parser/connectors/__init__.py12__all__ = [CODE
LOWapplication/parser/connectors/confluence/auth.py12logger = logging.getLogger(__name__)CODE
LOWapplication/parser/connectors/confluence/__init__.py4__all__ = ["ConfluenceAuth", "ConfluenceLoader"]CODE
LOWapplication/parser/connectors/confluence/loader.py12logger = logging.getLogger(__name__)CODE
LOWapplication/parser/connectors/share_point/auth.py11logger = logging.getLogger(__name__)CODE
LOWapplication/parser/connectors/share_point/__init__.py10__all__ = ['SharePointAuth', 'SharePointLoader']CODE
LOWapplication/parser/connectors/google_drive/__init__.py10__all__ = ['GoogleDriveAuth', 'GoogleDriveLoader']CODE
LOWapplication/parser/file/docling_parser.py16logger = logging.getLogger(__name__)CODE
84 more matches not shown…
Cross-Language Confusion24 hits · 135 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.py102 assert evaluate_cel("a && b", {"a": True, "b": True}) is TrueCODE
HIGHtests/agents/test_cel_evaluator.py103 assert evaluate_cel("a && b", {"a": True, "b": False}) is FalseCODE
HIGHtests/agents/test_cel_evaluator.py104 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/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
Dead Code57 hits · 109 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_logging.py310CODE
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.py584CODE
MEDIUMtests/llm/test_base.py605CODE
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.py265CODE
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.py762CODE
MEDIUMtests/api/answer/services/test_conversation_service.py814CODE
MEDIUMtests/api/answer/services/test_conversation_service.py866CODE
MEDIUMtests/api/user/test_sharing.py228CODE
MEDIUMtests/api/user/test_sharing.py337CODE
MEDIUMtests/api/user/test_prompts.py206CODE
MEDIUMtests/api/user/test_prompts.py258CODE
MEDIUMtests/api/user/test_prompts.py392CODE
MEDIUMtests/api/user/test_prompts.py549CODE
MEDIUMtests/api/user/test_analytics.py203CODE
MEDIUMtests/api/user/test_analytics.py262CODE
MEDIUMtests/api/user/test_analytics.py329CODE
MEDIUMtests/api/user/test_analytics.py422CODE
MEDIUMtests/api/user/test_analytics.py1107CODE
MEDIUMtests/api/user/test_tools_routes.py1114CODE
MEDIUMtests/api/user/test_tools_routes.py1156CODE
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.py873CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1130CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1192CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1242CODE
MEDIUMtests/api/user/agents/test_routes_happy.py1287CODE
MEDIUMtests/api/user/sources/test_chunks.py78CODE
MEDIUMtests/api/user/sources/test_routes.py105CODE
MEDIUMtests/worker/test_ingest_checkpoint.py505CODE
Docstring Block Structure19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHapplication/utils.py250 Convert PDF pages to images for LLMs that support images but not PDFs. This enables "synthetic PDF support" bySTRING
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/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.py160Embeds 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/storage/base.py41Return 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/api/answer/services/prompt_renderer.py50 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.py163 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/templates/template_engine.py36 Render template with provided context. Args: template_content: Raw template string with JiSTRING
HIGHapplication/services/search_service.py121Resolve an agent by API key and search its sources. Args: api_key: Agent API key (the opaque string stored STRING
HIGHapplication/vectorstore/faiss.py14Build a safe local path for a FAISS index. Args: path: Source identifier provided by the caller. ReturSTRING
Modern AI Meta-Vocabulary23 hits · 78 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.py178# 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.py569 # prompt — the agentic swap must still apply.COMMENT
MEDIUM…s/api/answer/services/compression/test_orchestrator.py166 # the user's declared context window in the threshold check.COMMENT
MEDIUMscripts/e2e/mock_llm.py326 # tool_calls are present, matching what RAG code paths expect.COMMENT
MEDIUMapplication/llm/openai.py156 # the model's chain-of-thought survives the in-turn tool round-trip.COMMENT
MEDIUMapplication/agents/research_agent.py163 # Main orchestrationCOMMENT
MEDIUMapplication/agents/tools/internal_search.py57 # Dispatch per-source so on-demand agentic search honours the sameCOMMENT
MEDIUMapplication/storage/db/repositories/token_usage.py111 # title generation, history compression, RAG question condensing,COMMENT
MEDIUMapplication/api/answer/routes/base.py709 # blobs, never plaintext chain-of-thought.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1644 # tools_dict (classic/agentic/research), and only when a writable wikiCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1652 # D11: agentic/research always carry a retriever_config; classic carriesCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1658 # to it; otherwise (agentic/research only) the tool exposes everyCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py317 # actual context window instead of the default 128k.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py862 # the upstream context window for any small (e.g. 8k/32k) BYOM.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1274 # agentic swap below still applies.COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1276 # Agentic/research agents use the agentic preset variants (searchCOMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1525 # _get_prompt_content handles the agentic preset swap and caching;COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1568 # Create LLM and handler (dependency injection)COMMENT
MEDIUMapplication/api/answer/services/stream_processor.py1681 # 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 Repetition15 hits · 75 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/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
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
Over-Commented Block44 hits · 41 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
LOWtests/agents/test_workflow_agent_pg_write.py81 # ------------------------------------------------------------------COMMENT
LOWtests/parser/connectors/confluence/test_auth.py301 + datetime.timedelta(seconds=30)COMMENT
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
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/env.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/e2e/down.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/e2e/up.sh1#!/usr/bin/env bashCOMMENT
LOWapplication/seed/config/agents_template.yaml21 loader: "url" # Type of loader (url, pdf, txt, etc.)COMMENT
LOWapplication/llm/handlers/base.py1041 # Each call in a parallel batch becomes its ownCOMMENT
LOWapplication/llm/handlers/base.py1061 self.create_tool_message(resolved_call, tool_response)COMMENT
LOWapplication/core/settings.py241COMMENT
LOWapplication/core/settings.py281 # gives ~24h of replay; tune up for verbose feeds, down for memory.COMMENT
LOWapplication/core/settings.py301 # connection cap above and the windowed budget below, totalCOMMENT
LOWapplication/core/settings.py341 # Code-execution sandbox (see artifacts-code-execution-spec.md §4 C2).COMMENT
LOWapplication/agents/default_tools.py21_FK_BOUND_TOOLS = frozenset({"notes", "todo_list"})COMMENT
LOWapplication/storage/db/repositories/conversations.py61COMMENT
LOWapplication/streaming/event_replay.py41DEFAULT_WATCHDOG_INTERVAL_SECONDS = 5.0COMMENT
LOWapplication/api/v1/routes.py181 # ---- Layer-1 idempotency (opt-in, non-streaming only) ----COMMENT
LOWapplication/api/answer/services/stream_processor.py1481 # Store config for the route layerCOMMENT
LOWapplication/api/answer/services/stream_processor.py1641 }COMMENT
LOWapplication/api/events/routes.py361 # loop. Buffering it into ``replay_lines`` would lose itCOMMENT
LOWapplication/api/events/routes.py381 # frontend should clear its slice cursor and refetchCOMMENT
LOW…ication/alembic/versions/0004_durability_foundation.py121 # assumption they were written from the primary path — pre-fix theCOMMENT
LOWapplication/vectorstore/mongodb.py121 # if create_index_if_not_exists:COMMENT
Redundant / Tautological Comments24 hits · 35 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.py606 # Check if we have both tools and file attachmentsCOMMENT
LOWapplication/llm/openai.py27 # Check if it looks like a data URL with base64COMMENT
LOWapplication/llm/openai.py1267 # Check if this is a pre-converted image (from PDF-to-image conversion)COMMENT
LOWapplication/llm/anthropic.py142 # Check if this is a pre-converted image (from PDF-to-image conversion)COMMENT
LOWapplication/llm/handlers/base.py177 # Check if provider supports images but not PDF (synthetic PDF support)COMMENT
LOWapplication/llm/handlers/base.py573 # Check if compression actually reduced tokensCOMMENT
LOWapplication/llm/handlers/base.py1305 # Check if context limit was reached during tool executionCOMMENT
LOWapplication/core/url_validation.py133 # 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.py85 # Check if it's a rate limit issueCOMMENT
LOWapplication/api/answer/services/stream_processor.py284 # 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.json639 "placeholder": "输入更新的查询..."CODE
LOWfrontend/src/locale/de.json621 "placeholder": "Aktualisierte Anfrage eingeben..."CODE
LOWfrontend/src/locale/ru.json639 "placeholder": "Введите обновленный запрос..."CODE
LOWfrontend/src/locale/en.json1054 "placeholder": "Type the updated query..."CODE
LOWfrontend/src/locale/jp.json639 "placeholder": "更新されたクエリを入力..."CODE
LOWfrontend/src/locale/zh-TW.json639 "placeholder": "輸入更新的查詢..."CODE
LOWfrontend/src/locale/es.json639 "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.py129 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
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.py1898 # Step 2: Download files to temp directoryCOMMENT
LOWapplication/worker.py1873 # Step 1: Initialize the appropriate loaderCOMMENT
LOWapplication/worker.py1936 # Step 3: Use SimpleDirectoryReader to process downloaded filesCOMMENT
LOWapplication/worker.py1955 # Step 4: Process documents (chunking, embedding, etc.)COMMENT
LOWapplication/worker.py2006 # 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.py1898 # Step 2: Download files to temp directoryCOMMENT
LOWapplication/worker.py1873 # Step 1: Initialize the appropriate loaderCOMMENT
LOWapplication/worker.py1936 # Step 3: Use SimpleDirectoryReader to process downloaded filesCOMMENT
LOWapplication/worker.py1955 # Step 4: Process documents (chunking, embedding, etc.)COMMENT
LOWapplication/worker.py2006 # Step 6: Upload index filesCOMMENT
AI Structural Patterns29 hits · 26 pts
SeverityFileLineSnippetContext
LOWtests/core/test_model_utils.py23CODE
LOWapplication/worker.py1151CODE
LOWapplication/worker.py1793CODE
LOWapplication/agents/tool_executor.py144CODE
LOWapplication/agents/base.py26CODE
LOWapplication/agents/tools/brave.py33CODE
LOWapplication/agents/tools/mcp_tool.py678CODE
LOWapplication/agents/tools/internal_search.py464CODE
LOWapplication/parser/file/html_parser.py24CODE
LOWapplication/parser/file/bulk.py140CODE
LOWapplication/retriever/dispatcher.py54CODE
LOWapplication/retriever/graph_rag.py42CODE
LOWapplication/retriever/classic_rag.py12CODE
LOWapplication/storage/db/repositories/attachments.py39CODE
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.py56CODE
LOWapplication/api/answer/routes/base.py177CODE
LOWapplication/api/answer/services/conversation_service.py64CODE
LOWapplication/api/answer/services/conversation_service.py197CODE
LOWapplication/api/answer/services/conversation_service.py305CODE
LOWapplication/api/user/tasks.py288CODE
LOWapplication/vectorstore/pgvector.py12CODE
AI Slop Vocabulary7 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/package-lock.json11107 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
MEDIUMtests/test_compression_service.py1041 "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.json11575 "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.py794 def process_data(self, input_data: List[str]) -> Dict[str, Any]:CODE
LOWtests/test_compression_service.py1060 def my_function():CODE
LOWapplication/security/safe_url.py439 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE