AI Slop Code RIsk Monitor

mem0ai/mem0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

33.5 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for mem0ai/mem0, a Python project with 66,953 GitHub stars. SynthScan examined 319,905 lines of code across 1342 source files, recording 4931 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 33.5 (High 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.

33.5
Adjusted Signal
33.5
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
67.0K
Stars
Python
Language
319.9K
Lines of Code
1.3K
Files
4.9K
Pattern Hits
2026-10-12
Scan Date
0.90
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 37.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 14.3/100 · LOW

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

Agent Over-Engineering Ratio 74.6/100 · HIGH

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

PR Review Velocity Impact 84.8/100 · CRITICAL

Which changes need focused human review? 4931 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 22HIGH 1184MEDIUM 496LOW 3229

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 4931 distinct pattern matches across 24 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.

Cross-File Repetition774 hits · 3870 pts
SeverityFileLineSnippetContext
HIGHintegrations/codex-plugin/core/hook_runner.py0shared hook orchestration for all mem0 agent plugins.STRING
HIGHintegrations/kimi-plugin/core/hook_runner.py0shared hook orchestration for all mem0 agent plugins.STRING
HIGHintegrations/antigravity-plugin/core/hook_runner.py0shared hook orchestration for all mem0 agent plugins.STRING
HIGHintegrations/agent-plugin-core/python/hook_runner.py0shared hook orchestration for all mem0 agent plugins.STRING
HIGHintegrations/claude-code-plugin/core/hook_runner.py0shared hook orchestration for all mem0 agent plugins.STRING
HIGHintegrations/cursor-plugin/core/hook_runner.py0shared hook orchestration for all mem0 agent plugins.STRING
HIGHintegrations/codex-plugin/core/hook_runner.py0record the assistant's response without transcript parsing.STRING
HIGHintegrations/kimi-plugin/core/hook_runner.py0record the assistant's response without transcript parsing.STRING
HIGHintegrations/antigravity-plugin/core/hook_runner.py0record the assistant's response without transcript parsing.STRING
HIGHintegrations/agent-plugin-core/python/hook_runner.py0record the assistant's response without transcript parsing.STRING
HIGHintegrations/claude-code-plugin/core/hook_runner.py0record the assistant's response without transcript parsing.STRING
HIGHintegrations/cursor-plugin/core/hook_runner.py0record the assistant's response without transcript parsing.STRING
HIGHintegrations/codex-plugin/core/hook_runner.py0search once before the agent handles the first prompt in a session.STRING
HIGHintegrations/kimi-plugin/core/hook_runner.py0search once before the agent handles the first prompt in a session.STRING
HIGHintegrations/antigravity-plugin/core/hook_runner.py0search once before the agent handles the first prompt in a session.STRING
HIGHintegrations/agent-plugin-core/python/hook_runner.py0search once before the agent handles the first prompt in a session.STRING
HIGHintegrations/claude-code-plugin/core/hook_runner.py0search once before the agent handles the first prompt in a session.STRING
HIGHintegrations/cursor-plugin/core/hook_runner.py0search once before the agent handles the first prompt in a session.STRING
HIGHintegrations/codex-plugin/core/_harness_id.py0generated by integrations/agent-plugin-core/build/build.py. do not edit.STRING
HIGHintegrations/kimi-plugin/core/_harness_id.py0generated by integrations/agent-plugin-core/build/build.py. do not edit.STRING
HIGHintegrations/antigravity-plugin/core/_harness_id.py0generated by integrations/agent-plugin-core/build/build.py. do not edit.STRING
HIGHintegrations/claude-code-plugin/core/_harness_id.py0generated by integrations/agent-plugin-core/build/build.py. do not edit.STRING
HIGHintegrations/mem0-agent-plugin/core/_harness_id.py0generated by integrations/agent-plugin-core/build/build.py. do not edit.STRING
HIGHintegrations/cursor-plugin/core/_harness_id.py0generated by integrations/agent-plugin-core/build/build.py. do not edit.STRING
HIGHintegrations/codex-plugin/core/flush_worker.py0detached remote checkpoint worker. claude code may cancel sessionend hooks as a print-mode process exits. the hook thereSTRING
HIGHintegrations/kimi-plugin/core/flush_worker.py0detached remote checkpoint worker. claude code may cancel sessionend hooks as a print-mode process exits. the hook thereSTRING
HIGHintegrations/antigravity-plugin/core/flush_worker.py0detached remote checkpoint worker. claude code may cancel sessionend hooks as a print-mode process exits. the hook thereSTRING
HIGHintegrations/agent-plugin-core/python/flush_worker.py0detached remote checkpoint worker. claude code may cancel sessionend hooks as a print-mode process exits. the hook thereSTRING
HIGHintegrations/claude-code-plugin/core/flush_worker.py0detached remote checkpoint worker. claude code may cancel sessionend hooks as a print-mode process exits. the hook thereSTRING
HIGHintegrations/cursor-plugin/core/flush_worker.py0detached remote checkpoint worker. claude code may cancel sessionend hooks as a print-mode process exits. the hook thereSTRING
HIGHintegrations/codex-plugin/core/telemetry.py0usage telemetry for mem0 agent plugins. events are linked to your mem0 account email when an api key is configured, and STRING
HIGHintegrations/kimi-plugin/core/telemetry.py0usage telemetry for mem0 agent plugins. events are linked to your mem0 account email when an api key is configured, and STRING
HIGHintegrations/antigravity-plugin/core/telemetry.py0usage telemetry for mem0 agent plugins. events are linked to your mem0 account email when an api key is configured, and STRING
HIGHintegrations/agent-plugin-core/python/telemetry.py0usage telemetry for mem0 agent plugins. events are linked to your mem0 account email when an api key is configured, and STRING
HIGHintegrations/claude-code-plugin/core/telemetry.py0usage telemetry for mem0 agent plugins. events are linked to your mem0 account email when an api key is configured, and STRING
HIGHintegrations/mem0-agent-plugin/core/telemetry.py0usage telemetry for mem0 agent plugins. events are linked to your mem0 account email when an api key is configured, and STRING
HIGHintegrations/cursor-plugin/core/telemetry.py0usage telemetry for mem0 agent plugins. events are linked to your mem0 account email when an api key is configured, and STRING
HIGHintegrations/codex-plugin/core/telemetry.py0override the generated identity. optional — core/_harness_id.py is the default. the fallback shape matches memory_core.cSTRING
HIGHintegrations/kimi-plugin/core/telemetry.py0override the generated identity. optional — core/_harness_id.py is the default. the fallback shape matches memory_core.cSTRING
HIGHintegrations/antigravity-plugin/core/telemetry.py0override the generated identity. optional — core/_harness_id.py is the default. the fallback shape matches memory_core.cSTRING
HIGHintegrations/agent-plugin-core/python/telemetry.py0override the generated identity. optional — core/_harness_id.py is the default. the fallback shape matches memory_core.cSTRING
HIGHintegrations/claude-code-plugin/core/telemetry.py0override the generated identity. optional — core/_harness_id.py is the default. the fallback shape matches memory_core.cSTRING
HIGHintegrations/mem0-agent-plugin/core/telemetry.py0override the generated identity. optional — core/_harness_id.py is the default. the fallback shape matches memory_core.cSTRING
HIGHintegrations/cursor-plugin/core/telemetry.py0override the generated identity. optional — core/_harness_id.py is the default. the fallback shape matches memory_core.cSTRING
HIGHintegrations/codex-plugin/core/telemetry.py0unsalted digest. only for values that are already secrets (api keys).STRING
HIGHintegrations/kimi-plugin/core/telemetry.py0unsalted digest. only for values that are already secrets (api keys).STRING
HIGHintegrations/antigravity-plugin/core/telemetry.py0unsalted digest. only for values that are already secrets (api keys).STRING
HIGHintegrations/agent-plugin-core/python/telemetry.py0unsalted digest. only for values that are already secrets (api keys).STRING
HIGHintegrations/claude-code-plugin/core/telemetry.py0unsalted digest. only for values that are already secrets (api keys).STRING
HIGHintegrations/mem0-agent-plugin/core/telemetry.py0unsalted digest. only for values that are already secrets (api keys).STRING
HIGHintegrations/cursor-plugin/core/telemetry.py0unsalted digest. only for values that are already secrets (api keys).STRING
HIGHintegrations/codex-plugin/core/telemetry.py0random per-install salt, created once and memoized for the process. deliberately its own file, claimed with o_creat|o_exSTRING
HIGHintegrations/kimi-plugin/core/telemetry.py0random per-install salt, created once and memoized for the process. deliberately its own file, claimed with o_creat|o_exSTRING
HIGHintegrations/antigravity-plugin/core/telemetry.py0random per-install salt, created once and memoized for the process. deliberately its own file, claimed with o_creat|o_exSTRING
HIGHintegrations/agent-plugin-core/python/telemetry.py0random per-install salt, created once and memoized for the process. deliberately its own file, claimed with o_creat|o_exSTRING
HIGHintegrations/claude-code-plugin/core/telemetry.py0random per-install salt, created once and memoized for the process. deliberately its own file, claimed with o_creat|o_exSTRING
HIGHintegrations/mem0-agent-plugin/core/telemetry.py0random per-install salt, created once and memoized for the process. deliberately its own file, claimed with o_creat|o_exSTRING
HIGHintegrations/cursor-plugin/core/telemetry.py0random per-install salt, created once and memoized for the process. deliberately its own file, claimed with o_creat|o_exSTRING
HIGHintegrations/codex-plugin/core/telemetry.py0salted digest for values drawn from a guessable space. repo.identity is a git remote url, or ``local:<absolute path>`` wSTRING
HIGHintegrations/kimi-plugin/core/telemetry.py0salted digest for values drawn from a guessable space. repo.identity is a git remote url, or ``local:<absolute path>`` wSTRING
714 more matches not shown…
Hyper-Verbose Identifiers2068 hits · 1978 pts
SeverityFileLineSnippetContext
LOWtests/test_oss_to_platform_migrate.py378def test_existing_api_key_authenticates_and_stitches_ids(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py409def test_email_code_authenticates_without_persisting_credentials(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py439def test_invalid_stored_key_falls_back_to_email_code(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py472def test_email_code_failure_reports_failed_telemetry(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py498def test_malformed_config_does_not_crash_and_authenticates(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py518def test_weird_telemetry_shape_does_not_crash(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py555def test_curl_piped_help_works() -> None:CODE
LOWtests/test_oss_to_platform_migrate.py568def test_export_qdrant_memories_to_json_without_vectors_or_api_key(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py652def test_export_requires_scope_or_all(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py662def test_export_all_uses_no_qdrant_filter(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py675def test_export_invalid_qdrant_credentials_fail_clearly(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py690def test_import_platform_memories_from_export_json(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py735def test_import_skips_existing_identical_memory(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py764def test_import_reports_changed_existing_without_update_or_add(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py798def test_full_flow_auth_export_and_imports_memories(tmp_path: Path) -> None:CODE
LOW⚡tests/test_telemetry_aliasing.py40 def test_creates_config_when_missing(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py47 def test_backfills_user_id_when_only_telemetry_present(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py59 def test_does_not_overwrite_existing_user_id(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py67 def test_handles_malformed_json(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py114 def test_no_config_returns_all_none(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py120 def test_malformed_json_does_not_raise(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py132 def test_writes_aliased_pair_preserving_other_fields(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py149 def test_creates_telemetry_section_when_missing(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py157 def test_tracks_each_pair_independently(self, tmp_mem0_dir):CODE
LOW⚡tests/test_telemetry_aliasing.py171 def test_fires_identify_with_anon_distinct_id(self):CODE
LOW⚡tests/test_telemetry_aliasing.py185 def test_skips_when_anon_equals_email(self):CODE
LOW⚡tests/test_telemetry_aliasing.py194 def test_skips_when_inputs_empty(self):CODE
LOW⚡tests/test_telemetry_aliasing.py204 def test_noop_when_telemetry_disabled(self):CODE
LOW⚡tests/test_telemetry_aliasing.py212 def test_does_not_raise_on_posthog_error(self):CODE
LOW⚡tests/test_telemetry_aliasing.py221 def test_identify_is_in_lifecycle_events(self):CODE
LOW⚡tests/test_telemetry_aliasing.py236 def test_fires_identify_for_oss_uuid(self):CODE
LOW⚡tests/test_telemetry_aliasing.py254 def test_fires_identify_for_cli_anon(self):CODE
LOW⚡tests/test_telemetry_aliasing.py271 def test_fires_identify_for_both_anon_ids(self):CODE
LOW⚡tests/test_telemetry_aliasing.py291 def test_skips_when_pair_already_aliased(self):CODE
LOW⚡tests/test_telemetry_aliasing.py308 def test_skips_when_email_invalid(self):CODE
LOW⚡tests/test_telemetry_aliasing.py317 def test_skips_when_telemetry_disabled(self):CODE
LOW⚡tests/test_telemetry_aliasing.py352 def test_skips_anon_id_equal_to_email(self):CODE
LOW⚡tests/test_telemetry_aliasing.py369 def test_does_not_raise_on_read_failure(self):CODE
LOW⚡tests/test_telemetry_aliasing.py388 def test_second_call_is_noop_after_pair_marker_persisted(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py334 def test_does_not_raise_on_telemetry_failure(self):CODE
LOWtests/test_telemetry_sampling.py32 def test_invalid_values_fall_back_to_default(self, raw):CODE
LOW⚡tests/test_telemetry_sampling.py45 def test_lifecycle_event_passes_through_at_high_random(self):CODE
LOW⚡tests/test_telemetry_sampling.py53 def test_hot_path_event_dropped_when_random_above_rate(self):CODE
LOW⚡tests/test_telemetry_sampling.py59 def test_hot_path_event_passes_when_random_below_rate(self):CODE
LOW⚡tests/test_telemetry_sampling.py67 def test_hot_path_annotates_sample_rate(self):CODE
LOW⚡tests/test_telemetry_sampling.py73 def test_lifecycle_annotates_sample_rate_one(self):CODE
LOW⚡tests/test_telemetry_sampling.py77 def test_rate_zero_drops_all_hot_path(self):CODE
LOW⚡tests/test_telemetry_sampling.py84 def test_rate_zero_still_passes_lifecycle(self):CODE
LOW⚡tests/test_telemetry_sampling.py89 def test_rate_one_passes_all_events(self):CODE
LOW⚡tests/test_telemetry_sampling.py95 def test_does_not_override_caller_supplied_sample_rate_for_hot_path(self):CODE
LOW⚡tests/test_telemetry_sampling.py104 def test_handles_missing_properties_dict(self):CODE
LOW⚡tests/test_telemetry_sampling.py111 def test_handles_missing_event_field(self):CODE
LOW⚡tests/test_telemetry_sampling.py118 def test_handles_non_dict_input(self):CODE
LOWtests/test_telemetry_sampling.py137 def test_oss_singleton_constructed_with_before_send_hook(self):CODE
LOWtests/test_telemetry_sampling.py148 def test_client_telemetry_constructed_without_before_send(self):CODE
LOWtests/test_telemetry_sampling.py165 def test_anonymous_telemetry_constructs_posthog_with_current_kwargs(self):CODE
LOW⚡tests/test_telemetry_sampling.py195 def test_capture_event_signature_unchanged(self):CODE
LOW⚡tests/test_telemetry_sampling.py202 def test_capture_client_event_signature_unchanged(self):CODE
LOW⚡tests/test_telemetry_sampling.py208 def test_default_sample_rate_is_ten_percent(self):CODE
LOWtests/test_memory_integration.py6def test_memory_configuration_without_env_vars():CODE
2008 more matches not shown…
Decorative Section Separators392 hits · 1274 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_telemetry_aliasing.py36# ─── setup_config idempotency ────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_telemetry_aliasing.py76# ─── read_anon_ids ───────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_telemetry_aliasing.py128# ─── mark_aliased ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_telemetry_aliasing.py167# ─── capture_identify ────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_telemetry_aliasing.py228# ─── _maybe_alias_anon_to_email integration ──────────────────────────────────COMMENT
MEDIUM⚡tests/test_telemetry_aliasing.py381# ─── End-to-end idempotency through real config ──────────────────────────────COMMENT
MEDIUM⚡tests/test_server_params.py86# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py88# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py113# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py115# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py139# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py141# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py155# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py157# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py194# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py196# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py248# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py250# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py269# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py271# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py296# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py298# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py321# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py323# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py354# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py356# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py388# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py390# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py442# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py444# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py479# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py481# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py540# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py542# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py603# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py605# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py656# ===========================================================================COMMENT
MEDIUM⚡tests/test_server_params.py658# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_params.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_params.py58# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py60# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py221# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py223# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py741# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py743# ===========================================================================COMMENT
MEDIUMtests/test_memory.py1110# ─── Entity Param Rejection Tests ─────────────────────────────────────────────COMMENT
MEDIUMtests/test_memory.py1147# ─── Regression: AsyncMemory._create_memory must store text_lemmatized ─────────COMMENT
MEDIUM⚡tests/test_main.py392# =============================================================================COMMENT
MEDIUM⚡tests/test_main.py394# =============================================================================COMMENT
MEDIUM⚡tests/test_server_auth.py472# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_server_auth.py474# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py58# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py148# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py303# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py305# ---------------------------------------------------------------------------COMMENT
332 more matches not shown…
Empty Error Handlers217 hits · 1085 pts
SeverityFileLineSnippetContext
HIGHtests/vector_stores/test_oracledb.py127except Exception:CODE
HIGHtests/vector_stores/test_oracledb.py170except Exception:CODE
HIGHtests/vector_stores/test_oracledb.py186except Exception:CODE
HIGHtests/vector_stores/test_faiss.py445except pickle.UnpicklingError:CODE
HIGHcli/python/src/mem0_cli/config.py192except Exception:CODE
HIGHcli/python/src/mem0_cli/telemetry.py65except Exception:CODE
HIGHcli/python/src/mem0_cli/telemetry.py154except Exception:CODE
HIGHcli/python/src/mem0_cli/telemetry_sender.py83except Exception:CODE
HIGHcli/python/src/mem0_cli/telemetry_sender.py97except Exception:CODE
HIGHcli/python/src/mem0_cli/telemetry_sender.py111except Exception:CODE
HIGHcli/python/src/mem0_cli/app.py75except Exception:CODE
HIGHcli/python/src/mem0_cli/commands/init_cmd.py315except httpx.HTTPError:CODE
HIGHcli/python/src/mem0_cli/commands/init_cmd.py557except Exception:CODE
HIGHcli/python/src/mem0_cli/commands/init_cmd.py313except Exception:CODE
HIGHcli/python/src/mem0_cli/commands/agent_mode_cmd.py100except (json.JSONDecodeError, ValueError, AttributeError):CODE
HIGHintegrations/codex-plugin/core/hook_runner.py260except OSError:CODE
HIGHintegrations/codex-plugin/core/flush_worker.py90except OSError:CODE
HIGHintegrations/codex-plugin/core/flush_worker.py95except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py179except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py209except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py393except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py404except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py418except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py532except Exception:CODE
HIGHintegrations/codex-plugin/core/telemetry.py613except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py626except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py770except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py194except FileExistsError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py214except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py492except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py728except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py945except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py289except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py697except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py747except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py207except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py471except OSError:CODE
HIGHintegrations/codex-plugin/core/telemetry.py917except OSError:CODE
HIGHintegrations/codex-plugin/core/memory_core.py1478except (OSError, ValueError):CODE
HIGHintegrations/codex-plugin/core/memory_core.py1900except OSError:CODE
HIGHintegrations/codex-plugin/core/memory_core.py425except FileNotFoundError:CODE
HIGHintegrations/codex-plugin/core/memory_core.py589except OSError:CODE
HIGHintegrations/kimi-plugin/core/hook_runner.py260except OSError:CODE
HIGHintegrations/kimi-plugin/core/flush_worker.py90except OSError:CODE
HIGHintegrations/kimi-plugin/core/flush_worker.py95except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py179except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py209except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py393except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py404except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py418except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py532except Exception:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py613except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py626except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py770except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py194except FileExistsError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py214except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py492except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py728except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py945except OSError:CODE
HIGHintegrations/kimi-plugin/core/telemetry.py289except OSError:CODE
157 more matches not shown…
Magic Placeholder Names116 hits · 541 pts
SeverityFileLineSnippetContext
HIGHLLM.md50client = MemoryClient(api_key="your-api-key")CODE
HIGHLLM.md65const client = new MemoryClient({ apiKey: 'your-api-key' });CODE
HIGHLLM.md170 api_key="your-api-key", # or set MEM0_API_KEY env varCODE
HIGHLLM.md406 "api_key": "your-api-key",CODE
HIGHLLM.md478 apiKey: 'your-api-key',CODE
HIGHLLM.md1142memory_client = MemoryClient(api_key="your-api-key")STRING
HIGH⚡tests/vector_stores/test_azure_ai_search.py638 # Test with api_key="your-api-key"COMMENT
HIGH⚡tests/vector_stores/test_azure_ai_search.py642 api_key="your-api-key",CODE
HIGHtests/embeddings/test_azure_openai_embeddings.py144 base_embedder_config.azure_kwargs.api_key = "your-api-key"CODE
HIGHtests/llms/test_azure_openai_structured.py94 config = DummyConfig(model=None, azure_kwargs=DummyAzureKwargs(api_key="your-api-key"))CODE
HIGHtests/llms/test_azure_openai.py440 config.azure_kwargs.api_key = "your-api-key"CODE
HIGHmem0-ts/src/oss/src/vector_stores/azure_ai_search.ts111 if (this.apiKey && this.apiKey !== "" && this.apiKey !== "your-api-key") {CODE
HIGH…m0-ts/src/community/src/integrations/langchain/mem0.ts135 * apiKey: "your-api-key",COMMENT
HIGHserver/README.md259curl -s http://localhost:8888/memories?user_id=<your-user-id> -H "X-API-Key: <your-api-key>"CODE
HIGHdocs/llms.txt50client = MemoryClient(api_key="your-api-key")CODE
HIGHdocs/llms.txt80const client = new MemoryClient({ apiKey: "your-api-key" });CODE
HIGH⚡docs/openapi.json1897 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGH⚡docs/openapi.json1901 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json1905 "source": "curl -X POST 'https://api.mem0.ai/v2/memories/' \\\n-H 'Authorization: Token your-api-key' \\\n-H 'ContCODE
HIGH⚡docs/openapi.json1909 "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"net/http\"\CODE
HIGH⚡docs/openapi.json1913 "source": "<?php\n\n$curl = curl_init();\n\n$filters = [\n 'AND' => [\n ['user_id' => 'alex'],\n ['created_CODE
HIGH⚡docs/openapi.json1917 "source": "import com.konghq.unirest.http.HttpResponse;\nimport com.konghq.unirest.http.Unirest;\nimport org.json.CODE
HIGH⚡docs/openapi.json5740 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\n\CODE
HIGH⚡docs/openapi.json5744 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json5752 "source": "// To use the Go SDK, install the package:\n// go get github.com/mem0ai/mem0-go\n\npackage main\n\nimpoCODE
HIGH⚡docs/openapi.json5756 "source": "<?php\n// To use the PHP SDK, install the package:\n// composer require mem0ai/mem0-php\n\nrequire_onceCODE
HIGH⚡docs/openapi.json5760 "source": "// To use the Java SDK, add this dependency to your pom.xml:\n// <dependency>\n// <groupId>ai.mem0<CODE
HIGH⚡docs/openapi.json5886 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\n\CODE
HIGH⚡docs/openapi.json5890 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json5898 "source": "// To use the Go SDK, install the package:\n// go get github.com/mem0ai/mem0-go\n\npackage main\n\nimpoCODE
HIGH⚡docs/openapi.json5902 "source": "<?php\n// To use the PHP SDK, install the package:\n// composer require mem0ai/mem0-php\n\nrequire_onceCODE
HIGH⚡docs/openapi.json5906 "source": "// To use the Java SDK, add this dependency to your pom.xml:\n// <dependency>\n// <groupId>ai.mem0<CODE
HIGH⚡docs/openapi.json6568 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGH⚡docs/openapi.json6572 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json6576 "source": "curl -X PUT \"https://api.mem0.ai/v1/batch/\" \\\n -H \"Authorization: Token your-api-key\" \\\n CODE
HIGH⚡docs/openapi.json6656 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGH⚡docs/openapi.json6660 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json6664 "source": "curl -X DELETE \"https://api.mem0.ai/v1/batch/\" \\\n -H \"Authorization: Token your-api-key\" \\\nCODE
HIGH⚡docs/openapi.json6765 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGH⚡docs/openapi.json6769 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json6773 "source": "# Get all webhooks\ncurl --request GET \\\n --url 'https://api.mem0.ai/api/v1/webhooks/your_project_idCODE
HIGH⚡docs/openapi.json6777 "source": "<?php\n\n$curl = curl_init();\n\n// Get all webhooks\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"htCODE
HIGH⚡docs/openapi.json6781 "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {CODE
HIGH⚡docs/openapi.json6785 "source": "// Get all webhooks\nHttpResponse<String> response = Unirest.get(\"https://api.mem0.ai/api/v1/webhooks/CODE
HIGH⚡docs/openapi.json6940 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGH⚡docs/openapi.json6944 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json6948 "source": "curl -X POST \"https://api.mem0.ai/api/v1/webhooks/your_project_id/webhook/\" \\\n -H \"AuthorizatiCODE
HIGH⚡docs/openapi.json6952 "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.mem0.ai/aCODE
HIGH⚡docs/openapi.json6956 "source": "package main\n\nimport (\n \"fmt\"\n \"strings\"\n \"net/http\"\n \"io/ioutil\"\n)\n\nfunc CODE
HIGH⚡docs/openapi.json6960 "source": "import com.konghq.unirest.http.HttpResponse;\nimport com.konghq.unirest.http.Unirest;\n\n// Create a weCODE
HIGH⚡docs/openapi.json7091 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGH⚡docs/openapi.json7095 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json7099 "source": "# Update a webhook\ncurl --request PUT \\\n --url 'https://api.mem0.ai/api/v1/webhooks/your_webhook_idCODE
HIGH⚡docs/openapi.json7103 "source": "<?php\n\n$curl = curl_init();\n\n// Update a webhook\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"htCODE
HIGH⚡docs/openapi.json7107 "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {CODE
HIGH⚡docs/openapi.json7111 "source": "// Update a webhook\nHttpResponse<String> response = Unirest.put(\"https://api.mem0.ai/api/v1/webhooks/CODE
HIGH⚡docs/openapi.json7186 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGH⚡docs/openapi.json7190 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGH⚡docs/openapi.json7194 "source": "curl -X DELETE \"https://api.mem0.ai/api/v1/webhooks/your_webhook_id/webhook/\" \\\n -H \"AuthorizaCODE
HIGH⚡docs/openapi.json7198 "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.mem0.ai/aCODE
56 more matches not shown…
Excessive Try-Catch Wrapping485 hits · 441 pts
SeverityFileLineSnippetContext
LOWLLM.md987 except Exception as e:STRING
LOWLLM.md1168 except Exception as e:STRING
LOW⚡LLM.md1180 except Exception as e:STRING
LOW⚡LLM.md1188 except Exception as e:STRING
LOW⚡LLM.md1196 except Exception as e:STRING
LOWLLM.md1235 except Exception as e:STRING
LOWLLM.md1251 except Exception as e:STRING
MEDIUMLLM.md984def safe_memory_operation(memory_client, operation, *args, **kwargs):CODE
LOWtests/vector_stores/test_e2e_threshold.py215 except Exception:CODE
LOWtests/vector_stores/test_e2e_threshold.py262 except Exception:CODE
MEDIUMtests/vector_stores/test_e2e_threshold.py204def _pgvector_reachable():CODE
LOWtests/vector_stores/test_score_normalization.py198 except Exception:CODE
LOWtests/vector_stores/test_score_normalization.py252 except Exception:CODE
MEDIUMtests/vector_stores/test_score_normalization.py187def _pgvector_reachable():CODE
LOWtests/vector_stores/test_oracledb.py127 except Exception:CODE
LOWtests/vector_stores/test_oracledb.py170 except Exception:CODE
LOWtests/vector_stores/test_oracledb.py186 except Exception:CODE
LOWtests/utils/test_entity_extraction.py11 except Exception:CODE
LOWtests/utils/test_lemmatization.py10 except Exception:CODE
LOWserver/telemetry.py104 except Exception:CODE
LOWserver/main.py73 except Exception:CODE
LOWserver/main.py285 except Exception:CODE
LOWserver/main.py305 except Exception:CODE
LOWserver/main.py363 except Exception:CODE
LOWserver/main.py381 except Exception:CODE
LOWserver/main.py439 except Exception:CODE
LOWserver/main.py448 except Exception:CODE
LOWserver/main.py483 except Exception:CODE
LOWserver/main.py502 except Exception:CODE
LOWserver/main.py511 except Exception:CODE
LOWserver/main.py523 except Exception:CODE
LOWserver/main.py543 except Exception:CODE
LOWserver/main.py553 except Exception:CODE
LOWserver/server_state.py34 except Exception:CODE
LOWserver/server_state.py60 except Exception:CODE
MEDIUMserver/server_state.py20def _load_overrides() -> Dict[str, Any]:CODE
LOWserver/routers/entities.py74 except Exception:CODE
LOWcli/python/src/mem0_cli/config.py192 except Exception:CODE
LOWcli/python/src/mem0_cli/branding.py136 except Exception:CODE
LOWcli/python/src/mem0_cli/branding.py144 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry.py65 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry.py69 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry.py154 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py83 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py97 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py111 except Exception:CODE
LOWcli/python/src/mem0_cli/app.py75 except Exception:CODE
LOWcli/python/src/mem0_cli/app.py149 except Exception:CODE
LOWcli/python/src/mem0_cli/app.py203 except Exception:CODE
LOWcli/python/src/mem0_cli/plugin_sync.py116 except Exception:CODE
LOWcli/python/src/mem0_cli/backend/platform.py51 except Exception:CODE
LOWcli/python/src/mem0_cli/backend/platform.py394 except Exception as e:CODE
LOW⚡cli/python/src/mem0_cli/commands/init_cmd.py156 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py189 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py313 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py557 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py565 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py48 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/memory.py175 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py303 except Exception as e:CODE
425 more matches not shown…
Docstring Block Structure75 hits · 322 pts
SeverityFileLineSnippetContext
HIGHmem0/vector_stores/faiss.py64 Safely load a pickle file using restricted unpickler. Args: file_path: Path to the pickle file. RSTRING
HIGHmem0/vector_stores/faiss.py81 Validate that loaded data has the expected structure. Args: data: The loaded data to validate. ReSTRING
HIGHmem0/vector_stores/vertex_ai_vector_search.py333Update a vector and its payload. Args: vector_id: ID of the vector to update vector: OpSTRING
HIGHmem0/vector_stores/vertex_ai_vector_search.py549Add texts to the vector store. Args: texts: List of texts to add metadatas: Optional liSTRING
HIGHmem0/memory/main.py176 Validates and normalizes an entity ID. - Coerces non-string values (e.g. integer ids) to str - Trims leadinSTRING
HIGHmem0/memory/main.py774 Create a new memory. Adds new memories scoped to a single session id (e.g. `user_id`, `agent_id`, or `STRING
HIGHmem0/memory/main.py1277 List all memories. Args: filters (dict): Filter dict containing entity IDs and optional meSTRING
HIGHmem0/memory/main.py1406 Searches for memories based on a query. Args: query (str): Query to search for. STRING
HIGHmem0/memory/main.py2958 List all memories. Args: filters (dict): Filter dict containing entity IDs and optional meSTRING
HIGHmem0/memory/main.py3087 Searches for memories based on a query. Args: query (str): Query to search for. STRING
HIGHmem0/utils/gcp_auth.py30 Get Google credentials using the priority order defined above. Args: service_account_json:STRING
HIGHmem0/utils/gcp_auth.py99 Initialize Vertex AI with proper authentication. Args: service_account_json: Service accouSTRING
HIGHmem0/utils/factory.py65 Create an LLM instance with the appropriate configuration. Args: provider_name (str): The STRING
HIGHmem0/utils/factory.py246 Create a reranker instance based on the provider and configuration. Args: provider_name: TSTRING
HIGHmem0/client/main.py304Add a new memory. Args: messages: A list of message dictionaries, a single message dictionary, STRING
HIGHmem0/client/main.py345Retrieve a specific memory by ID. Args: memory_id: The ID of the memory to retrieve. ReturSTRING
HIGHmem0/client/main.py369Retrieve all memories, with optional filtering. Args: options: Typed options for the get_all operatSTRING
HIGHmem0/client/main.py417Search memories based on a query. Args: query: The search query string. options: Typed STRING
HIGHmem0/client/main.py469Update a memory by ID. Args: memory_id: The ID of the memory to update. options: Typed STRING
HIGHmem0/client/main.py505Delete a specific memory by ID. Args: memory_id: The ID of the memory to delete. deleteSTRING
HIGHmem0/client/main.py536Delete all memories, with optional filtering. Args: options: Typed options for the delete_all operaSTRING
HIGHmem0/client/main.py567Retrieve the history of a specific memory. Args: memory_id: The ID of the memory to retrieve historSTRING
HIGHmem0/client/main.py606Delete specific entities or all entities if no filters provided. Args: user_id: Optional user ID toSTRING
HIGHmem0/client/main.py693Batch update memories. Args: memories: List of memory dictionaries to update. Each dictionary must STRING
HIGHmem0/client/main.py720Batch delete memories. Args: memories: List of memory dictionaries to delete. Each dictionary STRING
HIGHmem0/client/main.py808Get the memory profile for a single user. Branch on ``status``, not on an empty ``profile``: generation is STRING
HIGHmem0/client/main.py833Generate or refresh the profile for a single user, now. Profiles are otherwise built once a user crosses an intSTRING
HIGHmem0/client/main.py888Update the profile settings for the current project. Only the arguments you pass are written. Args: STRING
HIGHmem0/client/main.py921Generate profiles for a few real users, to check a schema. Real generations against real memories, and the resuSTRING
HIGHmem0/client/main.py976Get instructions or categories for the current project. Args: fields: List of fields to retrieve STRING
HIGHmem0/client/main.py1025Update the project settings. Args: options: Typed options for the update operation (ProjectUpdateOpSTRING
HIGHmem0/client/main.py1095Get webhooks configuration for the project. Args: project_id: The ID of the project to get webhooksSTRING
HIGHmem0/client/main.py1120Create a webhook for the current project. Args: url: The URL to send the webhook to. naSTRING
HIGHmem0/client/main.py1154Update a webhook configuration. Args: webhook_id: ID of the webhook to update name: OptSTRING
HIGHmem0/client/main.py1182Delete a webhook configuration. Args: webhook_id: ID of the webhook to delete Returns: STRING
HIGHmem0/client/main.py1399Add a new memory. Args: messages: A list of message dictionaries, a single message dictionary, STRING
HIGHmem0/client/main.py1448Retrieve all memories, with optional filtering. Args: options: Typed options for the get_all operatSTRING
HIGHmem0/client/main.py1496Search memories based on a query. Args: query: The search query string. options: Typed STRING
HIGHmem0/client/main.py1548Update a memory by ID asynchronously. Args: memory_id: The ID of the memory to update. STRING
HIGHmem0/client/main.py1586Delete a specific memory by ID. Args: memory_id: The ID of the memory to delete. deleteSTRING
HIGHmem0/client/main.py1617Delete all memories, with optional filtering. Args: options: Typed options for the delete_all operaSTRING
HIGHmem0/client/main.py1643Retrieve the history of a specific memory. Args: memory_id: The ID of the memory to retrieve historSTRING
HIGHmem0/client/main.py1685Delete specific entities or all entities if no filters provided. Args: user_id: Optional user ID toSTRING
HIGHmem0/client/main.py1771Batch update memories. Args: memories: List of memory dictionaries to update. Each dictionary must STRING
HIGHmem0/client/main.py1798Batch delete memories. Args: memories: List of memory dictionaries to delete. Each dictionary STRING
HIGHmem0/client/main.py1873Get the memory profile for a single user. Branch on ``status``, not on an empty ``profile``: generation is STRING
HIGHmem0/client/main.py1898Generate or refresh the profile for a single user, now. Profiles are otherwise built once a user crosses an intSTRING
HIGHmem0/client/main.py1953Update the profile settings for the current project. Only the arguments you pass are written. Args: STRING
HIGHmem0/client/main.py1988Generate profiles for a few real users, to check a schema. Real generations against real memories, and the resuSTRING
HIGHmem0/client/main.py2043Get instructions or categories for the current project. Args: fields: List of fields to retrieve STRING
HIGHmem0/client/main.py2088Update the project settings. Args: options: Typed options for the update operation (ProjectUpdateOpSTRING
HIGHmem0/client/main.py2158Get webhooks configuration for the project. Args: project_id: The ID of the project to get webhooksSTRING
HIGHmem0/client/main.py2183Create a webhook for the current project. Args: url: The URL to send the webhook to. naSTRING
HIGHmem0/client/main.py2217Update a webhook configuration. Args: webhook_id: ID of the webhook to update name: OptSTRING
HIGHmem0/client/main.py2245Delete a webhook configuration. Args: webhook_id: ID of the webhook to delete Returns: STRING
HIGHmem0/client/project.py86 Prepare query parameters for API requests. Args: kwargs: Additional keyword arguments. STRING
HIGHmem0/client/project.py111 Prepare query parameters for organization-level API requests. Args: kwargs: Additional keySTRING
HIGHmem0/client/project.py136 Get project details. Args: fields: List of fields to retrieve Returns: STRING
HIGHmem0/client/project.py156 Create a new project within the organization. Args: name: Name of the project to be createSTRING
HIGHmem0/client/project.py182 Update project settings. Args: custom_instructions: New instructions for the project STRING
15 more matches not shown…
Hallucination Indicators22 hits · 240 pts
SeverityFileLineSnippetContext
CRITICAL⚡tests/vector_stores/test_azure_ai_search.py610 mock_search_client._client._config.user_agent_policy.add_user_agent.assert_called_with("mem0")CODE
CRITICAL⚡tests/vector_stores/test_azure_ai_search.py611 mock_index_client._client._config.user_agent_policy.add_user_agent.assert_called_with("mem0")CODE
CRITICALtests/vector_stores/test_azure_ai_search.py5from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtests/vector_stores/test_weaviate.py151 self.client_mock.collections.get.return_value.data.delete_by_id.assert_called_once_with("id1")CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1419 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1482 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1535 axiosModule.__mockHttpClient.post.mock.calls.some(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1587 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1597 axiosModule.__mockHttpClient.post.mock.calls.some(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1630 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1669 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1709 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1740 const queryCalls = axiosModule.__mockHttpClient.post.mock.calls.filter(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1765 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1851 axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/opensearch.unit.test.ts49 const createCall = client.indices.create.mock.calls.find(CODE
CRITICALmem0/vector_stores/azure_ai_search.py13 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALmem0/vector_stores/azure_ai_search.py98 self.search_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICALmem0/vector_stores/azure_ai_search.py99 self.index_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICAL⚡mem0/vector_stores/azure_ai_search.py424 self.search_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICAL⚡mem0/vector_stores/azure_ai_search.py425 self.index_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICALmem0/llms/openai_structured.py48 response = self.client.beta.chat.completions.parse(**params)CODE
Structural Annotation Overuse97 hits · 170 pts
SeverityFileLineSnippetContext
LOWtests/vector_stores/test_e2e_threshold.py63 # Step 1: Search without threshold (baseline)COMMENT
LOW⚡tests/vector_stores/test_e2e_threshold.py74 # Step 2: Verify all scores are non-negative (similarity, not raw distance)COMMENT
LOW⚡tests/vector_stores/test_e2e_threshold.py79 # Step 3: Simulate threshold filtering as Memory.search() does itCOMMENT
LOW⚡tests/vector_stores/test_e2e_threshold.py99 # Step 4: Very high threshold should return 0 or very few resultsCOMMENT
LOWtests/vector_stores/test_databricks.py636 # Step 1: Config validation (simulates what Memory.from_config does)COMMENT
LOWtests/vector_stores/test_databricks.py654 # Step 2: Factory instantiation (same as MemoryBase.__init__)COMMENT
LOW⚡tests/memory/test_main.py567 # Step 1: Create a memory — capture the payload stored in the vector storeCOMMENT
LOW⚡tests/memory/test_main.py577 # Step 2: Simulate the vector store returning this memory for both search and get_allCOMMENT
LOW⚡tests/memory/test_main.py586 # Step 3: Call search and get_all, compare timestampsCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1425 // Step 1: Preprocess queryCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1429 // Step 2: Embed queryCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1432 // Step 3: Semantic search (over-fetch for scoring pool)COMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1440 // Step 4: Keyword search (if store supports it)COMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1552 // Step 7: Build candidate set from semantic resultsCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1561 // Step 8: Score and rankCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1571 // Step 9: Format resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1459 // Step 5: Compute BM25 scores from keyword resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1472 // Step 6: Compute entity boostsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1594 // Step 10: Optionally re-rank with the configured reranker. Opt-in perCOMMENT
LOW⚡mem0-ts/src/oss/src/prompts/index.ts902 // Step 1: Strip known noise tokens from OpenRouter/local modelsCOMMENT
LOW⚡mem0-ts/src/oss/src/prompts/index.ts910 // Step 2: Strip code fences and <think> blocksCOMMENT
LOW⚡mem0-ts/src/oss/src/prompts/index.ts916 // Step 3: Try to find valid JSON object by testing each `{` as potential startCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts966 // Step 4: Fallback - try first/last brace (original behavior for edge cases)COMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts980 // Step 5: Try to locate a JSON array by testing each `[` as potential startCOMMENT
LOW⚡cli/python/src/mem0_cli/commands/init_cmd.py163 # Step 2: Get code from userCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py144 # Step 1: Request verification codeCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py177 # Step 3: Verify codeCOMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py165 # Step 1: request OTP (unless --code provided)COMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py199 # Step 2: verify + claim in one shotCOMMENT
LOWcli/node/src/commands/agent-mode.ts180 // Step 1: request OTP (unless --code was supplied)COMMENT
LOWcli/node/src/commands/agent-mode.ts222 // Step 2: verify + claim atomicallyCOMMENT
LOW…ns/opencode-plugin/opencode-skills/mem0-scope/SKILL.md23### Step 1: Determine intentCOMMENT
LOW…ns/opencode-plugin/opencode-skills/mem0-scope/SKILL.md31### Step 2: View mode — show the current scopeCOMMENT
LOW…ns/opencode-plugin/opencode-skills/mem0-scope/SKILL.md67### Step 3: Change mode — set a new scopeCOMMENT
LOW…s/opencode-plugin/opencode-skills/mem0-forget/SKILL.md12### Step 1: Parse inputCOMMENT
LOW…s/opencode-plugin/opencode-skills/mem0-forget/SKILL.md20### Step 2: Find memoriesCOMMENT
LOW⚡…s/opencode-plugin/opencode-skills/mem0-forget/SKILL.md38### Step 3: ConfirmCOMMENT
LOW⚡…s/opencode-plugin/opencode-skills/mem0-forget/SKILL.md46### Step 4: DeleteCOMMENT
LOW⚡…s/opencode-plugin/opencode-skills/mem0-forget/SKILL.md50### Step 5: ReportCOMMENT
LOW…opencode-plugin/opencode-skills/mem0-remember/SKILL.md12### Step 1: Extract the contentCOMMENT
LOW…opencode-plugin/opencode-skills/mem0-remember/SKILL.md18### Step 2: Classify the memoryCOMMENT
LOW…opencode-plugin/opencode-skills/mem0-remember/SKILL.md32### Step 3: StoreCOMMENT
LOW…opencode-plugin/opencode-skills/mem0-remember/SKILL.md44### Step 4: ConfirmCOMMENT
LOW…s/opencode-plugin/opencode-skills/mem0-search/SKILL.md12### Step 1: Parse queryCOMMENT
LOW…s/opencode-plugin/opencode-skills/mem0-search/SKILL.md28### Step 2: SearchCOMMENT
LOW…s/opencode-plugin/opencode-skills/mem0-search/SKILL.md32### Step 3: DisplayCOMMENT
LOW⚡…ons/opencode-plugin/opencode-skills/mem0-tour/SKILL.md57### Step 1: Fetch ALL memories for this projectCOMMENT
LOW⚡…ons/opencode-plugin/opencode-skills/mem0-tour/SKILL.md63### Step 2: Run supplementary semantic searchesCOMMENT
LOW⚡…ons/opencode-plugin/opencode-skills/mem0-tour/SKILL.md73### Step 3: Merge and groupCOMMENT
LOW…ons/opencode-plugin/opencode-skills/mem0-tour/SKILL.md97### Step 4: Display resultsCOMMENT
LOW…ons/opencode-plugin/opencode-skills/mem0-tour/SKILL.md137### Step 5: Print totalsCOMMENT
LOW…ons/opencode-plugin/opencode-skills/mem0-tour/SKILL.md146### Step 6: Empty stateCOMMENT
LOW⚡integrations/pi-agent-plugin/skills/search/SKILL.md12### Step 1: Parse queryCOMMENT
LOW⚡integrations/pi-agent-plugin/skills/search/SKILL.md20### Step 2: SearchCOMMENT
LOW⚡integrations/pi-agent-plugin/skills/search/SKILL.md24### Step 3: DisplayCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md43### Step 1: Fetch ALL memoriesCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md47### Step 2: Group by categoryCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md65### Step 3: Display resultsCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md77### Step 4: Print totalsCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md83### Step 5: Empty stateCOMMENT
37 more matches not shown…
Deep Nesting185 hits · 138 pts
SeverityFileLineSnippetContext
LOWtests/test_telemetry_sampling.py137CODE
LOWtests/test_memory_integration.py6CODE
LOWtests/test_telemetry.py177CODE
LOWtests/test_telemetry.py187CODE
LOWtests/test_telemetry.py207CODE
LOWtests/test_telemetry.py219CODE
LOWtests/test_telemetry.py237CODE
LOWtests/test_telemetry.py285CODE
LOWtests/vector_stores/test_faiss.py527CODE
LOWtests/memory/test_session_scope.py63CODE
LOWserver/auth.py198CODE
LOWcli/python/src/mem0_cli/app.py100CODE
LOWcli/python/src/mem0_cli/output.py143CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py34CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py125CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py197CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py537CODE
LOWcli/python/src/mem0_cli/commands/memory.py583CODE
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py143CODE
LOWintegrations/codex-plugin/core/hook_runner.py264CODE
LOWintegrations/codex-plugin/core/flush_worker.py25CODE
LOWintegrations/codex-plugin/core/telemetry.py134CODE
LOWintegrations/codex-plugin/core/memory_cli.py61CODE
LOWintegrations/codex-plugin/core/memory_core.py1316CODE
LOWintegrations/codex-plugin/core/memory_core.py1493CODE
LOWintegrations/codex-plugin/core/memory_core.py1729CODE
LOWintegrations/codex-plugin/core/memory_core.py1962CODE
LOWintegrations/codex-plugin/core/memory_core.py2519CODE
LOWintegrations/codex-plugin/core/memory_core.py988CODE
LOWintegrations/codex-plugin/hooks/adapter.py42CODE
LOWintegrations/kimi-plugin/core/hook_runner.py264CODE
LOWintegrations/kimi-plugin/core/flush_worker.py25CODE
LOWintegrations/kimi-plugin/core/telemetry.py134CODE
LOWintegrations/kimi-plugin/core/memory_cli.py61CODE
LOWintegrations/kimi-plugin/core/memory_core.py1316CODE
LOWintegrations/kimi-plugin/core/memory_core.py1493CODE
LOWintegrations/kimi-plugin/core/memory_core.py1729CODE
LOWintegrations/kimi-plugin/core/memory_core.py1962CODE
LOWintegrations/kimi-plugin/core/memory_core.py2519CODE
LOWintegrations/kimi-plugin/core/memory_core.py988CODE
LOWintegrations/kimi-plugin/hooks/adapter.py33CODE
LOWintegrations/kimi-plugin/hooks/adapter.py54CODE
LOWintegrations/antigravity-plugin/core/hook_runner.py264CODE
LOWintegrations/antigravity-plugin/core/flush_worker.py25CODE
LOWintegrations/antigravity-plugin/core/telemetry.py134CODE
LOWintegrations/antigravity-plugin/core/memory_cli.py61CODE
LOWintegrations/antigravity-plugin/core/memory_core.py1316CODE
LOWintegrations/antigravity-plugin/core/memory_core.py1493CODE
LOWintegrations/antigravity-plugin/core/memory_core.py1729CODE
LOWintegrations/antigravity-plugin/core/memory_core.py1962CODE
LOWintegrations/antigravity-plugin/core/memory_core.py2519CODE
LOWintegrations/antigravity-plugin/core/memory_core.py988CODE
LOWintegrations/antigravity-plugin/hooks/adapter.py28CODE
LOWintegrations/agent-plugin-core/python/hook_runner.py264CODE
LOWintegrations/agent-plugin-core/python/flush_worker.py25CODE
LOWintegrations/agent-plugin-core/python/telemetry.py134CODE
LOWintegrations/agent-plugin-core/python/memory_cli.py61CODE
LOWintegrations/agent-plugin-core/python/memory_core.py1316CODE
LOWintegrations/agent-plugin-core/python/memory_core.py1493CODE
LOWintegrations/agent-plugin-core/python/memory_core.py1729CODE
125 more matches not shown…
Self-Referential Comments43 hits · 123 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_client.py19 # Create a mock client instanceCOMMENT
MEDIUMtests/vector_stores/test_azure_ai_search.py60 # Create an instance with dummy parameters.COMMENT
MEDIUMtests/vector_stores/test_elasticsearch.py36 # Create a mock Elasticsearch client with proper attributesCOMMENT
MEDIUMtests/vector_stores/test_supabase.py98 # Create a Mock object to represent the recordCOMMENT
MEDIUMtests/vector_stores/test_mongodb.py18 # Create a proper mock cursorCOMMENT
MEDIUMtests/vector_stores/test_pinecone.py108 # Create a mock Vector objectCOMMENT
MEDIUMtests/vector_stores/test_valkey.py521 # Create a mock result with all fieldsCOMMENT
MEDIUM⚡tests/vector_stores/test_faiss.py362 # Create a legitimate pickle with basic typesCOMMENT
MEDIUMtests/vector_stores/test_faiss.py35 # Create a FAISS instance with a temporary directoryCOMMENT
MEDIUMtests/vector_stores/test_faiss.py396 # Create a malicious pickle that tries to use subprocessCOMMENT
MEDIUMtests/vector_stores/test_faiss.py413 # Create a malicious pickle that tries to use evalCOMMENT
MEDIUMtests/vector_stores/test_faiss.py430 # Create a pickle that tries to load a class from a non-builtins moduleCOMMENT
MEDIUMtests/vector_stores/test_faiss.py604 # Create a malicious pickle file (RCE payload)COMMENT
MEDIUMtests/vector_stores/test_faiss.py644 # Create a legitimate legacy pickle fileCOMMENT
MEDIUMtests/embeddings/test_huggingface_embeddings.py86 # Create a mock for the response object and its attributesCOMMENT
MEDIUMtests/memory/test_storage.py255 # Create a legacy 'history' table missing new columnsCOMMENT
MEDIUMtests/memory/test_main.py612 # Create a memoryCOMMENT
MEDIUMtests/llms/test_langchain.py29 # Create a config with the model instance directlyCOMMENT
MEDIUMtests/llms/test_langchain.py41 # Create a config with the model instanceCOMMENT
MEDIUMserver/init-db.sh4# Create the mem0_app database for user/auth/api-key data.COMMENT
MEDIUM⚡docs/openapi.json6765 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
MEDIUM⚡docs/openapi.json6773 "source": "# Get all webhooks\ncurl --request GET \\\n --url 'https://api.mem0.ai/api/v1/webhooks/your_project_idCODE
MEDIUM⚡docs/openapi.json6940 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
MEDIUMexamples/misc/personal_assistant_agno.py21# Define the agentCOMMENT
MEDIUMexamples/misc/healthcare_assistant_google_adk.py74# Create the Healthcare Assistant AgentCOMMENT
MEDIUMexamples/misc/healthcare_assistant_google_adk.py105# Create a sessionSTRING
MEDIUMexamples/misc/healthcare_assistant_google_adk.py108# Create the runnerSTRING
MEDIUM⚡examples/misc/strands_agent_aws_elasticache_neptune.py138 # Create a simple message format for mem0 vector storageCOMMENT
MEDIUMexamples/misc/strands_agent_aws_elasticache_neptune.py350# Create a container with the chat frame stylingCOMMENT
MEDIUMexamples/multiagents/llamaindex_learning_system.py136 # Create the multi-agent workflowSTRING
MEDIUMmem0/vector_stores/valkey.py111 # Create the index schemaCOMMENT
MEDIUMmem0/vector_stores/valkey.py299 # Create the key for the hashCOMMENT
MEDIUMmem0/vector_stores/valkey.py402 # Create the payloadCOMMENT
MEDIUMmem0/vector_stores/valkey.py426 # Create the resultCOMMENT
MEDIUMmem0/vector_stores/valkey.py561 # Create the payload with error handlingCOMMENT
MEDIUMmem0/vector_stores/redis.py96 # Create a new schema with the specified parametersCOMMENT
MEDIUMmem0/vector_stores/redis.py108 # Create the schemaCOMMENT
MEDIUMmem0/vector_stores/redis.py111 # Create the indexCOMMENT
MEDIUM⚡mem0/vector_stores/azure_ai_search.py427 # Create the collectionCOMMENT
MEDIUMmem0/vector_stores/vertex_ai_vector_search.py511 # This method is included only to satisfy the abstract base classCOMMENT
MEDIUMmem0/vector_stores/vertex_ai_vector_search.py524 # Create the payload with all necessary fieldsCOMMENT
MEDIUMmem0/memory/storage.py65 # Create the new history table with updated schemaCOMMENT
MEDIUMmem0/memory/main.py538 # Create the config object using the same class as the originalCOMMENT
Unused Imports126 hits · 120 pts
SeverityFileLineSnippetContext
LOWtests/test_oss_to_platform_migrate.py1CODE
LOWserver/alembic/env.py9CODE
LOWcli/python/tests/test_platform_backend_options.py3CODE
LOWcli/python/tests/conftest.py3CODE
LOWcli/python/tests/test_output.py3CODE
LOWcli/python/tests/test_branding.py3CODE
LOWcli/python/tests/test_platform_backend.py3CODE
LOWcli/python/tests/test_commands.py3CODE
LOWcli/python/tests/test_init_internals.py17CODE
LOWcli/python/tests/test_config.py3CODE
LOWcli/python/tests/test_cli_integration.py8CODE
LOWcli/python/tests/test_agent_mode.py13CODE
LOWcli/python/tests/test_telemetry.py3CODE
LOWcli/python/src/mem0_cli/config.py10CODE
LOWcli/python/src/mem0_cli/telemetry.py10CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py17CODE
LOWcli/python/src/mem0_cli/agent_detect.py15CODE
LOWcli/python/src/mem0_cli/app.py3CODE
LOWcli/python/src/mem0_cli/plugin_sync.py27CODE
LOWcli/python/src/mem0_cli/output.py3CODE
LOWcli/python/src/mem0_cli/state.py3CODE
LOWcli/python/src/mem0_cli/backend/__init__.py3CODE
LOWcli/python/src/mem0_cli/backend/__init__.py3CODE
LOWcli/python/src/mem0_cli/backend/platform.py3CODE
LOWcli/python/src/mem0_cli/backend/base.py3CODE
LOWcli/python/src/mem0_cli/commands/config_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/memory.py3CODE
LOWcli/python/src/mem0_cli/commands/whoami_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/agent_rush_cmd.py7CODE
LOWcli/python/src/mem0_cli/commands/utils.py3CODE
LOWcli/python/src/mem0_cli/commands/events_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/identify_cmd.py9CODE
LOWcli/python/src/mem0_cli/commands/entities.py3CODE
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py3CODE
LOWintegrations/codex-plugin/core/hook_runner.py3CODE
LOWintegrations/codex-plugin/core/flush_worker.py8CODE
LOWintegrations/codex-plugin/core/telemetry.py20CODE
LOWintegrations/codex-plugin/core/memory_cli.py4CODE
LOWintegrations/codex-plugin/core/memory_core.py9CODE
LOWintegrations/codex-plugin/core/mcp_server.py4CODE
LOWintegrations/codex-plugin/tests/test_codex.py1CODE
LOWintegrations/codex-plugin/hooks/adapter.py4CODE
LOWintegrations/kimi-plugin/core/hook_runner.py3CODE
LOWintegrations/kimi-plugin/core/flush_worker.py8CODE
LOWintegrations/kimi-plugin/core/telemetry.py20CODE
LOWintegrations/kimi-plugin/core/memory_cli.py4CODE
LOWintegrations/kimi-plugin/core/memory_core.py9CODE
LOWintegrations/kimi-plugin/core/mcp_server.py4CODE
LOWintegrations/kimi-plugin/tests/test_kimi.py1CODE
LOWintegrations/kimi-plugin/hooks/adapter.py4CODE
LOWintegrations/antigravity-plugin/core/hook_runner.py3CODE
LOWintegrations/antigravity-plugin/core/flush_worker.py8CODE
LOWintegrations/antigravity-plugin/core/telemetry.py20CODE
LOWintegrations/antigravity-plugin/core/memory_cli.py4CODE
LOWintegrations/antigravity-plugin/core/memory_core.py9CODE
LOWintegrations/antigravity-plugin/core/mcp_server.py4CODE
LOW…egrations/antigravity-plugin/tests/test_antigravity.py1CODE
LOWintegrations/antigravity-plugin/hooks/adapter.py4CODE
LOWintegrations/agent-plugin-core/python/hook_runner.py3CODE
66 more matches not shown…
Verbosity Indicators49 hits · 86 pts
SeverityFileLineSnippetContext
LOWtests/vector_stores/test_e2e_threshold.py63 # Step 1: Search without threshold (baseline)COMMENT
LOW⚡tests/vector_stores/test_e2e_threshold.py74 # Step 2: Verify all scores are non-negative (similarity, not raw distance)COMMENT
LOW⚡tests/vector_stores/test_e2e_threshold.py79 # Step 3: Simulate threshold filtering as Memory.search() does itCOMMENT
LOW⚡tests/vector_stores/test_e2e_threshold.py99 # Step 4: Very high threshold should return 0 or very few resultsCOMMENT
LOWtests/vector_stores/test_databricks.py636 # Step 1: Config validation (simulates what Memory.from_config does)COMMENT
LOWtests/vector_stores/test_databricks.py654 # Step 2: Factory instantiation (same as MemoryBase.__init__)COMMENT
LOW⚡tests/memory/test_main.py567 # Step 1: Create a memory — capture the payload stored in the vector storeCOMMENT
LOW⚡tests/memory/test_main.py577 # Step 2: Simulate the vector store returning this memory for both search and get_allCOMMENT
LOW⚡tests/memory/test_main.py586 # Step 3: Call search and get_all, compare timestampsCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1425 // Step 1: Preprocess queryCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1429 // Step 2: Embed queryCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1432 // Step 3: Semantic search (over-fetch for scoring pool)COMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1440 // Step 4: Keyword search (if store supports it)COMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1552 // Step 7: Build candidate set from semantic resultsCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1561 // Step 8: Score and rankCOMMENT
LOW⚡mem0-ts/src/oss/src/memory/index.ts1571 // Step 9: Format resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1459 // Step 5: Compute BM25 scores from keyword resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1472 // Step 6: Compute entity boostsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1594 // Step 10: Optionally re-rank with the configured reranker. Opt-in perCOMMENT
LOW⚡mem0-ts/src/oss/src/prompts/index.ts902 // Step 1: Strip known noise tokens from OpenRouter/local modelsCOMMENT
LOW⚡mem0-ts/src/oss/src/prompts/index.ts910 // Step 2: Strip code fences and <think> blocksCOMMENT
LOW⚡mem0-ts/src/oss/src/prompts/index.ts916 // Step 3: Try to find valid JSON object by testing each `{` as potential startCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts966 // Step 4: Fallback - try first/last brace (original behavior for edge cases)COMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts980 // Step 5: Try to locate a JSON array by testing each `[` as potential startCOMMENT
LOW⚡cli/python/src/mem0_cli/commands/init_cmd.py163 # Step 2: Get code from userCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py144 # Step 1: Request verification codeCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py177 # Step 3: Verify codeCOMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py165 # Step 1: request OTP (unless --code provided)COMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py199 # Step 2: verify + claim in one shotCOMMENT
LOWcli/node/src/commands/agent-mode.ts180 // Step 1: request OTP (unless --code was supplied)COMMENT
LOWcli/node/src/commands/agent-mode.ts222 // Step 2: verify + claim atomicallyCOMMENT
LOW⚡mem0/memory/main.py1647 # Step 1: Preprocess queryCOMMENT
LOW⚡mem0/memory/main.py1651 # Step 2: Embed queryCOMMENT
LOW⚡mem0/memory/main.py1654 # Step 3: Semantic search (over-fetch for scoring pool)COMMENT
LOW⚡mem0/memory/main.py1660 # Step 4: Keyword search (if store supports it)COMMENT
LOW⚡mem0/memory/main.py1665 # Step 5: Compute BM25 scores from keyword resultsCOMMENT
LOW⚡mem0/memory/main.py1675 # Step 6: Compute entity boostsCOMMENT
LOW⚡mem0/memory/main.py1680 # Step 7: Build candidate set from semantic resultsCOMMENT
LOW⚡mem0/memory/main.py1693 # Step 8: Score and rankCOMMENT
LOW⚡mem0/memory/main.py1703 # Step 9: Format resultsCOMMENT
LOW⚡mem0/memory/main.py3334 # Step 1: Preprocess query (CPU-bound)COMMENT
LOW⚡mem0/memory/main.py3338 # Step 2: Embed queryCOMMENT
LOW⚡mem0/memory/main.py3341 # Step 3: Semantic search (over-fetch)COMMENT
LOW⚡mem0/memory/main.py3347 # Step 4: Keyword search (if store supports it)COMMENT
LOW⚡mem0/memory/main.py3352 # Step 5: Compute BM25 scoresCOMMENT
LOW⚡mem0/memory/main.py3362 # Step 6: Compute entity boostsCOMMENT
LOW⚡mem0/memory/main.py3367 # Step 7: Build candidate set from semantic resultsCOMMENT
LOW⚡mem0/memory/main.py3380 # Step 8: Score and rankCOMMENT
LOW⚡mem0/memory/main.py3390 # Step 9: Format resultsCOMMENT
Fake / Example Data78 hits · 74 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_telemetry_aliasing.py142 setup_module.mark_aliased("oss-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py147 assert setup_module.is_aliased("oss-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py153 setup_module.mark_aliased("oss-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py161 setup_module.mark_aliased("oss-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py162 assert setup_module.is_aliased("oss-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py163 assert not setup_module.is_aliased("new-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py177 at.capture_identify("anon-123", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py181 assert kwargs["distinct_id"] == "user@example.com"CODE
LOW⚡tests/test_telemetry_aliasing.py191 at.capture_identify("user@example.com", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py200 at.capture_identify("", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py209 at.capture_identify("anon-123", "user@example.com") # must not raiseCODE
LOW⚡tests/test_telemetry_aliasing.py219 at.capture_identify("anon-123", "user@example.com") # must not raiseCODE
LOW⚡tests/test_telemetry_aliasing.py250 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py251 telemetry.capture_identify.assert_called_once_with("oss-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py252 mark.assert_called_once_with("oss-uuid", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py268 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py269 telemetry.capture_identify.assert_called_once_with("cli-anon-xyz", "user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py285 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py288 assert ("oss-uuid", "user@example.com") in callsCODE
LOW⚡tests/test_telemetry_aliasing.py289 assert ("cli-anon", "user@example.com") in callsCODE
LOW⚡tests/test_telemetry_aliasing.py304 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py349 client_main._maybe_alias_anon_to_email("user@example.com") # must not raiseCODE
LOW⚡tests/test_telemetry_aliasing.py360 return_value={"oss": "user@example.com", "cli": None, "aliased_pairs": []},CODE
LOW⚡tests/test_telemetry_aliasing.py366 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOW⚡tests/test_telemetry_aliasing.py377 client_main._maybe_alias_anon_to_email("user@example.com") # must not raiseCODE
LOWtests/test_telemetry_aliasing.py329 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py402 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py407 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_server_params.py39 with patch.dict(os.environ, {"OPENAI_API_KEY": "fake-key", "ADMIN_API_KEY": ""}):CODE
LOWtests/test_client_feedback.py10 client.user_email = "user@example.com"CODE
LOWtests/test_client_feedback.py39 client.user_email = "user@example.com"CODE
LOWtests/test_api_keys_router.py55 fake_user = User(id=uuid.uuid4(), name="t", email="t@e.com", password_hash="x", role="admin")CODE
LOWtests/test_api_keys_router.py56 app.dependency_overrides[require_auth] = lambda: fake_userCODE
LOWtests/test_client.py22 json=lambda: {"org_id": "org1", "project_id": "proj1", "user_email": "test@test.com"},CODE
LOWtests/test_client_profiles.py20 json=lambda: {"org_id": "org1", "project_id": "proj1", "user_email": "test@test.com"},CODE
LOWtests/test_client_profiles.py213 "user_email": "test@test.com",CODE
LOWtests/test_server_auth.py44 with patch.dict(os.environ, {"OPENAI_API_KEY": "fake-key"}):CODE
LOWtests/vector_stores/test_mongodb.py42 mock_collection.insert_one.assert_called_once_with({"_id": 0, "placeholder": True})CODE
LOWtests/memory/test_session_scope.py35 {"user_id": "user@example.com", "agent_id": "support-bot"},CODE
LOWmem0-ts/src/oss/tests/session-scope.unit.test.ts77 scopeOf(memory, { user_id: "user@example.com", agent_id: "support-bot" }),CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts583 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts602 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts616 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts652 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts677 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts719 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts780 apiKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts799 apiKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts4571 apiToken: "fake-token",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts4588 apiKey: "fake-token",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts4607 apiKey: "fake-token",CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts107 await markMem0Aliased("oss-uuid", "user@example.com");CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts114 expect(await isMem0Aliased("oss-uuid", "user@example.com")).toBe(true);CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts122 await markMem0Aliased("oss-uuid", "user@example.com");CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts134 await markMem0Aliased("oss-uuid", "user@example.com");CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts135 expect(await isMem0Aliased("oss-uuid", "user@example.com")).toBe(true);CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts136 expect(await isMem0Aliased("other-uuid", "user@example.com")).toBe(false);CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts145 markMem0Aliased("oss-uuid", "user@example.com"),CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts161 await telemetry.captureIdentify("anon-uuid", "user@example.com");CODE
LOW⚡mem0-ts/src/client/tests/telemetry-aliasing.test.ts167 expect(payload.distinct_id).toBe("user@example.com");CODE
18 more matches not shown…
Modern Structural Boilerplate75 hits · 72 pts
SeverityFileLineSnippetContext
LOWtests/vector_stores/test_neptune_analytics.py22logger = logging.getLogger(__name__)CODE
LOWserver/server_state.py15def set_session_factory(factory: Callable) -> None:CODE
LOWcli/python/src/mem0_cli/state.py14def set_agent_mode(val: bool) -> None:CODE
LOWcli/python/src/mem0_cli/state.py23def set_current_command(name: str) -> None:CODE
LOWcli/python/src/mem0_cli/backend/__init__.py5__all__ = ["Backend", "get_backend"]CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py505def _setup_platform(config: Mem0Config) -> None:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py523def _setup_defaults(config: Mem0Config) -> None:CODE
LOWintegrations/codex-plugin/core/memory_core.py957 def update_flush(self, packet_id: str, **fields: Any) -> None:CODE
LOWintegrations/codex-plugin/core/memory_core.py1189 def set_setting(self, key: str, value: str) -> None:CODE
LOWintegrations/kimi-plugin/core/memory_core.py957 def update_flush(self, packet_id: str, **fields: Any) -> None:CODE
LOWintegrations/kimi-plugin/core/memory_core.py1189 def set_setting(self, key: str, value: str) -> None:CODE
LOWintegrations/antigravity-plugin/core/memory_core.py957 def update_flush(self, packet_id: str, **fields: Any) -> None:CODE
LOWintegrations/antigravity-plugin/core/memory_core.py1189 def set_setting(self, key: str, value: str) -> None:CODE
LOWintegrations/agent-plugin-core/python/memory_core.py957 def update_flush(self, packet_id: str, **fields: Any) -> None:CODE
LOWintegrations/agent-plugin-core/python/memory_core.py1189 def set_setting(self, key: str, value: str) -> None:CODE
LOWintegrations/hermes-plugin-mem0/_backend.py14logger = logging.getLogger(__name__)CODE
LOWintegrations/hermes-plugin-mem0/__init__.py26logger = logging.getLogger(__name__)CODE
LOWintegrations/hermes-plugin-mem0/_setup.py204def _setup_platform(hermes_home: str, config: dict, flags: dict[str, str]) -> None:CODE
LOWintegrations/hermes-plugin-mem0/_setup.py240def _setup_selfhosted(hermes_home: str, config: dict, flags: dict[str, str]) -> None:CODE
LOWintegrations/hermes-plugin-mem0/_setup.py289def _setup_oss(hermes_home: str, config: dict, flags: dict[str, str]) -> None:CODE
LOWintegrations/hermes-plugin-mem0/_setup.py442def _setup_oss_interactive(hermes_home: str, config: dict) -> None:CODE
LOWintegrations/claude-code-plugin/core/memory_core.py957 def update_flush(self, packet_id: str, **fields: Any) -> None:CODE
LOWintegrations/claude-code-plugin/core/memory_core.py1189 def set_setting(self, key: str, value: str) -> None:CODE
LOWintegrations/mem0-agent-plugin/core/memory_core.py957 def update_flush(self, packet_id: str, **fields: Any) -> None:CODE
LOWintegrations/mem0-agent-plugin/core/memory_core.py1189 def set_setting(self, key: str, value: str) -> None:CODE
LOW…tions/mem0-strands/python/src/mem0_strands/__init__.py18__all__ = [CODE
LOWintegrations/cursor-plugin/core/memory_core.py957 def update_flush(self, packet_id: str, **fields: Any) -> None:CODE
LOWintegrations/cursor-plugin/core/memory_core.py1189 def set_setting(self, key: str, value: str) -> None:CODE
LOWexamples/misc/personalized_search.py21logger = logging.getLogger(__name__)CODE
LOWexamples/misc/multillm_memory.py28logger = logging.getLogger(__name__)CODE
LOWexamples/multiagents/llamaindex_learning_system.py32logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/cohere_reranker.py13logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/__init__.py12__all__ = [CODE
LOWmem0/reranker/huggingface_reranker.py17logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/llm_reranker.py10logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/zero_entropy_reranker.py13logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/sentence_transformer_reranker.py18logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/cassandra.py21logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/valkey.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/elasticsearch.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/s3_vectors.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/milvus.py24logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/azure_mysql.py27logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/pinecone.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/opensearch.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/supabase.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/turbopuffer.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/qdrant.py26logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/upstash_vector.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/mongodb.py17logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/neptune_analytics.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/faiss.py31logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/pgvector.py34logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/redis.py17logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/oracledb.py23logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/weaviate.py22logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/azure_ai_search.py34logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/databricks.py30logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/langchain.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/baidu.py41logger = logging.getLogger(__name__)CODE
15 more matches not shown…
Redundant / Tautological Comments30 hits · 42 pts
SeverityFileLineSnippetContext
LOWserver/scripts/seed.sh15# Check if setup is neededCOMMENT
LOWexamples/nemoclaw/install-mem0-plugin.sh175# Check if plugin is already installedCOMMENT
LOWexamples/nemoclaw/install-mem0-plugin.sh255# Check if mem0_api already existsCOMMENT
LOW⚡examples/nemoclaw/setup-mem0-nemoclaw.sh528# Check if a sandbox already existsCOMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh431 # Check if NemoClaw is installed in the containerCOMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh618# Check if plugin is already installed by trying to download a known file from the sandbox.COMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh700# Check if mem0_api already existsCOMMENT
LOWmem0/vector_stores/valkey.py207 # Check if the search module is availableCOMMENT
LOWmem0/vector_stores/valkey.py221 # Check if the index already existsCOMMENT
LOWmem0/vector_stores/opensearch.py141 # Check if index is ready by attempting a simple searchCOMMENT
LOW⚡mem0/vector_stores/databricks.py241 # Check if index exists and create if neededCOMMENT
LOWmem0/vector_stores/langchain.py49 # Check if input is a list of Document objectsCOMMENT
LOWmem0/vector_stores/langchain.py95 # Check if client has add_embeddings methodCOMMENT
LOW⚡mem0/vector_stores/baidu.py97 # Check if database existsCOMMENT
LOWmem0/vector_stores/baidu.py118 # Check if table already existsCOMMENT
LOWmem0/embeddings/aws_bedrock.py32 # Check if AWS config is provided in the configCOMMENT
LOWmem0/memory/main.py751 # Check if agent_id is present in metadataCOMMENT
LOWmem0/memory/main.py754 # Check if there are assistant role messagesCOMMENT
LOWmem0/memory/main.py2446 # Check if agent_id is present in metadataCOMMENT
LOWmem0/memory/main.py2449 # Check if there are assistant role messagesCOMMENT
LOWmem0/proxy/main.py177 # Check if self.mem0_client is an instance of Memory or MemoryClientCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py28 # Check if either cloud_id or host/port is providedCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py32 # Check if authentication is providedCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py44 # Check if headers is a dictionaryCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py48 # Check if all keys and values are stringsCOMMENT
LOWmem0/configs/vector_stores/opensearch.py31 # Check if host is providedCOMMENT
LOWmem0/configs/vector_stores/chroma.py27 # Check if cloud configuration is providedCOMMENT
LOWmem0/configs/vector_stores/chroma.py35 # Check if local/server configuration is providedCOMMENT
LOWmem0/configs/llms/aws_bedrock.py130 # Check if model follows provider.model-name formatCOMMENT
LOW⚡mem0/llms/aws_bedrock.py117 # Check if our model is availableCOMMENT
AI Structural Patterns44 hits · 38 pts
SeverityFileLineSnippetContext
LOWcli/python/src/mem0_cli/app.py255CODE
LOWcli/python/src/mem0_cli/app.py347CODE
LOWcli/python/src/mem0_cli/app.py488CODE
LOWcli/python/src/mem0_cli/app.py566CODE
LOWcli/python/src/mem0_cli/app.py617CODE
LOWcli/python/src/mem0_cli/app.py810CODE
LOWcli/python/src/mem0_cli/app.py930CODE
LOWcli/python/src/mem0_cli/backend/platform.py78CODE
LOWcli/python/src/mem0_cli/backend/platform.py175CODE
LOWcli/python/src/mem0_cli/backend/platform.py232CODE
LOWcli/python/src/mem0_cli/backend/base.py15CODE
LOWcli/python/src/mem0_cli/backend/base.py36CODE
LOWcli/python/src/mem0_cli/backend/base.py59CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py197CODE
LOWintegrations/mem0-strands/python/tests/test_client.py42CODE
LOW…grations/mem0-strands/python/src/mem0_strands/store.py63CODE
LOWexamples/misc/strands_agent_aws_elasticache_neptune.py112CODE
LOWmem0/vector_stores/cassandra.py42CODE
LOWmem0/vector_stores/milvus.py235CODE
LOWmem0/vector_stores/milvus.py327CODE
LOWmem0/vector_stores/qdrant.py30CODE
LOWmem0/vector_stores/qdrant.py592CODE
LOWmem0/vector_stores/mongodb.py223CODE
LOWmem0/vector_stores/databricks.py52CODE
LOWmem0/memory/utils.py183CODE
LOWmem0/memory/main.py760CODE
LOWmem0/memory/main.py2050CODE
LOWmem0/memory/main.py2455CODE
LOWmem0/memory/main.py3768CODE
LOWmem0/proxy/main.py47CODE
LOWmem0/configs/prompts.py1016CODE
LOWmem0/configs/embeddings/base.py14CODE
LOWmem0/configs/llms/vllm.py13CODE
LOWmem0/configs/llms/minimax.py12CODE
LOWmem0/configs/llms/lmstudio.py12CODE
LOWmem0/configs/llms/azure.py13CODE
LOWmem0/configs/llms/gemini.py14CODE
LOWmem0/configs/llms/aws_bedrock.py14CODE
LOWmem0/configs/llms/openai.py12CODE
LOWmem0/configs/llms/deepseek.py12CODE
LOWmem0/configs/llms/anthropic.py12CODE
LOWmem0/configs/llms/xai.py12CODE
LOWmem0/configs/llms/ollama.py12CODE
LOWmem0/configs/llms/base.py16CODE
AI Slop Vocabulary17 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMintegrations/codex-plugin/core/telemetry.py495 # Stamped in the RECORDING process, beside harness. `source` used to beCOMMENT
MEDIUMintegrations/codex-plugin/core/memory_core.py2013 # is what makes attribution work on both. The harness tag stays inCOMMENT
MEDIUMintegrations/kimi-plugin/core/telemetry.py495 # Stamped in the RECORDING process, beside harness. `source` used to beCOMMENT
MEDIUMintegrations/kimi-plugin/core/memory_core.py2013 # is what makes attribution work on both. The harness tag stays inCOMMENT
MEDIUMintegrations/antigravity-plugin/core/telemetry.py495 # Stamped in the RECORDING process, beside harness. `source` used to beCOMMENT
MEDIUMintegrations/antigravity-plugin/core/memory_core.py2013 # is what makes attribution work on both. The harness tag stays inCOMMENT
MEDIUMintegrations/agent-plugin-core/python/telemetry.py495 # Stamped in the RECORDING process, beside harness. `source` used to beCOMMENT
MEDIUMintegrations/agent-plugin-core/python/memory_core.py2013 # is what makes attribution work on both. The harness tag stays inCOMMENT
MEDIUM…rations/agent-plugin-core/tests/test_spool_delivery.py38 # dropping the module left a later re-import with default harness config, soCOMMENT
MEDIUMintegrations/claude-code-plugin/core/telemetry.py495 # Stamped in the RECORDING process, beside harness. `source` used to beCOMMENT
MEDIUMintegrations/claude-code-plugin/core/memory_core.py2013 # is what makes attribution work on both. The harness tag stays inCOMMENT
MEDIUMintegrations/mem0-agent-plugin/core/telemetry.py495 # Stamped in the RECORDING process, beside harness. `source` used to beCOMMENT
MEDIUMintegrations/mem0-agent-plugin/core/memory_core.py2013 # is what makes attribution work on both. The harness tag stays inCOMMENT
MEDIUMintegrations/cursor-plugin/core/telemetry.py495 # Stamped in the RECORDING process, beside harness. `source` used to beCOMMENT
MEDIUMintegrations/cursor-plugin/core/memory_core.py2013 # is what makes attribution work on both. The harness tag stays inCOMMENT
LOWmem0/vector_stores/valkey.py348 # No filters, just use the KNN searchCOMMENT
LOWmem0/memory/setup.py142 # If no vector store provided, just return the user_idCOMMENT
Modern AI Meta-Vocabulary12 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMexamples/misc/movie_recommendation_grok3.py31 "model": "all-MiniLM-L6-v2" # open embedding modelCODE
MEDIUMexamples/misc/strands_agent_aws_elasticache_neptune.py15- AWS Blog: https://aws.amazon.com/blogs/database/build-persistent-memory-for-agentic-ai-applications-with-mem0-open-souSTRING
MEDIUMexamples/misc/strands_agent_aws_elasticache_neptune.py16- Mem0 Blog: https://mem0.ai/blog/build-persistent-memory-for-agentic-ai-applications-with-mem0-open-source-amazon-elastSTRING
MEDIUMexamples/multiagents/llamaindex_learning_system.py136 # Create the multi-agent workflowSTRING
MEDIUMexamples/multiagents/llamaindex_learning_system.py158 # The magic happens here - multi-agent memory is automatically shared!STRING
MEDIUMexamples/multiagents/llamaindex_learning_system.py190 # Second session - multi-agent memory will remember the firstCOMMENT
MEDIUMexamples/multiagents/llamaindex_learning_system.py195 # Show what the multi-agent system remembersCOMMENT
MEDIUM.github/workflows/docs-llms-txt-check.yml7# python scripts/check-llms-txt-coverage.py --write # scaffold placeholdersCOMMENT
MEDIUMmem0/vector_stores/databricks.py421 # so we inline using _format_sql_value (values are floats from the embedding model).COMMENT
MEDIUMmem0/memory/main.py935 # Map UUIDs to integers (anti-hallucination)COMMENT
MEDIUMmem0/memory/main.py2618 # Map UUIDs to integers (anti-hallucination)COMMENT
MEDIUMskills/mem0/references/use-cases.md11- [Multi-Agent / Multi-Tenant](#5-multi-agent--multi-tenant)CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH⚡tests/vector_stores/test_oracledb.py569 ({"nullable": {"in": [None, "set"]}}, "@ in (null, $f_0)", {"f_0": "set"}),CODE
HIGHcli/python/src/mem0_cli/commands/agent_mode_cmd.py35 A backend regression that returns ``{"api_key": null}`` would otherwise beSTRING
Over-Commented Block11 hits · 10 pts
SeverityFileLineSnippetContext
LOWmem0-ts/src/global.d.ts1// Injected by tsup/esbuild's `define` at build time from package.json.COMMENT
LOWintegrations/deepseek-plugin/cordis.example.yml1# Example DeepSeek Harness config that loads deepseek-plugin alongside the built-inCOMMENT
LOWintegrations/openclaw/index.ts421 // ========================================================================COMMENT
LOW…grations/agent-plugin-core/typescript/src/telemetry.ts81// processes that fire per tool call and exit immediately, so nothing survivesCOMMENT
LOWintegrations/zapier-mem0/test/setup.ts1// Jest setup file. Usage attribution is recorded server-side by the Mem0 APICOMMENT
LOWexamples/mem0-demo/next-env.d.ts1/// <reference types="next" />COMMENT
LOWexamples/nemoclaw/install-mem0-plugin.sh1#!/usr/bin/env bashCOMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/llms-txt-ignore.txt1# Page path prefixes (relative to docs/, without .mdx) that intentionallyCOMMENT
LOW.github/workflows/release.yml1name: Release Router 🚦COMMENT
LOW.github/workflows/ci-gate.yml1name: CI GateCOMMENT
Overly Generic Function Names7 hits · 7 pts
SeverityFileLineSnippetContext
LOWintegrations/codex-plugin/core/mcp_server.py152def handle_request(message: Any) -> dict[str, Any] | None:CODE
LOWintegrations/kimi-plugin/core/mcp_server.py152def handle_request(message: Any) -> dict[str, Any] | None:CODE
LOWintegrations/antigravity-plugin/core/mcp_server.py152def handle_request(message: Any) -> dict[str, Any] | None:CODE
LOWintegrations/agent-plugin-core/python/mcp_server.py152def handle_request(message: Any) -> dict[str, Any] | None:CODE
LOWintegrations/claude-code-plugin/core/mcp_server.py152def handle_request(message: Any) -> dict[str, Any] | None:CODE
LOWintegrations/mem0-agent-plugin/core/mcp_server.py152def handle_request(message: Any) -> dict[str, Any] | None:CODE
LOWintegrations/cursor-plugin/core/mcp_server.py152def handle_request(message: Any) -> dict[str, Any] | None:CODE
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/misc/test.py83# Example usageCOMMENT
LOWexamples/misc/study_buddy.py63# Example usageCOMMENT
LOW⚡examples/nemoclaw/install-mem0-plugin.sh8# Usage:COMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh8# Usage:COMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMmem0-ts/src/oss/tests/extract-json.test.ts37 '{"facts": ["Loves pizza"]}\nLet me know if you need anything else!';CODE
MEDIUM.github/scripts/infer-component-labels.test.js35 body: "### 🐛 Describe the bug\n\nI'm using docker compose to deploy a REST API server. When adding memory, I'm unablCODE