AI Slop Code RIsk Monitor

khoj-ai/khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.

16.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for khoj-ai/khoj, a Python project with 37,626 GitHub stars. SynthScan examined 95,022 lines of code across 399 source files, recording 968 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 16.9 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

16.9
Adjusted Signal
16.9
Raw Pattern Score
100%
Time Factor
2026-08-02
Last Push
37.6K
Stars
Python
Language
95.0K
Lines of Code
399
Files
968
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 25.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 21.0/100 · LOW

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

Agent Over-Engineering Ratio 37.9/100 · MEDIUM

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

PR Review Velocity Impact 58.8/100 · HIGH

Which changes need focused human review? 968 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 42HIGH 6MEDIUM 155LOW 765

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators42 hits · 430 pts
SeverityFileLineSnippetContext
CRITICALtests/test_online_chat_actors.py19from khoj.utils.helpers import ConversationCommandCODE
CRITICALtests/test_org_to_entries.py7from khoj.utils.helpers import is_none_or_emptyCODE
CRITICALtests/helpers.py27from khoj.utils.helpers import get_absolute_path, is_none_or_emptyCODE
CRITICALtests/test_agents.py11from khoj.utils.helpers import get_absolute_pathCODE
CRITICALsrc/khoj/configure.py57from khoj.utils.helpers import is_none_or_emptyCODE
CRITICALsrc/khoj/main.py18from khoj.utils.helpers import in_debug_mode, is_env_var_trueCODE
CRITICALsrc/khoj/routers/api_automation.py18from khoj.utils.helpers import is_none_or_emptyCODE
CRITICALsrc/khoj/routers/auth.py34from khoj.utils.helpers import in_debug_modeCODE
CRITICALsrc/khoj/routers/email.py10from khoj.utils.helpers import is_none_or_emptyCODE
CRITICALsrc/khoj/routers/api_agents.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/khoj/database/admin.py43from khoj.utils.helpers import ImageIntentTypeCODE
CRITICAL…ase/management/commands/change_generated_images_url.py5from khoj.utils.helpers import ImageIntentType, is_none_or_emptyCODE
CRITICAL…base/management/commands/convert_images_png_to_webp.py8from khoj.utils.helpers import ImageIntentTypeCODE
CRITICALsrc/khoj/database/models/__init__.py10from django.core.exceptions import ValidationErrorCODE
CRITICAL⚡src/khoj/app/settings.py20from khoj.utils.helpers import is_env_var_trueCODE
CRITICALsrc/khoj/search_type/text_search.py16from khoj.utils.helpers import get_absolute_path, timerCODE
CRITICALsrc/khoj/processor/content/text_to_entries.py21from khoj.utils.helpers import batcher, is_none_or_empty, timerCODE
CRITICALsrc/khoj/processor/content/org_mode/org_to_entries.py11from khoj.utils.helpers import timerCODE
CRITICAL…oj/processor/content/plaintext/plaintext_to_entries.py11from khoj.utils.helpers import timerCODE
CRITICALsrc/khoj/processor/content/images/image_to_entries.py9from khoj.utils.helpers import timerCODE
CRITICAL…khoj/processor/content/markdown/markdown_to_entries.py10from khoj.utils.helpers import timerCODE
CRITICALsrc/khoj/processor/content/pdf/pdf_to_entries.py10from khoj.utils.helpers import timerCODE
CRITICALsrc/khoj/processor/content/notion/notion_to_entries.py10from khoj.utils.helpers import timerCODE
CRITICALsrc/khoj/processor/content/github/github_to_entries.py14from khoj.utils.helpers import is_none_or_empty, timerCODE
CRITICALsrc/khoj/processor/content/docx/docx_to_entries.py10from khoj.utils.helpers import timerCODE
CRITICALsrc/khoj/processor/image/generate.py35from khoj.utils.helpers import convert_image_to_webp, is_none_or_empty, timerCODE
CRITICAL…oj/processor/operator/operator_environment_computer.py18from khoj.utils.helpers import convert_image_to_webpCODE
CRITICALsrc/khoj/processor/operator/operator_agent_base.py19from khoj.utils.helpers import get_chat_usage_metrics, is_promptrace_enabledCODE
CRITICALsrc/khoj/processor/operator/operator_agent_openai.py35from khoj.utils.helpers import get_openai_async_client, is_none_or_emptyCODE
CRITICALsrc/khoj/processor/operator/__init__.py27from khoj.utils.helpers import timerCODE
CRITICALsrc/khoj/processor/operator/grounding_agent.py26from khoj.utils.helpers import get_chat_usage_metricsCODE
CRITICAL…hoj/processor/operator/operator_environment_browser.py14from khoj.utils.helpers import convert_image_to_webpCODE
CRITICALsrc/khoj/processor/operator/grounding_agent_uitars.py38from khoj.utils.helpers import get_chat_usage_metricsCODE
CRITICALsrc/khoj/processor/operator/operator_agent_anthropic.py46from khoj.utils.helpers import get_anthropic_async_client, is_none_or_emptyCODE
CRITICALsrc/khoj/processor/operator/operator_agent_binary.py23from khoj.utils.helpers import get_openai_async_client, is_none_or_emptyCODE
CRITICAL⚡src/khoj/processor/conversation/openai/gpt.py22from khoj.utils.helpers import ToolDefinitionCODE
CRITICALsrc/khoj/utils/jsonl.py6from khoj.utils.helpers import get_absolute_pathCODE
CRITICALsrc/khoj/utils/rawconfig.py8from khoj.utils.helpers import to_snake_case_from_dashCODE
CRITICALsrc/khoj/utils/state.py14from khoj.utils.helpers import LRU, get_device, is_env_var_trueCODE
CRITICALsrc/khoj/search_filter/file_filter.py7from khoj.utils.helpers import LRUCODE
CRITICALsrc/khoj/search_filter/word_filter.py7from khoj.utils.helpers import LRUCODE
CRITICALsrc/khoj/search_filter/date_filter.py13from khoj.utils.helpers import LRU, merge_dicts, timerCODE
Decorative Section Separators126 hits · 372 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_multiple_users.py11# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_multiple_users.py24# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_multiple_users.py64# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py34# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py54# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py71# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py92# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py107# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py125# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py144# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py163# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py182# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py203# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py231# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py262# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py290# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py327# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py373# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py416# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py446# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py492# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py530# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py551# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py567# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py614# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py638# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py652# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py701# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_actors.py744# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py7# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py29# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py53# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py88# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py216# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py240# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py265# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py313# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orgnode.py115# ----------------------------------------------------------------------------------------------------STRING
MEDIUMtests/test_orgnode.py143# ----------------------------------------------------------------------------------------------------STRING
MEDIUMtests/test_orgnode.py193# ----------------------------------------------------------------------------------------------------STRING
MEDIUMtests/test_orgnode.py289# ----------------------------------------------------------------------------------------------------STRING
MEDIUMtests/test_orgnode.py335# ----------------------------------------------------------------------------------------------------STRING
MEDIUMtests/test_orgnode.py361# ----------------------------------------------------------------------------------------------------STRING
MEDIUMtests/test_word_filter.py13# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_word_filter.py28# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_word_filter.py43# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_word_filter.py56# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_word_filter.py69# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_online_chat_director.py21# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_online_chat_director.py31# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py47# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py67# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py84# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py107# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py131# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py157# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py182# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py215# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py233# ----------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/test_online_chat_director.py251# ----------------------------------------------------------------------------------------------------COMMENT
66 more matches not shown…
Hyper-Verbose Identifiers383 hits · 305 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py43def enable_db_access_for_all_tests(db):CODE
LOWtests/conftest.py171def default_openai_chat_model_option():CODE
LOWtests/conftest.py207def chat_client_no_background(search_config, default_user2: KhojUser):CODE
LOWtests/conftest.py212def chat_client_with_large_kb(search_config, default_user2: KhojUser):CODE
LOWtests/conftest.py256def large_kb_chat_client_builder(search_config, user):CODE
LOWtests/test_conversation_utils.py14 def test_truncate_message_all_small(self):CODE
LOWtests/test_conversation_utils.py28 def test_truncate_message_only_oldest_big(self):CODE
LOWtests/test_conversation_utils.py43 def test_truncate_message_with_image(self):CODE
LOWtests/test_conversation_utils.py64 def test_truncate_message_with_content_list(self):CODE
LOWtests/test_conversation_utils.py90 def test_truncate_message_first_large(self):CODE
LOWtests/test_conversation_utils.py112 def test_truncate_message_large_system_message_first(self):CODE
LOWtests/test_conversation_utils.py134 def test_truncate_single_large_non_system_message(self):CODE
LOWtests/test_conversation_utils.py155 def test_truncate_single_large_question(self):CODE
LOWtests/test_conversation_utils.py178 def test_load_complex_raw_json_string(self):CODE
LOWtests/test_conversation_utils.py189 def test_load_complex_json_with_python_code(self):CODE
LOWtests/test_conversation_utils.py202 def test_load_complex_json_inline(self):CODE
LOWtests/test_pdf_to_entries.py9def test_single_page_pdf_to_jsonl():CODE
LOWtests/test_pdf_to_entries.py25def test_multi_page_pdf_to_jsonl():CODE
LOWtests/test_pdf_to_entries.py41def test_ocr_page_pdf_to_jsonl():CODE
LOWtests/test_file_filter.py13def test_can_filter_no_file_filter():CODE
LOWtests/test_file_filter.py25def test_can_filter_non_existent_file():CODE
LOWtests/test_file_filter.py37def test_can_filter_single_file_include():CODE
LOWtests/test_file_filter.py49def test_can_filter_single_file_exclude():CODE
LOWtests/test_file_filter.py61def test_can_filter_file_with_regex_match():CODE
LOWtests/test_file_filter.py73def test_can_filter_multiple_file_includes():CODE
LOWtests/test_file_filter.py85def test_get_single_include_file_filter_terms():CODE
LOWtests/test_file_filter.py97def test_get_single_exclude_file_filter_terms():CODE
LOWtests/test_file_filter.py109def test_get_single_include_exclude_file_filter_terms():CODE
LOWtests/test_file_filter.py121def test_get_multiple_include_exclude_file_filter_terms():CODE
LOWtests/test_markdown_to_entries.py8def test_extract_markdown_with_no_headings(tmp_path):CODE
LOWtests/test_markdown_to_entries.py35def test_extract_single_markdown_entry(tmp_path):STRING
LOWtests/test_markdown_to_entries.py55def test_extract_multiple_markdown_entries(tmp_path):STRING
LOWtests/test_markdown_to_entries.py81def test_extract_entries_with_different_level_headings(tmp_path):STRING
LOWtests/test_markdown_to_entries.py104def test_extract_entries_with_non_incremental_heading_levels(tmp_path):STRING
LOWtests/test_markdown_to_entries.py129def test_extract_entries_with_text_before_headings(tmp_path):STRING
LOWtests/test_markdown_to_entries.py157def test_parse_markdown_file_into_single_entry_if_small(tmp_path):STRING
LOWtests/test_markdown_to_entries.py180def test_parse_markdown_entry_with_children_as_single_entry_if_small(tmp_path):STRING
LOWtests/test_markdown_to_entries.py213def test_line_number_tracking_in_recursive_split():STRING
LOWtests/test_multiple_users.py66def test_different_user_data_not_accessed(client, sample_org_data, default_user: KhojUser):CODE
LOWtests/test_online_chat_actors.py39async def test_extract_question_with_date_filter_from_relative_day(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py59async def test_extract_question_with_date_filter_from_relative_month(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py76async def test_extract_question_with_date_filter_from_relative_year(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py96async def test_extract_multiple_explicit_questions_from_message(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py111async def test_extract_multiple_implicit_questions_from_message(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py129async def test_generate_search_query_using_question_from_chat_history(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py148async def test_generate_search_query_using_answer_from_chat_history(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py167async def test_generate_search_query_using_question_and_answer_from_chat_history(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py186async def test_chat_with_no_chat_history_or_retrieved_content():CODE
LOWtests/test_online_chat_actors.py207async def test_answer_from_chat_history_and_no_content():CODE
LOWtests/test_online_chat_actors.py235async def test_answer_from_chat_history_and_previously_retrieved_content():CODE
LOWtests/test_online_chat_actors.py266async def test_answer_from_chat_history_and_currently_retrieved_content():CODE
LOWtests/test_online_chat_actors.py294async def test_refuse_answering_unanswerable_question():CODE
LOWtests/test_online_chat_actors.py331async def test_answer_requires_current_date_awareness():CODE
LOWtests/test_online_chat_actors.py377async def test_answer_requires_date_aware_aggregation_across_provided_notes():CODE
LOWtests/test_online_chat_actors.py420async def test_answer_general_question_not_in_chat_history_or_retrieved_content():CODE
LOWtests/test_online_chat_actors.py450async def test_ask_for_clarification_if_not_enough_context_in_question():CODE
LOWtests/test_online_chat_actors.py496async def test_agent_prompt_should_be_used(openai_agent):CODE
LOWtests/test_online_chat_actors.py534async def test_websearch_with_operators(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py554async def test_websearch_khoj_website_for_info_about_khoj(chat_client, default_user2):CODE
LOWtests/test_online_chat_actors.py603async def test_select_data_sources_actor_chooses_to_search_notes(CODE
323 more matches not shown…
Excessive Try-Catch Wrapping147 hits · 135 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py335 except Exception as e:STRING
LOWtests/helpers.py201 except Exception as e:STRING
LOWtests/test_agents.py398 except Exception as e:CODE
LOW⚡tests/evals/eval.py461 except Exception as e:CODE
LOWtests/evals/eval.py107 except Exception as e:CODE
LOWtests/evals/eval.py129 except Exception as e:CODE
LOWtests/evals/eval.py176 except Exception as e:CODE
LOWtests/evals/eval.py180 except Exception as e:CODE
LOWtests/evals/eval.py203 except Exception as e:CODE
LOWtests/evals/eval.py246 except Exception as e:CODE
MEDIUMtests/evals/eval.py343 print(f"Error loading and formatting MATH500 dataset: {e}")STRING
LOWtests/evals/eval.py373 except Exception as e:CODE
LOWtests/evals/eval.py429 except Exception as e:CODE
LOWtests/evals/eval.py318 except Exception as e:STRING
LOWtests/evals/eval.py342 except Exception as e:STRING
LOWtests/evals/eval.py514 except Exception as e:STRING
LOWsrc/khoj/configure.py295 except Exception as e:CODE
LOWsrc/khoj/configure.py315 except Exception as e:CODE
LOWsrc/khoj/configure.py453 except Exception as e:CODE
LOWsrc/khoj/main.py115 except Exception as e:CODE
LOWsrc/khoj/routers/api_automation.py109 except Exception as e:CODE
LOWsrc/khoj/routers/research.py138 except Exception as e:CODE
LOWsrc/khoj/routers/research.py269 except Exception as e:CODE
LOWsrc/khoj/routers/research.py390 except Exception as e:CODE
LOWsrc/khoj/routers/research.py430 except Exception as e:CODE
LOWsrc/khoj/routers/research.py442 except Exception:CODE
LOWsrc/khoj/routers/research.py618 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py165 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py178 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py786 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py870 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py1115 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py1163 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py1202 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py1437 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py1582 except Exception as e:CODE
LOWsrc/khoj/routers/api_chat.py1727 except Exception as e:CODE
LOWsrc/khoj/routers/api.py91 except Exception as e:CODE
LOWsrc/khoj/routers/api_content.py186 except Exception as e:CODE
LOWsrc/khoj/routers/api_content.py216 except Exception as e:CODE
LOWsrc/khoj/routers/api_content.py596 except Exception as e:CODE
LOW⚡src/khoj/routers/storage.py42 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py353 except Exception:CODE
LOWsrc/khoj/routers/helpers.py471 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py544 except Exception:CODE
LOWsrc/khoj/routers/helpers.py613 except Exception:CODE
LOWsrc/khoj/routers/helpers.py642 except Exception:CODE
LOWsrc/khoj/routers/helpers.py675 except Exception:CODE
LOWsrc/khoj/routers/helpers.py815 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py863 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py978 except Exception:CODE
LOWsrc/khoj/routers/helpers.py1032 except Exception:CODE
LOWsrc/khoj/routers/helpers.py1282 except Exception:CODE
LOWsrc/khoj/routers/helpers.py1479 except Exception:CODE
LOWsrc/khoj/routers/helpers.py1712 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py2017 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py2516 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py3048 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py3066 except Exception as e:CODE
LOWsrc/khoj/routers/helpers.py3084 except Exception as e:CODE
87 more matches not shown…
Redundant / Tautological Comments49 hits · 82 pts
SeverityFileLineSnippetContext
LOW⚡tests/evals/eval.py455 # Check if extracted answer matches ground truthCOMMENT
LOWscripts/dev_setup.sh132 # Check if any files were modified by prettierCOMMENT
LOWsrc/khoj/configure.py386 # Check if this is a server error (5xx) that we want to handleCOMMENT
LOWsrc/khoj/configure.py388 # Check if this is a web route (not API route)COMMENT
LOWsrc/khoj/configure.py444 # Check if the value for the field is JSON serializableCOMMENT
LOWsrc/khoj/configure.py484 # Check if the process lock is still active. If not, create a new process lock. This worker will become the scheduleCOMMENT
LOWsrc/khoj/routers/api_chat.py792 # Check if any interrupt query is receivedCOMMENT
LOWsrc/khoj/routers/api_chat.py884 # Check if the client is still connectedCOMMENT
LOWsrc/khoj/routers/api_chat.py1381 # Check if the user has disconnectedCOMMENT
LOWsrc/khoj/routers/api_chat.py1442 # Check if the user has disconnectedCOMMENT
LOWsrc/khoj/routers/api_chat.py1531 # Check if this is an interrupt messageCOMMENT
LOWsrc/khoj/routers/api_chat.py1684 # Check if there's still content to flushCOMMENT
LOWsrc/khoj/routers/api_chat.py1717 # Check if there's still content to flushCOMMENT
LOWsrc/khoj/routers/api_subscription.py60 # Check if any subscription item matches the official product IDCOMMENT
LOWsrc/khoj/routers/helpers.py2092 # Check if the user has exceeded the rate limitCOMMENT
LOWsrc/khoj/routers/helpers.py2127 # Check if the user has exceeded the rate limitCOMMENT
LOWsrc/khoj/routers/helpers.py2177 # Check if the user has exceeded the rate limitCOMMENT
LOWsrc/khoj/routers/helpers.py3028 # Check if client sent any documents of the supported typesCOMMENT
LOWsrc/khoj/routers/helpers.py3365 # Check if no results foundCOMMENT
LOWsrc/khoj/routers/api_agents.py454 # Check if the new persona is safeCOMMENT
LOW…c/khoj/database/management/commands/manage_memories.py107 # Check if user already processed in checkpointCOMMENT
LOW⚡src/khoj/database/adapters/__init__.py273 # Check if verification code exists for the userCOMMENT
LOW⚡src/khoj/database/adapters/__init__.py278 # Check if the code has expiredCOMMENT
LOW⚡src/khoj/database/adapters/__init__.py2245 # Check if user is allowed to retrieve this automation idCOMMENT
LOW⚡src/khoj/database/adapters/__init__.py2248 # Check if automation with this id existCOMMENT
LOW⚡src/khoj/database/adapters/__init__.py2258 # Check if user is allowed to retrieve this automation idCOMMENT
LOW⚡src/khoj/database/adapters/__init__.py2261 # Check if automation with this id existCOMMENT
LOWsrc/khoj/database/adapters/__init__.py380 # Check if the trial has expiredCOMMENT
LOWsrc/khoj/database/adapters/__init__.py2202 # Check if user is allowed to delete this automation idCOMMENT
LOWsrc/khoj/database/adapters/__init__.py2223 # Check if user is allowed to delete this automation idCOMMENT
LOW⚡src/khoj/app/settings.py28# Set KHOJ_DOMAIN to custom domain for production deployments.COMMENT
LOW⚡src/khoj/app/settings.py31# Set KHOJ_ALLOWED_DOMAIN to the i.p or domain of the Khoj service on the internal network.COMMENT
LOW…oj/processor/content/plaintext/plaintext_to_entries.py98 # Check if raw_filename is a URL. If so, save it as is. If not, convert it to a Path.COMMENT
LOW⚡…khoj/processor/content/markdown/markdown_to_entries.py161 # Check if raw_filename is a URL. If so, save it as is. If not, convert it to a Path.COMMENT
LOWsrc/khoj/processor/operator/__init__.py194 # Check if termination conditions are metCOMMENT
LOWsrc/khoj/processor/operator/operator_agent_anthropic.py315 # Check if thinking content exists before appendingCOMMENT
LOWsrc/khoj/processor/operator/operator_agent_binary.py250 # Set summary to last action messageCOMMENT
LOWsrc/khoj/processor/conversation/prompts.py920# Print results with formattingCOMMENT
LOWsrc/khoj/processor/conversation/utils.py1159 # Write files and stage themCOMMENT
LOWsrc/khoj/processor/conversation/utils.py191 if hasattr(msg, "model_dump"): # Check if it's a Pydantic modelCODE
LOWsrc/khoj/processor/conversation/utils.py1057 response.raise_for_status() # Check if the request was successfulCODE
LOW⚡src/khoj/processor/conversation/google/utils.py417 # Check if the response was blocked due to safety concerns with the promptCOMMENT
LOW⚡src/khoj/processor/conversation/google/utils.py425 # Check if finish reason is empty, therefore generation is in progressCOMMENT
LOW⚡src/khoj/processor/conversation/google/utils.py429 # Check if the response was blocked due to safety concerns with the generated contentCOMMENT
LOW⚡src/khoj/processor/conversation/google/utils.py433 # Check if the response was stopped due to reaching maximum token limit or other reasonsCOMMENT
LOWsrc/khoj/processor/conversation/openai/utils.py1100 # Check if buffer ends with a prefix of end_tagCOMMENT
LOWsrc/khoj/processor/conversation/openai/utils.py1204 # Check if buffer ends with a prefix of end_tagCOMMENT
LOWsrc/khoj/utils/helpers.py239 # Check if the file existsCOMMENT
LOWsrc/khoj/utils/helpers.py1131 # Check if AI model to be used via GCP Vertex APICOMMENT
Deep Nesting82 hits · 72 pts
SeverityFileLineSnippetContext
LOWtests/helpers.py32CODE
LOWtests/evals/eval.py623CODE
LOWsrc/khoj/configure.py435CODE
LOWsrc/khoj/routers/research.py64CODE
LOWsrc/khoj/routers/research.py277CODE
LOWsrc/khoj/routers/research.py476CODE
LOWsrc/khoj/routers/api_chat.py676CODE
LOWsrc/khoj/routers/api_chat.py1491CODE
LOWsrc/khoj/routers/api_chat.py1592CODE
LOWsrc/khoj/routers/api_chat.py753CODE
LOWsrc/khoj/routers/api_chat.py843CODE
LOWsrc/khoj/routers/api.py110CODE
LOWsrc/khoj/routers/api_content.py467CODE
LOWsrc/khoj/routers/api_subscription.py125CODE
LOWsrc/khoj/routers/helpers.py255CODE
LOWsrc/khoj/routers/helpers.py875CODE
LOWsrc/khoj/routers/helpers.py1117CODE
LOWsrc/khoj/routers/helpers.py1635CODE
LOWsrc/khoj/routers/helpers.py1902CODE
LOWsrc/khoj/routers/helpers.py3267CODE
LOWsrc/khoj/routers/helpers.py2793CODE
LOW…base/management/commands/convert_images_png_to_webp.py22CODE
LOW…c/khoj/database/management/commands/manage_memories.py187CODE
LOWsrc/khoj/database/models/__init__.py430CODE
LOWsrc/khoj/database/adapters/__init__.py369CODE
LOWsrc/khoj/database/adapters/__init__.py1295CODE
LOWsrc/khoj/processor/tools/run_code.py232CODE
LOWsrc/khoj/processor/tools/online_search.py56CODE
LOWsrc/khoj/processor/content/text_to_entries.py61CODE
LOWsrc/khoj/processor/content/text_to_entries.py142CODE
LOWsrc/khoj/processor/content/org_mode/orgnode.py61CODE
LOWsrc/khoj/processor/content/images/image_to_entries.py51CODE
LOWsrc/khoj/processor/content/notion/notion_to_entries.py82CODE
LOWsrc/khoj/processor/content/notion/notion_to_entries.py218CODE
LOWsrc/khoj/processor/content/github/github_to_entries.py116CODE
LOWsrc/khoj/processor/image/generate.py41CODE
LOWsrc/khoj/processor/image/generate.py374CODE
LOW…oj/processor/operator/operator_environment_computer.py150CODE
LOWsrc/khoj/processor/operator/operator_agent_openai.py42CODE
LOWsrc/khoj/processor/operator/operator_agent_openai.py157CODE
LOWsrc/khoj/processor/operator/operator_agent_openai.py230CODE
LOWsrc/khoj/processor/operator/operator_agent_openai.py268CODE
LOWsrc/khoj/processor/operator/operator_agent_openai.py319CODE
LOWsrc/khoj/processor/operator/operator_agent_openai.py444CODE
LOWsrc/khoj/processor/operator/__init__.py34CODE
LOWsrc/khoj/processor/operator/grounding_agent.py93CODE
LOW…hoj/processor/operator/operator_environment_browser.py132CODE
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py197CODE
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py389CODE
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py482CODE
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py583CODE
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py753CODE
LOWsrc/khoj/processor/operator/operator_agent_anthropic.py53CODE
LOWsrc/khoj/processor/operator/operator_agent_anthropic.py224CODE
LOWsrc/khoj/processor/operator/operator_agent_anthropic.py281CODE
LOWsrc/khoj/processor/operator/operator_agent_anthropic.py322CODE
LOWsrc/khoj/processor/operator/operator_agent_anthropic.py525CODE
LOWsrc/khoj/processor/operator/operator_agent_binary.py151CODE
LOWsrc/khoj/processor/conversation/utils.py323CODE
LOWsrc/khoj/processor/conversation/utils.py350CODE
22 more matches not shown…
Modern Structural Boilerplate62 hits · 62 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_text_search.py16logger = logging.getLogger(__name__)CODE
LOWtests/helpers.py29logger = logging.getLogger(__name__)CODE
LOWtests/test_grep_files.py9logger = logging.getLogger(__name__)CODE
LOWtests/evals/eval.py31logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/configure.py59logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_automation.py22logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/auth.py36logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/research.py48logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_chat.py101logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_memories.py15logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_phone.py13logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api.py32logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_content.py45logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_subscription.py21logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/email.py12logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/storage.py5logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/notion.py25logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/twilio.py6logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/helpers.py147logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_agents.py24logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/routers/api_model.py19logger = logging.getLogger(__name__)CODE
LOW…j/database/management/commands/change_default_model.py14logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/database/models/__init__.py19logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/database/adapters/__init__.py88logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/search_type/text_search.py22logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/embeddings.py26logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/tools/mcp.py10logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/tools/run_code.py40logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/tools/online_search.py35logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/content/text_to_entries.py24logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/content/org_mode/org_to_entries.py14logger = logging.getLogger(__name__)CODE
LOW…oj/processor/content/plaintext/plaintext_to_entries.py14logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/content/images/image_to_entries.py12logger = logging.getLogger(__name__)CODE
LOW…khoj/processor/content/markdown/markdown_to_entries.py13logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/content/pdf/pdf_to_entries.py13logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/content/notion/notion_to_entries.py13logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/content/github/github_to_entries.py17logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/content/docx/docx_to_entries.py13logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/image/generate.py38logger = logging.getLogger(__name__)CODE
LOW…oj/processor/operator/operator_environment_computer.py20logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/operator/operator_agent_base.py21logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/operator/operator_agent_openai.py37logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/operator/__init__.py30logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/operator/grounding_agent.py28logger = logging.getLogger(__name__)CODE
LOW…hoj/processor/operator/operator_environment_browser.py16logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py40logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/operator/operator_agent_anthropic.py48logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/operator/operator_agent_binary.py25logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/conversation/utils.py49logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/conversation/google/gemini_chat.py15logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/conversation/google/utils.py41logger = logging.getLogger(__name__)CODE
LOW…hoj/processor/conversation/anthropic/anthropic_chat.py15logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/conversation/anthropic/utils.py35logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/processor/conversation/openai/utils.py53logger = logging.getLogger(__name__)CODE
LOW⚡src/khoj/processor/conversation/openai/gpt.py24logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/utils/initialization.py22logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/utils/jsonl.py8logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/utils/cli.py6logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/utils/helpers.py55logger = logging.getLogger(__name__)CODE
LOWsrc/khoj/search_filter/file_filter.py9logger = logging.getLogger(__name__)CODE
2 more matches not shown…
Self-Referential Comments20 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_memory_settings.py285 # Create a custom agentCOMMENT
MEDIUMtests/test_memory_settings.py352 # Create a custom agentCOMMENT
MEDIUMsrc/khoj/routers/research.py93 # Create a status collector that captures messages for later batch yieldCOMMENT
MEDIUMsrc/khoj/routers/api_chat.py750 # Create a task to monitor for disconnectionsCOMMENT
MEDIUMsrc/khoj/routers/api_chat.py982 # Create a de-duped set of memoriesCOMMENT
MEDIUMsrc/khoj/routers/api_chat.py1575 # Create a new task for processing the chat requestCOMMENT
MEDIUMsrc/khoj/routers/api_memories.py99 # Create a new memory with the updated contentCOMMENT
MEDIUMsrc/khoj/routers/helpers.py2758 # Create the automation responseCOMMENT
MEDIUM…j/database/management/commands/change_default_model.py16BATCH_SIZE = 1000 # Define an appropriate batch sizeCODE
MEDIUM…j/database/management/commands/change_default_model.py92 # Create an entry filter with no conditionsCOMMENT
MEDIUM⚡src/khoj/database/adapters/__init__.py1778 # Create a custom queryset for prefetching settings__ai_model_api, handling null casesCOMMENT
MEDIUM⚡…khoj/processor/content/markdown/markdown_to_entries.py151 # Create a mapping from parsed entry to file infoCOMMENT
MEDIUM…hoj/processor/operator/operator_environment_browser.py56 # Define a handler for page load events to capture URLsCOMMENT
MEDIUM…hoj/processor/operator/operator_environment_browser.py72 # Define a handler for new pagesCOMMENT
MEDIUMsrc/khoj/processor/conversation/prompts.py941# Define the variableCOMMENT
MEDIUMsrc/khoj/processor/conversation/prompts.py944# Define the expressionCOMMENT
MEDIUMsrc/khoj/processor/conversation/prompts.py966# Create a DataFrame of world population from the provided dataCOMMENT
MEDIUMsrc/khoj/processor/conversation/utils.py1128 # Create an initial commit if the repository is newly createdCOMMENT
MEDIUMsrc/khoj/utils/helpers.py913 # Create a deep copy of the code results to avoid modifying the original dataCOMMENT
MEDIUMsrc/telemetry/telemetry.py44 # Create a table if it doesn't existCOMMENT
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHsrc/khoj/routers/api_chat.py840except asyncio.CancelledError:CODE
HIGHsrc/khoj/routers/api_chat.py1572except asyncio.CancelledError:CODE
HIGHsrc/khoj/processor/tools/run_code.py227except ImportError:CODE
HIGHsrc/khoj/utils/helpers.py846except ValueError:CODE
Over-Commented Block15 hits · 15 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yml81 # Uncomment line below to use with Ollama running on your local machine at localhost:11434.COMMENT
LOWdocker-compose.yml101 # - OLOSTEP_API_KEY=your_olostep_api_keyCOMMENT
LOW…face/web/app/components/suggestions/suggestionsData.ts121 color: suggestionToColorMap[SuggestionType.Language] || DEFAULT_COLOR,COMMENT
LOW…face/web/app/components/suggestions/suggestionsData.ts141 // actionTagline: "Career advice",COMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js2341 };COMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js2441 }COMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js2861 // .toLowerCase().toUpperCase() should get rid of all differencesCOMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js2881 // and .toUpperCase() doesn't change ϴ (already uppercase).COMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js4601 // ```COMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js5461COMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js5481 this.bsCount = [];COMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js6901 // Defined via punctuation & spaces to save spaceCOMMENT
LOWsrc/interface/desktop/assets/markdown-it.min.js7881 // Convert '\n' in paragraphs into <br>COMMENT
LOWsrc/khoj/app/settings.py241COMMENT
LOWsrc/khoj/processor/content/org_mode/orgnode.py1# Copyright (c) 2010 Charles CaveCOMMENT
AI Structural Patterns17 hits · 12 pts
SeverityFileLineSnippetContext
LOWsrc/khoj/routers/research.py277CODE
LOWsrc/khoj/routers/research.py476CODE
LOWsrc/khoj/routers/helpers.py821CODE
LOWsrc/khoj/routers/helpers.py1069CODE
LOWsrc/khoj/routers/helpers.py1212CODE
LOWsrc/khoj/routers/helpers.py1287CODE
LOWsrc/khoj/routers/helpers.py1398CODE
LOWsrc/khoj/routers/helpers.py1635CODE
LOWsrc/khoj/routers/helpers.py1731CODE
LOWsrc/khoj/routers/helpers.py1801CODE
LOWsrc/khoj/routers/helpers.py1902CODE
LOWsrc/khoj/processor/tools/online_search.py56CODE
LOWsrc/khoj/processor/tools/online_search.py440CODE
LOWsrc/khoj/processor/operator/__init__.py34CODE
LOWsrc/khoj/processor/conversation/utils.py541CODE
LOWsrc/khoj/processor/conversation/utils.py677CODE
LOWsrc/khoj/processor/conversation/anthropic/utils.py51CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtests/test_text_search.py171git clone https://github.com/khoj-ai/khoj && cd khojCODE
HIGHtests/helpers.py128 git clone https://github.com/khoj-ai/khoj && cd khojCODE
AI Slop Vocabulary3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMsrc/interface/obsidian/src/main.ts239 // Use a more robust way to get the input, or ensure it's always present after onOpenCOMMENT
MEDIUMsrc/khoj/routers/research.py296 """Given a query, determine which of the available tools the agent should use in order to answer appropriately."""STRING
MEDIUMsrc/khoj/utils/initialization.py217 # TODO: This is hacky. Will be replaced with more robust solution based on provider type enumCOMMENT
Verbosity Indicators3 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡src/khoj/processor/operator/grounding_agent_uitars.py968 # Step 1: Split the string into individual actionsCOMMENT
LOW⚡src/khoj/processor/operator/grounding_agent_uitars.py975 # Step 2: Extract coordinates (start_box or end_box) using regexCOMMENT
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py986 # Step 5: Reconstruct the final stringCOMMENT
Structural Annotation Overuse3 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡src/khoj/processor/operator/grounding_agent_uitars.py968 # Step 1: Split the string into individual actionsCOMMENT
LOW⚡src/khoj/processor/operator/grounding_agent_uitars.py975 # Step 2: Extract coordinates (start_box or end_box) using regexCOMMENT
LOWsrc/khoj/processor/operator/grounding_agent_uitars.py986 # Step 5: Reconstruct the final stringCOMMENT
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py12CODE
LOWtests/conftest.py12CODE
LOWtests/test_pdf_to_entries.py1CODE
LOWtests/test_client.py9CODE
LOWsrc/khoj/utils/config.py2CODE
LOWsrc/khoj/utils/helpers.py1CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_conversation_utils.py45 image_content_item = {"type": "image_url", "image_url": {"url": "placeholder"}}CODE
LOWsrc/interface/desktop/assets/purify.min.js2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
LOWsrc/khoj/database/adapters/__init__.py789 default_personality = prompts.personality.format(current_date="placeholder", day_of_week="placeholder")CODE
LOWsrc/khoj/utils/initialization.py47 openai_api_key = os.getenv("OPENAI_API_KEY", "placeholder" if openai_base_url else None)CODE