Generate the tiny repo context file your AI coding agent wishes it had.
Built by Mustafa
Instagram: @mustafaiscoding · X/Twitter: @mustafa30
Your AI coding agent is usually not dumb. It just has bad context.
vibe-code-map scans your repo and generates a small AGENT_CONTEXT.md with the files, commands, risks and rules your agent needs before touching code.
No database. No server. No embeddings. Just a clean context map you can commit, paste or regenerate before a coding session.
Run directly from GitHub:
npx github:mustafa3252/vibe-code-mapAfter npm publishing, this also works:
npx vibe-code-mapScan another folder:
npx github:mustafa3252/vibe-code-map --dir ./my-app --out ./my-appAGENT_CONTEXT.md
CLAUDE.md
.cursor/rules/repo-map.mdcAGENT_CONTEXT.md includes:
- detected stack
- useful commands
- important entry points
- tests and checks
- docs and config files
- risky files to avoid without approval
- a ready-to-paste agent prompt
- a repo tree sample
# AGENT_CONTEXT.md
## What this repo appears to use
- Next.js
- React
- Tailwind
## Commands found
- `npm run dev`
- `npm run test`
- `npm run lint`
## Be careful with these files
- .env.example
- prisma/schema.prisma
- app/api/auth/route.ts
## Suggested agent prompt
Read AGENT_CONTEXT.md first. Work in a small vertical slice. Before editing, say which files you plan to touch and why. After editing, run the smallest relevant check and report the exact output.vibe-code-map --help| Option | What it does |
|---|---|
--dir <path> |
repo to scan, defaults to current directory |
--out <path> |
where to write files, defaults to current directory |
--no-cursor |
skip .cursor/rules/repo-map.mdc |
--no-claude |
skip CLAUDE.md |
--max-files <n> |
max files to scan, default 500 |
--max-depth <n> |
max folder depth, default 7 |
Vibe coding gets messy when the agent has to guess the project shape.
This gives the agent a map first:
- what the app is,
- where the important files are,
- how to check its work,
- which files are risky,
- what “small and verified” means here.
That one file can save a surprising amount of chaos.
- Claude Code
- Cursor
- Codex
- Gemini CLI
- OpenCode
- any agent that can read Markdown
git clone https://github.com/mustafa3252/vibe-code-map.git
cd vibe-code-map
npm test
node bin/vibe-code-map.js --dir test/fixtures/nextish --out /tmp/vibe-code-map-demoBuilt with taste by Mustafa.
- Instagram: @mustafaiscoding
- X/Twitter: @mustafa30
If this helps your agent stop guessing, star it and tag me with what you build.
MIT. Use it, remix it and ship something useful.