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-last

v1.0.1

Published

Analyze which tools Claude Code uses last — closing patterns across your sessions

Readme

cc-last

Analyze which tools Claude Code uses last — and what closing patterns dominate your sessions.

The companion to cc-first.

npx cc-last

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

Output

cc-last — Session Closing Pattern
==================================
Sessions analyzed: 2,120

Last Tool Called
----------------
Read               ████████████████████  768   36.2%
Bash               ██████████████████░░  728   34.3%
Grep               ████░░░░░░░░░░░░░░░░  146    6.9%
WebSearch          ███░░░░░░░░░░░░░░░░░  103    4.9%
Write              ██░░░░░░░░░░░░░░░░░░   80    3.8%
...

Top Closing Triples (last 3 tools → final)
-------------------------------------------
Bash→Bash→Bash                           ████████████████  366   17.3%
Read→Read→Read                           █████████░░░░░░░  249   11.7%
Bash→Read→Read                           ██░░░░░░░░░░░░░░   77    3.6%
Bash→Bash→Read                           ██░░░░░░░░░░░░░░   73    3.4%
...

Compare with cc-first (opening):
  First tool:  Read 38%, Bash 28%, Glob 17%
  Last tool:   Read 36%, Bash 34%, Grep 7%

What it tells you

  • Read + Bash = 70% of session endings — verification and inspection dominate
  • Bash→Bash→Bash (18.6%) is the #1 closing triple — sessions end with a burst of shell commands (tests, builds, checks)
  • Glob drops from 17% (opener) to 0.8% (closer) — file discovery is an opening activity, not a closing one
  • Grep rises from ~1% (opener) to 7% (closer) — targeted code search happens at the end, not the beginning
  • Sessions that open and close with the same tool type suggest focused, single-purpose work

The cc-first comparison

| | First tool | Closing tool | |---|---|---| | Read | 38% | 36% | | Bash | 28% | 34% | | Glob | 17% | 0.8% | | Grep | ~1% | 7% |

Bash increases (+6%) from start to end — Claude Code shifts toward action and verification as sessions progress.

Options

npx cc-last --json    # Raw JSON output

Browser version

yurukusa.github.io/cc-last — 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) — 10 production hooks + 6 templates + 3 tools. Built from 140+ hours of autonomous operation.


Source: yurukusa/cc-last