Repository navigation
v0.9.0
The repair release. Existing installs that predate the v0.8 hook era can now migrate with one command, no JSON editing required. The upgrade flow itself names the next step instead of leaving warnings on the next /nano-doctor run.
Migration UX
bin/init-project.sh gains four flags. Every migration path makes a timestamped backup of .claude/settings.json before changing anything, and re-runs /nano-doctor at the end so the result is visible without a second command.
| Flag | What it does |
|---|---|
--check |
Read-only diagnostic. Runs /nano-doctor and exits. |
--repair |
Adds missing PreToolUse hooks AND adds narrow rm rules. Additive: never removes anything. Safe to run on any project. |
--migrate-hooks |
Adds missing PreToolUse hooks only. |
--migrate-permissions |
Removes Bash(rm:*) and adds Bash(rm:.nanostack/**) + Bash(rm:/tmp/**). The only flag that removes. |
SECURITY.md "Existing installs" section now points users at these flags instead of hand-editing JSON.
upgrade.sh closes the loop
After a successful upgrade, bin/upgrade.sh inspects the current project. If .claude/settings.json exists but is missing the Bash and Write/Edit hooks, the upgrade prints the exact init-project.sh --repair command for the project. Silent in every other case (not in a project, hooks already wired, jq unavailable). No central project registry: only the cwd is inspected, with a one-step walk to the git root if needed. Privacy constraint preserved.
Already shipped during v0.8 audit rounds
These v0.9 spec items already landed in the v0.8 audit round 4:
- Symlink-resolving Write/Edit guard.
- Broader secret-disclosure rules covering
grep,rg,jq,awk,sed,strings,od,xxd,hexdump, plus bareenv/printenv(withenv VAR=value cmdstill allowed). - CI matrix expanded with new jobs for guard regression (35 cases), write-guard regression (19 cases), supply-chain checks, adapter-schema validation.
Compatibility
No breaking changes. Default init-project.sh behavior (no flag) is unchanged: create new settings with hooks; merge into existing without touching the hooks block. Backward compatible with installs from before this release.
Install
npx create-nanostackTo migrate an existing project to the v0.8+ hook model:
~/.claude/skills/nanostack/bin/init-project.sh --repair