AI Slop Code RIsk Monitor

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 and DeepSeek Harness support.

15.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for MemTensor/MemOS, a TypeScript project with 11,800 GitHub stars. SynthScan examined 503,001 lines of code across 1856 source files, recording 4638 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 15.8 (Elevated pattern signal); it is not an authorship estimate.

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

15.8
Adjusted Signal
15.8
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
11.8K
Stars
TypeScript
Language
503.0K
Lines of Code
1.9K
Files
4.6K
Pattern Hits
2026-10-12
Scan Date
0.14
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 25.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 6.1/100 · LOW

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

Agent Over-Engineering Ratio 43.8/100 · MEDIUM

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

PR Review Velocity Impact 54.3/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 3HIGH 249MEDIUM 982LOW 3404

Directory Score Breakdown

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

Pattern Findings

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

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

Decorative Section Separators825 hits · 2687 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_utils_timing.py38# ===========================================================================COMMENT
MEDIUM⚡tests/test_utils_timing.py40# ===========================================================================COMMENT
MEDIUM⚡tests/test_utils_timing.py109# ===========================================================================COMMENT
MEDIUM⚡tests/test_utils_timing.py111# ===========================================================================COMMENT
MEDIUM⚡tests/test_utils_timing.py206# ===========================================================================COMMENT
MEDIUM⚡tests/test_utils_timing.py208# ===========================================================================COMMENT
MEDIUM⚡tests/test_utils_timing.py219# ===========================================================================COMMENT
MEDIUM⚡tests/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
MEDIUM⚡tests/test_add_stage_logging.py111# ===========================================================================COMMENT
MEDIUM⚡tests/test_add_stage_logging.py113# ===========================================================================COMMENT
MEDIUM⚡tests/test_add_stage_logging.py256# ===========================================================================COMMENT
MEDIUM⚡tests/test_add_stage_logging.py258# ===========================================================================COMMENT
MEDIUM⚡tests/test_add_stage_logging.py284# ===========================================================================COMMENT
MEDIUM⚡tests/test_add_stage_logging.py286# ===========================================================================COMMENT
MEDIUM⚡tests/test_add_stage_logging.py358# ===========================================================================COMMENT
MEDIUM⚡tests/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
MEDIUM⚡tests/graph_dbs/test_neo4j_vector_search.py87# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/graph_dbs/test_neo4j_vector_search.py89# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/graph_dbs/test_neo4j_vector_search.py194# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/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
765 more matches not shown…
Hyper-Verbose Identifiers1436 hits · 1453 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.py16def test_memos_hello_world_logger_called():CODE
LOWtests/test_hello_world.py25def test_memos_dany_hello_world_logger_called():CODE
LOW⚡tests/test_hello_world.py54def test_memos_chend_hello_world_logger_called():CODE
LOW⚡tests/test_hello_world.py63def test_memos_wanghy_hello_world_logger_called():CODE
LOW⚡tests/test_hello_world.py72def test_memos_huojh_hello_world_logger_called():CODE
LOW⚡tests/test_hello_world.py83def test_memos_niusm_hello_world_logger_called():CODE
LOW⚡tests/test_hello_world.py92def test_memos_wangyzh_hello_world_logger_called():CODE
LOW⚡tests/test_hello_world.py101def test_memos_zhaojihao_hello_world_logger_called():CODE
LOW⚡tests/test_hello_world.py110def test_memos_yuqingchen_hello_world_logger_called():CODE
LOWtests/test_yunxiao_github_sync.py33def test_preflight_documented_schema() -> None:CODE
LOWtests/test_yunxiao_github_sync.py138def test_sync_one_close_updates_status() -> None: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
LOW⚡tests/test_log.py19def test_setup_logfile_creates_file(tmp_path, monkeypatch):CODE
LOW⚡tests/test_log.py26def test_get_logger_returns_logger():CODE
LOW⚡tests/test_log.py35def test_get_logger_configures_logging_once_per_process(monkeypatch):CODE
LOWtests/test_log.py48def test_get_logger_reconfigures_after_process_fork(monkeypatch):CODE
LOWtests/test_log.py66def test_summarize_search_request_uses_metadata_and_query_hash_only():CODE
LOWtests/test_log.py92def test_summarize_search_results_only_counts_buckets_and_items():CODE
LOWtests/test_log.py129def test_summarize_textual_memories_only_counts_types():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
LOW⚡tests/test_utils_timing.py33def _collect_timer_with_status_logs(caplog):CODE
LOW⚡tests/test_utils_timing.py100 def test_duration_ms_readable_downstream(self):CODE
LOW⚡tests/test_utils_timing.py128 def test_decorator_uses_func_name_when_no_stage(self, caplog):CODE
LOW⚡tests/test_utils_timing.py138 def test_decorator_preserves_function_metadata(self):CODE
LOW⚡tests/test_utils_timing.py147 def test_decorator_with_extra_callback(self, caplog):CODE
LOW⚡tests/test_utils_timing.py199 def test_emit_now_no_extra_fields(self, caplog):CODE
LOW⚡tests/test_utils_timing.py225 def test_return_value_preserved(self):CODE
LOW⚡tests/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
LOW⚡tests/test_add_stage_logging.py117 def test_returns_correct_business_result(self, single_cube_view):CODE
LOW⚡tests/test_add_stage_logging.py262 def test_sync_fast_returns_result(self, single_cube_view):CODE
1376 more matches not shown…
Excessive Try-Catch Wrapping865 hits · 869 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
LOW⚡tests/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
LOW⚡examples/basic_modules/tree_textual_memory_recall.py87except Exception as exc:CODE
LOWexamples/mem_scheduler/try_schedule_modules.py158 except Exception:CODE
LOW⚡examples/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
MEDIUM⚡examples/api/server_router_api.py666 print(f"Error parsing response: {e}")CODE
MEDIUM⚡examples/api/server_router_api.py669 print(f"Error: {resp.status_code}")CODE
LOW⚡examples/api/server_router_api.py665 except Exception as e:CODE
LOW⚡examples/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
LOW⚡evaluation/scripts/locomo/locomo_eval.py149 except Exception as e:STRING
LOW⚡evaluation/scripts/locomo/locomo_eval.py158 except Exception as e:STRING
LOW⚡evaluation/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
805 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 · 330 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
LOW⚡examples/basic_modules/tree_textual_memory_recall.py39# Step 0: Setup - Load configuration filesCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py57# Step 1: Initialize EmbedderCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py66# Step 2: Initialize Graph StoreCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py75# Step 3: Clean up old mock data (optional)COMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py91# Step 4: Insert mock memories into the graph storeCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py138# Step 5: Define a query and retrieval goalCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py164# Step 6: Perform hybrid retrievalCOMMENT
LOW⚡examples/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
LOW⚡examples/basic_modules/neo4j_example.py77 # Step 2: Instantiate the graph storeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py81 # Step 3: Create topic nodeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py316 # Step 2: Instantiate graph storeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py321 # Step 3: Create topic nodeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py360 # Step 5: Query and print ALL for verificationCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py366 # Step 6: Search for alice's data onlyCOMMENT
136 more matches not shown…
Verbosity Indicators160 hits · 274 pts
SeverityFileLineSnippetContext
LOW⚡examples/basic_modules/tree_textual_memory_recall.py39# Step 0: Setup - Load configuration filesCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py57# Step 1: Initialize EmbedderCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py66# Step 2: Initialize Graph StoreCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py75# Step 3: Clean up old mock data (optional)COMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py91# Step 4: Insert mock memories into the graph storeCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py138# Step 5: Define a query and retrieval goalCOMMENT
LOW⚡examples/basic_modules/tree_textual_memory_recall.py164# Step 6: Perform hybrid retrievalCOMMENT
LOW⚡examples/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
LOW⚡examples/basic_modules/neo4j_example.py77 # Step 2: Instantiate the graph storeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py81 # Step 3: Create topic nodeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py316 # Step 2: Instantiate graph storeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py321 # Step 3: Create topic nodeCOMMENT
LOW⚡examples/basic_modules/neo4j_example.py360 # Step 5: Query and print ALL for verificationCOMMENT
LOW⚡examples/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
LOW⚡examples/mem_cube/dump_cube.py39# Step 1: Initialize serverCOMMENT
LOW⚡examples/mem_cube/dump_cube.py49# Step 2: Create SingleCubeView with NEW cube_idCOMMENT
LOW⚡examples/mem_cube/dump_cube.py68# Step 3: Add memories via ViewCOMMENT
LOW⚡examples/mem_cube/dump_cube.py88# Step 4: Dump ONLY this cube's dataCOMMENT
LOW⚡examples/mem_cube/load_cube.py35# Step 1: Initialize serverCOMMENT
LOW⚡examples/mem_cube/load_cube.py45# Step 2: Create SingleCubeViewCOMMENT
LOW⚡examples/mem_cube/load_cube.py64# Step 3: Load memories from dumpCOMMENT
LOW⚡examples/mem_cube/load_cube.py90# Step 4: Display loaded memoriesCOMMENT
LOW⚡examples/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
LOW⚡packages/memos-core/src/recall/engine.ts150 // Step 3: MMR re-rankingCOMMENT
LOW⚡packages/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 Nesting307 hits · 252 pts
SeverityFileLineSnippetContext
LOWtests/utils.py101CODE
LOWtests/mem_tools/test_thread_safe_dict.py165CODE
LOWtests/mem_tools/test_thread_safe_dict.py178CODE
LOWtests/llms/test_qps_rate_limit_redis.py25CODE
LOWtests/llms/test_qps_rate_limit_redis.py124CODE
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
LOWscripts/yunxiao_github_sync.py410CODE
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.py95CODE
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py67CODE
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py359CODE
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py517CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py835CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py971CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py1129CODE
247 more matches not shown…
Cross-Language Confusion43 hits · 228 pts
SeverityFileLineSnippetContext
HIGHtests/mem_scheduler/test_config.py428 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
HIGH⚡evaluation/scripts/PrefEval/irrelevant_conv.py5125 'ageCategory.equals("adult") ? characterAttributes[2] : "none";\n'CODE
HIGH⚡evaluation/scripts/PrefEval/irrelevant_conv.py5127 'ageCategory.equals("adult") ? characterAttributes[3] : 'CODE
HIGH⚡evaluation/scripts/PrefEval/irrelevant_conv.py5137 'int professionIndex = ageCategory.equals("adult") ? 2 : -1; \n'CODE
HIGH⚡evaluation/scripts/PrefEval/irrelevant_conv.py5138 'int genderIndex = ageCategory.equals("adult") ? 3 : 2;\n'CODE
HIGH⚡evaluation/scripts/PrefEval/irrelevant_conv.py5465 " Scenario scenario = null;\n"CODE
HIGH⚡evaluation/scripts/PrefEval/irrelevant_conv.py5466 " Location rescuedLocation = null;\n"CODE
HIGH⚡evaluation/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.py457 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.py671 "new_preference": null,CODE
HIGHsrc/memos/templates/prefer_complete_prompt.py672 "new_context_summary": null,CODE
HIGHsrc/memos/templates/prefer_complete_prompt.py699 "old_preference": null,CODE
HIGHsrc/memos/templates/prefer_complete_prompt.py700 "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 Imports220 hits · 216 pts
SeverityFileLineSnippetContext
LOWtests/test_yunxiao_github_sync.py1CODE
LOWtests/plugins/test_plugin_component_init.py1CODE
LOWtests/graph_dbs/test_neo4j_vector_search.py265CODE
LOW…ts/mem_scheduler/test_mem_read_handler_fast_cleanup.py1CODE
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
LOWscripts/yunxiao_github_sync.py1CODE
LOW…ocal-plugin/tests/python/test_shared_bridge_runtime.py3CODE
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/runtime_home.py9CODE
LOW…dapters/hermes/memos_provider/shared_bridge_runtime.py10CODE
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
160 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.py937 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.py288 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.py107 Chat with MemOS for chat complete response (non-streaming). Args: chat_req: Chat complete STRING
HIGHsrc/memos/api/handlers/chat_handler.py242 Chat with MemOS via Server-Sent Events (SSE) stream for chat stream response. Args: chat_rSTRING
HIGHsrc/memos/api/handlers/chat_handler.py427 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
Empty Error Handlers34 hits · 170 pts
SeverityFileLineSnippetContext
HIGHtests/mem_scheduler/test_version_control.py28except (OSError, PermissionError):CODE
HIGHtests/mem_user/test_mem_user.py35except (OSError, PermissionError):CODE
HIGHtests/mem_user/test_mem_user.py91except (OSError, PermissionError):CODE
HIGHtests/mem_cube/test_general.py62except Exception:CODE
HIGHexamples/mem_scheduler/memos_w_scheduler.py162except json.JSONDecodeError:CODE
HIGHexamples/extras/nli_e2e_example.py47except requests.ConnectionError:CODE
HIGHexamples/extras/nli_e2e_example.py49except Exception:CODE
HIGHscripts/yunxiao_github_sync.py265except YunxiaoApiError:CODE
HIGHevaluation/scripts/locomo/locomo_eval.py147except ZeroDivisionError:CODE
HIGHevaluation/scripts/longmemeval/lme_eval.py80except ZeroDivisionError:CODE
HIGH…lugin/adapters/hermes/memos_provider/daemon_manager.py540except Exception:CODE
HIGH…lugin/adapters/hermes/memos_provider/daemon_manager.py559except Exception:CODE
HIGH…lugin/adapters/hermes/memos_provider/daemon_manager.py592except (OSError, ProcessLookupError):CODE
HIGH…plugin/adapters/hermes/memos_provider/bridge_client.py368except (BrokenPipeError, OSError, ValueError):CODE
HIGH…plugin/adapters/hermes/memos_provider/bridge_client.py641except (BrokenPipeError, OSError, ValueError):CODE
HIGHsrc/memos/log.py226except Exception:CODE
HIGHsrc/memos/context/context.py349except Exception:CODE
HIGHsrc/memos/mem_scheduler/base_scheduler.py261except Exception:CODE
HIGH…mos/mem_scheduler/task_schedule_modules/redis_queue.py1136except Exception:CODE
HIGH…mos/mem_scheduler/task_schedule_modules/redis_queue.py1475except Exception:CODE
HIGH…/memos/mem_scheduler/monitors/task_schedule_monitor.py109except Exception:CODE
HIGH…memos/mem_scheduler/analyzer/mos_for_test_scheduler.py288except Exception:CODE
HIGH…memos/mem_scheduler/analyzer/mos_for_test_scheduler.py227except Exception:CODE
HIGHsrc/memos/api/handlers/chat_handler.py1147except ValueError:CODE
HIGHsrc/memos/mem_reader/utils.py51except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_reader/utils.py58except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_reader/read_multi_modal/utils.py79except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_reader/read_multi_modal/utils.py86except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_reader/read_multi_modal/utils.py102except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_reader/read_multi_modal/image_parser.py352except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_reader/read_multi_modal/image_parser.py360except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_reader/read_multi_modal/image_parser.py377except json.JSONDecodeError:CODE
HIGH…memories/textual/tree_text_memory/retrieve/reasoner.py58except json.JSONDecodeError:CODE
HIGHsrc/memos/mem_os/main.py392except Exception:CODE
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
MEDIUM⚡tests/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
MEDIUM⚡tests/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.py42# 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
MEDIUM⚡examples/mem_scheduler/run_async_tasks.py29# Define a handler functionCOMMENT
MEDIUM⚡examples/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.py1022 # 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
MEDIUM⚡src/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
MEDIUM⚡src/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.py111 # 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.py162 # Create a new memory item for each chunk, preserving original metadataCOMMENT
MEDIUMsrc/memos/mem_reader/multi_modal_struct.py219 # 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
LOW⚡tests/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
LOW⚡tests/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.py608 # Check if process exists (signal 0 doesn't actually send a signal)COMMENT
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py623 # 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
LOW⚡src/memos/graph_dbs/polardb.py4156 # Check if key is an array fieldCOMMENT
LOW⚡src/memos/graph_dbs/polardb.py4159 # Check if key starts with "info." prefixCOMMENT
LOW⚡src/memos/graph_dbs/polardb.py4162 # Check if info field is an array fieldCOMMENT
LOW⚡src/memos/graph_dbs/polardb.py4370 # Check if value is a dict with comparison operators (gt, lt, gte, lte, =, contains)COMMENT
LOW⚡src/memos/graph_dbs/polardb.py4379 # Check if key is a datetime fieldCOMMENT
LOW⚡src/memos/graph_dbs/polardb.py4384 # Check if key starts with "info." prefix (for nested fields like info.A, info.B)COMMENT
LOW⚡src/memos/graph_dbs/polardb.py4542 # Check if key is an array fieldCOMMENT
LOW⚡src/memos/graph_dbs/polardb.py4545 # Check if key starts with "info." prefixCOMMENT
LOW⚡src/memos/graph_dbs/polardb.py4548 # Check if info field is an array fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4006 # Check if value is a dict with comparison operators (gt, lt, gte, lte, =, contains, in, like)COMMENT
LOWsrc/memos/graph_dbs/polardb.py4017 # Check if key is a datetime fieldCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4022 # Check if key starts with "info." prefix (for nested fields like info.A, info.B)COMMENT
LOWsrc/memos/graph_dbs/polardb.py4062 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4129 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4278 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4299 # Check if key starts with "info." prefix (for simple equality)COMMENT
LOWsrc/memos/graph_dbs/polardb.py4430 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4515 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4651 # Check if key starts with "info." prefixCOMMENT
LOWsrc/memos/graph_dbs/polardb.py4714 # 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.py22 "api_key": "your-api-key",CODE
HIGHtests/embedders/test_ark.py50 "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.md539 "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.py338 "api_key": os.getenv("OPENAI_API_KEY", "your-api-key-here"),CODE
HIGHsrc/memos/api/config.py362 "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 Boilerplate72 hits · 70 pts
SeverityFileLineSnippetContext
LOW…lugin/adapters/hermes/memos_provider/daemon_manager.py36logger = logging.getLogger(__name__)CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py94logger = logging.getLogger(__name__)CODE
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py2535__all__ = ["PLUGIN_ID", "PLUGIN_VERSION", "MemTensorProvider", "register"]CODE
LOW…dapters/hermes/memos_provider/shared_bridge_runtime.py28logger = logging.getLogger(__name__)CODE
LOW…dapters/hermes/memos_provider/shared_bridge_runtime.py599__all__ = [CODE
LOW…plugin/adapters/hermes/memos_provider/bridge_client.py35logger = 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.py522 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.py49logger = logging.getLogger(__name__)CODE
LOWsrc/memos/api/server_api.py25logger = 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__.py40__all__ = [CODE
LOWsrc/memos/api/handlers/formatters_handler.py17__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
12 more matches not shown…
Over-Commented Block56 hits · 51 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# panels, dropped writes, mid-session ownership flips). PickingCOMMENT
LOWapps/memos-local-plugin/core/pipeline/orchestrator.ts601COMMENT
LOWapps/memos-local-plugin/core/pipeline/orchestrator.ts881 },COMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts701 // ─── Dirty closed-episode rescore backoff (issue #1808) ──COMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts1101 // through relation classification. Only hard-stale open topics areCOMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts1141 // Write the lightweight flag BEFORE close() so that even ifCOMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts2061 // Prefer the dedicated reflect LLM stats so an independentlyCOMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts4741 };COMMENT
LOWapps/memos-local-plugin/core/pipeline/memory-core.ts6281 .filter((turnId) => Number.isFinite(turnId)),COMMENT
LOWapps/memos-local-plugin/core/pipeline/deps.ts281 scorerModel: bgLlm?.model,COMMENT
LOWapps/memos-local-plugin/core/capture/capture.ts401 const normalized = normalizeSteps(rawAll, deps.cfg);COMMENT
LOWapps/memos-local-plugin/core/memory/l3/cluster.ts201 // No centroid (none of the members had a vec). Trust the bucket;COMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts121 // Bound topic-end reflect work so dirty startup recovery cannot replayCOMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts141 // - "task_downstream": inject both blocksCOMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts161 gamma: 0.9,COMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts181 // they always satisfy the looser bound. Operators wanting theCOMMENT
LOWapps/memos-local-plugin/core/config/defaults.ts241 minSupport: 1,COMMENT
LOWapps/memos-local-plugin/core/config/index.ts101 // `resolveConfig` is the single choke point for both disk andCOMMENT
LOWapps/memos-local-plugin/core/storage/migrator.ts301 }COMMENT
LOWapps/memos-local-plugin/core/session/manager.ts161 // V7 §0.2 — a user-initiated session close (`/new`, `/quit`, theCOMMENT
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.ts1681 ]),COMMENT
LOW…al-plugin/tests/unit/adapters/openclaw-runtime.test.ts261// ─── Regressions for issue #1815 ────────────────────────────────────────────COMMENT
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.py1181 host_home = Path(tmp) / "different-hermes-home"COMMENT
LOW…memos-local-plugin/tests/e2e/v7-full-chain.e2e.test.ts661 // stays empty; that's expected for this scenario.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.md181 minTraceSim: 0.35 # hide Tier-2 traces below cosine thresholdCOMMENT
LOW…mos-local-plugin/adapters/openclaw/install.openclaw.sh1#!/usr/bin/env bashCOMMENT
LOWapps/memos-local-plugin/adapters/openclaw/bridge.ts61//COMMENT
LOWapps/memos-local-plugin/adapters/openclaw/bridge.ts561 // `message_received.content` value instead (seeCOMMENT
LOWapps/memos-local-plugin/adapters/openclaw/bridge.ts661 const stub = queue.shift();COMMENT
LOWapps/memos-local-plugin/adapters/openclaw/index.ts161 await core.init();COMMENT
LOWapps/memos-local-plugin/adapters/openclaw/index.ts401COMMENT
LOWapps/memos-local-plugin/adapters/openclaw/index.ts421 // pressure can exceed 30 s. Awaiting that chain inside the hookCOMMENT
LOW…s/memos-local-plugin/adapters/hermes/install.hermes.sh1#!/usr/bin/env bashCOMMENT
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py421 # Hermes does not pass the live conversation history to `prefetch`.COMMENT
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py581 # We DON'T call `episode.open` ourselves. The core's `onTurnStart`COMMENT
LOW…ocal-plugin/adapters/hermes/memos_provider/__init__.py1761COMMENT
LOW…s/memos-local-plugin/viewer/src/views/SettingsView.tsx381 | { ok: false; error: string }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
LOWapps/MemOS-Cloud-OpenClaw-Plugin/index.js721COMMENT
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.py1034 # General LLM for non-chat/doc tasks (hallucination filter, rewrite, merge, etc.)COMMENT
MEDIUMsrc/memos/api/config.py1169 # 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.py1128# 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
Hallucination Indicators3 hits · 35 pts
SeverityFileLineSnippetContext
CRITICAL⚡tests/llms/test_qps_rate_limit.py235 llm.backup_client.chat.completions.create.assert_not_called()CODE
CRITICAL…in/tests/unit/adapters/deepseek-harness-viewer.test.ts295 const registeredEvents = host.context.on.mock.calls.map(([event]) => event);CODE
CRITICAL…in/tests/unit/adapters/deepseek-harness-viewer.test.ts320 const disposedRegistration = host.context.on.mock.calls.find(CODE
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.py202 # Extract text content from memory items (only strings as requested)COMMENT
AI Structural Patterns33 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.py1615CODE
LOWsrc/memos/graph_dbs/polardb.py1719CODE
LOWsrc/memos/graph_dbs/polardb.py1845CODE
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.py142CODE
LOWsrc/memos/api/client.py192CODE
LOWsrc/memos/api/client.py252CODE
LOWsrc/memos/api/client.py770CODE
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.py1151CODE
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.py355CODE
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.ts671 // 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
LOW⚡src/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
Cross-Language Confusion (JS/TS)3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…mos-local-plugin/tests/unit/install/install-sh.test.ts102elif [[ "$1" == "-p" ]]; thenCODE
HIGH…in/tests/unit/install/install-gateway-recovery.test.ts48elif [[ "\${1:-}" == "-p" ]]; thenCODE
HIGHapps/memos-local-openclaw/tests/chunker.test.ts10 print("world")CODE
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.ts163 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
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.py2990CODE