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
docs(security): raise the recommended Claude Code version to 2.1.288 — the native rm analyzer missed bash -c under bypassPermissions until then #1346
README.md:33 and :38 recommend Claude Code ≥ 2.1.208. The stated reason is that "Sequant's pre-tool hooks lean on Claude Code's native dangerous-rm analyzer, which fires even under bypassPermissions". Sequant removed its own rm -rf /|~|$HOME guard (templates/hooks/pre-tool.sh:817) and relies on that analyzer.
Claude Code v2.1.288 fixed a gap in the analyzer: "a dangerous rm (such as one on / or the home directory) inside a bash -c or sh -c script running without a prompt in bypassPermissions mode or under a shell allow rule" (anthropics/claude-code#96300). Phase agents run under bypassPermissions (src/lib/workflow/drivers/claude-code.ts:138). On any version before 2.1.288, bash -c "rm -rf ~" from a phase agent had no guard from either side.
pre-tool.sh:828 already lists bash -c "sudo ..." as an accepted gap for the sudo guard. The rm case was covered only by the native analyzer, and that coverage arrived in 2.1.288.
AC-1: Every place that states the recommended Claude Code version says 2.1.288 and gives the bash -c / sh -c reason next to the existing command-substitution one. Evidence: grep -rn "2\.1\.208" README.md docs plugin templates src returns no recommendation sites, and grep -rn "2\.1\.288" shows each one.
AC-2: If sequant doctor or the pre-tool version warning compares against a recommended version, that constant is 2.1.288. Evidence: the constant's location cited in the PR, or a note that none exists (grep -rn "208" src/commands/doctor.ts templates/hooks).
AC-3: docs/reference/permissions.md (or wherever the hook threat model is documented) records that on Claude Code < 2.1.288, bash -c "rm -rf ~" under bypassPermissions is unguarded. Evidence: the doc diff.
Activity
docs(#1346): recommend Claude Code 2.1.288 — the native rm analyzer m…