cd /news/ai-tools/i-made-a-cli-tool-that-replaces-the-… · home topics ai-tools article
[ARTICLE · art-19810] src=dev.to pub= topic=ai-tools verified=true sentiment=↑ positive

I made a CLI tool that replaces the first 15 minutes of exploring any new codebase

A developer built codeglance, a CLI tool that replaces the first 15-20 minutes of exploring a new codebase by generating a quick summary of the project, how to run it, which files to read first, and what tooling is set up. Running `npx codeglance` in any repo reads manifest files like package.json, go.mod, Cargo.toml, and pyproject.toml to identify the stack, and includes a `--for-ai` flag that produces a compact summary for pasting into AI tools like Claude or Cursor. Built in TypeScript with Commander and tsup, the tool supports Node.js, Python, Go, Rust, and C/C++ repos but does not parse source code or handle Java and Ruby yet.

read2 min publishedJun 3, 2026

You know that thing where you clone a repo and spend the first 15–20 minutes just trying to figure out what it even is?

You open package.json, look for scripts, check if there's a Dockerfile, search for the entry point, wonder if there are tests anywhere. And you do this every single time.

I got annoyed enough to build something about it. It's called codeglance.

What it does

Run one command in any repo:

npx codeglance

You get a quick summary: what the project is, how to run it, which files to read first, and what tooling is set up. No config, no API keys, no setup.

It reads your manifest files: package.json, go.mod, Cargo.toml, pyproject.toml : and figures out the stack from there. Not just "this is a TypeScript project" but "this is Next.js 14 with Prisma and tRPC."

The "where to start" section ranks files by depth, naming patterns, and known entry point conventions. Heuristic, not magic: but usually right enough to be useful.

There's also a --for-ai flag that generates a compact summary you can paste into Claude or Cursor before asking questions about a codebase. Saves you from dumping the whole repo in.

What it doesn't do

It doesn't parse source code or understand logic. If a project has no standard manifest, the output will be shallow. File ranking is pattern-based, not import-graph analysis — so it's approximate. Java and Ruby aren't supported yet (on the roadmap).

How it's built

TypeScript, Commander for CLI parsing, tsup for bundling. 70 tests. Supports Node.js, Python, Go, Rust, and C/C++ repos. I used Claude Code heavily during development and I'm not pretending otherwise: I care more about whether the output is useful than getting credit for typing every line.

Try it

npx codeglance
npx codeglance ~/projects/some-repo

Repo: https://github.com/mansoor-mamnoon/codeglance

If the "files to read first" section is useless on your repos, I genuinely want to know: that's the part I'm least confident about. ⭐ if it saves you time.

── more in #ai-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-made-a-cli-tool-th…] indexed:0 read:2min 2026-06-03 ·