Which Files Is Your AI Reading? How to See What ChatGPT, Claude Code and Cursor Open on Your Computer

Which files is your AI reading? An AI privacy guide featuring BlueOctopus
BlueOctopus, an 8 Time Coding company, shows which files AI agents open on your computer.

Short answer: AI agents such as Claude Code, Cursor, Codex CLI and other assistants that can run commands are able to open any file your user account can read — and by default, nothing on your computer tells you which ones they opened. To see and control this, keep agents inside project folders, use each tool’s own permission settings, and run an on-device AI privacy firewall such as BlueOctopus.

Why you can’t see what your AI reads

AI agents read files to do their work — to understand a codebase, summarise a document or answer a question. The problem is visibility. Antivirus software treats an AI agent as a normal app, and a network firewall only sees internet traffic. Neither tells you that an AI just read your passport scan.

It gets harder when an agent runs a shell command. When Claude Code runs cat, grep or a Python script, the operating system logs the file open under that tool’s name, not the agent’s. Tracing the file back to the AI that started the command needs a tool built for it. You can read more in our overview of 8 Time Coding and its companies, including BlueOctopus.

Which personal files are most at risk?

The files that matter most are the ones that identify you or contain money, grades or secrets:

7 steps to protect your files from AI agents

  1. Start agents inside a project folder. Open your AI coding assistant in the folder you are working on, not in your home folder, so the files it needs are the files it sees.
  2. Keep personal documents out of working folders. Store ID scans, statements and marksheets in a separate folder that you never open an agent in.
  3. Use each tool’s own controls. Most AI coding tools let you exclude files or deny reads — for example permission rules in Claude Code, ignore files in Cursor and content exclusion in GitHub Copilot for organisations.
  4. Read permission prompts before approving. If an agent asks to run a command or read a file outside your project, stop and check why.
  5. Move and rotate secrets. Keep API keys out of shared folders, and rotate any key that an AI may have read.
  6. Plant trap files. Decoy files such as passwords.txt or bank_login.txt have no legitimate use, so any AI that opens one is clearly snooping.
  7. Watch file access with an AI privacy firewall. A tool like BlueOctopus shows, in real time, which AI opened which file and alerts you when it is personal.

How BlueOctopus shows every file your AI opens

BlueOctopus logo
BlueOctopus — an 8 Time Coding company

BlueOctopus is a privacy firewall for every AI agent on your Mac or PC. It works in three layers, all on your own computer, with no account, no cloud and no uploads.

BlueOctopus 0.1.2 is free during preview for macOS 13 or later on Apple Silicon and for Windows 10 (22H2) and Windows 11. See the BlueOctopus page for a summary, or visit the official BlueOctopus website to download it. Read what’s new in BlueOctopus 0.1.2.

Who should care most?

You are…Files to protectHelpful next step
A developer using AI coding tools.env files, API keys, client dataSet folder rules in BlueOctopus
A student or researcherDatasets, drafts, marksheetsDraft papers safely with Soba Researcher
A teacher or school administratorStudent records and marksLearn responsible AI at Kamber School of Machine Learning
A business leaderContracts, HR and finance filesLead AI transformation with Kamber Business School
A job seekerCVs and ID documentsApply in one tap with Look Who’s Hiring

Building practical skills in AI safety is also the kind of topic covered in hands-on sessions at 2AMWorkshop.

For the bigger picture on AI agents, skills and trust, read our AI Outlook 2026: five themes shaping work, learning and trust.

Frequently asked questions

Can AI agents read files on my computer?

Yes. AI coding assistants and desktop agents that can run commands, such as Claude Code, Cursor, Codex CLI or Gemini CLI, can open any file your user account can read, unless you restrict them. Chat apps usually only see files you upload or connect.

How can I see which files an AI agent opened?

Operating systems do not show this by default. A tool that watches file access per process, such as BlueOctopus, shows a live feed of which AI agent opened which file, including files opened through commands like cat, grep or a Python script that the agent started.

What is BlueOctopus?

BlueOctopus is a privacy firewall for AI agents on Mac and Windows, made by an 8 Time Coding company. It shows every file AI tools open, flags personal documents such as bank statements and ID scans, and lets you set folders as Private, Ask me or Allowed. Everything runs on your own computer.

Does BlueOctopus upload my files?

No. BlueOctopus runs on your device. Its model, labels, activity log and folder rules stay on your computer, and it stores counts of personal fields, never the values themselves.

Which AI tools does BlueOctopus recognise?

BlueOctopus recognises Claude Code, Claude Desktop, ChatGPT, Codex CLI, Cursor, Windsurf, GitHub Copilot, Gemini CLI, Ollama, LM Studio, Aider, Goose, opencode and Perplexity, plus the commands and MCP servers they start.

Is BlueOctopus free?

Yes. Version 0.1.2 is free during the preview, for macOS 13 or later on Apple Silicon and for Windows 10 (22H2) or Windows 11.