Description
Freeze is an agent skill that limits Claude's Edit and Write tools to a single directory for the whole session. Any attempt to change a file outside the allowed path is blocked at the tool level, so out-of-scope writes never happen, rather than being caught later in a diff. The page describes it as useful when debugging or making targeted changes where edits to unrelated code would cause trouble. Example uses are scoping a refactor to one module without touching shared utilities, debugging a single package while leaving the rest of the codebase alone, reviewing a pull request's directory without editing unrelated files, onboarding to an unfamiliar codebase by limiting writes to a sandbox folder, and isolating config changes to one service during an incident. It is one of the safety skills in Garry Tan's gstack project. Install it with npx skills add https://github.com/garrytan/gstack --skill freeze. The source is in the gstack repository on GitHub. It fits developers who want an agent to stay inside a known area while they work on a narrow problem.…
Highlights
- Restricts Edit and Write to one directory
- Blocks writes outside the allowed path
- Enforced at the tool level, not by review
- Lasts for the whole session
- Useful for debugging and targeted changes
Ratings & Reviews
No ratings yet
Be the first to rate garrytan/freeze.
People also visit

git-guardrails-claude-code
设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D
garrytan/freeze FAQ
What does the freeze skill do?
It restricts Claude's Edit and Write operations to one directory for the length of a session, and blocks any change outside it.
How do I install it?
Run npx skills add https://github.com/garrytan/gstack --skill freeze from a terminal where the skills CLI is available.
Does it stop changes to other files?
Yes. The page says any attempt to modify files outside the allowed path is blocked outright.
When is it useful?
When debugging a specific package, scoping a refactor, or reviewing a directory without risking edits to unrelated code.
Is it open source?
The skill is published in the public gstack repository on GitHub.
What are the best garrytan/freeze alternatives?
Popular alternatives to garrytan/freeze include garrytan/guard, gateguard and safety-hooks. See all garrytan/freeze alternatives

















