Agent Ignore File

Agent Ignore File image
A configuration file added to a local project (for example, .aiignore or .copilotignore) that tells an AI coding agent which files it cannot see or access, used to prevent exposure of secrets or sensitive data such as .env files.

(NB. Caution is still paramount. This technique is not bulletproof as some AI coding tools can still see files explicitly stated in ignore files. For example, if the file is open in your IDE, or the file path is provided to the agent, or a tag such as @workspace is used.)
Explore MoT
Leading with AI - The London Edition image
Fri, 19 Jun
A half-day educational experience to navigate the world of AI
Advanced prompting for testers image
Advanced prompting skills to turn AI into your trusted testing companion.
Into The Motaverse image
Into the MoTaverse is a podcast by Ministry of Testing, hosted by Rosie Sherry, exploring the people, insights, and systems shaping quality in modern software teams.
Subscribe to our newsletter