RepoMapper icon

RepoMapper

14

Generates a structured map of a codebase within a Git repository to aid understanding and navigation, particularly for large language models.

About

RepoMapper is a versatile tool engineered to enhance the comprehension and navigation of intricate codebases, especially for large language models. Operating as both a standalone command-line utility and an MCP (Model Context Protocol) server, it provides dynamic repository mapping capabilities. It meticulously constructs a "map" of software projects, identifying key files, code definitions, and their interdependencies. By integrating Tree-sitter for precise code parsing and the PageRank algorithm for importance ranking, RepoMapper ensures that the most pertinent information is always highlighted and optimized for LLM context windows.

Key Features

  • Smart Code Analysis with Tree-sitter for definitions and references
  • Relevance Ranking of code elements using the PageRank algorithm
  • Token-aware output optimized for LLM context windows
  • Persistent caching for fast subsequent analysis runs
  • Multi-language support for over 20 programming languages
  • 11 GitHub stars

Use Cases

  • Serving repository maps to other applications through the Model Context Protocol (MCP)
  • Performing on-demand analysis of Git repositories via command line
  • Providing structured codebase context for Large Language Models (LLMs)
RepoMapper: Codebase Mapping Tool for LLMs & Developers