gstack 1.91.47.0: /careful and /guard now check PowerShell, and /freeze covers notebooks

1 month ago

gstack 1.91.47.0 (2026-10-08) for Claude Code users: /careful and /guard now catch destructive PowerShell and cmd commands on Windows, encoded or dynamic PowerShell asks first, and /freeze now blocks notebook edits outside the folder you froze.

Ask about this presentation

Chapters

  1. 0:00PowerShell on Windows
  2. 0:13Shells launched from Bash
  3. 0:27Notebook edits
  4. 0:40Limits
Show transcript
  1. On Windows, Claude Code runs commands through its PowerShell tool. /careful and /guard never saw those, so a forced recursive delete ran with no prompt. Now it asks first, naming the pattern it matched.

    Slide text
    gstack logo

    gstack 1.91.47.0: /careful and /guard now check PowerShell commands

    PS> Remove-Item -Recurse -Force C:\proj before: no prompt
    PS> Remove-Item -Recurse -Force C:\proj now: asks first
    Windows From Bash Notebooks Limits
    garrytan/gstack · CHANGELOG.md 1.91.47.0
  2. The check also covers a Bash command that launches PowerShell or the Windows command prompt. Encoded or dynamic PowerShell asks too, because gstack can't inspect it. Deleting one file still runs without a prompt.

    Slide text

    A delete inside pwsh or cmd, launched from Bash, now asks too

    pwsh -c "Remove-Item -r -fo x" asks
    cmd /c "rd /s /q x" asks
    -EncodedCommand · iex · & $cmd asks: can’t inspect
    git branch -d · Remove-Item x.txt still allowed
    Windows From Bash Notebooks Limits
    garrytan/gstack · CHANGELOG.md 1.91.47.0
  3. On every platform, notebook edits slipped past /freeze, /guard and /investigate. A notebook edit outside the frozen folder is now denied. The message names the tool, the path and how to unfreeze.

    Slide text

    /freeze now blocks notebook edits outside the folder you froze

    NotebookEdit /etc/x.ipynb before: allowed
    NotebookEdit /etc/x.ipynb now: denied
    The denial names the tool, the notebook path, the boundary and /unfreeze
    Windows From Bash Notebooks Limits
    garrytan/gstack · CHANGELOG.md 1.91.47.0
  4. The PowerShell check is best-effort: a command built at runtime can slip past it. For a hard stop, add Claude Code permission deny rules. On Windows, the hooks still need Git Bash, which gstack already requires.

    Slide text

    PowerShell checks are best-effort, so add deny rules for a hard stop

    runtime commandsPowerShell can build a command that string matching can’t see
    hard stopClaude Code permission deny rules parse PowerShell and match aliases
    WindowsThe hooks run through bash, so they still need Git Bash
    CHANGELOG.md · 1.91.47.0 What this means for you
    Windows From Bash Notebooks Limits
    garrytan/gstack · CHANGELOG.md 1.91.47.0

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York