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
Maintainers
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-cmdsNo 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 scriptingJSON 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.
