Ir al contenido principal

What is RepoMap?

RepoMap is an open-source CLI that scans your codebase, generates a smart CLAUDE.md, and keeps Claude Code context fresh automatically. One command. Zero maintenance.

The problem

Claude Code reads a CLAUDE.md file at the start of every session to understand your project. Without it, Claude wastes time re-discovering your stack, conventions, and architecture. With a stale one, it makes wrong assumptions.

Most developers either skip CLAUDE.md entirely (losing context quality) or write it once and forget about it (context rot). RepoMap solves both: it generates a comprehensive CLAUDE.md from your actual code, and keeps it updated as your code evolves.

How it works

1. Scan

npx repomap-cli init

RepoMap scans your repo with tree-sitter, detects your stack, maps all imports and exports, and generates a CLAUDE.md in under 10 seconds.

2. Keep fresh

npx repomap-cli watch

Watch mode detects file changes and regenerates context automatically. Your CLAUDE.md never goes stale. Claude Code always knows your latest code.

3. Query context

npx repomap-cli context "fix auth"

Ask RepoMap which files are relevant to a task. BM25 ranking + dependency graph gives you the top files instantly — or let Claude Code query via MCP.

Who is it for

Any developer using Claude Code (CLI, VS Code, or JetBrains) who wants Claude to understand their codebase without manually explaining the project every session.

What makes RepoMap different

Keeps CLAUDE.md updated, not just generated

Other tools generate context once. RepoMap watches your code and regenerates when things change. It detects semantic drift — when your CLAUDE.md no longer matches reality.

Task-specific context ranking

Instead of dumping the whole repo, RepoMap ranks files by relevance to your task using BM25 + dependency graph. Claude gets exactly the context it needs, not 100K tokens of noise.

Privacy-first, runs locally

The CLI analyzes everything on your machine. No code leaves your computer. The dashboard receives only metadata (file paths, stack, health score) — never source code.

< 10s
to generate CLAUDE.md
7+
languages supported
40+
frameworks detected
100%
local analysis

Try it now

No sign-up. No credit card. Just run:

npx repomap-cli init