Optimized knowledge graph generation tools powered by Gemini 3.0 Pro.
- repomix.config.json: Optimized configuration for Repomix to filter noise upstream.
- graph_generation_prompt.md: The 'Prompt as Code' driver for generating Dependency and Class diagrams.
- generate_graph.sh: Automation script to run the workflow.
- Install Repomix:
npm install -g repomix - Run the script:
./generate_graph.sh - (Optional) If the class diagram fails to render, try using the fallback prompt:
graph_generation_prompt_v2.md. Different models may handle complex Mermaid syntax differently. - Paste the prompt into your LLM of choice
To test out the scalability, I cloned the Opennote book repo at https://github.com/lfnovo/open-notebook
- 297 files
- 50+ classes
- 516,000 tokens
- ~35,000 lines of code
Running against Claude Sonnet 4.5 this gave