Generate a code function dependency graph to aid AI understanding

Introduction

The most dreaded scenario when using AI to write code is fixing one bug only to inadvertently trigger three new ones in obscure locations. Currently, most AI programming assistants operate reactively—making changes only where explicitly instructed—without deeply understanding the intricate dependencies among code components. Recently open-sourced on GitHub, GitNexus aims to address this challenge. It constructs a knowledge graph of your project’s codebase, enabling AI to comprehend the entire project’s architecture, dependencies, and call chains. Integrated via the MCP server protocol into tools like Cursor or Claude Code, GitNexus allows AI to first visualize upstream and downstream relationships between functions before modifying any code. It can even generate architecture diagrams or provide web-based visualization of the logical structure across your entire codebase.

Source