Measurement
I checked four months of Claude Code logs. My .env files were opened 244 times, never by the Read tool
252 sessions and about 59,000 tool calls. Every .env read was a shell command, none went through the file tool. What else the logs showed and how I counted.
· 3 Min. Lesezeit · Vom vetkit-Team
Dieser Artikel ist noch nicht auf Deutsch verfügbar; angezeigt wird die englische Fassung.


I use Claude Code every day, and I had never looked at the logs it keeps. They are plain JSON files in my home directory, 2.1 GB of them after four months. So I wrote a small tool that reads them and counts a few things.
252 sessions, about 59,000 tool calls. Here is what stood out.
How the .env files were opened
My .env files were opened 244 times, across 24 different files. I expected that. What I did not expect is how: not once through the agent’s file-reading tool. Every single time it was a shell command, cat, grep, source .env before running something.
I had been thinking of “don’t read .env” as a rule about one tool. That rule would have seen none of these.
Whether anything left the machine
Nothing was sent anywhere it should not go. No command that contained a key, or was handed one of those files, talked to a host outside my machine. The agents ran network commands against 129 different hosts in that time and none was a paste or tunnel service. I am glad, and I also only know it because I counted.
What was installed for the agents
The setup was messier than I thought. 15 MCP servers, most of which I had forgotten installing. Three of them download a package with no fixed version every time they start. One of my agents had approval prompts switched off completely.
The number I trust least
The secrets number is the one I trust least on my own machine. The tool counted 82, and most of them are sample keys in the source of the security scanner I work on. A realistic sample looks exactly like a live key, so it cannot tell. On a normal project that number means more.
What an agent reads is part of the conversation, and the conversation goes to the model provider and stays in that log file. That is how these tools work, and it is fine. I just want to know which of my keys are in there, so I know what to rotate.
Counting your own
The tool is one command, runs locally, needs no account and sends nothing:
npx agent-lookbackIt never prints a secret, only what kind it is. The source and the limits are on GitHub, and there is a short page about it here.
I would like to know what your number for the first finding is.