DEV Community

NtoX
NtoX

Posted on

How I Built a Local Tool That Maps Any Codebase in 55 Seconds No Cloud, No Uploads

I spend a lot of time working with AI coding agents Claude Code, Cline, Cursor, OpenCode. And every time I start a new task in a large repo, I hit the same wall: the agent has no idea what the codebase looks like.

So I built Sentinel.

What it does

Point it at any repo. It scans everything locally (no uploads, no API keys, no internet needed) and produces:

  • πŸ—οΈ Architecture map β€” components, dependencies, patterns
  • πŸ’Š Health score β€” maintainability, complexity, test coverage
  • πŸ”₯ Risk hotspots β€” oversized files, TODO density, doc drift
  • 🎯 Entry points β€” what the AI should focus on first
  • πŸ€– Agent prompt β€” ready-to-paste into Claude Code / Cline / Cursor
  • πŸ“„ HTML report β€” self-contained, zero external assets

Why local-only matters

Every scan runs entirely on your machine. No code leaves your disk. No API calls. Pure Python stdlib β€” zero external dependencies.

The AI agent prompt it generates a total of (~2,500 tokens) replaces hours of manually reading files and explaining the codebase to your agent.

Get it


bash
pip install git+https://github.com/Ntooxx/Sentinel.git
project-sentinel scan . --fast
πŸ”— GitHub: https://github.com/Ntooxx/Sentinel
🌐 Dashboard demo: sentinel-nt.netlify.app
πŸ“¦ 197 tests, 0 failures
Let me know what breaks or what's missing. I'm actively improving it.
Enter fullscreen mode Exit fullscreen mode

Top comments (0)