KG Extract Extract entities (classes, functions, modules, types, concepts) and their relations (imports, extends, implements, depends-on, calls) from source files, then store them as a knowledge graph in AgentDB. When to use When you need to build or update a knowledge graph from source code or documentation. Useful for understanding codebase structure, dependency analysis, and impact assessment. Steps 1. Scan files -- use and to enumerate and read source files at the given path 2. Identify entities -- extract classes, functions, modules, types, and config references from each file 3. Map rel…