Repository Analysis

NevaMind-AI/memU

Personal memory for agents - fast memory retrieval, self-evolving skills, and lower cost.

27.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of NevaMind-AI/memU, a Python project with 14,021 GitHub stars. SynthScan v2.0 examined 38,677 lines of code across 283 source files, recording 808 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 27.8 places this repository in the Moderate AI signal band.

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

27.8
Adjusted Score
27.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
14.0K
Stars
Python
Language
38.7K
Lines of Code
283
Files
808
Pattern Hits
2026-07-14
Scan Date
0.17
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 48MEDIUM 25LOW 735

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Unused Imports272 hits · 271 pts
SeverityFileLineSnippetContext
LOWtests/test_audio_preprocess.py8CODE
LOWtests/test_folder_memorize.py9CODE
LOWtests/test_conversation_preprocess.py8CODE
LOWtests/test_skill_track.py8CODE
LOWtests/test_embedding.py14CODE
LOWtests/test_vlm_preprocess.py10CODE
LOWtests/test_backend_conformance.py13CODE
LOWtests/test_salience.py8CODE
LOWtests/test_memory_files.py1CODE
LOWtests/test_vector.py1CODE
LOWtests/test_document_text.py3CODE
LOWtests/test_tool_memory.py3CODE
LOWtests/test_openai_max_tokens.py9CODE
LOWtests/test_memory_fs_synthesis.py1CODE
LOWtests/test_cli.py7CODE
LOWtests/test_references.py12CODE
LOWexamples/langgraph_demo.py10CODE
LOWexamples/example_6_preprocess_modalities.py27CODE
LOWexamples/sealos_support_agent.py6CODE
LOWscripts/db.py23CODE
LOWsrc/memu/vector.py10CODE
LOWsrc/memu/cli.py20CODE
LOWsrc/memu/database/interfaces.py1CODE
LOWsrc/memu/database/models.py1CODE
LOWsrc/memu/database/__init__.py3CODE
LOWsrc/memu/database/__init__.py4CODE
LOWsrc/memu/database/__init__.py4CODE
LOWsrc/memu/database/__init__.py4CODE
LOWsrc/memu/database/__init__.py4CODE
LOWsrc/memu/database/__init__.py4CODE
LOWsrc/memu/database/__init__.py4CODE
LOWsrc/memu/database/__init__.py4CODE
LOWsrc/memu/database/__init__.py13CODE
LOWsrc/memu/database/__init__.py13CODE
LOWsrc/memu/database/__init__.py13CODE
LOWsrc/memu/database/__init__.py13CODE
LOWsrc/memu/database/__init__.py13CODE
LOWsrc/memu/database/__init__.py13CODE
LOWsrc/memu/database/factory.py1CODE
LOWsrc/memu/database/state.py1CODE
LOWsrc/memu/database/repositories/recall_file.py1CODE
LOWsrc/memu/database/repositories/recall_file_resource.py1CODE
LOWsrc/memu/database/repositories/resource.py1CODE
LOWsrc/memu/database/repositories/__init__.py1CODE
LOWsrc/memu/database/repositories/__init__.py2CODE
LOWsrc/memu/database/repositories/__init__.py3CODE
LOWsrc/memu/database/repositories/__init__.py4CODE
LOWsrc/memu/database/repositories/__init__.py5CODE
LOWsrc/memu/database/repositories/__init__.py6CODE
LOWsrc/memu/database/repositories/recall_file_segment.py1CODE
LOWsrc/memu/database/repositories/recall_entry.py1CODE
LOWsrc/memu/database/repositories/recall_file_entry.py1CODE
LOWsrc/memu/database/sqlite/models.py3CODE
LOWsrc/memu/database/sqlite/session.py3CODE
LOWsrc/memu/database/sqlite/__init__.py3CODE
LOWsrc/memu/database/sqlite/sqlite.py3CODE
LOWsrc/memu/database/sqlite/schema.py3CODE
LOW…abase/sqlite/repositories/recall_file_resource_repo.py3CODE
LOWsrc/memu/database/sqlite/repositories/resource_repo.py3CODE
LOW…/memu/database/sqlite/repositories/recall_file_repo.py3CODE
212 more matches not shown…
Hyper-Verbose Identifiers234 hits · 252 pts
SeverityFileLineSnippetContext
LOWtests/test_audio_preprocess.py41def test_audio_prompt_asks_to_classify_type() -> None:CODE
LOWtests/test_audio_preprocess.py49def test_audio_preprocess_returns_overview_and_typed_caption() -> None:CODE
LOWtests/test_audio_preprocess.py80def test_audio_preprocess_skips_without_text() -> None:CODE
LOWtests/test_folder_memorize.py29def test_infer_modality_by_extension() -> None:CODE
LOWtests/test_folder_memorize.py39def test_scan_folder_recurses_skips_unknown_and_hidden(tmp_path: Path) -> None:CODE
LOWtests/test_folder_memorize.py55def test_manifest_roundtrip_and_diff(tmp_path: Path) -> None:CODE
LOWtests/test_folder_memorize.py78def test_diff_added_only_has_no_removals(tmp_path: Path) -> None:CODE
LOWtests/test_folder_memorize.py117async def test_cascade_delete_removes_resource_items_relations(monkeypatch) -> None:CODE
LOWtests/test_folder_memorize.py150async def test_memorize_workspace_sync_add_modify_delete(tmp_path: Path, monkeypatch) -> None:CODE
LOWtests/test_folder_memorize.py214async def test_memorize_workspace_exports_when_enabled(tmp_path: Path, monkeypatch) -> None:CODE
LOWtests/test_folder_memorize.py260async def test_memorize_workspace_export_failure_does_not_fail_sync(tmp_path: Path, monkeypatch) -> None:CODE
LOWtests/test_conversation_preprocess.py39def test_conversation_returns_single_unsegmented_resource() -> None:CODE
LOWtests/test_skill_track.py84async def test_skill_track_synthesizes_file_and_links_resource(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py112async def test_chat_track_routes_to_memory_track_file(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py132async def test_update_op_revises_existing_file_by_name(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py147async def test_workspace_track_is_resource_only_noop(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py159async def test_empty_source_is_noop(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py170async def test_skill_track_creates_single_name_description_segment(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py186async def test_memory_track_segments_are_lines_skipping_headings(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py205async def test_memory_segments_drop_and_add_on_update(tmp_path: Path) -> None:CODE
LOWtests/test_skill_track.py234async def test_update_op_for_unknown_file_is_dropped(tmp_path: Path) -> None:CODE
LOWtests/test_embedding.py46def test_backend_payload_and_parse(backend, endpoint):CODE
LOWtests/test_embedding.py58def test_http_client_unknown_provider_falls_back_to_openai():CODE
LOWtests/test_embedding.py63def test_http_client_selects_registered_backend():CODE
LOWtests/test_embedding.py68async def test_http_client_embed_returns_vectors_and_raw(monkeypatch):CODE
LOWtests/test_embedding.py110def test_gateway_builds_sdk_and_httpx_clients():CODE
LOWtests/test_embedding.py119def test_gateway_rejects_anthropic_and_unknown_backends():CODE
LOWtests/test_embedding.py127def test_embedding_config_provider_defaults():CODE
LOWtests/test_embedding.py145def test_chat_clients_no_longer_expose_embed():CODE
LOWtests/test_embedding.py158def test_embedding_config_from_llm_carries_transport_and_model():CODE
LOWtests/test_postgres_migration_config.py21def test_make_alembic_config_escapes_percent_encoded_dsn() -> None:CODE
LOWtests/test_vlm_preprocess.py64def test_vlm_config_from_llm_openai_sdk() -> None:CODE
LOWtests/test_vlm_preprocess.py71def test_vlm_config_from_llm_claude_http_reuses_credentials() -> None:CODE
LOWtests/test_vlm_preprocess.py81def test_vlm_config_from_llm_anthropic_backend_maps_provider() -> None:CODE
LOWtests/test_vlm_preprocess.py89def test_vlm_config_unknown_provider_falls_back_to_chat_model() -> None:CODE
LOWtests/test_vlm_preprocess.py96def test_image_preprocess_uses_vlm_client() -> None:CODE
LOWtests/test_vlm_preprocess.py109def test_service_routes_vision_modalities_to_vlm(monkeypatch: Any) -> None:CODE
LOWtests/test_vlm_preprocess.py133def test_service_falls_back_to_chat_client_when_vlm_profile_missing(monkeypatch: Any) -> None:CODE
LOWtests/test_vlm_preprocess.py151def test_vlm_config_from_llm_openrouter_uses_video_capable_model() -> None:CODE
LOWtests/test_vlm_preprocess.py161def test_openrouter_backend_supports_native_video() -> None:CODE
LOWtests/test_vlm_preprocess.py177def test_http_vlm_client_exposes_backend_video_capability() -> None:CODE
LOWtests/test_vlm_preprocess.py188def test_video_uses_native_video_when_supported() -> None:CODE
LOWtests/test_vlm_preprocess.py205def test_video_without_native_support_skips_no_frame_fallback() -> None:CODE
LOWtests/test_backend_conformance.py73def test_clear_items_with_scope_mutates_shared_state(store):CODE
LOWtests/test_backend_conformance.py86def test_clear_categories_with_scope_mutates_shared_state(store):CODE
LOWtests/test_backend_conformance.py100def test_unlink_item_removes_all_relations(store):CODE
LOWtests/test_backend_conformance.py118def test_delete_item_leaves_no_orphan_relations(store):CODE
LOWtests/test_backend_conformance.py134def test_clear_relations_with_scope(store):CODE
LOWtests/test_backend_conformance.py146def test_extra_round_trips_through_create_and_read(store):CODE
LOWtests/test_backend_conformance.py193def test_update_with_none_categories_keeps_links(store):CODE
LOWtests/test_backend_conformance.py214def test_update_with_empty_categories_clears_links(store):CODE
LOWtests/test_backend_conformance.py234def test_update_with_new_categories_swaps_links(store):CODE
LOWtests/test_backend_conformance.py262def test_resolve_category_ids_creates_unknown_adaptively(store):CODE
LOWtests/test_backend_conformance.py306def test_resolve_category_ids_gated_drops_unknown(store):CODE
LOWtests/test_backend_conformance.py343def test_sqlite_extra_survives_cache_miss(tmp_path):CODE
LOWtests/test_salience.py81 def test_different_content_different_hash(self):CODE
LOWtests/test_salience.py87 def test_different_type_different_hash(self):CODE
LOWtests/test_salience.py93 def test_whitespace_normalization(self):CODE
LOWtests/test_salience.py120 def test_higher_reinforcement_higher_score(self):CODE
LOWtests/test_salience.py127 def test_recent_memory_higher_score(self):CODE
174 more matches not shown…
Cross-File Repetition26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHexamples/example_3_multimodal_memory.py0generate concise markdown files for each memory category.STRING
HIGHexamples/example_4_openrouter_memory.py0generate concise markdown files for each memory category.STRING
HIGHexamples/example_1_conversation_memory.py0generate concise markdown files for each memory category.STRING
HIGH…memu/database/sqlite/repositories/recall_entry_repo.py0list items by their ref_id in the extra column. args: ref_ids: list of ref_ids to query. where: additional filter conditSTRING
HIGH…mu/database/inmemory/repositories/recall_entry_repo.py0list items by their ref_id in the extra column. args: ref_ids: list of ref_ids to query. where: additional filter conditSTRING
HIGH…mu/database/postgres/repositories/recall_entry_repo.py0list items by their ref_id in the extra column. args: ref_ids: list of ref_ids to query. where: additional filter conditSTRING
HIGHsrc/memu/llm/backends/base.py0auth/request headers for this provider. defaults to openai-style bearer auth; providers with a different scheme overrideSTRING
HIGHsrc/memu/vlm/backends/base.py0auth/request headers for this provider. defaults to openai-style bearer auth; providers with a different scheme overrideSTRING
HIGHsrc/memu/embedding/backends/base.py0auth/request headers for this provider. defaults to openai-style bearer auth; providers with a different scheme overrideSTRING
HIGHsrc/memu/app/retrieve_workspace.py0validate and clean the `where` scope filters against the configured user model.STRING
HIGHsrc/memu/app/retrieve.py0validate and clean the `where` scope filters against the configured user model.STRING
HIGHsrc/memu/app/crud.py0validate and clean the `where` scope filters against the configured user model.STRING
HIGHsrc/memu/prompts/memory_type/skill.py0# original resource: <resource> {resource} </resource>STRING
HIGHsrc/memu/prompts/memory_type/event.py0# original resource: <resource> {resource} </resource>STRING
HIGHsrc/memu/prompts/memory_type/behavior.py0# original resource: <resource> {resource} </resource>STRING
HIGHsrc/memu/prompts/memory_type/profile.py0# original resource: <resource> {resource} </resource>STRING
HIGHsrc/memu/prompts/memory_type/knowledge.py0# original resource: <resource> {resource} </resource>STRING
HIGHsrc/memu/prompts/memory_type/tool.py0# original resource: <resource> {resource} </resource>STRING
HIGHsrc/memu/prompts/memory_type/event.py0# workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain vSTRING
HIGHsrc/memu/prompts/memory_type/behavior.py0# workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain vSTRING
HIGHsrc/memu/prompts/memory_type/profile.py0# workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain vSTRING
HIGHsrc/memu/prompts/memory_type/knowledge.py0# workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain vSTRING
HIGHsrc/memu/prompts/memory_type/event.py0# output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory STRING
HIGHsrc/memu/prompts/memory_type/behavior.py0# output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory STRING
HIGHsrc/memu/prompts/memory_type/profile.py0# output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory STRING
HIGHsrc/memu/prompts/memory_type/knowledge.py0# output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory STRING
Modern Structural Boilerplate100 hits · 100 pts
SeverityFileLineSnippetContext
LOWsrc/memu/vector.py145__all__ = ["cosine_topk", "cosine_topk_salience", "salience_score"]CODE
LOWsrc/memu/database/interfaces.py42__all__ = [CODE
LOWsrc/memu/database/models.py184__all__ = [CODE
LOWsrc/memu/database/__init__.py22__all__ = [CODE
LOWsrc/memu/database/state.py25__all__ = ["DatabaseState"]CODE
LOWsrc/memu/database/repositories/__init__.py8__all__ = [CODE
LOWsrc/memu/database/sqlite/models.py202__all__ = [CODE
LOWsrc/memu/database/sqlite/session.py11logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/sqlite/session.py48__all__ = ["SQLiteSessionManager"]CODE
LOWsrc/memu/database/sqlite/__init__.py36__all__ = ["SQLiteStore", "build_sqlite_database"]CODE
LOWsrc/memu/database/sqlite/sqlite.py38logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/sqlite/sqlite.py187__all__ = ["SQLiteStore"]CODE
LOWsrc/memu/database/sqlite/schema.py126__all__ = ["SQLiteSQLAModels", "get_sqlite_metadata", "get_sqlite_sqlalchemy_models"]CODE
LOW…abase/sqlite/repositories/recall_file_resource_repo.py18logger = logging.getLogger(__name__)CODE
LOW…abase/sqlite/repositories/recall_file_resource_repo.py215__all__ = ["SQLiteRecallFileResourceRepo"]CODE
LOWsrc/memu/database/sqlite/repositories/resource_repo.py19logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/sqlite/repositories/resource_repo.py224__all__ = ["SQLiteResourceRepo"]CODE
LOW…/memu/database/sqlite/repositories/recall_file_repo.py18logger = logging.getLogger(__name__)CODE
LOW…/memu/database/sqlite/repositories/recall_file_repo.py273__all__ = ["SQLiteRecallFileRepo"]CODE
LOWsrc/memu/database/sqlite/repositories/__init__.py11__all__ = [CODE
LOW…database/sqlite/repositories/recall_file_entry_repo.py18logger = logging.getLogger(__name__)CODE
LOW…database/sqlite/repositories/recall_file_entry_repo.py211__all__ = ["SQLiteRecallFileEntryRepo"]CODE
LOW…tabase/sqlite/repositories/recall_file_segment_repo.py18logger = logging.getLogger(__name__)CODE
LOW…tabase/sqlite/repositories/recall_file_segment_repo.py142__all__ = ["SQLiteRecallFileSegmentRepo"]CODE
LOW…memu/database/sqlite/repositories/recall_entry_repo.py20logger = logging.getLogger(__name__)CODE
LOW…memu/database/sqlite/repositories/recall_entry_repo.py544__all__ = ["SQLiteRecallEntryRepo"]CODE
LOWsrc/memu/database/sqlite/repositories/base.py15logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/sqlite/repositories/base.py128__all__ = ["SQLiteRepoBase"]CODE
LOWsrc/memu/database/inmemory/vector.py13__all__ = ["_cosine", "cosine_topk", "cosine_topk_salience", "salience_score"]CODE
LOWsrc/memu/database/inmemory/models.py69__all__ = [CODE
LOWsrc/memu/database/inmemory/__init__.py34__all__ = ["build_inmemory_database"]CODE
LOWsrc/memu/database/inmemory/state.py7__all__ = ["DatabaseState", "InMemoryState"]CODE
LOW…ase/inmemory/repositories/recall_file_resource_repo.py67__all__ = ["InMemoryFileResourceRepository"]CODE
LOW…c/memu/database/inmemory/repositories/resource_repo.py79__all__ = ["InMemoryResourceRepository", "ResourceRepo"]CODE
LOW…emu/database/inmemory/repositories/recall_file_repo.py94__all__ = ["InMemoryRecallFileRepository", "RecallFileRepo"]CODE
LOWsrc/memu/database/inmemory/repositories/__init__.py20__all__ = [CODE
LOW…tabase/inmemory/repositories/recall_file_entry_repo.py65__all__ = ["InMemoryFileEntryRepository"]CODE
LOW…base/inmemory/repositories/recall_file_segment_repo.py71__all__ = ["InMemoryFileSegmentRepository"]CODE
LOWsrc/memu/database/inmemory/repositories/filter.py32__all__ = ["matches_where"]CODE
LOW…mu/database/inmemory/repositories/recall_entry_repo.py263__all__ = ["InMemoryRecallEntryRepository"]CODE
LOWsrc/memu/database/postgres/models.py209__all__ = [CODE
LOWsrc/memu/database/postgres/session.py12logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/postgres/session.py34__all__ = ["SessionManager"]CODE
LOWsrc/memu/database/postgres/__init__.py36__all__ = ["build_postgres_database"]CODE
LOWsrc/memu/database/postgres/postgres.py36logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/postgres/migration.py17logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/postgres/migration.py72__all__ = ["DDLMode", "make_alembic_config", "run_migrations"]CODE
LOWsrc/memu/database/postgres/schema.py135__all__ = ["SQLAModels", "Vector", "get_metadata", "get_sqlalchemy_models", "require_sqlalchemy"]CODE
LOW…ase/postgres/repositories/recall_file_resource_repo.py149__all__ = ["PostgresRecallFileResourceRepo"]CODE
LOW…c/memu/database/postgres/repositories/resource_repo.py134__all__ = ["PostgresResourceRepo"]CODE
LOW…emu/database/postgres/repositories/recall_file_repo.py167__all__ = ["PostgresRecallFileRepo"]CODE
LOWsrc/memu/database/postgres/repositories/__init__.py8__all__ = [CODE
LOW…tabase/postgres/repositories/recall_file_entry_repo.py145__all__ = ["PostgresRecallFileEntryRepo"]CODE
LOW…base/postgres/repositories/recall_file_segment_repo.py133__all__ = ["PostgresRecallFileSegmentRepo"]CODE
LOW…mu/database/postgres/repositories/recall_entry_repo.py401__all__ = ["PostgresRecallEntryRepo"]CODE
LOWsrc/memu/database/postgres/repositories/base.py12logger = logging.getLogger(__name__)CODE
LOWsrc/memu/database/postgres/repositories/base.py113__all__ = ["PostgresRepoBase"]CODE
LOWsrc/memu/llm/wrapper.py14logger = logging.getLogger(__name__)CODE
LOWsrc/memu/llm/http_client.py27logger = logging.getLogger(__name__)CODE
LOWsrc/memu/llm/openai_client.py16logger = logging.getLogger(__name__)CODE
40 more matches not shown…
Magic Placeholder Names17 hits · 62 pts
SeverityFileLineSnippetContext
HIGHtests/test_openrouter.py10 export OPENROUTER_API_KEY=your_api_keySTRING
HIGHtests/test_lazyllm.py6 export MEMU_QWEN_API_KEY=your_api_keySTRING
HIGHdocs/sqlite.md19 llm_profiles={"default": {"api_key": "your-api-key"}},CODE
HIGHdocs/sqlite.md29 llm_profiles={"default": {"api_key": "your-api-key"}},CODE
HIGHdocs/sqlite.md45 llm_profiles={"default": {"api_key": "your-api-key"}},CODE
HIGHdocs/sqlite.md76 llm_profiles={"default": {"api_key": "your-api-key"}},CODE
HIGHdocs/sqlite.md175 llm_profiles={"default": {"api_key": "your-api-key"}},CODE
HIGHdocs/tutorials/getting_started.md30export OPENAI_API_KEY=sk-proj-your-api-keyCODE
HIGHdocs/tutorials/getting_started.md35$env:OPENAI_API_KEY="sk-proj-your-api-key"CODE
HIGHexamples/example_3_multimodal_memory.py8 export OPENAI_API_KEY=your_api_keySTRING
HIGHexamples/example_5_with_lazyllm_client.py17 export MEMU_QWEN_API_KEY=your_api_keySTRING
HIGHexamples/example_4_openrouter_memory.py8 export OPENROUTER_API_KEY=your_api_keySTRING
HIGHexamples/example_2_skill_extraction.py8 export OPENAI_API_KEY=your_api_keySTRING
HIGHexamples/example_1_conversation_memory.py8 export OPENAI_API_KEY=your_api_keySTRING
HIGHexamples/example_6_preprocess_modalities.py20 export OPENAI_API_KEY=your_api_keySTRING
HIGHexamples/resources/docs/doc1.txt263 "api_key": "your-api-key",CODE
HIGHsrc/memu/embedding/http_client.py112 ... api_key="your-api-key",STRING
Excessive Try-Catch Wrapping55 hits · 60 pts
SeverityFileLineSnippetContext
LOWtests/test_lazyllm.py46 except Exception as e:CODE
LOWtests/test_lazyllm.py57 except Exception as e:CODE
LOWtests/test_lazyllm.py72 except Exception as e:CODE
LOWtests/test_lazyllm.py86 except Exception as e:CODE
LOWdocs/tutorials/getting_started.md142 except Exception as e:CODE
LOWexamples/example_3_multimodal_memory.py121 except Exception as e:CODE
MEDIUMexamples/example_3_multimodal_memory.py122 print(f"Error: {e}")CODE
LOWexamples/test_nebius_provider.py73 except Exception as e:CODE
LOWexamples/test_nebius_provider.py102 except Exception as e:CODE
LOWexamples/test_nebius_provider.py187 except Exception as e:CODE
LOWexamples/example_5_with_lazyllm_client.py64 except Exception as e:CODE
LOWexamples/example_5_with_lazyllm_client.py123 except Exception as e:STRING
LOWexamples/example_5_with_lazyllm_client.py176 except Exception as e:STRING
LOWexamples/getting_started_robust.py99 except Exception as e:CODE
LOWexamples/example_4_openrouter_memory.py98 except Exception as e:CODE
MEDIUMexamples/example_4_openrouter_memory.py99 print(f"Error processing {conv_file}: {e}")CODE
LOWexamples/example_2_skill_extraction.py254 except Exception as e:STRING
MEDIUMexamples/example_2_skill_extraction.py255 print(f"Error: {e}")STRING
LOWexamples/example_1_conversation_memory.py101 except Exception as e:CODE
MEDIUMexamples/example_1_conversation_memory.py102 print(f"Error: {e}")CODE
LOWexamples/example_6_preprocess_modalities.py127 except Exception as e:CODE
LOWexamples/sealos-assistant/main.py74 except Exception as e:CODE
LOWexamples/sealos-assistant/main.py215 except Exception as e:CODE
LOWexamples/sealos-assistant/main.py245 except Exception as e:CODE
LOWexamples/sealos-assistant/main.py275 except Exception as e:CODE
LOWexamples/proactive/proactive.py29 except Exception as e:CODE
LOWexamples/proactive/proactive.py115 except Exception as e:CODE
LOWexamples/proactive/proactive.py178 except Exception as e:CODE
LOWexamples/proactive/proactive.py191 except Exception as e:CODE
LOWsrc/memu/cli.py245 except Exception as exc:CODE
LOWsrc/memu/database/postgres/session.py30 except Exception:CODE
MEDIUMsrc/memu/database/postgres/session.py27def close(self) -> None:CODE
LOWsrc/memu/database/postgres/repositories/base.py40 except Exception:CODE
LOWsrc/memu/database/postgres/repositories/base.py50 except Exception:CODE
LOWsrc/memu/llm/wrapper.py436 except Exception as exc:CODE
LOWsrc/memu/llm/wrapper.py731 except Exception:CODE
LOWsrc/memu/llm/wrapper.py776 except Exception:CODE
LOWsrc/memu/llm/wrapper.py784 except Exception:CODE
LOWsrc/memu/llm/wrapper.py787 except Exception:CODE
LOWsrc/memu/llm/wrapper.py801 except Exception:CODE
LOWsrc/memu/llm/http_client.py218 except Exception:CODE
LOWsrc/memu/llm/openai_client.py198 except Exception:CODE
LOWsrc/memu/app/memorize_workspace.py267 except Exception:CODE
LOWsrc/memu/app/memorize.py1118 except Exception:CODE
LOWsrc/memu/app/retrieve.py1353 except Exception as e:CODE
LOWsrc/memu/app/retrieve.py1377 except Exception as e:CODE
LOWsrc/memu/app/retrieve.py1401 except Exception as e:CODE
LOWsrc/memu/preprocess/audio.py65 except Exception:CODE
LOWsrc/memu/preprocess/audio.py76 except Exception:CODE
LOWsrc/memu/preprocess/video.py51 except Exception as e:CODE
LOWsrc/memu/utils/conversation.py46 except Exception:CODE
LOWsrc/memu/integrations/langgraph.py93 except Exception as e:CODE
LOWsrc/memu/integrations/langgraph.py136 except Exception as e:CODE
LOWsrc/memu/workflow/step.py92 except Exception as e:CODE
LOWsrc/memu/workflow/interceptor.py215 except Exception:CODE
Structural Annotation Overuse27 hits · 51 pts
SeverityFileLineSnippetContext
LOWdocs/sealos-devbox-guide.md22## Step 1: Create a DevBox EnvironmentCOMMENT
LOWdocs/sealos-devbox-guide.md31## Step 2: Connect Your IDECOMMENT
LOWdocs/sealos-devbox-guide.md37## Step 3: Set Up the ProjectCOMMENT
LOWdocs/sealos-devbox-guide.md53## Step 4: Create the ApplicationCOMMENT
LOWdocs/sealos-devbox-guide.md184 # Step 1: Retrieve relevant memoriesCOMMENT
LOWdocs/sealos-devbox-guide.md197 # Step 2: Generate response (simplified - in production, use full LLM call)COMMENT
LOWdocs/sealos-devbox-guide.md203 # Step 3: Store the conversation as a new memoryCOMMENT
LOWdocs/sealos-devbox-guide.md298## Step 5: Test Locally in DevBoxCOMMENT
LOWdocs/sealos-devbox-guide.md325## Step 6: Deploy to ProductionCOMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py18## Step 1: Preprocessing & ParsingCOMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py26## Step 2: Core Operations (Update / Add)COMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py35## Step 3: Merge & FormattingCOMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py40## Step 4: SummarizeCOMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py46## Step 5: OutputCOMMENT
LOWsrc/memu/prompts/category_summary/category.py7## Step 1: Preprocessing & ParsingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py19## Step 2: Core Operations (Update / Add)COMMENT
LOWsrc/memu/prompts/category_summary/category.py30## Step 3: Merge & FormattingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py39## Step 4: SummarizeCOMMENT
LOWsrc/memu/prompts/category_summary/category.py46## Step 5: OutputCOMMENT
LOWsrc/memu/prompts/category_summary/category.py154## Step 1: Preprocessing & ParsingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py166## Step 2: Core Operations (Update / Add)COMMENT
LOWsrc/memu/prompts/category_summary/category.py177## Step 3: Merge & FormattingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py186## Step 4: SummarizeCOMMENT
LOWsrc/memu/prompts/category_summary/category.py192## Step 5: OutputCOMMENT
LOWsrc/memu/prompts/preprocess/audio.py8# Step 1 - Classify the AudioCOMMENT
LOWsrc/memu/prompts/preprocess/audio.py22# Step 2 - Build an OverviewCOMMENT
LOWsrc/memu/prompts/preprocess/audio.py29# Step 3 - Clean the ContentCOMMENT
Verbosity Indicators15 hits · 31 pts
SeverityFileLineSnippetContext
LOWsrc/memu/prompts/category_summary/category_with_refs.py18## Step 1: Preprocessing & ParsingCOMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py26## Step 2: Core Operations (Update / Add)COMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py35## Step 3: Merge & FormattingCOMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py40## Step 4: SummarizeCOMMENT
LOWsrc/memu/prompts/category_summary/category_with_refs.py46## Step 5: OutputCOMMENT
LOWsrc/memu/prompts/category_summary/category.py7## Step 1: Preprocessing & ParsingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py19## Step 2: Core Operations (Update / Add)COMMENT
LOWsrc/memu/prompts/category_summary/category.py30## Step 3: Merge & FormattingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py39## Step 4: SummarizeCOMMENT
LOWsrc/memu/prompts/category_summary/category.py46## Step 5: OutputCOMMENT
LOWsrc/memu/prompts/category_summary/category.py154## Step 1: Preprocessing & ParsingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py166## Step 2: Core Operations (Update / Add)COMMENT
LOWsrc/memu/prompts/category_summary/category.py177## Step 3: Merge & FormattingCOMMENT
LOWsrc/memu/prompts/category_summary/category.py186## Step 4: SummarizeCOMMENT
LOWsrc/memu/prompts/category_summary/category.py192## Step 5: OutputCOMMENT
Decorative Section Separators10 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMexamples/example_5_with_lazyllm_client.py34# ==========================================COMMENT
MEDIUMexamples/example_5_with_lazyllm_client.py36# ==========================================COMMENT
MEDIUMexamples/example_5_with_lazyllm_client.py74# ==========================================COMMENT
MEDIUMexamples/example_5_with_lazyllm_client.py76# ==========================================COMMENT
MEDIUMexamples/example_5_with_lazyllm_client.py133# ==========================================STRING
MEDIUMexamples/example_5_with_lazyllm_client.py135# ==========================================STRING
MEDIUMexamples/example_5_with_lazyllm_client.py185# ==========================================STRING
MEDIUMexamples/example_5_with_lazyllm_client.py187# ==========================================STRING
MEDIUMexamples/example_5_with_lazyllm_client.py215# ==========================================STRING
MEDIUMexamples/example_5_with_lazyllm_client.py217# ==========================================STRING
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGH…/memu/database/sqlite/repositories/recall_file_repo.py217Update an existing category. Args: category_id: ID of category to update. name: New namSTRING
HIGH…memu/database/sqlite/repositories/recall_entry_repo.py402Update an existing memory item. Args: item_id: ID of item to update. memory_type: New mSTRING
HIGHsrc/memu/embedding/http_client.py94 Create multimodal embeddings using Doubao embedding vision API. This method supports embedding a mix oSTRING
HIGHsrc/memu/utils/video.py32 Extract the middle frame from a video file. Args: video_path: Path to the video file STRING
HIGHsrc/memu/utils/video.py126 Extract multiple evenly-spaced frames from a video. Args: video_path: Path to the video fiSTRING
Deep Nesting17 hits · 16 pts
SeverityFileLineSnippetContext
LOWexamples/test_nebius_provider.py107CODE
LOWexamples/example_5_with_lazyllm_client.py79CODE
LOWexamples/example_2_skill_extraction.py134CODE
LOWscripts/db.py41CODE
LOW…memu/database/sqlite/repositories/recall_entry_repo.py392CODE
LOWsrc/memu/database/sqlite/repositories/base.py103CODE
LOWsrc/memu/database/inmemory/repositories/filter.py7CODE
LOWsrc/memu/database/postgres/migration.py35CODE
LOW…mu/database/postgres/repositories/recall_entry_repo.py225CODE
LOWsrc/memu/database/postgres/repositories/base.py89CODE
LOWsrc/memu/llm/wrapper.py171CODE
LOWsrc/memu/app/retrieve.py806CODE
LOWsrc/memu/app/retrieve.py1154CODE
LOWsrc/memu/app/retrieve.py1334CODE
LOWsrc/memu/app/retrieve.py1358CODE
LOWsrc/memu/app/retrieve.py1382CODE
LOWsrc/memu/workflow/interceptor.py117CODE
Modern AI Meta-Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_inmemory.py53 # RAG-based retrievalCOMMENT
MEDIUMtests/test_folder_memorize.py85# -- service-level: cascade delete & orchestration ---------------------------COMMENT
MEDIUMtests/test_sqlite.py68 # RAG-based retrievalCOMMENT
MEDIUMtests/test_postgres.py46 # RAG-based retrievalCOMMENT
MEDIUMsrc/memu/app/settings.py487 # Agent/session scoping for multi-agent and multi-session memory filteringCOMMENT
AI Structural Patterns9 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/memu/database/sqlite/sqlite.py72CODE
LOWsrc/memu/database/inmemory/repo.py30CODE
LOWsrc/memu/database/postgres/postgres.py53CODE
LOWsrc/memu/llm/lazyllm_client.py14CODE
LOWsrc/memu/app/service.py63CODE
LOWsrc/memu/app/service.py443CODE
LOWsrc/memu/app/memorize_workspace.py696CODE
LOWsrc/memu/app/memorize.py427CODE
LOWsrc/memu/utils/references.py74CODE
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWexamples/proactive/proactive.py107 # Check if there's a running memorization taskCOMMENT
LOW…abase/sqlite/repositories/recall_file_resource_repo.py95 # Check if relation already existsCOMMENT
LOW…database/sqlite/repositories/recall_file_entry_repo.py95 # Check if relation already existsCOMMENT
LOW…mu/database/inmemory/repositories/recall_entry_repo.py47 # Check if ref_id is in the requested setCOMMENT
LOWsrc/memu/app/memorize.py1001 # Check if references are enabled and we have (id, summary) tuplesCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_sqlite.py28 # Create a temporary SQLite database fileCOMMENT
MEDIUMexamples/proactive/memory/platform/tools.py51# Create the MCP server with the toolCOMMENT
Slop Phrases3 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMexamples/example_4_openrouter_memory.py72 "chat_model": "anthropic/claude-3.5-sonnet", # you can use any model from openrouter.aiCODE
MEDIUMexamples/example_4_openrouter_memory.py73 "embed_model": "openai/text-embedding-3-small", # you can use any model from openrouter.aiCODE
LOWexamples/resources/conversations/conv2.json60 "content": "You're welcome! It sounds like you have a great mix of activities planned. Don't forget to bring layers CODE
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_inmemory.py21 # "base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",COMMENT
LOWexamples/test_nebius_provider.py21import sysCOMMENT
LOWsrc/memu/database/models.py81 memory_type: strCOMMENT
Fake / Example Data2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/llm/test_grok_provider.py27 api_key="fake-key", # In real app, this would be os.getenv(config.api_key)CODE
LOWtests/llm/test_grok_provider.py32 mock_async_openai.assert_called_with(api_key="fake-key", base_url="https://api.x.ai/v1")CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMexamples/example_2_skill_extraction.py257 # Generate final comprehensive skill.mdSTRING