Can the agent read hidden files like .env?
No. Hidden files like .env are left out. A secret in a normal file that the task allows can be read.
If a hidden file was already open when the agent started, the agent can still read it. The app doesn't open files for the agent.
Updated .