You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Safety Net plugin blocks preamble cleanup commands #474
Users running claude-code-safety-net alongside gstack hit false-positive blocks on two preamble commands:
find ~/.gstack/sessions -mmin +120 -type f with the delete flag — blocked by Safety Net's rule against find with delete
rm -rf operations outside cwd (e.g., /tmp/ cleanup) — blocked when cwd is ~
Impact
Every skill invocation that runs the standard preamble will fail on the first blocked command, requiring manual workarounds. The browse daemon itself works fine once the preamble is bypassed.
Suggested fix
Replace the blocked patterns with Safety Net-compatible alternatives:
# Instead of find with delete flag:
find ~/.gstack/sessions -mmin +120 -type f -exec rm {} +
# Or even simpler:
find ~/.gstack/sessions -mmin +120 -type f | xargs rm -f 2>/dev/null
These accomplish the same cleanup without triggering Safety Net's rules.
@16francej Please close this issue as resolved. The cleanup command was changed in #641 to a form accepted by the Safety Net plugin, so the preamble no longer gets blocked for this reason.
Session cleanup now uses the Safety Net-compatible form find "$_GH/sessions" -mmin +120 -type f -exec rm {} + (bin/gstack-skill-start:103 on current main); the -delete form is gone from every skill preamble. Fixed in v0.13.5.0 (#641).
If you still see this on the latest gstack, please reopen with details.
Activity
fix: replace find -delete with find -exec rm to avoid Safety Net fals…
test: add 16 failing tests for 6 community fixes
fix: replace find -delete with find -exec rm for Safety Net (#474)
fix: replace find -delete with find -exec rm to avoid Safety Net fals…
test: add 16 failing tests for 6 community fixes
fix: replace find -delete with find -exec rm for Safety Net (garrytan…
fix: replace find -delete with find -exec rm to avoid Safety Net fals…
feat: community wave — 7 fixes, relink, sidebar Write, discoverabilit…
feat: community wave — 7 fixes, relink, sidebar Write, discoverabilit…
time-attack commentedon Jul 15, 2026
@16francej Please close this issue as resolved. The cleanup command was changed in #641 to a form accepted by the Safety Net plugin, so the preamble no longer gets blocked for this reason.
capy-ai commentedon Oct 3, 2026
Session cleanup now uses the Safety Net-compatible form
find "$_GH/sessions" -mmin +120 -type f -exec rm {} +(bin/gstack-skill-start:103 on current main); the-deleteform is gone from every skill preamble. Fixed in v0.13.5.0 (#641).If you still see this on the latest gstack, please reopen with details.
feat: community wave — 7 fixes, relink, sidebar Write, discoverabilit…