One command to see what Claude Code, Codex, Antigravity and Gemini CLI did on your Mac last week
If you run more than one AI coding agent, you've probably had this moment: the weekly limit is nearly gone, one tool says it was rate limited, and you can't say which agent used what, or whether anything ran while your MacBook was closed. I wanted numbers from my own machine instead of guesses, so

Posted on Dec 4 • Edited on Dec 4 • AI-assisted
If you run more than one AI coding agent, you've probably had this moment: the weekly limit is nearly gone, one tool says it was rate limited, and you can't say which agent used what, or whether anything ran while your MacBook was closed.
I wanted numbers from my own machine instead of guesses, so I wrote lid-check: one Python file, standard library only, macOS. It reads local files, prints counts, and never touches the network or writes anything.
I also make a paid Mac app (Lidnight) that is mentioned at the bottom. lid-check is MIT, doesn't need it, and never mentions it in its output.
curl -fsSLO https://raw.githubusercontent.com/whereisdw/lid-check/main/lid_check.py less lid_check.py # it's about 1,700 lines; `grep -n "import" lid_check.py` lists every module python3 lid_check.py --team-summary --days 7 Enter fullscreen mode Exit fullscreen mode Read it before you run it. The curl... | python3 - form exists, but it's only for people who already trust the source.
--team-summary prints a redacted aggregate: no prompts, no file paths, no project names. Here is a real run from my Mac today (one run, one machine):
lid-check --team-summary (last 7 days, redacted, read-only) sleep_periods: 0 (lid_closed: 0, darkwake: 0) tools: claude_code: requests=27,675, fresh_tokens=222,741,218, cache_read=6,171,622,108, in_sleep=0 codex: requests=979, fresh_tokens=106,208,318, limit_hits=1 antigravity: generations=4,890, fresh_tokens=121,291,963, quota_429_hits=42 gemini_cli: requests=0, fresh_tokens=0, cache_read=0 privacy: no_prompts, no_paths, no_network Enter fullscreen mode Exit fullscreen mode It took about 36 seconds against a 14 GB ~/.claude/projects folder. A smaller folder is much faster. That's a single run, not a benchmark.
I'd rather you know the limits up front:
The original purpose of the tool. Drop --team-summary and ask for sleep periods:
python3 lid_check.py --days 14 --lid-only Enter fullscreen mode Exit fullscreen mode It reads pmset -g log, finds each Sleep → full Wake period (marking those that began with a lid close), counts the DarkWake events inside, and counts Claude Code transcript entries whose timestamp falls inside the period, and how many fall inside a DarkWake window.
A few caveats from the README that matter:
Several public issues in anthropics/claude-code describe requests being sent around lid close / DarkWake ( #102269, #102597, #103064 ). Those are reporters' claims; I haven't reproduced them and I don't know whether they're bugs or fixed. lid-check exists so you can look at your own Mac instead of trusting anyone's anecdote, including mine.
Run it, and if a period looks wrong, a tool shows 0 when you know you used it, or your tool's format isn't read, open an issue with the relevant lines. Codex, Antigravity and Gemini CLI support came from reading their local files on my own machine only, so other setups are where the bugs will be.
I'm the developer of Lidnight, a menu bar app for Apple Silicon Macs that shows the same kind of information live (sessions, limits, approvals) and keeps the Mac awake with the lid closed while agents run. It has a free tier, and Pro is a one-time purchase ($9.99 for 1 Mac, $14.99 for 3 Macs). If lid-check shows nothing worrying on your Mac, you have no reason to look at it, and that's a fine outcome.