Architecture of tencentcloud/tencentdb-agent-memory
tencentcloud/tencentdb-agent-memory is 1,203 source files holding 12,056 symbols across 8 modules, written mainly in TypeScript, Shell, Python. The largest module is MemoryCore, with 379 files, and 15 files are entry points into the dependency graph.
How tencentdb-agent-memory fits together
Agent conversations, tool calls, documents and code enter the system through the MemoryProxy and MemoryCore parts. MemoryProxy handles session initialization, session recovery and per-request metadata, so requests reach the right agent and task context. MemoryCore/index.ts is the entry point for the MemoryCore pipeline, which builds and persists memory artifacts, and MemoryKnowledge exposes HTTP routes and wiki and code-graph services that index those artifacts. The MemoryPanel web UI shows the resulting chat memory, skills, and wiki and code-graph pages to people who manage teams and assets. The deploy/global-images directory contains the start-all.sh script that launches the memory, hub and proxy services together.
Largest modules
- MemoryCore: 379 files and 85,050 lines of code
- MemoryProxy: 293 files and 46,228 lines of code
- MemoryPanel: 254 files and 39,511 lines of code
- MemoryKnowledge: 110 files and 12,631 lines of code
- sdk: 33 files and 7,076 lines of code
- deploy: 13 files and 1,735 lines of code
- agents: 3 files and 4,279 lines of code
- adapters: 1 file and 33 lines of code
Languages
By file count: TypeScript 1,003 files, Shell 36 files, Python 23 files, JavaScript 19 files, Dockerfile 4 files.
Documentation
Repowise documents tencentdb-agent-memory in 1,429 pages generated from the source, 59 of them written explanations of the repository and its modules. Module guides include:
- MemoryProxy/src/agent-adapters: Agent Adapters
- MemoryProxy/src/injection/injectors: Agents
- agents: Agents 2
- MemoryCore/src/gateway/analytics: Analytics
- MemoryPanel/web/src/pages/AnalyticsPage/hooks: Analytics Hooks and Formatters
More on tencentdb-agent-memory: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos