Skip to content

yurukusa/cc-first

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cc-first

Analyze which tools Claude Code reaches for first — and what opening patterns dominate your sessions.

npx cc-first

Zero dependencies. Reads ~/.claude/projects/ directly.

Output

cc-first — Session Opening Pattern
===================================
Sessions analyzed: 2,119

First Tool Called
-----------------
Read               ████████████████████  810   38.2%
Bash               █████████████░░░░░░░  595   28.1%
Glob               ███████░░░░░░░░░░░░░  366   17.3%
WebSearch          ██░░░░░░░░░░░░░░░░░░  137    6.5%
WebFetch           █░░░░░░░░░░░░░░░░░░░   43    2.0%
...

Top Opening Triples (first 3 tools)
------------------------------------
Read→Read→Read                           ████████████████  278   13.1%
Bash→Bash→Bash                           █████████████░░░  257   12.1%
WebSearch→WebSearch→WebSearch            ████░░░░░░░░░░░░  130    6.1%
Glob→Glob→Glob                           ███░░░░░░░░░░░░░   93    4.4%
...

What it tells you

  • Read (38%) — Most sessions start by reading existing code or files
  • Bash (28%) — A quarter of sessions open directly with shell commands
  • Glob (17%) — File discovery is the third most common opener
  • "Read→Read→Read" (13%) — The #1 opening pattern: understand before acting

The data reveals a clear preference for context-gathering before action — Claude Code reads first, then acts.

Options

npx cc-first --json    # Raw JSON output

Browser version

yurukusa.github.io/cc-first — drag and drop your projects folder.

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


Want to optimize how Claude Code uses its tools?

Claude Code Ops Kit ($19) — 16 production hooks + 5 templates + 3 tools. Built from 160+ hours of autonomous operation.


Source: yurukusa/cc-first

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors