Skip to content

agileandy/code-analysis

Repository files navigation

Code Cartographer Redux

Optimized knowledge graph generation tools powered by Gemini 3.0 Pro.

Contents

  • 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.

Usage

  1. Install Repomix: npm install -g repomix
  2. Run the script: ./generate_graph.sh
  3. (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.
  4. Paste the prompt into your LLM of choice

Does it scale?

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

2025-11-20_17-47-53 2025-11-20_17-43-24

About

The AI Code Cartographer: A Prompt for Self-Generating Knowledge Graphs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages