Personal memory for agents - fast memory retrieval, self-evolving skills, and lower cost.
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_audio_preprocess.py | 8 | CODE | |
| LOW | tests/test_folder_memorize.py | 9 | CODE | |
| LOW | tests/test_conversation_preprocess.py | 8 | CODE | |
| LOW | tests/test_skill_track.py | 8 | CODE | |
| LOW | tests/test_embedding.py | 14 | CODE | |
| LOW | tests/test_vlm_preprocess.py | 10 | CODE | |
| LOW | tests/test_backend_conformance.py | 13 | CODE | |
| LOW | tests/test_salience.py | 8 | CODE | |
| LOW | tests/test_memory_files.py | 1 | CODE | |
| LOW | tests/test_vector.py | 1 | CODE | |
| LOW | tests/test_document_text.py | 3 | CODE | |
| LOW | tests/test_tool_memory.py | 3 | CODE | |
| LOW | tests/test_openai_max_tokens.py | 9 | CODE | |
| LOW | tests/test_memory_fs_synthesis.py | 1 | CODE | |
| LOW | tests/test_cli.py | 7 | CODE | |
| LOW | tests/test_references.py | 12 | CODE | |
| LOW | examples/langgraph_demo.py | 10 | CODE | |
| LOW | examples/example_6_preprocess_modalities.py | 27 | CODE | |
| LOW | examples/sealos_support_agent.py | 6 | CODE | |
| LOW | scripts/db.py | 23 | CODE | |
| LOW | src/memu/vector.py | 10 | CODE | |
| LOW | src/memu/cli.py | 20 | CODE | |
| LOW | src/memu/database/interfaces.py | 1 | CODE | |
| LOW | src/memu/database/models.py | 1 | CODE | |
| LOW | src/memu/database/__init__.py | 3 | CODE | |
| LOW | src/memu/database/__init__.py | 4 | CODE | |
| LOW | src/memu/database/__init__.py | 4 | CODE | |
| LOW | src/memu/database/__init__.py | 4 | CODE | |
| LOW | src/memu/database/__init__.py | 4 | CODE | |
| LOW | src/memu/database/__init__.py | 4 | CODE | |
| LOW | src/memu/database/__init__.py | 4 | CODE | |
| LOW | src/memu/database/__init__.py | 4 | CODE | |
| LOW | src/memu/database/__init__.py | 13 | CODE | |
| LOW | src/memu/database/__init__.py | 13 | CODE | |
| LOW | src/memu/database/__init__.py | 13 | CODE | |
| LOW | src/memu/database/__init__.py | 13 | CODE | |
| LOW | src/memu/database/__init__.py | 13 | CODE | |
| LOW | src/memu/database/__init__.py | 13 | CODE | |
| LOW | src/memu/database/factory.py | 1 | CODE | |
| LOW | src/memu/database/state.py | 1 | CODE | |
| LOW | src/memu/database/repositories/recall_file.py | 1 | CODE | |
| LOW | src/memu/database/repositories/recall_file_resource.py | 1 | CODE | |
| LOW | src/memu/database/repositories/resource.py | 1 | CODE | |
| LOW | src/memu/database/repositories/__init__.py | 1 | CODE | |
| LOW | src/memu/database/repositories/__init__.py | 2 | CODE | |
| LOW | src/memu/database/repositories/__init__.py | 3 | CODE | |
| LOW | src/memu/database/repositories/__init__.py | 4 | CODE | |
| LOW | src/memu/database/repositories/__init__.py | 5 | CODE | |
| LOW | src/memu/database/repositories/__init__.py | 6 | CODE | |
| LOW | src/memu/database/repositories/recall_file_segment.py | 1 | CODE | |
| LOW | src/memu/database/repositories/recall_entry.py | 1 | CODE | |
| LOW | src/memu/database/repositories/recall_file_entry.py | 1 | CODE | |
| LOW | src/memu/database/sqlite/models.py | 3 | CODE | |
| LOW | src/memu/database/sqlite/session.py | 3 | CODE | |
| LOW | src/memu/database/sqlite/__init__.py | 3 | CODE | |
| LOW | src/memu/database/sqlite/sqlite.py | 3 | CODE | |
| LOW | src/memu/database/sqlite/schema.py | 3 | CODE | |
| LOW | …abase/sqlite/repositories/recall_file_resource_repo.py | 3 | CODE | |
| LOW | src/memu/database/sqlite/repositories/resource_repo.py | 3 | CODE | |
| LOW | …/memu/database/sqlite/repositories/recall_file_repo.py | 3 | CODE | |
| 212 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_audio_preprocess.py | 41 | def test_audio_prompt_asks_to_classify_type() -> None: | CODE |
| LOW | tests/test_audio_preprocess.py | 49 | def test_audio_preprocess_returns_overview_and_typed_caption() -> None: | CODE |
| LOW | tests/test_audio_preprocess.py | 80 | def test_audio_preprocess_skips_without_text() -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 29 | def test_infer_modality_by_extension() -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 39 | def test_scan_folder_recurses_skips_unknown_and_hidden(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 55 | def test_manifest_roundtrip_and_diff(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 78 | def test_diff_added_only_has_no_removals(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 117 | async def test_cascade_delete_removes_resource_items_relations(monkeypatch) -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 150 | async def test_memorize_workspace_sync_add_modify_delete(tmp_path: Path, monkeypatch) -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 214 | async def test_memorize_workspace_exports_when_enabled(tmp_path: Path, monkeypatch) -> None: | CODE |
| LOW | tests/test_folder_memorize.py | 260 | async def test_memorize_workspace_export_failure_does_not_fail_sync(tmp_path: Path, monkeypatch) -> None: | CODE |
| LOW | tests/test_conversation_preprocess.py | 39 | def test_conversation_returns_single_unsegmented_resource() -> None: | CODE |
| LOW | tests/test_skill_track.py | 84 | async def test_skill_track_synthesizes_file_and_links_resource(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 112 | async def test_chat_track_routes_to_memory_track_file(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 132 | async def test_update_op_revises_existing_file_by_name(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 147 | async def test_workspace_track_is_resource_only_noop(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 159 | async def test_empty_source_is_noop(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 170 | async def test_skill_track_creates_single_name_description_segment(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 186 | async def test_memory_track_segments_are_lines_skipping_headings(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 205 | async def test_memory_segments_drop_and_add_on_update(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_skill_track.py | 234 | async def test_update_op_for_unknown_file_is_dropped(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_embedding.py | 46 | def test_backend_payload_and_parse(backend, endpoint): | CODE |
| LOW⚡ | tests/test_embedding.py | 58 | def test_http_client_unknown_provider_falls_back_to_openai(): | CODE |
| LOW⚡ | tests/test_embedding.py | 63 | def test_http_client_selects_registered_backend(): | CODE |
| LOW⚡ | tests/test_embedding.py | 68 | async def test_http_client_embed_returns_vectors_and_raw(monkeypatch): | CODE |
| LOW⚡ | tests/test_embedding.py | 110 | def test_gateway_builds_sdk_and_httpx_clients(): | CODE |
| LOW⚡ | tests/test_embedding.py | 119 | def test_gateway_rejects_anthropic_and_unknown_backends(): | CODE |
| LOW⚡ | tests/test_embedding.py | 127 | def test_embedding_config_provider_defaults(): | CODE |
| LOW | tests/test_embedding.py | 145 | def test_chat_clients_no_longer_expose_embed(): | CODE |
| LOW | tests/test_embedding.py | 158 | def test_embedding_config_from_llm_carries_transport_and_model(): | CODE |
| LOW | tests/test_postgres_migration_config.py | 21 | def test_make_alembic_config_escapes_percent_encoded_dsn() -> None: | CODE |
| LOW⚡ | tests/test_vlm_preprocess.py | 64 | def test_vlm_config_from_llm_openai_sdk() -> None: | CODE |
| LOW⚡ | tests/test_vlm_preprocess.py | 71 | def test_vlm_config_from_llm_claude_http_reuses_credentials() -> None: | CODE |
| LOW⚡ | tests/test_vlm_preprocess.py | 81 | def test_vlm_config_from_llm_anthropic_backend_maps_provider() -> None: | CODE |
| LOW⚡ | tests/test_vlm_preprocess.py | 89 | def test_vlm_config_unknown_provider_falls_back_to_chat_model() -> None: | CODE |
| LOW⚡ | tests/test_vlm_preprocess.py | 96 | def test_image_preprocess_uses_vlm_client() -> None: | CODE |
| LOW | tests/test_vlm_preprocess.py | 109 | def test_service_routes_vision_modalities_to_vlm(monkeypatch: Any) -> None: | CODE |
| LOW | tests/test_vlm_preprocess.py | 133 | def test_service_falls_back_to_chat_client_when_vlm_profile_missing(monkeypatch: Any) -> None: | CODE |
| LOW | tests/test_vlm_preprocess.py | 151 | def test_vlm_config_from_llm_openrouter_uses_video_capable_model() -> None: | CODE |
| LOW | tests/test_vlm_preprocess.py | 161 | def test_openrouter_backend_supports_native_video() -> None: | CODE |
| LOW | tests/test_vlm_preprocess.py | 177 | def test_http_vlm_client_exposes_backend_video_capability() -> None: | CODE |
| LOW | tests/test_vlm_preprocess.py | 188 | def test_video_uses_native_video_when_supported() -> None: | CODE |
| LOW | tests/test_vlm_preprocess.py | 205 | def test_video_without_native_support_skips_no_frame_fallback() -> None: | CODE |
| LOW | tests/test_backend_conformance.py | 73 | def test_clear_items_with_scope_mutates_shared_state(store): | CODE |
| LOW | tests/test_backend_conformance.py | 86 | def test_clear_categories_with_scope_mutates_shared_state(store): | CODE |
| LOW | tests/test_backend_conformance.py | 100 | def test_unlink_item_removes_all_relations(store): | CODE |
| LOW | tests/test_backend_conformance.py | 118 | def test_delete_item_leaves_no_orphan_relations(store): | CODE |
| LOW | tests/test_backend_conformance.py | 134 | def test_clear_relations_with_scope(store): | CODE |
| LOW | tests/test_backend_conformance.py | 146 | def test_extra_round_trips_through_create_and_read(store): | CODE |
| LOW | tests/test_backend_conformance.py | 193 | def test_update_with_none_categories_keeps_links(store): | CODE |
| LOW | tests/test_backend_conformance.py | 214 | def test_update_with_empty_categories_clears_links(store): | CODE |
| LOW | tests/test_backend_conformance.py | 234 | def test_update_with_new_categories_swaps_links(store): | CODE |
| LOW | tests/test_backend_conformance.py | 262 | def test_resolve_category_ids_creates_unknown_adaptively(store): | CODE |
| LOW | tests/test_backend_conformance.py | 306 | def test_resolve_category_ids_gated_drops_unknown(store): | CODE |
| LOW | tests/test_backend_conformance.py | 343 | def test_sqlite_extra_survives_cache_miss(tmp_path): | CODE |
| LOW⚡ | tests/test_salience.py | 81 | def test_different_content_different_hash(self): | CODE |
| LOW⚡ | tests/test_salience.py | 87 | def test_different_type_different_hash(self): | CODE |
| LOW⚡ | tests/test_salience.py | 93 | def test_whitespace_normalization(self): | CODE |
| LOW⚡ | tests/test_salience.py | 120 | def test_higher_reinforcement_higher_score(self): | CODE |
| LOW⚡ | tests/test_salience.py | 127 | def test_recent_memory_higher_score(self): | CODE |
| 174 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/example_3_multimodal_memory.py | 0 | generate concise markdown files for each memory category. | STRING |
| HIGH | examples/example_4_openrouter_memory.py | 0 | generate concise markdown files for each memory category. | STRING |
| HIGH | examples/example_1_conversation_memory.py | 0 | generate concise markdown files for each memory category. | STRING |
| HIGH | …memu/database/sqlite/repositories/recall_entry_repo.py | 0 | list items by their ref_id in the extra column. args: ref_ids: list of ref_ids to query. where: additional filter condit | STRING |
| HIGH | …mu/database/inmemory/repositories/recall_entry_repo.py | 0 | list items by their ref_id in the extra column. args: ref_ids: list of ref_ids to query. where: additional filter condit | STRING |
| HIGH | …mu/database/postgres/repositories/recall_entry_repo.py | 0 | list items by their ref_id in the extra column. args: ref_ids: list of ref_ids to query. where: additional filter condit | STRING |
| HIGH | src/memu/llm/backends/base.py | 0 | auth/request headers for this provider. defaults to openai-style bearer auth; providers with a different scheme override | STRING |
| HIGH | src/memu/vlm/backends/base.py | 0 | auth/request headers for this provider. defaults to openai-style bearer auth; providers with a different scheme override | STRING |
| HIGH | src/memu/embedding/backends/base.py | 0 | auth/request headers for this provider. defaults to openai-style bearer auth; providers with a different scheme override | STRING |
| HIGH | src/memu/app/retrieve_workspace.py | 0 | validate and clean the `where` scope filters against the configured user model. | STRING |
| HIGH | src/memu/app/retrieve.py | 0 | validate and clean the `where` scope filters against the configured user model. | STRING |
| HIGH | src/memu/app/crud.py | 0 | validate and clean the `where` scope filters against the configured user model. | STRING |
| HIGH | src/memu/prompts/memory_type/skill.py | 0 | # original resource: <resource> {resource} </resource> | STRING |
| HIGH | src/memu/prompts/memory_type/event.py | 0 | # original resource: <resource> {resource} </resource> | STRING |
| HIGH | src/memu/prompts/memory_type/behavior.py | 0 | # original resource: <resource> {resource} </resource> | STRING |
| HIGH | src/memu/prompts/memory_type/profile.py | 0 | # original resource: <resource> {resource} </resource> | STRING |
| HIGH | src/memu/prompts/memory_type/knowledge.py | 0 | # original resource: <resource> {resource} </resource> | STRING |
| HIGH | src/memu/prompts/memory_type/tool.py | 0 | # original resource: <resource> {resource} </resource> | STRING |
| HIGH | src/memu/prompts/memory_type/event.py | 0 | # workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain v | STRING |
| HIGH | src/memu/prompts/memory_type/behavior.py | 0 | # workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain v | STRING |
| HIGH | src/memu/prompts/memory_type/profile.py | 0 | # workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain v | STRING |
| HIGH | src/memu/prompts/memory_type/knowledge.py | 0 | # workflow read the full conversation to understand topics and meanings. ## extract memories select turns that contain v | STRING |
| HIGH | src/memu/prompts/memory_type/event.py | 0 | # output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory | STRING |
| HIGH | src/memu/prompts/memory_type/behavior.py | 0 | # output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory | STRING |
| HIGH | src/memu/prompts/memory_type/profile.py | 0 | # output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory | STRING |
| HIGH | src/memu/prompts/memory_type/knowledge.py | 0 | # output format (xml) return all memories wrapped in a single <item> element: <item> <memory> <content>knowledge memory | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/memu/vector.py | 145 | __all__ = ["cosine_topk", "cosine_topk_salience", "salience_score"] | CODE |
| LOW | src/memu/database/interfaces.py | 42 | __all__ = [ | CODE |
| LOW | src/memu/database/models.py | 184 | __all__ = [ | CODE |
| LOW | src/memu/database/__init__.py | 22 | __all__ = [ | CODE |
| LOW | src/memu/database/state.py | 25 | __all__ = ["DatabaseState"] | CODE |
| LOW | src/memu/database/repositories/__init__.py | 8 | __all__ = [ | CODE |
| LOW | src/memu/database/sqlite/models.py | 202 | __all__ = [ | CODE |
| LOW | src/memu/database/sqlite/session.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/sqlite/session.py | 48 | __all__ = ["SQLiteSessionManager"] | CODE |
| LOW | src/memu/database/sqlite/__init__.py | 36 | __all__ = ["SQLiteStore", "build_sqlite_database"] | CODE |
| LOW | src/memu/database/sqlite/sqlite.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/sqlite/sqlite.py | 187 | __all__ = ["SQLiteStore"] | CODE |
| LOW | src/memu/database/sqlite/schema.py | 126 | __all__ = ["SQLiteSQLAModels", "get_sqlite_metadata", "get_sqlite_sqlalchemy_models"] | CODE |
| LOW | …abase/sqlite/repositories/recall_file_resource_repo.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | …abase/sqlite/repositories/recall_file_resource_repo.py | 215 | __all__ = ["SQLiteRecallFileResourceRepo"] | CODE |
| LOW | src/memu/database/sqlite/repositories/resource_repo.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/sqlite/repositories/resource_repo.py | 224 | __all__ = ["SQLiteResourceRepo"] | CODE |
| LOW | …/memu/database/sqlite/repositories/recall_file_repo.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/memu/database/sqlite/repositories/recall_file_repo.py | 273 | __all__ = ["SQLiteRecallFileRepo"] | CODE |
| LOW | src/memu/database/sqlite/repositories/__init__.py | 11 | __all__ = [ | CODE |
| LOW | …database/sqlite/repositories/recall_file_entry_repo.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | …database/sqlite/repositories/recall_file_entry_repo.py | 211 | __all__ = ["SQLiteRecallFileEntryRepo"] | CODE |
| LOW | …tabase/sqlite/repositories/recall_file_segment_repo.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | …tabase/sqlite/repositories/recall_file_segment_repo.py | 142 | __all__ = ["SQLiteRecallFileSegmentRepo"] | CODE |
| LOW | …memu/database/sqlite/repositories/recall_entry_repo.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | …memu/database/sqlite/repositories/recall_entry_repo.py | 544 | __all__ = ["SQLiteRecallEntryRepo"] | CODE |
| LOW | src/memu/database/sqlite/repositories/base.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/sqlite/repositories/base.py | 128 | __all__ = ["SQLiteRepoBase"] | CODE |
| LOW | src/memu/database/inmemory/vector.py | 13 | __all__ = ["_cosine", "cosine_topk", "cosine_topk_salience", "salience_score"] | CODE |
| LOW | src/memu/database/inmemory/models.py | 69 | __all__ = [ | CODE |
| LOW | src/memu/database/inmemory/__init__.py | 34 | __all__ = ["build_inmemory_database"] | CODE |
| LOW | src/memu/database/inmemory/state.py | 7 | __all__ = ["DatabaseState", "InMemoryState"] | CODE |
| LOW | …ase/inmemory/repositories/recall_file_resource_repo.py | 67 | __all__ = ["InMemoryFileResourceRepository"] | CODE |
| LOW | …c/memu/database/inmemory/repositories/resource_repo.py | 79 | __all__ = ["InMemoryResourceRepository", "ResourceRepo"] | CODE |
| LOW | …emu/database/inmemory/repositories/recall_file_repo.py | 94 | __all__ = ["InMemoryRecallFileRepository", "RecallFileRepo"] | CODE |
| LOW | src/memu/database/inmemory/repositories/__init__.py | 20 | __all__ = [ | CODE |
| LOW | …tabase/inmemory/repositories/recall_file_entry_repo.py | 65 | __all__ = ["InMemoryFileEntryRepository"] | CODE |
| LOW | …base/inmemory/repositories/recall_file_segment_repo.py | 71 | __all__ = ["InMemoryFileSegmentRepository"] | CODE |
| LOW | src/memu/database/inmemory/repositories/filter.py | 32 | __all__ = ["matches_where"] | CODE |
| LOW | …mu/database/inmemory/repositories/recall_entry_repo.py | 263 | __all__ = ["InMemoryRecallEntryRepository"] | CODE |
| LOW | src/memu/database/postgres/models.py | 209 | __all__ = [ | CODE |
| LOW | src/memu/database/postgres/session.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/postgres/session.py | 34 | __all__ = ["SessionManager"] | CODE |
| LOW | src/memu/database/postgres/__init__.py | 36 | __all__ = ["build_postgres_database"] | CODE |
| LOW | src/memu/database/postgres/postgres.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/postgres/migration.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/postgres/migration.py | 72 | __all__ = ["DDLMode", "make_alembic_config", "run_migrations"] | CODE |
| LOW | src/memu/database/postgres/schema.py | 135 | __all__ = ["SQLAModels", "Vector", "get_metadata", "get_sqlalchemy_models", "require_sqlalchemy"] | CODE |
| LOW | …ase/postgres/repositories/recall_file_resource_repo.py | 149 | __all__ = ["PostgresRecallFileResourceRepo"] | CODE |
| LOW | …c/memu/database/postgres/repositories/resource_repo.py | 134 | __all__ = ["PostgresResourceRepo"] | CODE |
| LOW | …emu/database/postgres/repositories/recall_file_repo.py | 167 | __all__ = ["PostgresRecallFileRepo"] | CODE |
| LOW | src/memu/database/postgres/repositories/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …tabase/postgres/repositories/recall_file_entry_repo.py | 145 | __all__ = ["PostgresRecallFileEntryRepo"] | CODE |
| LOW | …base/postgres/repositories/recall_file_segment_repo.py | 133 | __all__ = ["PostgresRecallFileSegmentRepo"] | CODE |
| LOW | …mu/database/postgres/repositories/recall_entry_repo.py | 401 | __all__ = ["PostgresRecallEntryRepo"] | CODE |
| LOW | src/memu/database/postgres/repositories/base.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/database/postgres/repositories/base.py | 113 | __all__ = ["PostgresRepoBase"] | CODE |
| LOW | src/memu/llm/wrapper.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/llm/http_client.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/memu/llm/openai_client.py | 16 | logger = logging.getLogger(__name__) | CODE |
| 40 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_openrouter.py | 10 | export OPENROUTER_API_KEY=your_api_key | STRING |
| HIGH | tests/test_lazyllm.py | 6 | export MEMU_QWEN_API_KEY=your_api_key | STRING |
| HIGH | docs/sqlite.md | 19 | llm_profiles={"default": {"api_key": "your-api-key"}}, | CODE |
| HIGH | docs/sqlite.md | 29 | llm_profiles={"default": {"api_key": "your-api-key"}}, | CODE |
| HIGH | docs/sqlite.md | 45 | llm_profiles={"default": {"api_key": "your-api-key"}}, | CODE |
| HIGH | docs/sqlite.md | 76 | llm_profiles={"default": {"api_key": "your-api-key"}}, | CODE |
| HIGH | docs/sqlite.md | 175 | llm_profiles={"default": {"api_key": "your-api-key"}}, | CODE |
| HIGH | docs/tutorials/getting_started.md | 30 | export OPENAI_API_KEY=sk-proj-your-api-key | CODE |
| HIGH | docs/tutorials/getting_started.md | 35 | $env:OPENAI_API_KEY="sk-proj-your-api-key" | CODE |
| HIGH | examples/example_3_multimodal_memory.py | 8 | export OPENAI_API_KEY=your_api_key | STRING |
| HIGH | examples/example_5_with_lazyllm_client.py | 17 | export MEMU_QWEN_API_KEY=your_api_key | STRING |
| HIGH | examples/example_4_openrouter_memory.py | 8 | export OPENROUTER_API_KEY=your_api_key | STRING |
| HIGH | examples/example_2_skill_extraction.py | 8 | export OPENAI_API_KEY=your_api_key | STRING |
| HIGH | examples/example_1_conversation_memory.py | 8 | export OPENAI_API_KEY=your_api_key | STRING |
| HIGH | examples/example_6_preprocess_modalities.py | 20 | export OPENAI_API_KEY=your_api_key | STRING |
| HIGH | examples/resources/docs/doc1.txt | 263 | "api_key": "your-api-key", | CODE |
| HIGH | src/memu/embedding/http_client.py | 112 | ... api_key="your-api-key", | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_lazyllm.py | 46 | except Exception as e: | CODE |
| LOW | tests/test_lazyllm.py | 57 | except Exception as e: | CODE |
| LOW | tests/test_lazyllm.py | 72 | except Exception as e: | CODE |
| LOW | tests/test_lazyllm.py | 86 | except Exception as e: | CODE |
| LOW | docs/tutorials/getting_started.md | 142 | except Exception as e: | CODE |
| LOW | examples/example_3_multimodal_memory.py | 121 | except Exception as e: | CODE |
| MEDIUM | examples/example_3_multimodal_memory.py | 122 | print(f"Error: {e}") | CODE |
| LOW | examples/test_nebius_provider.py | 73 | except Exception as e: | CODE |
| LOW | examples/test_nebius_provider.py | 102 | except Exception as e: | CODE |
| LOW | examples/test_nebius_provider.py | 187 | except Exception as e: | CODE |
| LOW⚡ | examples/example_5_with_lazyllm_client.py | 64 | except Exception as e: | CODE |
| LOW⚡ | examples/example_5_with_lazyllm_client.py | 123 | except Exception as e: | STRING |
| LOW⚡ | examples/example_5_with_lazyllm_client.py | 176 | except Exception as e: | STRING |
| LOW | examples/getting_started_robust.py | 99 | except Exception as e: | CODE |
| LOW | examples/example_4_openrouter_memory.py | 98 | except Exception as e: | CODE |
| MEDIUM | examples/example_4_openrouter_memory.py | 99 | print(f"Error processing {conv_file}: {e}") | CODE |
| LOW⚡ | examples/example_2_skill_extraction.py | 254 | except Exception as e: | STRING |
| MEDIUM⚡ | examples/example_2_skill_extraction.py | 255 | print(f"Error: {e}") | STRING |
| LOW | examples/example_1_conversation_memory.py | 101 | except Exception as e: | CODE |
| MEDIUM | examples/example_1_conversation_memory.py | 102 | print(f"Error: {e}") | CODE |
| LOW | examples/example_6_preprocess_modalities.py | 127 | except Exception as e: | CODE |
| LOW | examples/sealos-assistant/main.py | 74 | except Exception as e: | CODE |
| LOW | examples/sealos-assistant/main.py | 215 | except Exception as e: | CODE |
| LOW | examples/sealos-assistant/main.py | 245 | except Exception as e: | CODE |
| LOW | examples/sealos-assistant/main.py | 275 | except Exception as e: | CODE |
| LOW | examples/proactive/proactive.py | 29 | except Exception as e: | CODE |
| LOW | examples/proactive/proactive.py | 115 | except Exception as e: | CODE |
| LOW | examples/proactive/proactive.py | 178 | except Exception as e: | CODE |
| LOW | examples/proactive/proactive.py | 191 | except Exception as e: | CODE |
| LOW | src/memu/cli.py | 245 | except Exception as exc: | CODE |
| LOW | src/memu/database/postgres/session.py | 30 | except Exception: | CODE |
| MEDIUM | src/memu/database/postgres/session.py | 27 | def close(self) -> None: | CODE |
| LOW | src/memu/database/postgres/repositories/base.py | 40 | except Exception: | CODE |
| LOW | src/memu/database/postgres/repositories/base.py | 50 | except Exception: | CODE |
| LOW | src/memu/llm/wrapper.py | 436 | except Exception as exc: | CODE |
| LOW | src/memu/llm/wrapper.py | 731 | except Exception: | CODE |
| LOW⚡ | src/memu/llm/wrapper.py | 776 | except Exception: | CODE |
| LOW⚡ | src/memu/llm/wrapper.py | 784 | except Exception: | CODE |
| LOW⚡ | src/memu/llm/wrapper.py | 787 | except Exception: | CODE |
| LOW | src/memu/llm/wrapper.py | 801 | except Exception: | CODE |
| LOW | src/memu/llm/http_client.py | 218 | except Exception: | CODE |
| LOW | src/memu/llm/openai_client.py | 198 | except Exception: | CODE |
| LOW | src/memu/app/memorize_workspace.py | 267 | except Exception: | CODE |
| LOW | src/memu/app/memorize.py | 1118 | except Exception: | CODE |
| LOW | src/memu/app/retrieve.py | 1353 | except Exception as e: | CODE |
| LOW | src/memu/app/retrieve.py | 1377 | except Exception as e: | CODE |
| LOW | src/memu/app/retrieve.py | 1401 | except Exception as e: | CODE |
| LOW | src/memu/preprocess/audio.py | 65 | except Exception: | CODE |
| LOW | src/memu/preprocess/audio.py | 76 | except Exception: | CODE |
| LOW | src/memu/preprocess/video.py | 51 | except Exception as e: | CODE |
| LOW | src/memu/utils/conversation.py | 46 | except Exception: | CODE |
| LOW | src/memu/integrations/langgraph.py | 93 | except Exception as e: | CODE |
| LOW | src/memu/integrations/langgraph.py | 136 | except Exception as e: | CODE |
| LOW | src/memu/workflow/step.py | 92 | except Exception as e: | CODE |
| LOW | src/memu/workflow/interceptor.py | 215 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docs/sealos-devbox-guide.md | 22 | ## Step 1: Create a DevBox Environment | COMMENT |
| LOW⚡ | docs/sealos-devbox-guide.md | 31 | ## Step 2: Connect Your IDE | COMMENT |
| LOW⚡ | docs/sealos-devbox-guide.md | 37 | ## Step 3: Set Up the Project | COMMENT |
| LOW | docs/sealos-devbox-guide.md | 53 | ## Step 4: Create the Application | COMMENT |
| LOW | docs/sealos-devbox-guide.md | 184 | # Step 1: Retrieve relevant memories | COMMENT |
| LOW | docs/sealos-devbox-guide.md | 197 | # Step 2: Generate response (simplified - in production, use full LLM call) | COMMENT |
| LOW | docs/sealos-devbox-guide.md | 203 | # Step 3: Store the conversation as a new memory | COMMENT |
| LOW | docs/sealos-devbox-guide.md | 298 | ## Step 5: Test Locally in DevBox | COMMENT |
| LOW | docs/sealos-devbox-guide.md | 325 | ## Step 6: Deploy to Production | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 18 | ## Step 1: Preprocessing & Parsing | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 26 | ## Step 2: Core Operations (Update / Add) | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 35 | ## Step 3: Merge & Formatting | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 40 | ## Step 4: Summarize | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 46 | ## Step 5: Output | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 7 | ## Step 1: Preprocessing & Parsing | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 19 | ## Step 2: Core Operations (Update / Add) | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 30 | ## Step 3: Merge & Formatting | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 39 | ## Step 4: Summarize | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 46 | ## Step 5: Output | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 154 | ## Step 1: Preprocessing & Parsing | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 166 | ## Step 2: Core Operations (Update / Add) | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 177 | ## Step 3: Merge & Formatting | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 186 | ## Step 4: Summarize | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 192 | ## Step 5: Output | COMMENT |
| LOW | src/memu/prompts/preprocess/audio.py | 8 | # Step 1 - Classify the Audio | COMMENT |
| LOW | src/memu/prompts/preprocess/audio.py | 22 | # Step 2 - Build an Overview | COMMENT |
| LOW | src/memu/prompts/preprocess/audio.py | 29 | # Step 3 - Clean the Content | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 18 | ## Step 1: Preprocessing & Parsing | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 26 | ## Step 2: Core Operations (Update / Add) | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 35 | ## Step 3: Merge & Formatting | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 40 | ## Step 4: Summarize | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category_with_refs.py | 46 | ## Step 5: Output | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 7 | ## Step 1: Preprocessing & Parsing | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 19 | ## Step 2: Core Operations (Update / Add) | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 30 | ## Step 3: Merge & Formatting | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 39 | ## Step 4: Summarize | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 46 | ## Step 5: Output | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 154 | ## Step 1: Preprocessing & Parsing | COMMENT |
| LOW | src/memu/prompts/category_summary/category.py | 166 | ## Step 2: Core Operations (Update / Add) | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 177 | ## Step 3: Merge & Formatting | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 186 | ## Step 4: Summarize | COMMENT |
| LOW⚡ | src/memu/prompts/category_summary/category.py | 192 | ## Step 5: Output | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 34 | # ========================================== | COMMENT |
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 36 | # ========================================== | COMMENT |
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 74 | # ========================================== | COMMENT |
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 76 | # ========================================== | COMMENT |
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 133 | # ========================================== | STRING |
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 135 | # ========================================== | STRING |
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 185 | # ========================================== | STRING |
| MEDIUM⚡ | examples/example_5_with_lazyllm_client.py | 187 | # ========================================== | STRING |
| MEDIUM | examples/example_5_with_lazyllm_client.py | 215 | # ========================================== | STRING |
| MEDIUM | examples/example_5_with_lazyllm_client.py | 217 | # ========================================== | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/memu/database/sqlite/repositories/recall_file_repo.py | 217 | Update an existing category. Args: category_id: ID of category to update. name: New nam | STRING |
| HIGH | …memu/database/sqlite/repositories/recall_entry_repo.py | 402 | Update an existing memory item. Args: item_id: ID of item to update. memory_type: New m | STRING |
| HIGH | src/memu/embedding/http_client.py | 94 | Create multimodal embeddings using Doubao embedding vision API. This method supports embedding a mix o | STRING |
| HIGH | src/memu/utils/video.py | 32 | Extract the middle frame from a video file. Args: video_path: Path to the video file | STRING |
| HIGH | src/memu/utils/video.py | 126 | Extract multiple evenly-spaced frames from a video. Args: video_path: Path to the video fi | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/test_nebius_provider.py | 107 | CODE | |
| LOW | examples/example_5_with_lazyllm_client.py | 79 | CODE | |
| LOW | examples/example_2_skill_extraction.py | 134 | CODE | |
| LOW | scripts/db.py | 41 | CODE | |
| LOW | …memu/database/sqlite/repositories/recall_entry_repo.py | 392 | CODE | |
| LOW | src/memu/database/sqlite/repositories/base.py | 103 | CODE | |
| LOW | src/memu/database/inmemory/repositories/filter.py | 7 | CODE | |
| LOW | src/memu/database/postgres/migration.py | 35 | CODE | |
| LOW | …mu/database/postgres/repositories/recall_entry_repo.py | 225 | CODE | |
| LOW | src/memu/database/postgres/repositories/base.py | 89 | CODE | |
| LOW | src/memu/llm/wrapper.py | 171 | CODE | |
| LOW | src/memu/app/retrieve.py | 806 | CODE | |
| LOW | src/memu/app/retrieve.py | 1154 | CODE | |
| LOW | src/memu/app/retrieve.py | 1334 | CODE | |
| LOW | src/memu/app/retrieve.py | 1358 | CODE | |
| LOW | src/memu/app/retrieve.py | 1382 | CODE | |
| LOW | src/memu/workflow/interceptor.py | 117 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_inmemory.py | 53 | # RAG-based retrieval | COMMENT |
| MEDIUM | tests/test_folder_memorize.py | 85 | # -- service-level: cascade delete & orchestration --------------------------- | COMMENT |
| MEDIUM | tests/test_sqlite.py | 68 | # RAG-based retrieval | COMMENT |
| MEDIUM | tests/test_postgres.py | 46 | # RAG-based retrieval | COMMENT |
| MEDIUM | src/memu/app/settings.py | 487 | # Agent/session scoping for multi-agent and multi-session memory filtering | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/memu/database/sqlite/sqlite.py | 72 | CODE | |
| LOW | src/memu/database/inmemory/repo.py | 30 | CODE | |
| LOW | src/memu/database/postgres/postgres.py | 53 | CODE | |
| LOW | src/memu/llm/lazyllm_client.py | 14 | CODE | |
| LOW | src/memu/app/service.py | 63 | CODE | |
| LOW | src/memu/app/service.py | 443 | CODE | |
| LOW | src/memu/app/memorize_workspace.py | 696 | CODE | |
| LOW | src/memu/app/memorize.py | 427 | CODE | |
| LOW | src/memu/utils/references.py | 74 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/proactive/proactive.py | 107 | # Check if there's a running memorization task | COMMENT |
| LOW | …abase/sqlite/repositories/recall_file_resource_repo.py | 95 | # Check if relation already exists | COMMENT |
| LOW | …database/sqlite/repositories/recall_file_entry_repo.py | 95 | # Check if relation already exists | COMMENT |
| LOW | …mu/database/inmemory/repositories/recall_entry_repo.py | 47 | # Check if ref_id is in the requested set | COMMENT |
| LOW | src/memu/app/memorize.py | 1001 | # Check if references are enabled and we have (id, summary) tuples | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_sqlite.py | 28 | # Create a temporary SQLite database file | COMMENT |
| MEDIUM | examples/proactive/memory/platform/tools.py | 51 | # Create the MCP server with the tool | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/example_4_openrouter_memory.py | 72 | "chat_model": "anthropic/claude-3.5-sonnet", # you can use any model from openrouter.ai | CODE |
| MEDIUM | examples/example_4_openrouter_memory.py | 73 | "embed_model": "openai/text-embedding-3-small", # you can use any model from openrouter.ai | CODE |
| LOW | examples/resources/conversations/conv2.json | 60 | "content": "You're welcome! It sounds like you have a great mix of activities planned. Don't forget to bring layers | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_inmemory.py | 21 | # "base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1", | COMMENT |
| LOW | examples/test_nebius_provider.py | 21 | import sys | COMMENT |
| LOW | src/memu/database/models.py | 81 | memory_type: str | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/llm/test_grok_provider.py | 27 | api_key="fake-key", # In real app, this would be os.getenv(config.api_key) | CODE |
| LOW⚡ | tests/llm/test_grok_provider.py | 32 | mock_async_openai.assert_called_with(api_key="fake-key", base_url="https://api.x.ai/v1") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | examples/example_2_skill_extraction.py | 257 | # Generate final comprehensive skill.md | STRING |