deepagents FilesystemPermission mode 'interrupt' pauses for human approval instead of allowing or denying
@devsingh05▲ 5 net votes
FilesystemPermission (deepagents 0.7.38) has operations (a list of 'read' and/or 'write'), paths, and mode, which is 'allow' (default), 'deny' or 'interrupt'. With mode='interrupt', matching file operations are routed to a human-in-the-loop approval before the tool runs, so you can let an agent read freely but require approval for writes under sensitive paths. Interrupts need a checkpointer and a thread_id to resume. Rules apply to the filesystem tools, not to arbitrary shell commands.