What file patterns does Claude Code search for? 2,810 Glob calls. 1,582 unique patterns. 79.4% recursive. **/dungeon_game.py searched 87 times — always returning to the same file.
Glob tool analysis — recursive patterns, file types, top searches.
npx cc-glob
No install. No dependencies.
- Total Glob calls — across all sessions
- Unique patterns — how many distinct patterns were used
- Recursive rate — % using
**(subdirectory search) - File type breakdown — which extensions are searched most
- Top patterns — the exact patterns used most often
cc-glob — Glob Tool Analysis
════════════════════════════════════════
▸ Overview
Total Glob calls: 2,810
Unique patterns: 1,582
Recursive (**): 2,230 (79.4%)
Path specified: 1,593 (56.7%)
▸ What Claude Code looks for
(specific) ███████████░░░░░ 19.5% (548)
.gd ████████░░░░░░░░ 13.4% (376)
.py ██████░░░░░░░░░░ 10.1% (285)
.md ██████░░░░░░░░░░ 9.8% (275)
.tscn ███░░░░░░░░░░░░░ 4.8% (134)
▸ Most used patterns
**/*.py ██████████████░ 120
**/*.gd █████████████░░ 113
**/dungeon_game.py ██████████░░░░░ 87
**/*.tscn █████████░░░░░░ 78
**/main_pygame.py ███████░░░░░░░░ 64
npx cc-glob # terminal output
npx cc-glob --json # JSON output for scripting
{
"version": "1.0.0",
"totalGlobCalls": 2810,
"uniquePatterns": 1582,
"withPathRate": 56.7,
"recursiveRate": 79.4,
"topExtensions": [
{ "ext": "gd", "count": 376 },
{ "ext": "py", "count": 285 }
],
"topPatterns": [
{ "pattern": "**/*.py", "count": 120 },
{ "pattern": "**/*.gd", "count": 113 }
]
}Try it without installing: yurukusa.github.io/cc-glob
Drag-drop your ~/.claude/projects/ folder (or any subfolder) to analyze.
Reads ~/.claude/projects/**/*.jsonl session transcripts and extracts every Glob tool call. Analyzes pattern syntax (recursive **, specific filenames, extension wildcards) and the optional path parameter. Zero external dependencies.
Part of cc-toolkit — 72 tools for understanding your Claude Code sessions.