Git4 min read
Worktree-Relative Deny Rules in OpenCode: Stop Child Agents From Escaping Project Boundaries
How to configure OpenCode permission rules to keep child agents within their assigned git worktree — external_directory guard, bash restrictions, and per-agent overrides.
By Sahil KathpalGrass Blog

Read the full story
Originally published by Grass Blog on May 14, 2026.
Comments
Sign in to join the discussion.