Which Claude Code session is using my limit?

The usage screen shows a total. To find the session responsible, you have to look at the per-session numbers in the logs Claude Code keeps on your Mac.

What to look for

Three numbers per session tell you almost everything:

Doing it by hand

Claude Code writes one log file per session under ~/.claude/projects/. Each reply in the file records how many tokens went in and out. Adding those up per file gives you the per-session totals. Two traps:

More detail in where Claude Code keeps its logs.

Doing it without the work

Cost Doctor reads those same files and shows the list for you: today's sessions ranked by tokens, each named by its title, with its size per turn, where it started, and one line of advice. It includes the subagent logs and counts each reply once.

What to do once you have found it

See it on your own sessions

Cost Doctor is a Mac menu bar app that reads the logs Claude Code and Codex already write. It names the session that is using your tokens, says why, and turns your screen red when a check fails while an agent sits waiting. Nothing leaves your Mac.

Download the free trialHow it works

14 days free, no account. Then $19 once, plus tax where it applies. For Apple silicon and Intel Macs on macOS 13 or later.