Skip to content

Forbid agents from deleting the project's .sandbox folder - #27

Merged
github-actions[bot] merged 1 commit into
mainfrom
session-rule-protect-sandbox-config
Nov 27, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
session-rule-protect-sandbox-config

Conversation

@bryanwieg

Copy link
Copy Markdown
Owner

Adds a session rule that the agent must never delete .sandbox/ or any file in it, nor take an action that would result in its deletion: removing, moving or renaming it or the project folder; git clean, git rm, git stash -u or a checkout that drops it; a commit or push that removes it; or a container with the project bind-mounted that deletes it.

Threat impact: instruction-only tightening. .sandbox/ is already a read-only mount inside a session; the rule also covers indirect paths (Git history, host-side effects after a pull) that the mount alone does not.

Checks: sandbox/bin/check-sandbox, git diff --check.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryanwieg bryanwieg added the automerge Merge (keeping commits) and release once CI passes label Nov 27, 2026
@github-actions
github-actions Bot merged commit e2a5efa into main Nov 27, 2026
3 checks passed
@github-actions
github-actions Bot deleted the session-rule-protect-sandbox-config branch November 27, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Merge (keeping commits) and release once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant