
See which files your AI agent read

See which files your AI agent read
agentwhy is a free desktop tool that monitors file access by AI agents. It runs locally on the user's computer and records every file that an AI agent opens, providing a timeline of activity. The tool is designed for people who build projects with AI coding assistants such as Claude Code and Codex. When an AI agent accesses a file, agentwhy logs the event and flags any access to files that may contain sensitive information, such as API keys, customer lists, or confidential documents. The application is currently supported on macOS; support for Windows is in testing. Key features include a daily dashboard that shows how many files were opened and how many require review, a detailed log of each session with timestamps, and the ability to see which specific files were accessed. The tool also retains a history of AI chat conversations, allowing users to revisit any day and open any conversation to see exactly what happened. In some cases, agentwhy can stop an agent from proceeding if it detects that a private file has been opened, acting as a protective layer similar to a smoke alarm for AI actions. Typical use cases involve developers who rely on AI agents to assist with coding tasks. Without agentwhy, these agents can open files silently. With agentwhy, users gain visibility into the agent's file operations, which helps prevent accidental exposure of credentials, customer data, or other private information. The tool operates in the background after an initial setup and does not require user intervention for routine monitoring. It is offered free of charge and requires no cloud subscription, as all processing occurs on the local machine.