The invention discloses a code
collaborative management system and method based on AST semantic capitalization and a
knowledge graph, and belongs to the technical field of
software engineering and
artificial intelligence. The
system comprises an AST semantic capitalization module, a multi-dimensional
knowledge graph engine module, a
knowledge graph visualization and interaction module, a graph
version management and timeline playback module, an automatic document synchronization module, a real-time multi-person cooperation module, an intelligent notification aggregation module and an intelligent batch import module. According to the method, incremental AST analysis is performed on source codes through a Tree-siter analysis engine, and code fingerprints are generated by adopting a
Merkle tree Hash
algorithm to realize capitalized management; mapping the code warehouse into a knowledge graph covering multi-dimensional relationships such as function call, class inheritance and module dependence, and realizing
hybrid reasoning query in combination with a GraphRAG technology; driving LLM to automatically synchronize the document through AST change
perception; based on
WebSocket, realizing multi-user real-time collaborative
annotation and collaborative cursor synchronization; and functions of graph snapshot comparison, timeline playback, intelligent batch import
verification, multi-level notification aggregation and the like are provided. The problems that in the prior art, code analysis
granularity is insufficient, the relation modeling dimension is single, document synchronization is disjointed, cooperation lacks real-time performance, and data import lacks
intelligent verification are solved.