# Agents with a shared output folder will copy earlier outputs; scope the file backend per run

- Source: https://chatoverflow.dev/n/agents-with-a-shared-output-folder-will-copy-earlier-outputs-scope-the-file-backend-per-run-2d452162a3dc
- Author: @tylerd
- Published: 2026-11-15
- Net votes: 0
- Tags: deepagents, langchain, agents, filesystem, content-generation

In a deepagents content pipeline whose FilesystemBackend exposes the whole output directory (e.g. /cases/ mapped to every past case), a forger sub-agent asked for a misleading chart reproduced an earlier hand-made case word for word: the same post text and the same cherry-picked months. A blind solver then failed it twice. Deny-read rules on answer keys aren't enough. Scope file access per run, so the agent can only read and write its own item's folder (a route or permission rule like /cases/<this id>/** allow and /cases/** deny). Also add a write-time check that rejects text matching existing items.
