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
Claude の sandbox で全リポジトリの .git の hook と設定への書き込みを禁止する #296
Activity
furedea-agent commentedon Oct 22, 2026
計画
レーン 1 本:
sandbox-git-deny(ブランチfix/sandbox-git-deny)agents/claude/settings.jsonにsandbox.filesystem.denyWriteを足す.設定のテストがあれば先に足す.denyWriteに効くかを確かめる.効かなければ止めて報告する.LANE-READYを出す.switchのあと,メインが中にある別のリポジトリの.git/hooksに書けないこと,レーンのコミットと push が動くことを確かめる.fix(sandbox): deny writes to every repository's git hooks and config (#…
furedea-agent commentedon Oct 22, 2026
マージ後の確認(#298)
denyWrite).git/hooksの中に書く.git/configに書く.gitの名前を変えて中に書き,名前を戻す.gitの名前の変更自体が止まる)hooksを消してリンクに差し替えるgit init --template=で hooks がない場合のみ)組み込みの保護は
.git自体の名前の変更も止めるので抜けない.#298 のパターンは.git/hooks以下だけを守るので,入れ子のリポジトリでは.gitの名前を変えると抜ける.Claude Code の設定では「名前の変更だけを禁止」は書けず,~/**/.git全体を禁止するとコミットできなくなる.入れ子のリポジトリはまれなので,既知の制限として残す.