Deep Agents Library Lets Developers Set File Access Rules for AI Agents in Python
The Deep Agents Python library offers a FilesystemPermission system that controls which files an AI agent can read, write, or modify. Developers define rules using path patterns and operation types, with modes to allow, deny, or pause for human approval before sensitive actions proceed. Rules are evaluated top-to-bottom, with the first match taking effect, and unmatched calls are permitted by default, requiring an explicit catch-all deny rule for fully closed policies. The guide demonstrates three practical setups: a workspace agent blocked from a secret file, a memory agent requiring human sign-off before writing, and a parent-subagent pair where only one agent can edit files. The permission system applies exclusively to built-in filesystem tools and requires deepagents version 0.5.2 or higher to function.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in