mufasadb/code-grapher — reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool called Code Grapher that can scan a codebase, turn it into a knowledge graph, and let me ask plain English questions about how the code works. I want it to use fast AST based analysis first so it can reliably find things like inheritance, decorators, and function calls, then store that structure in Neo4j and support semantic search for higher level questions. It should be able to answer things like where authentication happens, what validates config, and what files or functions are related.
Please include a simple command line flow for health checks, full project analysis, and updating the graph from git diffs so it stays current without rebuilding everything. I also want an MCP server so Claude Desktop can query the graph and fetch just the right context. If possible, support optional local Ollama or Gemini for richer code descriptions, but make the core system still work without them. Look up current docs online if you need to.
Want more depth? Deep Reverse