{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "tencentcloud-tencentdb-agent-memory--load-an-existing-codebase-into-codegraph",
 "repo": "TencentCloud/TencentDB-Agent-Memory",
 "repo_url": "https://github.com/TencentCloud/TencentDB-Agent-Memory",
 "repo_slug": "tencentcloud-tencentdb-agent-memory",
 "title": "Index an existing repo so agents check impact before editing",
 "page_title": "How to index an existing repo so agents check impact before editing with Tencent DB Agent Memory",
 "summary": "Import a codebase into CodeGraph so agents can see callers, callees, and impact paths.",
 "who": "A developer joining or maintaining a large codebase who wants agents to understand what a change might break.",
 "problem": "Agents tend to edit code based on the local file they see and miss callers and dependent modules elsewhere.",
 "outcome": "The repo's symbols, files, call relationships, and impact paths are indexed, and agents can run impact analysis before modifying code.",
 "steps": [
  "Start the stack with `./start-all.sh` from deploy/global-images after filling in `.env`",
  "Open http://localhost:8125 and create a team in Memory Hub",
  "In the Knowledge Workshop, import the existing repository so CodeGraph indexes it",
  "Check the processing status and asset metadata until indexing completes",
  "Point your agent at the team's CodeGraph before it edits code and ask for callers and impact scope first"
 ],
 "agent_prompt": "Using TencentDB-Agent-Memory, import the repository at <repo path> into CodeGraph through the panel at http://localhost:8125. Before changing <symbol or file>, query CodeGraph for its callers, callees, and impact path, and report the list. Verify that the impact list matches a manual grep of the repo for <symbol>.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README describes CodeGraph import through the panel but does not document the exact import steps, so check the panel and INSTALL.md for the current flow.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Git and a bash-compatible shell",
  "Two sets of LLM API parameters for the memory group and the proxy group, filled into .env",
  "A local machine that can run the three services (memory-core, memory-hub, proxy)",
  "An agent client that accepts a custom base URL, such as Claude Code or Codex"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/tencentcloud-tencentdb-agent-memory/load-an-existing-codebase-into-codegraph/",
 "md": "https://dedupedai.com/use-cases/tencentcloud-tencentdb-agent-memory/load-an-existing-codebase-into-codegraph/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/tencentcloud-tencentdb-agent-memory--load-an-existing-codebase-into-codegraph.json",
 "api_version": "v1"
}
