Repo map#
Ask for a map of any repository and get one page that explains it fast, on the phone or a wide screen:
map this repo ~/code/shop
map this repo https://github.com/casey/just
The reply names the page's path; tap it to open the page. A map takes a few minutes for a mid-size repository. Asking again later only redoes what changed.
What the page shows#
- What it is: what the repository does and for whom, its stack, how to run it and how it ships, each with the file and line it comes from.
- Architecture: modules as boxes sized by their code lines, grouped into layers, with the real references between them as arrows: imports, and in Rust the types one file uses from another. Tap a box to see what the module does, its key files, what uses it and what it uses.
- Key flows: two to four journeys through the code, step by step, with the line where each step happens. Tap a location to read the lines.
- Where change happens: the files that are both large and often changed, the busiest modules, who works where and the recent commits.
- Where to start: the ten files to read first, in order, and a glossary of the repository's own words.
Each section says whether it is observed or inferred. Sizes, arrows and history are observed: Mewla measures them from the files and the git history. Names, layers, flows and explanations are inferred: an agent writes them after reading the code. Every place an agent cites is checked against the code before the page is written. A citation that does not hold shows as broken, and the page footer counts how many were checked.
How it works#
Mewla installs a Skill named repo-map for each agent on the computer
(Claude Code, Codex, Pi, OpenCode, Grok and Antigravity), so whichever agent
gets the request knows the steps. The steps:
mewla repo-map scanreads the repository. It lists the files and counts their code lines, cuts the folder tree into modules, and reads every import with the language's own rules. It covers Go, JavaScript and TypeScript (with workspace packages and tsconfig paths), Python, Rust, Kotlin, Java and C/C++. It also reads the git history. A URL is cloned first.- The agent reads the code the scan points to and writes
map.json. mewla repo-map renderchecks every citation and writes the page.
The scan only reads. It never writes into the repository it maps, and it runs
no build tool. A map's files live in its map folder, under
~/.mewla/repo-maps/:
| File | What it is |
|---|---|
index.html |
the page: one file, works offline, light and dark |
facts.json |
what the scan observed |
digest.md |
the facts as the agent reads them |
map.json |
what the agent wrote |
render.json |
the commit the page was rendered against |
source/ |
the clone, for a repository named by URL |
When you ask for a repository that is already mapped, the scan compares the
repository with the last map. It lists the files and modules that changed and
the parts of map.json that cite them, and the agent updates only those
parts. A repository that has not changed is not mapped again.
The Skill is an ordinary Skill: it is listed under Extensions with your agents' other Skills. If you delete a copy, Mewla does not put it back. If you edit a copy, Mewla leaves your edit as it is.