npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cc-cmds

v1.0.0

Published

What shell commands does Claude Code run most? Bash tool analysis — 54,636 calls, cat is #1 at 5,198 times.

Downloads

92

Readme

cc-cmds

What shell commands does Claude Code run most? 54,636 Bash calls. cat is #1 at 5,198 times. grep runs 4,516 times despite a dedicated Grep tool existing.

Bash tool analysis — command categories, top prefixes, timeout usage.

npx cc-cmds

No install. No dependencies.


What it shows

  • Total Bash calls — across all sessions
  • Command categories — shell utils, Python, PowerShell, Git, npm/node, and more
  • Top 10 commands — the exact commands used most often
  • Timeout usage — % of calls that set a custom timeout
  • Sessions using Bash — how many sessions touched the terminal

Output

  cc-cmds — Bash Command Analysis
  ════════════════════════════════════════

  ▸ Overview
    Total Bash calls:   54,636
    Sessions using Bash:1,484
    With timeout set:   10,594 (19.4%)

  ▸ Command categories
    Shell utils    ████████████████  42.4%  (23,186)
    Other          ███████████░░░░░  27.9%  (15,258)
    Python         ███░░░░░░░░░░░░░   7.1%  (3,896)
    cd             ██░░░░░░░░░░░░░░   5.4%  (2,928)
    PowerShell     ██░░░░░░░░░░░░░░   5.1%  (2,812)
    Git            ██░░░░░░░░░░░░░░   4.1%  (2,249)

  ▸ Most used commands
    cat               ████████████████  9.5%  (5,198)
    ls                ███████████████░  8.7%  (4,758)
    grep              ██████████████░░  8.3%  (4,516)
    sleep             ████████████░░░░  7.0%  (3,822)
    python3           ████████████░░░░  6.9%  (3,752)
    cdp-eval          █████████░░░░░░░  5.4%  (2,947)
    cd                █████████░░░░░░░  5.4%  (2,928)
    powershell.exe    █████████░░░░░░░  5.1%  (2,812)
    git               ███████░░░░░░░░░  4.1%  (2,249)
    find              █████░░░░░░░░░░░  2.7%  (1,496)

Options

npx cc-cmds          # terminal output
npx cc-cmds --json   # JSON output for scripting

JSON output

{
  "version": "1.0.0",
  "totalBashCalls": 54636,
  "sessionsWithBash": 1484,
  "withTimeout": 10594,
  "timeoutPct": 19.4,
  "categories": [
    { "name": "shell_utils", "count": 23186, "pct": 42.4 },
    { "name": "other", "count": 15258, "pct": 27.9 }
  ],
  "topPrefixes": [
    { "prefix": "cat", "count": 5198 },
    { "prefix": "ls", "count": 4758 }
  ]
}

Browser version

Try it without installing: yurukusa.github.io/cc-cmds

Drag-drop your ~/.claude/projects/ folder (or any subfolder) to analyze.

How it works

Reads ~/.claude/projects/**/*.jsonl session transcripts and extracts every Bash tool call. Classifies commands by first token into categories (shell utils, Python, PowerShell, Git, npm/node, file ops, Bash scripts, Godot, gh CLI, curl/wget) and tracks top prefixes. Zero external dependencies.


Part of cc-toolkit — 74 tools for understanding your Claude Code sessions.