A persistent instruction file is a stored configuration file containing guidance that an AI agent may load across multiple tasks or sessions. Unlike a one-time prompt, it can influence later responses whenever the agent reads and trusts the file. Examples include repository-level instructions that guide a coding agent’s work.
These files matter because changing them can alter an agent’s behavior without repeating the change in each prompt. An untrusted or modified file could insert misleading directions or promotional content into the agent’s context. Defenders should treat instruction files as part of the software supply chain: review proposed changes, restrict who can modify them, track them in version control, and compare them with approved versions. Persistent guidance is not executable malware by itself, but it can affect how an agent uses its tools and handles its work.


