github Python analyzed 4f11e89

TeleAI-UAGI/telemem

github

TeleMem is a high-performance drop-in replacement for Mem0, featuring semantic deduplication, long-term dialogue memory, and multimodal video reasoning.

maintainer
TeleAI-UAGI
licence
Apache-2.0
first seen
2026-06-12
last seen
2026-09-07
releases · 30d
1
short id

Drift inferred · capture-to-capture

  1. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  2. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  3. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  4. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  5. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  6. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  7. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  8. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  9. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  10. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
  11. HIGH code analysis flagged committed secret ×2 in TeleAI-UAGI/telemem
capabilities 4 tools
transport stdio · http · sse counts 4 tools · 0 res · 0 prompts permission surface via code analysis

tools

  • get_memory
  • get_user_profiles
  • save_memory
  • search_memories
skills & danger signals github-tarball
prompt-surface shipped agent-instruction files + hidden-content / dangerous-code findings — quoted from the analyzed source

analyzed commit 4f11e89 · analyzer v33 · 2d ago

danger signals4

code evidence vv1.10.0 · github-tarball
evidence-backed findings quoted directly from the published source artifact — not inferred

code files: 225

filesystem 45

  • fs TeleAI-UAGI-telemem-4f11e89/baselines/A-mem/load_dataset.py :6 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/A-mem/memory_layer.py :12 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/A-mem/test_advanced.py :236 with open(results_json_path, 'r') as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/A-mem/utils.py :15 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/evaluate.py :53 with open(result_file, 'r', encoding='utf-8') as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/longmemeval/run_telemem.py :43 import shutil
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/mem0/add.py :8 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/mem0/local_adapter.py :215 with open(self._store_path, "r", encoding="utf-8") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/mem0/mem0_manager.py :3 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/mem0/run.py :4 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/mem0/search.py :127 with open(rf, "r", encoding="utf-8") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/compute_p95_latency.py :75 with open("./fixture/memobase/results_0710_3000.json", "r") as f:
show 28 more
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/evals.py :68 with open(args.input_file, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/generate_scores.py :11 with open(args.input_path, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/json_convert.py :10 with open(input_path, "r", encoding="utf-8") as infile:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/metrics/llm_judge.py :80 with open(dataset_path, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/metrics/utils.py :27 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/run_experiments.py :60 with open(args.config_apikey, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/langmem.py :109 with open(self.dataset_path, 'r') as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memobase_client/memobase_add.py :29 with open(config_path, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memobase_client/memobase_search.py :56 with open(output_path, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memzero/add.py :60 with open(self.data_path, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memzero/search.py :136 with open(self.output_path, 'w') as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/openai/predict.py :62 with open(f'memories/{idx}.txt', 'r') as file:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/rag.py :153 with open(self.data_path, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/zep/add.py :21 with open(self.data_path, 'r') as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/zep/search.py :120 with open(file_path, 'r') as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/env.py :179 with open("config.yaml") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/rag/convert.py :13 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/rag/rag_manager.py :131 with open(self.data_path, "r", encoding="utf-8") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/rag/run.py :4 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/telemem/EvalModel.py :1 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/telemem/eval_score.py :10 with open(file_path, "r", encoding="utf-8") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/baselines/telemem/telemem_legacy.py :44 from pathlib import Path
  • fs (weak) TeleAI-UAGI-telemem-4f11e89/examples/quickstart_mm.py :2 from pathlib import Path
  • fs (weak) TeleAI-UAGI-telemem-4f11e89/scripts/gen_star_history.py :209 with open(out_path, "w", encoding="utf-8", newline="\n") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/telemem/mem0.py :22 from pathlib import Path
  • fs TeleAI-UAGI-telemem-4f11e89/telemem/mm_utils/build_database.py :266 # with open(video_caption_json_path, "r") as f:
  • fs TeleAI-UAGI-telemem-4f11e89/telemem/mm_utils/frame_caption.py :87 # api_config = json.load(open("api_config.json"))
  • fs TeleAI-UAGI-telemem-4f11e89/telemem/mm_utils/memory_utils.py :13 from pathlib import Path

5 more not shown — this panel samples each group; the count above is the real total.

network 10

  • net TeleAI-UAGI-telemem-4f11e89/baselines/A-mem/memory_layer.py :15 import requests
  • net TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/client/memobase/core/async_entry.py :3 import httpx
  • net TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/client/memobase/core/entry.py :4 import httpx
  • net TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/client/memobase/network.py :1 from httpx import Response
  • net TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/auth/admin_api.py :1 from httpx import AsyncClient
  • net TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/llms/embeddings/utils.py :2 from httpx import AsyncClient
  • net TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/telemetry/open_telemetry.py :4 import socket
  • net (weak) TeleAI-UAGI-telemem-4f11e89/scripts/gen_star_history.py :21 import urllib.error
  • net TeleAI-UAGI-telemem-4f11e89/telemem/mm_utils/memory_utils.py :11 import requests
  • net TeleAI-UAGI-telemem-4f11e89/telemem/mm_utils/video_utils.py :3 from urllib.parse import urlparse

secrets 28

  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/A-mem/memory_layer.py :32 api_key = os.getenv('OPENAI_API_KEY')
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/A-mem/test_advanced.py :520 os.environ['OPENAI_API_KEY'] = args.llm_api_key
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/longmemeval/run_telemem.py :339 parser.add_argument("--answer-api-key", default=os.getenv("OPENAI_API_KEY", "EMPTY"))
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/mem0/add.py :103 api_key=os.getenv("MEM0_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/mem0/check_think.py :13 api_key=os.getenv("OPENAI_API_KEY", "dummy_key"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/mem0/local_adapter.py :212 self._embed_client = _OpenAI(base_url=self._embed_api_base, api_key=os.getenv("OPENAI_API_KEY", "EMPTY"))
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/mem0/memory_manager_local.py :75 os.environ.setdefault("OPENAI_API_KEY", os.getenv("OPENAI_API_KEY", "dummy_key_for_local_llm"))
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/mem0/run.py :80 os.environ.setdefault("OPENAI_API_KEY", os.getenv("OPENAI_API_KEY", "dummy_key_for_local_llm"))
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/mem0/search.py :70 api_key=os.getenv("MEM0_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/metrics/llm_judge.py :9 # api_key=os.getenv("OPENAI_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memobase_client/memobase_add.py :24 api_key=os.getenv("MEMOBASE_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memobase_client/memobase_search.py :35 api_key=os.getenv("MEMOBASE_API_KEY"),
show 16 more
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memzero/add.py :46 api_key=os.getenv("MEM0_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/memzero/search.py :20 api_key=os.getenv("MEM0_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/zep/add.py :14 self.zep_client = Zep(api_key=os.getenv("ZEP_API_KEY"))
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/locomo-benchmark/src/zep/search.py :36 self.zep_client = Zep(api_key=os.getenv("ZEP_API_KEY"))
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/client/memobase/core/async_entry.py :35 self.api_key = self.api_key or os.getenv("MEMOBASE_API_KEY")
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/client/memobase/core/entry.py :36 self.api_key = self.api_key or os.getenv("MEMOBASE_API_KEY")
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/mcp/src/utils.py :8 api_key=os.getenv("MEMOBASE_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/api_layer/middleware.py :179 access_token = os.getenv("ACCESS_TOKEN")
  • secrets TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/connectors.py :16 ADMIN_TOKEN = os.getenv("ADMIN_TOKEN")
  • secrets (weak) TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/tests/test_api.py :14 TOKEN = os.getenv("ACCESS_TOKEN")
  • secrets (weak) TeleAI-UAGI-telemem-4f11e89/scripts/gen_star_history.py :196 token = os.environ.get("GITHUB_TOKEN", "")
  • secrets TeleAI-UAGI-telemem-4f11e89/telemem/configs.py :23 "vlm_api_key": os.getenv("OPENAI_API_KEY"),
  • secrets TeleAI-UAGI-telemem-4f11e89/telemem/mm_utils/memory_utils.py :322 api_key = os.environ.get("OPENAI_API_KEY")
  • secrets (weak) TeleAI-UAGI-telemem-4f11e89/tests/test_minimax.py :307 @unittest.skipUnless(os.environ.get("MINIMAX_API_KEY"), "MINIMAX_API_KEY not set")
  • secrets (weak) TeleAI-UAGI-telemem-4f11e89/tests/test_providers.py :175 @unittest.skipUnless(os.getenv("DEEPSEEK_API_KEY"), "DEEPSEEK_API_KEY not set")
  • secrets (weak) TeleAI-UAGI-telemem-4f11e89/tests/test_telemem.py :159 api_key = os.environ.get("OPENAI_API_KEY")

database 11

  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/build_init_sql.py :4 from sqlalchemy.schema import Table, CreateSchema, CreateIndex
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/connectors.py :3 import redis.exceptions as redis_exceptions
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/controllers/buffer.py :1 from sqlalchemy import func
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/controllers/buffer_background.py :4 from sqlalchemy import func
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/controllers/event.py :10 from sqlalchemy import desc, select
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/controllers/event_gist.py :10 from sqlalchemy import desc, select
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/controllers/modal/summary/__init__.py :3 from sqlalchemy.sql.functions import user
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/controllers/project.py :1 from sqlalchemy import cast, String, func, desc
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/memobase_server/models/database.py :5 from sqlalchemy import (
  • db TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/migrations/env.py :3 from sqlalchemy import engine_from_config
  • db (weak) TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/server/api/tests/test_db.py :2 from sqlalchemy.inspection import inspect

tool registrations 4

  • save_memory TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/mcp/src/main.py :60
  • get_user_profiles TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/mcp/src/main.py :84
  • search_memories TeleAI-UAGI-telemem-4f11e89/baselines/memobase/src/mcp/src/main.py :107
  • get_memory TeleAI-UAGI-telemem-4f11e89/telemem/mcp/server.py :291

declared dependencies 12

  • mcp@>=2.0.0,<3
  • opencv-python-headless@*
  • nano-vectordb@*
  • yt_dlp@*
  • azure-identity@*
  • requests@*
  • telemem@*
  • github.com/google/uuid@v1.6.0
  • github.com/stretchr/testify@v1.10.0
  • github.com/davecgh/go-spew@v1.1.1
  • github.com/pmezard/go-difflib@v1.0.0
  • gopkg.in/yaml.v3@v3.0.1