Know a great AI tool or AI news source? Submit it to AiByts
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
Worktree-Relative Deny Rules in OpenCode: Stop Child Agents From Escaping Project Boundaries

Read the full story

Originally published by Grass Blog on May 14, 2026.

Read on Grass Blog(opens in a new tab)

Comments

Sign in to join the discussion.

No comments yet — be the first to share your thoughts.