Repository Analysis

MemTensor/MemOS

Self-evolving memory OS for LLM & AI Agents: ultra-persistent memory, hybrid-retrieval, and cross-task skill reuse, with 35.24% token savings

16.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of MemTensor/MemOS, a TypeScript project with 10,206 GitHub stars. SynthScan v2.0 examined 459,491 lines of code across 1735 source files, recording 4222 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 16.0 places this repository in the Moderate AI signal band.

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

16.0
Adjusted Score
16.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.2K
Stars
TypeScript
Language
459.5K
Lines of Code
1.7K
Files
4.2K
Pattern Hits
2026-07-14
Scan Date
0.12
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 213MEDIUM 973LOW 3036

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 4222 distinct pattern matches across 25 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 Separators818 hits · 2672 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_utils_timing.py38# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py40# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py109# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py111# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py206# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py208# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py219# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py221# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_utils_timing.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_utils_timing.py182# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py184# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py296# ===========================================================================COMMENT
MEDIUMtests/test_utils_timing.py298# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py111# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py113# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py256# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py258# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py284# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py286# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py358# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py360# ===========================================================================COMMENT
MEDIUMtests/test_add_stage_logging.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_add_stage_logging.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_add_stage_logging.py74# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_add_stage_logging.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py87# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py89# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py194# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py196# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py29# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py31# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py248# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/graph_dbs/test_neo4j_vector_search.py260# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/mem_reader/test_coarse_memory_type.py23# ------------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_coarse_memory_type.py25# ------------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_coarse_memory_type.py47# ------------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_coarse_memory_type.py49# ------------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_coarse_memory_type.py148# ------------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_coarse_memory_type.py150# ------------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_project_id_propagation.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_project_id_propagation.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_project_id_propagation.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/mem_reader/test_project_id_propagation.py198# ---------------------------------------------------------------------------COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md246# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md248# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md263# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md265# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md273# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md275# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md281# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md283# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md287# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md289# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md301# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md303# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md307# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md309# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md313# ========================================COMMENT
MEDIUM…n/open_source/modules/memories/naive_textual_memory.md315# ========================================COMMENT
758 more matches not shown…
Hyper-Verbose Identifiers1103 hits · 1114 pts
SeverityFileLineSnippetContext
LOWtests/test_deprecation.py16 def test_deprecated_function_warns(self):CODE
LOWtests/test_deprecation.py35 def test_deprecated_function_metadata(self):CODE
LOWtests/test_deprecation.py67 def test_deprecated_class_warns(self):CODE
LOWtests/test_deprecation.py85 def test_deprecated_class_metadata(self):CODE
LOWtests/test_deprecation.py101 def test_deprecated_parameter_warns(self):CODE
LOWtests/test_deprecation.py126 def test_warn_deprecated_basic(self):CODE
LOWtests/test_deprecation.py141 def test_warn_deprecated_minimal(self):CODE
LOWtests/test_deprecation.py168 def test_get_deprecation_info_none(self):CODE
LOWtests/test_hello_world.py17def test_memos_hello_world_logger_called():CODE
LOWtests/test_hello_world.py26def test_memos_dany_hello_world_logger_called():CODE
LOWtests/test_hello_world.py55def test_memos_chend_hello_world_logger_called():CODE
LOWtests/test_hello_world.py64def test_memos_wanghy_hello_world_logger_called():CODE
LOWtests/test_hello_world.py73def test_memos_huojh_hello_world_logger_called():CODE
LOWtests/test_hello_world.py84def test_memos_niusm_hello_world_logger_called():CODE
LOWtests/test_hello_world.py93def test_memos_wangyzh_hello_world_logger_called():CODE
LOWtests/test_hello_world.py102def test_memos_zhaojihao_hello_world_logger_called():CODE
LOWtests/test_hello_world.py111def test_memos_yuqingchen_hello_world_logger_called():CODE
LOWtests/test_hello_world.py120def test_memos_chen_tang_hello_world():CODE
LOWtests/test_utils_timing_exception_reraise.py15 def test_exception_reraised_when_no_fallback(self):CODE
LOWtests/test_utils_timing_exception_reraise.py25 def test_exception_reraised_preserves_type(self):CODE
LOWtests/test_utils_timing_exception_reraise.py38 def test_fallback_still_works(self):CODE
LOWtests/test_utils_timing_exception_reraise.py48 def test_no_implicit_none_return(self):CODE
LOWtests/test_log.py17def test_setup_logfile_creates_file(tmp_path, monkeypatch):CODE
LOWtests/test_log.py24def test_get_logger_returns_logger():CODE
LOWtests/utils.py68def check_module_factory_class(cls: Any) -> None:CODE
LOWtests/utils.py163def check_config_factory_class(cls: BaseModel, expected_backends: list[str] | None = None) -> None:CODE
LOWtests/utils.py196def check_config_instantiation_valid(cls: BaseModel, valid_config: dict) -> None:CODE
LOWtests/utils.py208def check_config_instantiation_invalid(cls: BaseModel, invalid_config: dict | None = None) -> None:CODE
LOWtests/test_utils_timing.py33def _collect_timer_with_status_logs(caplog):CODE
LOWtests/test_utils_timing.py100 def test_duration_ms_readable_downstream(self):CODE
LOWtests/test_utils_timing.py128 def test_decorator_uses_func_name_when_no_stage(self, caplog):CODE
LOWtests/test_utils_timing.py138 def test_decorator_preserves_function_metadata(self):CODE
LOWtests/test_utils_timing.py147 def test_decorator_with_extra_callback(self, caplog):CODE
LOWtests/test_utils_timing.py199 def test_emit_now_no_extra_fields(self, caplog):CODE
LOWtests/test_utils_timing.py225 def test_return_value_preserved(self):CODE
LOWtests/test_utils_timing.py232 def test_no_log_below_threshold(self, caplog):CODE
LOWtests/test_utils_timing.py54 def test_duration_ms_is_populated(self, caplog):CODE
LOWtests/test_utils_timing.py65 def test_set_overwrites_fields(self, caplog):CODE
LOWtests/test_utils_timing.py72 def test_exception_logged_but_propagated(self, caplog):CODE
LOWtests/test_utils_timing.py83 def test_duration_ms_available_after_exception(self, caplog):CODE
LOWtests/test_utils_timing.py162 def test_decorator_extra_callback_error_does_not_break(self, caplog):CODE
LOWtests/test_utils_timing.py171 def test_decorator_exception_propagated(self, caplog):CODE
LOWtests/test_utils_timing.py281 def test_both_decorator_forms(self):CODE
LOWtests/test_utils_timing.py315 def test_failure_logging_no_fallback(self, caplog):CODE
LOWtests/test_utils_timing.py330 def test_failure_with_fallback(self, caplog):CODE
LOWtests/test_utils_timing.py371 def test_log_extra_args_callable(self, caplog):CODE
LOWtests/test_utils_timing.py381 def test_both_decorator_forms(self):CODE
LOWtests/test_cli.py22 def test_export_openapi_success(self, mock_makedirs, mock_file, mock_app):CODE
LOWtests/test_cli.py35 def test_export_openapi_error(self, mock_file, mock_app):CODE
LOWtests/test_cli.py59 def test_download_examples_success(self, mock_file, mock_makedirs, mock_requests):CODE
LOWtests/test_cli.py74 def test_download_examples_error(self, mock_requests):CODE
LOWtests/test_cli.py87 def test_main_download_examples(self, mock_download):CODE
LOWtests/test_add_stage_logging.py117 def test_returns_correct_business_result(self, single_cube_view):CODE
LOWtests/test_add_stage_logging.py262 def test_sync_fast_returns_result(self, single_cube_view):CODE
LOWtests/test_add_stage_logging.py271 def test_sync_fast_summary_fields(self, single_cube_view, caplog):CODE
LOWtests/test_add_stage_logging.py290 def test_zero_memories_does_not_crash(self, caplog):CODE
LOWtests/test_add_stage_logging.py364 def test_single_cube_emits_multi_cube_log(self, caplog):CODE
LOWtests/test_add_stage_logging.py128 def test_mem_reader_called_with_fast_mode(self, single_cube_view):CODE
LOWtests/test_add_stage_logging.py174 def test_summary_contains_all_fields(self, single_cube_view, caplog):CODE
LOWtests/test_add_stage_logging.py199 def test_summary_values_are_consistent(self, single_cube_view, caplog):CODE
1043 more matches not shown…
Excessive Try-Catch Wrapping857 hits · 860 pts
SeverityFileLineSnippetContext
LOWtests/mem_tools/test_thread_safe_dict.py175 except Exception as e:CODE
LOWtests/mem_tools/test_thread_safe_dict.py186 except Exception as e:CODE
MEDIUMtests/mem_tools/test_thread_safe_dict.py170def writer():CODE
MEDIUMtests/mem_tools/test_thread_safe_dict.py178def reader():CODE
LOWtests/mem_scheduler/test_scheduler.py222 except Exception as e:CODE
LOWtests/mem_cube/test_general.py62 except Exception:CODE
LOW…n/open_source/best_practice/common_errors_solutions.md119except Exception:CODE
LOWdocs/cn/open_source/modules/mem_scheduler.md432 except Exception as e:CODE
LOWdocs/cn/open_source/modules/memories/kv_cache_memory.md429 except Exception as e:CODE
LOWdocs/cn/open_source/modules/memories/kv_cache_memory.md472 except Exception as e:CODE
LOWdocs/cn/open_source/modules/memories/kv_cache_memory.md482 except Exception as e:CODE
LOWdocs/cn/open_source/modules/memories/kv_cache_memory.md504 except Exception as e:CODE
LOW…cs/cn/open_source/modules/memories/polardb_graph_db.md414 except Exception as e:STRING
LOW…n/open_source/best_practice/common_errors_solutions.md51except Exception:CODE
LOWdocs/en/open_source/modules/mem_scheduler.md432 except Exception as e:CODE
LOW…cs/en/open_source/modules/memories/polardb_graph_db.md417 except Exception as e:STRING
LOWdocs/en/open_source/getting_started/examples.md449except Exception as e:CODE
LOWexamples/core_memories/vllm_kv_cache_memory.py53 except Exception as e:CODE
LOWexamples/core_memories/vllm_kv_cache_memory.py96 except Exception as e:CODE
LOWexamples/core_memories/vllm_kv_cache_memory.py106 except Exception as e:CODE
LOWexamples/core_memories/vllm_kv_cache_memory.py128 except Exception as e:CODE
LOWexamples/basic_modules/tree_textual_memory_recall.py87except Exception as exc:CODE
LOWexamples/mem_scheduler/try_schedule_modules.py158 except Exception:CODE
LOWexamples/mem_scheduler/run_async_tasks.py40 except Exception as e:CODE
LOWexamples/mem_scheduler/show_redis_status.py72 except Exception as e:CODE
MEDIUMexamples/mem_scheduler/show_redis_status.py73 print(f"Error while fetching status: {e}")CODE
MEDIUMexamples/api/server_router_api.py666 print(f"Error parsing response: {e}")CODE
MEDIUMexamples/api/server_router_api.py669 print(f"Error: {resp.status_code}")CODE
LOWexamples/api/server_router_api.py665 except Exception as e:CODE
LOWexamples/api/server_router_api.py675 except Exception as e:CODE
LOWexamples/api/server_router_api.py63 except Exception as e:CODE
LOWexamples/api/server_router_api.py588 except Exception as e:CODE
LOWexamples/mem_reader/builders.py53 except Exception as e:CODE
LOWexamples/mem_reader/parser_demos/_base.py75 except Exception as e:CODE
LOWexamples/mem_reader/parser_demos/demo_image.py79 except Exception as e:CODE
LOWexamples/mem_reader/parser_demos/demo_file_content.py61 except Exception as e:CODE
LOWexamples/mem_reader/runners/run_multimodal.py130 except Exception as e:CODE
LOWexamples/mem_reader/runners/run_simple.py95 except Exception as e:CODE
LOWexamples/mem_reader/runners/run_simple.py105 except Exception as e:CODE
LOWexamples/mem_mcp/simple_fastmcp_serve.py33 except Exception as e:CODE
LOWexamples/mem_mcp/simple_fastmcp_serve.py46 except Exception as e:CODE
LOWexamples/mem_mcp/simple_fastmcp_serve.py58 except Exception as e:CODE
LOWexamples/extras/nli_e2e_example.py49 except Exception:CODE
LOWexamples/extras/nli_e2e_example.py95 except Exception as e:CODE
MEDIUMexamples/extras/nli_e2e_example.py96 print(f"Error during request: {e}")CODE
LOWscripts/check_dependencies.py41 except Exception as e:CODE
LOWevaluation/scripts/locomo/locomo_search.py231 except Exception as e:CODE
MEDIUMevaluation/scripts/locomo/locomo_search.py232 print(f"Error loading existing results for group {group_idx}: {e}")CODE
LOWevaluation/scripts/locomo/locomo_eval.py34except Exception as e:CODE
LOWevaluation/scripts/locomo/locomo_eval.py41except Exception as e:CODE
LOWevaluation/scripts/locomo/locomo_eval.py118 except Exception as e:STRING
LOWevaluation/scripts/locomo/locomo_eval.py131 except Exception as e:STRING
LOWevaluation/scripts/locomo/locomo_eval.py149 except Exception as e:STRING
LOWevaluation/scripts/locomo/locomo_eval.py158 except Exception as e:STRING
LOWevaluation/scripts/locomo/locomo_eval.py173 except Exception as e:STRING
LOWevaluation/scripts/locomo/locomo_eval.py192 except Exception as e:STRING
LOWevaluation/scripts/locomo/locomo_eval.py289 except Exception as e:STRING
MEDIUMevaluation/scripts/locomo/locomo_eval.py290 print(f"Error processing group {group_id}: {e}")STRING
MEDIUMevaluation/scripts/locomo/locomo_eval.py155def calculate_meteor_score(gold_tokens, response_tokens):CODE
MEDIUMevaluation/scripts/locomo/locomo_eval.py178def calculate_f1_score(gold_tokens, response_tokens):CODE
797 more matches not shown…
Cross-File Repetition105 hits · 525 pts
SeverityFileLineSnippetContext
HIGHevaluation/scripts/PrefEval/pref_zep.py0adds conversation memory for a single line of data to memos and returns the data with a persistent user_id.STRING
HIGHevaluation/scripts/PrefEval/pref_memobase.py0adds conversation memory for a single line of data to memos and returns the data with a persistent user_id.STRING
HIGHevaluation/scripts/PrefEval/pref_supermemory.py0adds conversation memory for a single line of data to memos and returns the data with a persistent user_id.STRING
HIGHevaluation/scripts/PrefEval/pref_memu.py0adds conversation memory for a single line of data to memos and returns the data with a persistent user_id.STRING
HIGHevaluation/scripts/PrefEval/pref_memos.py0adds conversation memory for a single line of data to memos and returns the data with a persistent user_id.STRING
HIGHevaluation/scripts/PrefEval/pref_mem0.py0adds conversation memory for a single line of data to memos and returns the data with a persistent user_id.STRING
HIGHevaluation/scripts/PrefEval/pref_zep.py0processes a single line of data, searching memory based on the question.STRING
HIGHevaluation/scripts/PrefEval/pref_memobase.py0processes a single line of data, searching memory based on the question.STRING
HIGHevaluation/scripts/PrefEval/pref_supermemory.py0processes a single line of data, searching memory based on the question.STRING
HIGHevaluation/scripts/PrefEval/pref_memu.py0processes a single line of data, searching memory based on the question.STRING
HIGHevaluation/scripts/PrefEval/pref_memos.py0processes a single line of data, searching memory based on the question.STRING
HIGHevaluation/scripts/PrefEval/pref_mem0.py0processes a single line of data, searching memory based on the question.STRING
HIGHevaluation/scripts/PrefEval/pref_zep.py0generates a response for a single line of data using pre-fetched memories.STRING
HIGHevaluation/scripts/PrefEval/pref_memobase.py0generates a response for a single line of data using pre-fetched memories.STRING
HIGHevaluation/scripts/PrefEval/pref_supermemory.py0generates a response for a single line of data using pre-fetched memories.STRING
HIGHevaluation/scripts/PrefEval/pref_memu.py0generates a response for a single line of data using pre-fetched memories.STRING
HIGHevaluation/scripts/PrefEval/pref_memos.py0generates a response for a single line of data using pre-fetched memories.STRING
HIGHevaluation/scripts/PrefEval/pref_mem0.py0generates a response for a single line of data using pre-fetched memories.STRING
HIGHsrc/memos/reranker/strategies/singleturn_outmem.py0prepare documents based on single turn concatenation strategy. args: query: the search query graph_results: list of grapSTRING
HIGHsrc/memos/reranker/strategies/concat_docsource.py0prepare documents based on single turn concatenation strategy. args: query: the search query graph_results: list of grapSTRING
HIGHsrc/memos/reranker/strategies/single_turn.py0prepare documents based on single turn concatenation strategy. args: query: the search query graph_results: list of grapSTRING
HIGHsrc/memos/reranker/strategies/concat_background.py0prepare documents based on single turn concatenation strategy. args: query: the search query graph_results: list of grapSTRING
HIGHsrc/memos/reranker/strategies/singleturn_outmem.py0reconstruct textualmemoryitem objects from ranked dialogue pairs. args: ranked_indices: list of dialogue pair indices soSTRING
HIGHsrc/memos/reranker/strategies/concat_docsource.py0reconstruct textualmemoryitem objects from ranked dialogue pairs. args: ranked_indices: list of dialogue pair indices soSTRING
HIGHsrc/memos/reranker/strategies/single_turn.py0reconstruct textualmemoryitem objects from ranked dialogue pairs. args: ranked_indices: list of dialogue pair indices soSTRING
HIGHsrc/memos/reranker/strategies/concat_background.py0reconstruct textualmemoryitem objects from ranked dialogue pairs. args: ranked_indices: list of dialogue pair indices soSTRING
HIGH…completion_types/chat_completion_user_message_param.py0optional timestamp for the message, format is not restricted, it can be any vague or precise time string.STRING
HIGH…etion_types/chat_completion_assistant_message_param.py0optional timestamp for the message, format is not restricted, it can be any vague or precise time string.STRING
HIGH…completion_types/chat_completion_tool_message_param.py0optional timestamp for the message, format is not restricted, it can be any vague or precise time string.STRING
HIGH…mpletion_types/chat_completion_system_message_param.py0optional timestamp for the message, format is not restricted, it can be any vague or precise time string.STRING
HIGHsrc/memos/vec_dbs/milvus.py0count items in the database, optionally with filter.STRING
HIGHsrc/memos/vec_dbs/qdrant.py0count items in the database, optionally with filter.STRING
HIGHsrc/memos/vec_dbs/base.py0count items in the database, optionally with filter.STRING
HIGHsrc/memos/vec_dbs/milvus.py0add or update data in the vector database. if an item with the same id exists, it will be updated. otherwise, it will beSTRING
HIGHsrc/memos/vec_dbs/qdrant.py0add or update data in the vector database. if an item with the same id exists, it will be updated. otherwise, it will beSTRING
HIGHsrc/memos/vec_dbs/base.py0add or update data in the vector database. if an item with the same id exists, it will be updated. otherwise, it will beSTRING
HIGHsrc/memos/chunkers/markdown_chunker.py0chunk the given text into smaller chunks based on sentences.STRING
HIGHsrc/memos/chunkers/sentence_chunker.py0chunk the given text into smaller chunks based on sentences.STRING
HIGHsrc/memos/chunkers/charactertext_chunker.py0chunk the given text into smaller chunks based on sentences.STRING
HIGHsrc/memos/graph_dbs/neo4j_community.py0get user names by memory ids. args: memory_ids: list of memory node ids to query. returns: dict[str, str | none]: dictioSTRING
HIGHsrc/memos/graph_dbs/polardb.py0get user names by memory ids. args: memory_ids: list of memory node ids to query. returns: dict[str, str | none]: dictioSTRING
HIGHsrc/memos/graph_dbs/neo4j.py0get user names by memory ids. args: memory_ids: list of memory node ids to query. returns: dict[str, str | none]: dictioSTRING
HIGHsrc/memos/graph_dbs/polardb.py0delete a specific edge between two nodes. args: source_id: id of the source node. target_id: id of the target node. typeSTRING
HIGHsrc/memos/graph_dbs/neo4j.py0delete a specific edge between two nodes. args: source_id: id of the source node. target_id: id of the target node. typeSTRING
HIGHsrc/memos/graph_dbs/base.py0delete a specific edge between two nodes. args: source_id: id of the source node. target_id: id of the target node. typeSTRING
HIGHsrc/memos/graph_dbs/polardb.py0find nodes that are likely candidates for structure optimization: - isolated nodes, nodes with empty background, or nodeSTRING
HIGHsrc/memos/graph_dbs/neo4j.py0find nodes that are likely candidates for structure optimization: - isolated nodes, nodes with empty background, or nodeSTRING
HIGHsrc/memos/graph_dbs/base.py0find nodes that are likely candidates for structure optimization: - isolated nodes, nodes with empty background, or nodeSTRING
HIGHsrc/memos/mem_chat/simple.py0build system prompt with optional memories context.STRING
HIGHsrc/memos/mem_scheduler/general_modules/base.py0build system prompt with optional memories context.STRING
HIGHsrc/memos/api/handlers/chat_handler.py0build system prompt with optional memories context.STRING
HIGHsrc/memos/mem_os/core.py0build system prompt with optional memories context.STRING
HIGHsrc/memos/embedders/sentence_transformer.py0generate embeddings for the given texts. args: texts: list of texts to embed. returns: list of embeddings, each represenSTRING
HIGHsrc/memos/embedders/ark.py0generate embeddings for the given texts. args: texts: list of texts to embed. returns: list of embeddings, each represenSTRING
HIGHsrc/memos/embedders/ollama.py0generate embeddings for the given texts. args: texts: list of texts to embed. returns: list of embeddings, each represenSTRING
HIGHsrc/memos/mem_scheduler/general_scheduler.py0initialize the scheduler with the given configuration.STRING
HIGHsrc/memos/mem_scheduler/base_scheduler.py0initialize the scheduler with the given configuration.STRING
HIGHsrc/memos/mem_scheduler/general_modules/base.py0initialize the scheduler with the given configuration.STRING
HIGH…emos/mem_scheduler/task_schedule_modules/task_queue.py0local queue implementation for schedulermessageitem objects. this module provides a local-based queue implementation thaSTRING
HIGH…mos/mem_scheduler/task_schedule_modules/redis_queue.py0local queue implementation for schedulermessageitem objects. this module provides a local-based queue implementation thaSTRING
45 more matches not shown…
Structural Annotation Overuse196 hits · 332 pts
SeverityFileLineSnippetContext
LOWdocs/en/openclaw/local_plugin.md37### Step 1: Install or Upgrade with One CommandCOMMENT
LOWdocs/en/openclaw/local_plugin.md49### Step 2: Open the Memory ViewerCOMMENT
LOWdocs/en/openclaw/local_plugin.md60### Step 3: Configure from the PanelCOMMENT
LOWdocs/en/openclaw/local_plugin.md70### Step 4: Start the Target AgentCOMMENT
LOWdocs/en/openclaw/local_plugin.md81### Step 5: Verify MemoryCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md75### Step 1: Start Server APICOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md97### Step 2: Start MCP HTTP ServiceCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md134### Step 3: Configure an HTTPS Reverse ProxyCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md170### Step 4: Test MCP ServiceCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md206### Step 1: Open Coze Space and go to the tool configuration pageCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md210### Step 2: Add a custom MCP toolCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md216### Step 3: Configure the MCP endpoint URLCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md244### Step 1: Start Server APICOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md255### Step 2: Configure custom tools in Coze IDECOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md262### Step 3: Implement the add_memory toolCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md332### Step 4: Publish and test toolsCOMMENT
LOW…en_source/best_practice/mcp_for_cozespace_and_tools.md338### Step 5: Integrate into agent workflowCOMMENT
LOW…n/open_source/modules/memories/naive_textual_memory.md128#### Step 1: TokenizationCOMMENT
LOW…n/open_source/modules/memories/naive_textual_memory.md131#### Step 2: Calculate Match ScoreCOMMENT
LOW…n/open_source/modules/memories/naive_textual_memory.md134#### Step 3: SortCOMMENT
LOW…n/open_source/modules/memories/naive_textual_memory.md137#### Step 4: Return ResultsCOMMENT
LOW…n/open_source/modules/memories/naive_textual_memory.md206#### Step 2: Initialize Memory ModuleCOMMENT
LOW…n/open_source/modules/memories/naive_textual_memory.md214#### Step 3: Extract and Add MemoriesCOMMENT
LOW…n/open_source/modules/memories/naive_textual_memory.md186#### Step 1: Create ConfigurationCOMMENT
LOW…cs/en/open_source/modules/memories/polardb_graph_db.md101# Step 1: Add NodeCOMMENT
LOW…cs/en/open_source/modules/memories/polardb_graph_db.md116# Step 2: Update NodeCOMMENT
LOW…cs/en/open_source/modules/memories/polardb_graph_db.md129# Step 3: Create RelationshipCOMMENT
LOW…cs/en/open_source/modules/memories/polardb_graph_db.md156# Step 4: Vector SearchCOMMENT
LOW…cs/en/open_source/modules/memories/polardb_graph_db.md172# Step 5: Delete NodeCOMMENT
LOWdocs/en/open_source/modules/memories/neo4j_graph_db.md43# Step 1: Build factory configCOMMENT
LOWdocs/en/open_source/modules/memories/neo4j_graph_db.md56# Step 2: Instantiate the graph storeCOMMENT
LOWdocs/en/open_source/modules/memories/neo4j_graph_db.md59# Step 3: Add memoryCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py39# Step 0: Setup - Load configuration filesCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py57# Step 1: Initialize EmbedderCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py66# Step 2: Initialize Graph StoreCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py75# Step 3: Clean up old mock data (optional)COMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py91# Step 4: Insert mock memories into the graph storeCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py138# Step 5: Define a query and retrieval goalCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py164# Step 6: Perform hybrid retrievalCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py184# Step 7: Display resultsCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py60# Step 0: Setup - Load configuration filesCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py77# Step 1: Initialize EmbedderCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py88# Step 2: Configure Internet Retriever (BochaAI)COMMENT
LOW…asic_modules/textual_memory_internet_search_example.py125# Step 3: Create Retriever InstanceCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py134# Step 4: Perform Web SearchCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py156# Step 5: Display ResultsCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py207# Step 6: Test Google Custom Search API (Optional)COMMENT
LOW…asic_modules/textual_memory_internet_search_example.py294# Step 7: Test Tavily Search API (Optional)COMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py40# Step 0: Setup - Load configuration filesCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py57# Step 1: Initialize LLM for Task ParsingCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py69# Step 2: Define a natural language task/queryCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py79# Step 3: Parse using FAST modeCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py120# Step 4: Parse using FINE modeCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py160# Step 5: Compare ResultsCOMMENT
LOWexamples/basic_modules/neo4j_example.py77 # Step 2: Instantiate the graph storeCOMMENT
LOWexamples/basic_modules/neo4j_example.py81 # Step 3: Create topic nodeCOMMENT
LOWexamples/basic_modules/neo4j_example.py316 # Step 2: Instantiate graph storeCOMMENT
LOWexamples/basic_modules/neo4j_example.py321 # Step 3: Create topic nodeCOMMENT
LOWexamples/basic_modules/neo4j_example.py360 # Step 5: Query and print ALL for verificationCOMMENT
LOWexamples/basic_modules/neo4j_example.py366 # Step 6: Search for alice's data onlyCOMMENT
136 more matches not shown…
Verbosity Indicators160 hits · 276 pts
SeverityFileLineSnippetContext
LOWexamples/basic_modules/tree_textual_memory_recall.py39# Step 0: Setup - Load configuration filesCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py57# Step 1: Initialize EmbedderCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py66# Step 2: Initialize Graph StoreCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py75# Step 3: Clean up old mock data (optional)COMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py91# Step 4: Insert mock memories into the graph storeCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py138# Step 5: Define a query and retrieval goalCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py164# Step 6: Perform hybrid retrievalCOMMENT
LOWexamples/basic_modules/tree_textual_memory_recall.py184# Step 7: Display resultsCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py60# Step 0: Setup - Load configuration filesCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py77# Step 1: Initialize EmbedderCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py88# Step 2: Configure Internet Retriever (BochaAI)COMMENT
LOW…asic_modules/textual_memory_internet_search_example.py125# Step 3: Create Retriever InstanceCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py134# Step 4: Perform Web SearchCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py156# Step 5: Display ResultsCOMMENT
LOW…asic_modules/textual_memory_internet_search_example.py207# Step 6: Test Google Custom Search API (Optional)COMMENT
LOW…asic_modules/textual_memory_internet_search_example.py294# Step 7: Test Tavily Search API (Optional)COMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py40# Step 0: Setup - Load configuration filesCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py57# Step 1: Initialize LLM for Task ParsingCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py69# Step 2: Define a natural language task/queryCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py79# Step 3: Parse using FAST modeCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py120# Step 4: Parse using FINE modeCOMMENT
LOW…/basic_modules/tree_textual_memory_task_goal_parser.py160# Step 5: Compare ResultsCOMMENT
LOWexamples/basic_modules/neo4j_example.py77 # Step 2: Instantiate the graph storeCOMMENT
LOWexamples/basic_modules/neo4j_example.py81 # Step 3: Create topic nodeCOMMENT
LOWexamples/basic_modules/neo4j_example.py316 # Step 2: Instantiate graph storeCOMMENT
LOWexamples/basic_modules/neo4j_example.py321 # Step 3: Create topic nodeCOMMENT
LOWexamples/basic_modules/neo4j_example.py360 # Step 5: Query and print ALL for verificationCOMMENT
LOWexamples/basic_modules/neo4j_example.py366 # Step 6: Search for alice's data onlyCOMMENT
LOWexamples/basic_modules/neo4j_example.py63 # Step 1: Build factory configCOMMENT
LOWexamples/basic_modules/neo4j_example.py111 # Step 4: Define and write concept nodesCOMMENT
LOWexamples/basic_modules/neo4j_example.py183 # Step 5: Write and link concepts to topicCOMMENT
LOWexamples/basic_modules/neo4j_example.py302 # Step 1: Build factory configCOMMENT
LOWexamples/basic_modules/neo4j_example.py337 # Step 4: Add a concept for each userCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py48# Step 0: Setup - Load configuration filesCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py72# Step 1: Initialize EmbedderCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py82# Step 2: Initialize Graph StoreCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py95# Step 3: Initialize LLMCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py108# Step 4: Create Mock Memory NodesCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py234# Step 5: Insert Nodes into Graph StoreCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py245# Step 6: Initialize Relation & Reasoning DetectorCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py258# Step 7: Run Relation Detection & ReasoningCOMMENT
LOW…odules/tree_textual_memory_relation_reason_detector.py278# Step 8: Display ResultsCOMMENT
LOWexamples/mem_cube/dump_cube.py39# Step 1: Initialize serverCOMMENT
LOWexamples/mem_cube/dump_cube.py49# Step 2: Create SingleCubeView with NEW cube_idCOMMENT
LOWexamples/mem_cube/dump_cube.py68# Step 3: Add memories via ViewCOMMENT
LOWexamples/mem_cube/dump_cube.py88# Step 4: Dump ONLY this cube's dataCOMMENT
LOWexamples/mem_cube/load_cube.py35# Step 1: Initialize serverCOMMENT
LOWexamples/mem_cube/load_cube.py45# Step 2: Create SingleCubeViewCOMMENT
LOWexamples/mem_cube/load_cube.py64# Step 3: Load memories from dumpCOMMENT
LOWexamples/mem_cube/load_cube.py90# Step 4: Display loaded memoriesCOMMENT
LOWexamples/mem_cube/load_cube.py105# Step 5: Search loaded memoriesCOMMENT
LOWpackages/memos-core/src/recall/engine.ts45 // Step 1: Gather candidates from FTS, vector search, and pattern searchCOMMENT
LOWpackages/memos-core/src/recall/engine.ts128 // Step 2: RRF fusionCOMMENT
LOWpackages/memos-core/src/recall/engine.ts150 // Step 3: MMR re-rankingCOMMENT
LOWpackages/memos-core/src/recall/engine.ts157 // Step 4: Time decayCOMMENT
LOWpackages/memos-core/src/recall/engine.ts169 // Step 5: Apply relative threshold on raw scores, then normalize to [0,1]COMMENT
LOWpackages/memos-core/src/recall/engine.ts187 // Step 6: Build hits (with optional role filter), applying maxResults cap at the endCOMMENT
LOWevaluation/scripts/run_longbench_v2_eval.sh56# Step 2: SearchCOMMENT
LOWevaluation/scripts/run_longbench_v2_eval.sh73# Step 3: Response GenerationCOMMENT
LOWevaluation/scripts/run_longbench_v2_eval.sh88# Step 4: Metrics CalculationCOMMENT
100 more matches not shown…
Deep Nesting298 hits · 244 pts
SeverityFileLineSnippetContext
LOWtests/utils.py101CODE
LOWtests/mem_tools/test_thread_safe_dict.py165CODE
LOWtests/mem_tools/test_thread_safe_dict.py178CODE
LOWtests/memories/textual/test_tree_searcher.py41CODE
LOWtests/memories/textual/test_tree_searcher.py54CODE
LOWexamples/core_memories/kv_cache_memory.py10CODE
LOWexamples/mem_scheduler/memos_w_scheduler.py112CODE
LOWexamples/api/server_router_api.py595CODE
LOWexamples/mem_reader/parser_demos/demo_user.py13CODE
LOWexamples/mem_reader/parser_demos/demo_multi_modal.py19CODE
LOWexamples/mem_reader/parser_demos/demo_image.py18CODE
LOWexamples/mem_reader/runners/run_multimodal.py25CODE
LOWevaluation/scripts/locomo/locomo_search.py186CODE
LOWevaluation/scripts/locomo/locomo_search.py236CODE
LOWevaluation/scripts/locomo/locomo_metric.py50CODE
LOWevaluation/scripts/locomo/utils.py1CODE
LOWevaluation/scripts/locomo/locomo_eval.py294CODE
LOWevaluation/scripts/locomo/locomo_ingestion.py22CODE
LOWevaluation/scripts/locomo/locomo_ingestion.py91CODE
LOWevaluation/scripts/locomo/locomo_rag.py262CODE
LOWevaluation/scripts/locomo/locomo_rag.py46CODE
LOWevaluation/scripts/PrefEval/pref_zep.py177CODE
LOWevaluation/scripts/PrefEval/pref_memobase.py30CODE
LOWevaluation/scripts/PrefEval/pref_memobase.py182CODE
LOWevaluation/scripts/PrefEval/pref_supermemory.py171CODE
LOWevaluation/scripts/PrefEval/pref_memu.py176CODE
LOWevaluation/scripts/PrefEval/pref_memos.py177CODE
LOWevaluation/scripts/PrefEval/prefeval_preprocess.py63CODE
LOWevaluation/scripts/PrefEval/pref_eval.py181CODE
LOWevaluation/scripts/PrefEval/pref_eval.py307CODE
LOWevaluation/scripts/PrefEval/pref_mem0.py175CODE
LOWevaluation/scripts/utils/client.py58CODE
LOWevaluation/scripts/utils/client.py103CODE
LOWevaluation/scripts/utils/client.py203CODE
LOWevaluation/scripts/utils/client.py228CODE
LOWevaluation/scripts/personamem/pm_ingestion.py17CODE
LOWevaluation/scripts/personamem/pm_ingestion.py124CODE
LOWevaluation/scripts/personamem/pm_search.py174CODE
LOWevaluation/scripts/personamem/pm_search.py279CODE
LOW…uation/scripts/long_bench-v2/longbench_v2_ingestion.py83CODE
LOW…uation/scripts/long_bench-v2/longbench_v2_responses.py59CODE
LOW…uation/scripts/long_bench-v2/longbench_v2_responses.py194CODE
LOWevaluation/scripts/long_bench-v2/longbench_v2_search.py23CODE
LOWevaluation/scripts/long_bench-v2/longbench_v2_search.py123CODE
LOWevaluation/scripts/longmemeval/lme_eval.py257CODE
LOWevaluation/scripts/longmemeval/lme_search.py80CODE
LOWevaluation/scripts/longmemeval/lme_rag.py98CODE
LOWevaluation/scripts/longmemeval/lme_rag.py221CODE
LOWevaluation/scripts/longmemeval/lme_ingestion.py16CODE
LOWevaluation/scripts/longmemeval/lme_ingestion.py63CODE
LOW…/memos-local-plugin/tests/python/test_bridge_client.py91CODE
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py55CODE
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py268CODE
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py399CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py349CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py761CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py897CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py1018CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py1390CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py1939CODE
238 more matches not shown…
Cross-Language Confusion43 hits · 228 pts
SeverityFileLineSnippetContext
HIGHtests/mem_scheduler/test_config.py397 f.write('{"description": "Hello \\"World\\"", "empty": null}')CODE
HIGHtests/llms/test_ollama.py16 mock_response.model_dump_json.return_value = '{"model":"qwen3:0.6b","created_at":"2025-05-13T18:07:04.508998134ZCODE
HIGHtests/llms/test_ollama.py56 mock_response.model_dump_json.return_value = '{"model":"qwen3:0.6b","created_at":"2025-05-13T18:07:04.508998134ZCODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5125 'ageCategory.equals("adult") ? characterAttributes[2] : "none";\n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5127 'ageCategory.equals("adult") ? characterAttributes[3] : 'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5137 'int professionIndex = ageCategory.equals("adult") ? 2 : -1; \n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5138 'int genderIndex = ageCategory.equals("adult") ? 3 : 2;\n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5465 " Scenario scenario = null;\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5466 " Location rescuedLocation = null;\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5472 " while ((currentLine = reader.readLine()) != null) {\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5015 'if (characterType.equals("human")) {\n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5031 '(characterType.equals("animal")) {\n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5050 'if (characterType.equals("human")) {\n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5061 ' if (!profession.equals("NONE")) {\n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5072 '} else if (characterType.equals("animal")) {\n'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5186 'int professionIndex = ageCategory.equals("adult") ? 'CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5302 " return null; \n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5318 " return null; \n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5333 " return null; \n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5344 "if (location != null) {\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5443 " if (logFilePath == null) {\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5451 " if (!file.exists() || file.length() == 0) {\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py5615 "location.equals(selectedLocation);\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py8048 " errorNumber?: number | undefined;\n"CODE
HIGHevaluation/scripts/PrefEval/irrelevant_conv.py8051 " slices?: Slice[] | undefined;\n"CODE
HIGH…lugin/adapters/hermes/memos_provider/daemon_manager.py340 log_handle.close() # type: ignore[possibly-undefined]CODE
HIGHsrc/memos/graph_dbs/postgres.py746 SELECT e.source_id, e.target_id, p.nodes || e.source_id, p.depth + 1CODE
HIGHsrc/memos/graph_dbs/postgres.py751 SELECT nodes || target_id as full_pathCODE
HIGHsrc/memos/templates/mem_scheduler_prompts.py389- Be conservative: if there's any doubt about completeness, return trueCODE
HIGHsrc/memos/templates/prefer_complete_prompt.py657 "new_preference": null,CODE
HIGHsrc/memos/templates/prefer_complete_prompt.py658 "new_context_summary": null,CODE
HIGHsrc/memos/templates/prefer_complete_prompt.py685 "old_preference": null,CODE
HIGHsrc/memos/templates/prefer_complete_prompt.py686 "old_context_summary": null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py15 "doc_scope": "[Extracted specific file or document description]" | "NONE" | null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py16 "original": "[Extracted original word or phrase A]" | null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py46 "doc_scope": null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py47 "original": null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py72 "doc_scope": "[提取的具体文件或文档描述]" | "NONE" | null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py73 "original": "[提取的原始词或短语A]" | null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py104 "doc_scope": null,CODE
HIGHsrc/memos/templates/mem_feedback_prompts.py105 "original": null,CODE
HIGH…s/mem_reader/read_skill_memory/process_skill_memory.py434 "[PROCESS_SKILLS] No skill memory extracted from conversation (LLM returned null)"CODE
HIGH…s/mem_reader/read_skill_memory/process_skill_memory.py562 "[PROCESS_SKILLS] No skill memory extracted from conversation (LLM returned null)"CODE
Unused Imports211 hits · 208 pts
SeverityFileLineSnippetContext
LOWtests/plugins/test_plugin_component_init.py1CODE
LOWtests/graph_dbs/test_neo4j_vector_search.py265CODE
LOWtests/api/test_scheduler_handler_allstatus.py13CODE
LOWtests/dream/test_heuristic_enricher.py1CODE
LOWtests/dream/test_contextualization.py1CODE
LOWtests/dream/test_diary_pipeline.py1CODE
LOWtests/dream/test_context_recall.py1CODE
LOWtests/dream/test_diary_router.py1CODE
LOWexamples/dream/full_pipeline_example.py12CODE
LOW…l-plugin/tests/python/test_bridge_script_resolution.py11CODE
LOW…l-plugin/tests/python/test_hermes_provider_pipeline.py8CODE
LOW…/memos-local-plugin/tests/python/test_bridge_client.py11CODE
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py17CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py46CODE
LOW…plugin/adapters/hermes/memos_provider/bridge_client.py13CODE
LOWsrc/memos/__init__.py3CODE
LOWsrc/memos/__init__.py4CODE
LOWsrc/memos/__init__.py5CODE
LOWsrc/memos/__init__.py6CODE
LOWsrc/memos/__init__.py7CODE
LOWsrc/memos/__init__.py8CODE
LOWsrc/memos/__init__.py9CODE
LOWsrc/memos/reranker/http_bge.py2CODE
LOWsrc/memos/reranker/http_bge_strategy.py2CODE
LOWsrc/memos/reranker/__init__.py1CODE
LOWsrc/memos/reranker/cosine_local.py2CODE
LOWsrc/memos/reranker/factory.py2CODE
LOWsrc/memos/reranker/noop.py1CODE
LOWsrc/memos/reranker/base.py2CODE
LOWsrc/memos/reranker/strategies/singleturn_outmem.py2CODE
LOWsrc/memos/reranker/strategies/concat_docsource.py2CODE
LOWsrc/memos/reranker/strategies/__init__.py1CODE
LOWsrc/memos/reranker/strategies/factory.py2CODE
LOWsrc/memos/reranker/strategies/single_turn.py2CODE
LOWsrc/memos/reranker/strategies/concat_background.py2CODE
LOWsrc/memos/reranker/strategies/dialogue_common.py1CODE
LOWsrc/memos/multi_mem_cube/single_cube.py1CODE
LOWsrc/memos/multi_mem_cube/composite_cube.py1CODE
LOWsrc/memos/multi_mem_cube/views.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOWsrc/memos/types/__init__.py1CODE
LOW…completion_types/chat_completion_user_message_param.py3CODE
LOW…completion_types/chat_completion_content_part_param.py1CODE
LOW…chat_completion_types/chat_completion_message_param.py1CODE
LOW…types/chat_completion_message_tool_call_union_param.py1CODE
LOW…es/chat_completion_message_function_tool_call_param.py1CODE
LOW…ypes/chat_completion_message_custom_tool_call_param.py1CODE
LOW…c/memos/types/openai_chat_completion_types/__init__.py3CODE
151 more matches not shown…
Docstring Block Structure36 hits · 180 pts
SeverityFileLineSnippetContext
HIGHsrc/memos/dependency.py12Check if a package is available and provide installation hints on import failure. Args: import_name (str): STRING
HIGHsrc/memos/graph_dbs/neo4j_community.py307 Retrieve node IDs based on vector similarity using external vector DB. Args: vector (list[STRING
HIGHsrc/memos/graph_dbs/neo4j_community.py739 Retrieve node IDs that match given metadata filters. Supports exact match. Args: filteSTRING
HIGHsrc/memos/graph_dbs/polardb.py911 Retrieve the metadata and memory of a list of nodes. Args: ids: List of Node identifier. STRING
HIGHsrc/memos/graph_dbs/neo4j.py567 Retrieve the metadata and memory of a list of nodes. Args: ids: List of Node identifier. STRING
HIGHsrc/memos/graph_dbs/neo4j.py854 Retrieve node IDs based on vector similarity. Args: vector (list[float]): The embedding veSTRING
HIGHsrc/memos/graph_dbs/neo4j.py1028 TODO: 1. ADD logic: "AND" vs "OR"(support logic combination); 2. Support nested conditional expSTRING
HIGHsrc/memos/graph_dbs/base.py173 Retrieve node IDs based on vector similarity. Args: vector (list[float]): The embedding veSTRING
HIGHsrc/memos/graph_dbs/base.py197 Retrieve node IDs that match given metadata filters. Args: filters (dict[str, Any]): A dicSTRING
HIGHsrc/memos/configs/mem_scheduler.py268 Load configuration from either a YAML or JSON file based on file extension. Automatically detects fileSTRING
HIGH…emos/mem_scheduler/task_schedule_modules/dispatcher.py391 Get a copy of currently running tasks, optionally filtered by a custom function. Args: filSTRING
HIGH…emos/mem_scheduler/task_schedule_modules/dispatcher.py737 Execute multiple tasks concurrently and return all results. Args: tasks: Dictionary mappinSTRING
HIGHsrc/memos/mem_scheduler/general_modules/misc.py238Get items from the queue. Args: block: Whether to block if no items are available (default: True) STRING
HIGHsrc/memos/mem_scheduler/general_modules/task_threads.py97 Run multiple tasks concurrently and return all results. Args: tasks: Dictionary mapping taSTRING
HIGHsrc/memos/mem_scheduler/general_modules/task_threads.py185 Execute multiple tasks using ThreadPoolExecutor. Args: tasks: Dictionary mapping task nameSTRING
HIGHsrc/memos/mem_scheduler/utils/misc_utils.py32 Safely extracts JSON from LLM response text with robust error handling. Args: text: Raw text response STRING
HIGHsrc/memos/mem_scheduler/orm_modules/api_redis_model.py404Load Redis connection from environment variables Args: env_file_path: Path to .env file (optional, STRING
HIGHsrc/memos/mem_scheduler/orm_modules/base_model.py642Load MySQL engine from environment variables Args: env_file_path: Path to .env file (optional, defaSTRING
HIGH…/mem_scheduler/memory_manage_modules/search_service.py70 Search for memories across both LongTermMemory and UserMemory. This method provides a unified interfacSTRING
HIGHsrc/memos/api/handlers/chat_handler.py106 Chat with MemOS for chat complete response (non-streaming). Args: chat_req: Chat complete STRING
HIGHsrc/memos/api/handlers/chat_handler.py241 Chat with MemOS via Server-Sent Events (SSE) stream for chat stream response. Args: chat_rSTRING
HIGHsrc/memos/api/handlers/chat_handler.py426 Chat with MemOS via Server-Sent Events (SSE) stream for playground chat stream response. Args: STRING
HIGHsrc/memos/api/handlers/scheduler_handler.py225 Get scheduler running status for one or all tasks of a user. Retrieves task statuses from the persistent TaskSSTRING
HIGHsrc/memos/api/handlers/scheduler_handler.py381 Wait until the scheduler is idle for a specific user. Blocks and polls the new /scheduler/status endpoint untiSTRING
HIGHsrc/memos/api/handlers/cube_handler.py36Create a new memory cube for a user. Args: request: Cube creation request Returns: STRING
HIGHsrc/memos/api/handlers/cube_handler.py80Register an existing memory cube with the system. Note: This endpoint currently validates the request but the aSTRING
HIGHsrc/memos/mem_reader/simple_struct.py488 Extract and classify memory content from scene_data. For dictionaries: Use LLM to summarize pairs of Q&STRING
HIGHsrc/memos/mem_user/persistent_factory.py22Create a persistent user manager instance from configuration. Args: config_factory: Configuration fSTRING
HIGHsrc/memos/mem_user/user_manager.py152Create a new user. Args: user_name (str): Name of the user. role (UserRole): Role of thSTRING
HIGHsrc/memos/mem_user/user_manager.py248Create a new cube. Args: cube_name (str): Name of the cube. owner_id (str): ID of the cSTRING
HIGHsrc/memos/mem_user/factory.py20Create a user manager instance from configuration. Args: config_factory: Configuration factory contSTRING
HIGHsrc/memos/mem_user/mysql_user_manager.py166Create a new user. Args: user_name (str): Name of the user. role (UserRole): Role of thSTRING
HIGHsrc/memos/mem_user/mysql_user_manager.py262Create a new cube. Args: cube_name (str): Name of the cube. owner_id (str): ID of the cSTRING
HIGHsrc/memos/mem_user/mysql_persistent_user_manager.py223Create a new user with configuration. Args: user_name (str): Name of the user. config (STRING
HIGHsrc/memos/mem_user/persistent_user_manager.py212Create a new user with configuration. Args: user_name (str): Name of the user. config (STRING
HIGHsrc/memos/mem_os/utils/format_utils.py1394 Remove markdown JSON code block formatting from LLM response. Args: response: Raw response string thatSTRING
Self-Referential Comments54 hits · 162 pts
SeverityFileLineSnippetContext
MEDIUMtests/mem_scheduler/test_version_control.py213 # Create a new manager instance to load the dataCOMMENT
MEDIUMtests/mem_scheduler/test_scheduler.py178 # Create a mock DynamicCache with layers attributeCOMMENT
MEDIUMtests/mem_scheduler/test_scheduler.py236 # Create a real DynamicCache instanceCOMMENT
MEDIUMtests/mem_scheduler/test_dispatcher.py158 # Create a new dispatcher with parallel dispatch disabledCOMMENT
MEDIUMtests/mem_scheduler/test_dispatcher.py229 # Create a fast task and a slow taskCOMMENT
MEDIUMtests/mem_scheduler/test_dispatcher.py357 # Create a stuck task with messagesCOMMENT
MEDIUMtests/llms/test_openai.py50 # Create a mock response chunk with a simulated delta dictionaryCOMMENT
MEDIUMtests/llms/test_openai.py66 # Create the LLM config with think prefix enabledCOMMENT
MEDIUMtests/llms/test_minimax.py54 # Create a simulated stream chunk with delta fieldsCOMMENT
MEDIUMtests/llms/test_hf.py101 # Create a DynamicCache that's compatible with both old and new transformers versionsCOMMENT
MEDIUMtests/llms/test_deepseek.py54 # Create a simulated stream chunk with delta fieldsCOMMENT
MEDIUMtests/mem_reader/test_memory.py202 # Create a mock LLMCOMMENT
MEDIUMtests/mem_reader/test_memory.py231 # Create a mock LLMCOMMENT
MEDIUMtests/mem_cube/test_general.py42 # Create the GeneralMemCube instanceCOMMENT
MEDIUMtests/memories/activation/test_kv.py37 # Create a DynamicCache with at least one dummy tensor layerCOMMENT
MEDIUMtests/memories/textual/test_naive.py248 # Create a new memory instance and load the dumped dataCOMMENT
MEDIUMexamples/core_memories/general_textual_memory.py45# Create the memory instance from the configurationCOMMENT
MEDIUMexamples/core_memories/tree_textual_memory.py20# Create a memory reader instanceCOMMENT
MEDIUMexamples/basic_modules/chunker.py6 # Create a config factory with sentence chunker backendCOMMENT
MEDIUMexamples/basic_modules/chunker.py17 # Create a chunker using the factoryCOMMENT
MEDIUMexamples/basic_modules/tree_textual_memory_recall.py119 # Create a TextualMemoryItem with metadataCOMMENT
MEDIUM…asic_modules/textual_memory_internet_search_example.py138# Define the search queryCOMMENT
MEDIUMexamples/mem_scheduler/run_async_tasks.py29# Define a handler functionCOMMENT
MEDIUMexamples/mem_scheduler/run_async_tasks.py33 # Create a file named by task_id (use item_id as numeric id 0..99)COMMENT
MEDIUMevaluation/scripts/run_prefeval_eval.sh22# Create a directory name based on the *specific* LIB (e.g., "memos")COMMENT
MEDIUMevaluation/scripts/locomo/locomo_metric.py248 ) # Create a list of keys firstCODE
MEDIUMevaluation/scripts/locomo/locomo_metric.py304 # Create a combined data structure for metrics and category scoresCOMMENT
MEDIUMevaluation/scripts/locomo/locomo_metric.py355 # Create a pandas Excel writerCOMMENT
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py7120 "fig,ax = plt.subplots(1,1,figsize=(8,3)) # Create a figure and "CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py7192 "# Create a figure and axes object \n"CODE
MEDIUMevaluation/scripts/personamem/pm_metric.py62 # Initialize statistics variablesCOMMENT
MEDIUMapps/memos-local-plugin/templates/config.demo.yaml3# This file is INTENTIONALLY NOT installed by `install.sh`.COMMENT
MEDIUMsrc/memos/context/context.py225 # Create a new RequestContext with the main thread's trace_idCOMMENT
MEDIUMsrc/memos/graph_dbs/polardb.py996 # Create a simple edge table to store relationships (if not exists)STRING
MEDIUMsrc/memos/memos_tools/lockfree_dict.py37 # Create a new dictionary with the updateCOMMENT
MEDIUM…mos/mem_scheduler/task_schedule_modules/local_queue.py93 # Create the queue if it doesn't exist yetCOMMENT
MEDIUMsrc/memos/mem_scheduler/general_modules/task_threads.py58 # Create a stop flag for this taskCOMMENT
MEDIUMsrc/memos/mem_scheduler/orm_modules/redis_model.py304 # Create a mapping of existing memories by their mapping keyCOMMENT
MEDIUMsrc/memos/mem_scheduler/orm_modules/api_redis_model.py210 # Create a new merged manager with the original window size from obj_instanceCOMMENT
MEDIUMsrc/memos/mem_scheduler/orm_modules/base_model.py153 # Create a temporary table definition without indexesCOMMENT
MEDIUMsrc/memos/mem_scheduler/analyzer/api_analyzer.py357 # Import necessary modulesCOMMENT
MEDIUM…memos/mem_scheduler/analyzer/mos_for_test_scheduler.py20 """This class is only to test abilities of mem scheduler with enhanced monitoring"""STRING
MEDIUMsrc/memos/mem_scheduler/analyzer/eval_analyzer.py104 # Create a mapping from query to search contextCOMMENT
MEDIUMsrc/memos/llms/hf_singleton.py68 # Create a unique key based on model path and key parametersCOMMENT
MEDIUMsrc/memos/mem_reader/multi_modal_struct.py154 # Create a new memory item for each chunk, preserving original metadataCOMMENT
MEDIUMsrc/memos/mem_reader/multi_modal_struct.py211 # Create a list to hold futures with their original indexCOMMENT
MEDIUM…s/mem_reader/read_skill_memory/process_skill_memory.py284 # Create a tuple for deduplicationCOMMENT
MEDIUM…s/mem_reader/read_skill_memory/process_skill_memory.py1141 # Create a mapping from old_memory_id to old memory for easy lookupSTRING
MEDIUMsrc/memos/mem_reader/read_multi_modal/utils.py118# Initialize parser instanceCOMMENT
MEDIUMsrc/memos/memories/activation/vllmkv.py47 # Create a VLLMKVCacheItem with the extracted promptCOMMENT
MEDIUMsrc/memos/memories/activation/kv.py46 # Create a KVCacheItem with the extracted cacheCOMMENT
MEDIUMsrc/memos/memories/textual/naive.py86 # Create a TextualMemoryItem with properly structured metadataCOMMENT
MEDIUM…emos/memories/textual/prefer_text_memory/retrievers.py92 info = info.copy() # Create a copy to avoid modifying the originalCODE
MEDIUMsrc/memos/mem_os/main.py364 # Create a temporary LLM instance for decompositionCOMMENT
Redundant / Tautological Comments103 hits · 152 pts
SeverityFileLineSnippetContext
LOWtests/utils.py127 # Check if the class is a subclass of BaseModelCOMMENT
LOWtests/mem_scheduler/test_scheduler.py239 # Check if it has layers attribute (may vary by transformers version)COMMENT
LOWtests/mem_scheduler/test_dispatcher.py222 # Check if each message existsCOMMENT
LOWtests/mem_reader/test_memory.py65 # Check if the batch was added correctlyCOMMENT
LOWtests/mem_reader/test_memory.py111 # Check if the document chunk group was added correctlyCOMMENT
LOWtests/mem_reader/test_memory.py156 # Check if the section summary was generated correctlyCOMMENT
LOWtests/mem_reader/test_memory.py183 # Check if the section summary was generated correctlyCOMMENT
LOWtests/mem_reader/test_memory.py212 # Check if the section summary was generated correctly using the LLMCOMMENT
LOWtests/mem_reader/test_memory.py241 # Check if the section summary was generated correctly using the LLMCOMMENT
LOWtests/mem_os/test_memos_core.py648 assert "I like playing football" in system_prompt # Check if memory is interpolatedCODE
LOWexamples/mem_reader/parser_demos/demo_multi_modal.py202 # Check if parser was foundCOMMENT
LOWexamples/extras/nli_e2e_example.py42 # Check if docs endpoint is accessibleCOMMENT
LOWevaluation/scripts/run_prefeval_eval.sh63# Check if the last command executed successfullyCOMMENT
LOWevaluation/scripts/run_prefeval_eval.sh78# Check if the *mapped* script existsCOMMENT
LOWevaluation/scripts/locomo/locomo_metric.py365# Output the result to a fileCOMMENT
LOWevaluation/scripts/locomo/utils.py7 # Check if it's the new data structure (list of TextualMemoryItem objects)COMMENT
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py490 # Check if process exists (signal 0 doesn't actually send a signal)COMMENT
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py505 # Check if process exists firstCOMMENT
LOW…-integration/apps/desktop/skills/dev-browser/server.sh19# Check if node_modules exists - only install in dev mode if missingCOMMENT
LOWsrc/memos/deprecation.py169 # Check if deprecated parameter is usedCOMMENT
LOWsrc/memos/graph_dbs/neo4j_community.py505 # Check if it's a simple date format (YYYY-MM-DD)STRING
LOWsrc/memos/graph_dbs/neo4j_community.py600 # Check if this is a date fieldSTRING
LOWsrc/memos/graph_dbs/neo4j_community.py610 # Check if it's a simple date format (YYYY-MM-DD)STRING
LOWsrc/memos/graph_dbs/neo4j_community.py843 # Check if value is a dict with comparison operators (gt, lt, gte, lte)STRING
LOWsrc/memos/graph_dbs/neo4j_community.py857 # Check if field is a date field (created_at, updated_at, etc.)STRING
LOWsrc/memos/graph_dbs/neo4j_community.py994 # Check if this file_id is in the file_ids array fieldSTRING
LOWsrc/memos/graph_dbs/polardb.py4099 # Check if key is an array fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4102 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4105 # Check if info field is an array fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4313 # Check if value is a dict with comparison operators (gt, lt, gte, lte, =, contains)COMMENT
LOWsrc/memos/graph_dbs/polardb.py4322 # Check if key is a datetime fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4327 # Check if key starts with "info." prefix (for nested fields like info.A, info.B)COMMENT
LOWsrc/memos/graph_dbs/polardb.py4485 # Check if key is an array fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4488 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4491 # Check if info field is an array fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py3949 # Check if value is a dict with comparison operators (gt, lt, gte, lte, =, contains, in, like)COMMENT
LOWsrc/memos/graph_dbs/polardb.py3960 # Check if key is a datetime fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py3965 # Check if key starts with "info." prefix (for nested fields like info.A, info.B)COMMENT
LOWsrc/memos/graph_dbs/polardb.py4005 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4072 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4221 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4242 # Check if key starts with "info." prefix (for simple equality)COMMENT
LOWsrc/memos/graph_dbs/polardb.py4373 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4458 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4594 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4657 # Check if key starts with "info." prefix (for simple equality)COMMENT
LOWsrc/memos/graph_dbs/neo4j.py1780 # Check if value is a dict with comparison operators (gt, lt, gte, lte, contains, in, like)STRING
LOWsrc/memos/graph_dbs/neo4j.py1794 # Check if field is a date field (created_at, updated_at, etc.)STRING
LOWsrc/memos/graph_dbs/neo4j.py1970 # Check if this file_id is in the file_ids array fieldSTRING
LOWsrc/memos/memos_tools/thread_safe_dict_segment.py31 # Check if writers are starvingCOMMENT
LOW…mos/mem_scheduler/task_schedule_modules/redis_queue.py504 # Check if it's a "consumer group already exists" errorCOMMENT
LOWsrc/memos/mem_scheduler/monitors/dispatcher_monitor.py179 # Check if executor is shutdownCOMMENT
LOWsrc/memos/mem_scheduler/monitors/dispatcher_monitor.py216 # Check if stuck task count exceeds toleranceCOMMENT
LOWsrc/memos/mem_scheduler/monitors/dispatcher_monitor.py232 # Check if threads are stuck (no activity for specified intervals)COMMENT
LOWsrc/memos/mem_scheduler/general_modules/api_misc.py59 # Check if entry with item_id already existsCOMMENT
LOWsrc/memos/mem_scheduler/general_modules/task_threads.py205 # Check if executor is shutdown before using itCOMMENT
LOWsrc/memos/mem_scheduler/general_modules/task_threads.py309 # Return the resultCOMMENT
LOWsrc/memos/mem_scheduler/utils/config_utils.py65 # Check if input file existsCOMMENT
LOWsrc/memos/mem_scheduler/orm_modules/redis_model.py472 # Check if this is the first sync or if we need to mergeCOMMENT
LOWsrc/memos/mem_scheduler/orm_modules/base_model.py220 # Check if lock is currently held and not expiredCOMMENT
43 more matches not shown…
Magic Placeholder Names24 hits · 130 pts
SeverityFileLineSnippetContext
HIGHtests/embedders/test_ark.py21 "api_key": "your-api-key",CODE
HIGHtests/embedders/test_ark.py48 "api_key": "your-api-key",CODE
HIGH…n/open_source/best_practice/common_errors_solutions.md82 "api_key": "your-api-key",CODE
HIGHdocs/cn/open_source/modules/mos/memos_neo.md13export OPENAI_API_KEY="sk-your-api-key-here"CODE
HIGHdocs/cn/open_source/modules/mos/memos_neo.md40os.environ["OPENAI_API_KEY"] = "sk-your-api-key"CODE
HIGH…n/open_source/modules/memories/naive_textual_memory.md200 "api_key": "your-api-key",CODE
HIGH…n/open_source/modules/memories/naive_textual_memory.md256 "api_key": "your-api-key",CODE
HIGH…cn/open_source/modules/memories/tree_textual_memory.md192 "api_key": "your-api-key"CODE
HIGH…cn/open_source/modules/memories/tree_textual_memory.md199 "api_key": "your-api-key"CODE
HIGH…cn/open_source/modules/memories/tree_textual_memory.md213 "api_key": "your-api-key"CODE
HIGH…n/open_source/best_practice/common_errors_solutions.md14 "api_key": "your-api-key",CODE
HIGHdocs/en/open_source/modules/mos/memos_neo.md13export OPENAI_API_KEY="sk-your-api-key-here"CODE
HIGHdocs/en/open_source/modules/mos/memos_neo.md40os.environ["OPENAI_API_KEY"] = "sk-your-api-key"CODE
HIGH…n/open_source/modules/memories/naive_textual_memory.md198 "api_key": "your-api-key",CODE
HIGH…n/open_source/modules/memories/naive_textual_memory.md254 "api_key": "your-api-key",CODE
HIGH…en/open_source/modules/memories/tree_textual_memory.md190 "api_key": "your-api-key"CODE
HIGH…en/open_source/modules/memories/tree_textual_memory.md197 "api_key": "your-api-key"CODE
HIGH…en/open_source/modules/memories/tree_textual_memory.md211 "api_key": "your-api-key"CODE
HIGHdocs/en/open_source/getting_started/installation.md517 "api_key": "YOUR_API_KEY"CODE
HIGHapps/MemOS-Cloud-OpenClaw-Plugin/README.md125 "apiKey": "YOUR_API_KEY",CODE
HIGHapps/MemOS-Cloud-OpenClaw-Plugin/README_ZH.md127 "apiKey": "YOUR_API_KEY",CODE
HIGHsrc/memos/api/config.py295 "api_key": os.getenv("OPENAI_API_KEY", "your-api-key-here"),CODE
HIGHsrc/memos/api/config.py319 "api_key": os.getenv("MINIMAX_API_KEY", "your-api-key-here"),CODE
HIGHsrc/memos/mem_os/main.py97 export OPENAI_API_KEY="your-api-key"STRING
Modern Structural Boilerplate70 hits · 68 pts
SeverityFileLineSnippetContext
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py34logger = logging.getLogger(__name__)CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py90logger = logging.getLogger(__name__)CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py2189__all__ = ["PLUGIN_ID", "PLUGIN_VERSION", "MemTensorProvider", "register"]CODE
LOW…plugin/adapters/hermes/memos_provider/bridge_client.py31logger = logging.getLogger(__name__)CODE
LOWsrc/memos/__init__.py12__all__ = [CODE
LOWsrc/memos/reranker/__init__.py4__all__ = ["RerankerFactory"]CODE
LOWsrc/memos/reranker/strategies/__init__.py4__all__ = ["RerankerStrategyFactory"]CODE
LOWsrc/memos/types/__init__.py19__all__ = [CODE
LOWsrc/memos/types/general_types.py27__all__ = [CODE
LOW…completion_types/chat_completion_user_message_param.py12__all__ = ["ChatCompletionUserMessageParam"]CODE
LOW…completion_types/chat_completion_content_part_param.py12__all__ = ["ChatCompletionContentPartParam", "File", "FileFile"]CODE
LOW…chat_completion_types/chat_completion_message_param.py11__all__ = ["ChatCompletionMessageParam"]CODE
LOW…types/chat_completion_message_tool_call_union_param.py11__all__ = ["ChatCompletionMessageToolCallUnionParam"]CODE
LOW…es/chat_completion_message_function_tool_call_param.py8__all__ = ["ChatCompletionMessageFunctionToolCallParam", "Function"]CODE
LOW…ypes/chat_completion_message_custom_tool_call_param.py8__all__ = ["ChatCompletionMessageCustomToolCallParam", "Custom"]CODE
LOW…etion_types/chat_completion_assistant_message_param.py14__all__ = ["Audio", "ChatCompletionAssistantMessageParam", "ContentArrayOfContentPart"]CODE
LOW…etion_types/chat_completion_content_part_text_param.py8__all__ = ["ChatCompletionContentPartTextParam"]CODE
LOW…tion_types/chat_completion_content_part_image_param.py8__all__ = ["ChatCompletionContentPartImageParam", "ImageURL"]CODE
LOW…completion_types/chat_completion_tool_message_param.py12__all__ = ["ChatCompletionToolMessageParam"]CODE
LOW…ypes/chat_completion_content_part_input_audio_param.py8__all__ = ["ChatCompletionContentPartInputAudioParam", "InputAudio"]CODE
LOW…on_types/chat_completion_content_part_refusal_param.py8__all__ = ["ChatCompletionContentPartRefusalParam"]CODE
LOW…mpletion_types/chat_completion_system_message_param.py12__all__ = ["ChatCompletionSystemMessageParam"]CODE
LOWsrc/memos/context/context.py91def set_request_context(context: RequestContext | None) -> None:CODE
LOWsrc/memos/context/context.py328def set_trace_id_getter(getter: TraceIdGetter) -> None:CODE
LOWsrc/memos/plugins/hooks.py17logger = logging.getLogger(__name__)CODE
LOWsrc/memos/plugins/__init__.py7__all__ = [CODE
LOWsrc/memos/plugins/hook_defs.py16logger = logging.getLogger(__name__)CODE
LOWsrc/memos/plugins/manager.py17logger = logging.getLogger(__name__)CODE
LOWsrc/memos/chunkers/__init__.py4__all__ = ["ChunkerFactory"]CODE
LOWsrc/memos/graph_dbs/polardb.py496 def update_node(self, id: str, fields: dict[str, Any], user_name: str | None = None) -> None:STRING
LOWsrc/memos/graph_dbs/neo4j.py382 def update_node(self, id: str, fields: dict[str, Any], user_name: str | None = None) -> None:STRING
LOWsrc/memos/graph_dbs/postgres.py314 def update_node(self, id: str, fields: dict[str, Any], user_name: str | None = None) -> None:CODE
LOWsrc/memos/graph_dbs/base.py45 def update_node(self, id: str, fields: dict[str, Any], user_name: str | None = None) -> None:CODE
LOWsrc/memos/memos_tools/notification_utils.py12logger = logging.getLogger(__name__)CODE
LOWsrc/memos/memos_tools/notification_service.py10logger = logging.getLogger(__name__)CODE
LOWsrc/memos/search/__init__.py9__all__ = [CODE
LOW…emos/mem_scheduler/task_schedule_modules/task_queue.py58 def set_status_tracker(self, status_tracker: TaskStatusTracker) -> None:CODE
LOW…m_scheduler/task_schedule_modules/handlers/__init__.py8__all__ = [CODE
LOWsrc/memos/mem_scheduler/base_mixins/__init__.py6__all__ = [CODE
LOW…/memos/mem_scheduler/memory_manage_modules/__init__.py5__all__ = ["MemoryFilter", "SchedulerRetriever"]CODE
LOWsrc/memos/api/config.py28logger = logging.getLogger(__name__)CODE
LOWsrc/memos/api/config.py31def _update_env_from_dict(data: dict[str, Any]) -> None:CODE
LOWsrc/memos/api/server_api_ext.py45logger = logging.getLogger(__name__)CODE
LOWsrc/memos/api/server_api.py21logger = logging.getLogger(__name__)CODE
LOWsrc/memos/api/exceptions.py8logger = logging.getLogger(__name__)CODE
LOWsrc/memos/api/middleware/__init__.py7__all__ = [CODE
LOWsrc/memos/api/context/dependencies.py6logger = logging.getLogger(__name__)CODE
LOWsrc/memos/api/handlers/__init__.py39__all__ = [CODE
LOWsrc/memos/api/handlers/formatters_handler.py16__all__ = [CODE
LOWsrc/memos/mem_reader/simple_struct.py214 def set_graph_db(self, graph_db: "BaseGraphDB | None") -> None:CODE
LOWsrc/memos/mem_reader/simple_struct.py217 def set_searcher(self, searcher: "Searcher | None") -> None:CODE
LOWsrc/memos/mem_reader/base.py25 def set_graph_db(self, graph_db: "BaseGraphDB | None") -> None:CODE
LOWsrc/memos/mem_reader/base.py38 def set_searcher(self, searcher: "Searcher | None") -> None:CODE
LOWsrc/memos/mem_reader/read_multi_modal/__init__.py29__all__ = [CODE
LOWsrc/memos/mem_cube/utils.py9logger = logging.getLogger(__name__)CODE
LOWsrc/memos/dream/enrichment.py158 def _set_if_missing(self, target: dict[str, Any], key: str, value: Any) -> None:CODE
LOWsrc/memos/dream/__init__.py11__all__ = ["CommunityDreamPlugin"]CODE
LOWsrc/memos/dream/plugin.py33logger = logging.getLogger(__name__)CODE
LOWsrc/memos/dream/search.py15logger = logging.getLogger(__name__)CODE
LOWsrc/memos/dream/routes.py21__all__ = ["create_diary_router", "create_router", "create_trigger_router"]CODE
10 more matches not shown…
Over-Commented Block48 hits · 44 pts
SeverityFileLineSnippetContext
LOWtests/graph_dbs/test_neo4j_vector_search.py241 "updated_at": datetime.now(timezone.utc),COMMENT
LOWapps/memos-local-plugin/install.sh1#!/usr/bin/env bashCOMMENT
LOWapps/memos-local-plugin/install.sh21# a port at install time would also raise the question ofCOMMENT
LOWapps/memos-local-plugin/core/pipeline/orchestrator.ts501 gapMs,COMMENT
LOWapps/memos-local-plugin/core/pipeline/orchestrator.ts761 // the SESSION stays the same. OpenClaw maps its (agentId,COMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts601 // ─── Stale topic auto-finalize ──COMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts981 );COMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts1561 const existingCount =COMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts1781 // status. Falls back to `handle.llm` when the operator leftCOMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts4341 //COMMENT
LOWapps/memos-local-plugin/core/pipeline/deps.ts261 now: deps.now,COMMENT
LOWapps/memos-local-plugin/core/memory/l3/cluster.ts161 // python syntax" and "register CLI subcommand" both live under theCOMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts81 // OpenClaw's tool messages don't include explicit "reflection"COMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts101 // topic-end reflection receives:COMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts141 // (`hermes chat -q "..."`, `openclaw run --once`). With the oldCOMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts161 // for successful episodes; the old 0.05 floor was throwing awayCOMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts201 // attempt skill crystallization. Quality is still gated byCOMMENT
LOWapps/memos-local-plugin/core/storage/migrator.ts261 ensureColumn(db, table, "owner_workspace_id", "TEXT");COMMENT
LOWapps/memos-local-plugin/core/session/manager.ts161 // episode abandonment. Finalize the episode so the capture +COMMENT
LOWapps/memos-local-plugin/core/session/manager.ts241 async function startEpisode(input: StartEpisodeInput): Promise<EpisodeSnapshot> {COMMENT
LOWapps/memos-local-plugin/core/session/persistence.ts161 // CRITICAL: never use `episodes.upsert` here. The repo's upsertCOMMENT
LOWapps/memos-local-plugin/bridge/methods.ts101 if (!isRpcMethodName(method)) {COMMENT
LOW…s-local-plugin/tests/unit/pipeline/memory-core.test.ts1181 // incomplete recent topics open so the next user turn can be routedCOMMENT
LOW…al-plugin/tests/unit/adapters/openclaw-runtime.test.ts201// The runner inspects the return value with `isPromiseLike(ret)` andCOMMENT
LOW…-local-plugin/tests/unit/adapters/openclaw-e2e.test.ts281 // It must contain *some* real content — either an actual hitCOMMENT
LOW…emos-local-plugin/tests/unit/viewer/tasks-chat.test.ts361 expect(msgs[1]!.toolThinking).toBe("initial");COMMENT
LOW…/memos-local-plugin/tests/python/test_bridge_client.py981 self.assertTrue(cfg_path.exists())COMMENT
LOWapps/memos-local-plugin/server/routes/overview.ts21 // `viewer_opened` is now emitted by the SPA itself viaCOMMENT
LOWapps/memos-local-plugin/docs/CONFIG-ADVANCED.md161 skillEtaBlend: 0.15 # blend weight for Tier-1 skill `η` (reliability).COMMENT
LOW…mos-local-plugin/adapters/openclaw/install.openclaw.sh1#!/usr/bin/env bashCOMMENT
LOWapps/memos-local-plugin/adapters/openclaw/bridge.ts601 const queue = pendingCalls.get(key);COMMENT
LOWapps/memos-local-plugin/adapters/openclaw/index.ts161 // Without this every OpenClaw user was invisible in ARMS — only theCOMMENT
LOWapps/memos-local-plugin/adapters/openclaw/index.ts441 //COMMENT
LOWapps/memos-local-plugin/adapters/openclaw/index.ts461 // the heavy work as a **fire-and-forget** background task andCOMMENT
LOW…s/memos-local-plugin/adapters/hermes/install.hermes.sh1#!/usr/bin/env bashCOMMENT
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py501 # an episode based on V7 §0.1 relation classification. CallingCOMMENT
LOW…s/memos-local-plugin/viewer/src/views/SettingsView.tsx361}) {COMMENT
LOWapps/memos-local-plugin/templates/config.demo.yaml1# config.demo.yaml — demo-only `algorithm.*` overridesCOMMENT
LOWapps/memos-local-plugin/templates/config.demo.yaml21# ~/.openclaw/memos-plugin/config.yaml > /tmp/merged.yaml \COMMENT
LOWapps/memos-local-plugin/templates/config.openclaw.yaml1# memos-local-plugin — OpenClaw runtime configurationCOMMENT
LOWapps/memos-local-plugin/templates/config.hermes.yaml1# memos-local-plugin — Hermes runtime configurationCOMMENT
LOW…emos-local-openclaw/tests/cross-session-memory.test.ts61 // - "[from previous session]" tags on memories from session ACOMMENT
LOW…emos-integration/apps/desktop/run_local_ui_prod_api.sh1#!/bin/bashCOMMENT
LOW…s-integration/apps/desktop/run_local_ui_staging_api.sh1#!/bin/bashCOMMENT
LOW…/desktop/__tests__/unit/main/ipc/handlers.unit.test.ts1941 // Note: Callback execution tests for onStatusChange, onDebug, onError, onCompleteCOMMENT
LOW…enderer/components/SettingsDialog.integration.test.tsx201 * Test approach: This is a unit test of the handleConnect logic in SettingsDialog.COMMENT
LOW…ion/apps/desktop/src/main/opencode/config-generator.ts141# EOFCOMMENT
LOWsrc/memos/api/handlers/scheduler_handler.py141 # Scheduler view: assume tracker contains scheduler tasks; overlay queue monitor for live queue depthCOMMENT
Modern AI Meta-Vocabulary16 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMdocs/en/open_source/home/architecture.md72 mem_os/ # MOS orchestrationCODE
MEDIUMdocs/en/open_source/modules/dream.md149├── hooks.py # Hook handlers (signal capture + execution orchestration)CODE
MEDIUMexamples/mem_feedback/example_feedback.py61 # 2. Embedder: Configure embedding model for generating text vectorsCOMMENT
MEDIUM…uation/scripts/long_bench-v2/longbench_v2_responses.py25# RAG-style prompt template aligned with longbench_stx.TEMPLATE_RAGCOMMENT
MEDIUMevaluation/scripts/long_bench-v2/longbench_v2_search.py88 # Raw memories used for RAG answering (aligned with longbench_stx)COMMENT
MEDIUMapps/memos-local-openclaw/docs/index.html201 <a href="#multi-agent"><span class="lang-zh">多智能体</span><span class="lang-en">Multi-Agent</span></a><a href="#llm-faCODE
MEDIUMapps/memos-local-openclaw/www/docs/index.html220 <a href="#multi-agent"><span class="lang-zh">多智能体</span><span class="lang-en">Multi-Agent</span></a><a href="#llm-faCODE
MEDIUMapps/memos-local-openclaw/site/public/SKILL.md357### Step 1.5 — Choose embedding model (user interaction)COMMENT
MEDIUM…er/task_schedule_modules/handlers/mem_dream_handler.py96 # The framework accepts batched Dream tasks, but the scaffold only needsCOMMENT
MEDIUMsrc/memos/api/config.py1004 # General LLM for non-chat/doc tasks (hallucination filter, rewrite, merge, etc.)COMMENT
MEDIUMsrc/memos/api/config.py1137 # General LLM for non-chat/doc tasks (hallucination filter, rewrite, merge, etc.)COMMENT
MEDIUMsrc/memos/api/routers/server_router.py79# Initialize all handlers with dependency injectionCOMMENT
MEDIUMsrc/memos/templates/mem_reader_prompts.py1106# Prompt mapping for specialized tasks (e.g., hallucination filtering)COMMENT
MEDIUMsrc/memos/mem_reader/simple_struct.py180 # General LLM for non-chat/doc tasks (hallucination filter, rewrite, merge, etc.)COMMENT
MEDIUMsrc/memos/mem_reader/simple_struct.py623 # Use general_llm for hallucination filter (not fine-tuned for this task)COMMENT
MEDIUM…s/mem_reader/read_skill_memory/process_skill_memory.py565 # If no old skill content, set update to False (for llm hallucination)COMMENT
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHevaluation/scripts/locomo/locomo_metric.py41# Category mapping as per your requestCOMMENT
HIGH…egration/apps/desktop/src/renderer/stores/taskStore.ts408 // Update task summary (AI-generated)COMMENT
HIGH…rk-memos-integration/apps/desktop/src/preload/index.ts194 // Task summary updates (AI-generated summary)COMMENT
HIGH…mos/mem_reader/read_multi_modal/file_content_parser.py196 # Extract text content from memory items (only strings as requested)COMMENT
AI Structural Patterns32 hits · 28 pts
SeverityFileLineSnippetContext
LOWevaluation/scripts/locomo/locomo_openai.py95CODE
LOWevaluation/scripts/locomo/locomo_responses.py51CODE
LOWevaluation/scripts/utils/client.py92CODE
LOWevaluation/scripts/utils/client.py347CODE
LOWevaluation/scripts/personamem/pm_responses.py66CODE
LOWevaluation/scripts/longmemeval/lme_responses.py33CODE
LOWsrc/memos/reranker/http_bge.py77CODE
LOWsrc/memos/reranker/http_bge_strategy.py77CODE
LOWsrc/memos/plugins/hooks.py146CODE
LOWsrc/memos/plugins/hooks.py135CODE
LOWsrc/memos/graph_dbs/neo4j_community.py293CODE
LOWsrc/memos/graph_dbs/neo4j_community.py468CODE
LOWsrc/memos/graph_dbs/polardb.py1589CODE
LOWsrc/memos/graph_dbs/polardb.py1693CODE
LOWsrc/memos/graph_dbs/polardb.py1819CODE
LOWsrc/memos/graph_dbs/neo4j.py840CODE
LOWsrc/memos/graph_dbs/neo4j.py999CODE
LOWsrc/memos/graph_dbs/postgres.py796CODE
LOW…emos/mem_scheduler/task_schedule_modules/dispatcher.py51CODE
LOWsrc/memos/mem_scheduler/utils/api_utils.py30CODE
LOW…/mem_scheduler/memory_manage_modules/search_service.py52CODE
LOWsrc/memos/api/client.py102CODE
LOWsrc/memos/api/client.py150CODE
LOWsrc/memos/api/client.py515CODE
LOWsrc/memos/api/handlers/base_handler.py26CODE
LOW…s/mem_reader/read_skill_memory/process_skill_memory.py985CODE
LOW…mos/mem_reader/read_multi_modal/file_content_parser.py1107CODE
LOWsrc/memos/memories/textual/tree.py157CODE
LOW…memories/textual/tree_text_memory/retrieve/searcher.py105CODE
LOW…memories/textual/tree_text_memory/retrieve/searcher.py157CODE
LOW…memories/textual/tree_text_memory/retrieve/searcher.py191CODE
LOW…memories/textual/tree_text_memory/retrieve/searcher.py361CODE
AI Slop Vocabulary13 hits · 24 pts
SeverityFileLineSnippetContext
LOWevaluation/scripts/PrefEval/pref_zep.py143 # If an error occurred in 'add' or 'search' mode, just pass the line throughCOMMENT
LOWevaluation/scripts/PrefEval/pref_memobase.py148 # If an error occurred in 'add' or 'search' mode, just pass the line throughCOMMENT
LOWevaluation/scripts/PrefEval/pref_supermemory.py137 # If an error occurred in 'add' or 'search' mode, just pass the line throughCOMMENT
LOWevaluation/scripts/PrefEval/pref_memu.py142 # If an error occurred in 'add' or 'search' mode, just pass the line throughCOMMENT
LOWevaluation/scripts/PrefEval/pref_memos.py143 # If an error occurred in 'add' or 'search' mode, just pass the line throughCOMMENT
LOWevaluation/scripts/PrefEval/pref_mem0.py141 # If an error occurred in 'add' or 'search' mode, just pass the line throughCOMMENT
MEDIUM…memos-local-plugin/tests/e2e/v7-full-chain.e2e.test.ts664 // the test robust against signature-clustering being strict; theCOMMENT
MEDIUMapps/memos-local-plugin/server/routes/config.ts23 * Issue #1929 — the rerun harness contract testsCOMMENT
MEDIUM…/memos/mem_scheduler/monitors/task_schedule_monitor.py110 # Keep printing robust in face of bad dataCOMMENT
LOWsrc/memos/mem_scheduler/orm_modules/redis_model.py291 # Generic objects - just return the current instanceCOMMENT
MEDIUMsrc/memos/templates/tree_reorganize_prompts.py211MEMORY_RELATION_RESOLVER_PROMPT = """You are a memory fusion expert. You are given two statements and their associated mSTRING
LOWsrc/memos/mem_reader/memory.py151 # If key doesn't exist, simply add the new memory itemCOMMENT
LOWsrc/memos/mem_os/core.py511 # Cube exists, just add user to cube if not already associatedCOMMENT
Slop Phrases15 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMexamples/mem_scheduler/memos_w_scheduler.py74 {"role": "assistant", "content": "Happy to help! Let me know if you need anything else."},CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py4168 "Refinery. Let me know if you need anything else!",CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py4226 "Let me know if you need anything else!",CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py6302 "Please let me know if you need any clarification or have "CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py6514 "Please let me know if you need any clarification or have "CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py8729 "Let me know if you need any clarification or have additional "CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py8781 "Let me know if you need any more details!",CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py9008 "information given in the paragraph? Let me know if you need any "CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py9056 "NAME_35. to? Let me know if you need any clarification.",CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py9116 "given? Let me know if you need any clarification.",CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py9171 "paragraph? Let me know if you need any clarification.",CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py9474 "Let me know if you need any clarification or have additional "CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py9516 "Please let me know if you need any clarification or have "CODE
MEDIUMevaluation/scripts/PrefEval/irrelevant_conv.py12411 "Please let me know if you need any clarification or have "CODE
MEDIUMapps/memos-local-openclaw/tests/task-processor.test.ts313 insertTestChunk({ id: "s2", sessionKey: "s1", role: "assistant", content: "Sure, here is how you can deploy your APICODE
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippetContext
LOWdocs/cn/open_source/modules/mos/users.md38memory.create_user(user_id=user_id, role=UserRole.USER, user_name="John Doe")CODE
LOWdocs/en/open_source/modules/mos/users.md38memory.create_user(user_id=user_id, role=UserRole.USER, user_name="John Doe")CODE
LOW…cal-plugin/tests/unit/memory/l2/candidate-pool.test.ts133 title: "placeholder",CODE
LOW…os-local-plugin/tests/unit/storage/fts-keyword.test.ts138 userText: "Lorem ipsum about postgres replication",CODE
LOW…mos-local-openclaw/skill/browserwing-executor/SKILL.md90 -d '{"identifier": "@e3", "text": "user@example.com"}'CODE
LOW…mos-local-openclaw/skill/browserwing-executor/SKILL.md377 "params": {"identifier": "#name", "text": "John Doe"},CODE
LOW…ktop/skills/dev-browser/src/snapshot/browser-script.ts700 if (ariaNode.role === "textbox" && element.hasAttribute("placeholder") && element.getAttribute("placeholder") !== arCODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHapps/memos-local-openclaw/tests/chunker.test.ts10 print("world")CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWapps/memos-local-plugin/install.sh4# Usage:COMMENT
LOWsrc/memos/mem_scheduler/analyzer/api_analyzer.py663# Example usageCOMMENT
LOWsrc/memos/api/mcp_serve.py588# Usage exampleCOMMENT
Overly Generic Function Names4 hits · 2 pts
SeverityFileLineSnippetContext
LOWevaluation/scripts/PrefEval/irrelevant_conv.py8208 "function doSomething() {\n"CODE
LOWsrc/memos/deprecation.py162 def my_function(new_param=None, old_param=None):STRING
LOW…emos/mem_scheduler/task_schedule_modules/dispatcher.py603 def execute_task(CODE
LOWsrc/memos/mem_scheduler/utils/metrics.py105 def my_function():STRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/memos/graph_dbs/polardb.py2933CODE