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
flowchart LR
C[Bash コマンド] --> P{形を判定}
P -->|一時ディレクトリ内の rm / git で戻せるファイルの rm| A[許可]
P -->|同じコマンド内で定義した関数| A
P -->|GET だけの curl / ヘッダー付きの gh api 読み取り| A
P -->|herdr agent read・wait,worktree open・list| A
P -->|それ以外| Q[今のまま確認・拒否]
Loading
変わるもの
形
今
後
rm (一時ディレクトリ内,git 管理で未変更のファイル)
確認 (settings.json の ask)
許可
rm (それ以外)
確認
確認
rm -r (一時ディレクトリ内)
拒否
許可
rm -r (それ以外)
拒否
拒否
f(){ …; }; f …
確認 (動的な構文)
中身を同じ規則で判定し,安全なら許可
変数で組み立てたパスのプログラム ($d/tool)
確認
確認
curl の GET (外向き)
確認
許可 (通信先は sandbox と auto mode の申告で絞られる)
curl -d/-F/-T/-X POST など送信
確認
確認
gh api -H … の読み取り
確認
許可
herdr agent read / agent wait / worktree open / worktree list
Activity
furedea-agent commentedon Oct 18, 2026
計画
harness-policyfix/reduce-safe-confirmationsagents/command_permissions.json,agents/hooks/guard_command.py,agents/hooks/lib/*.py,agents/claude/settings.json,テストherdr agent read/agent wait/worktree open/worktree listを許可リストに足すgh apiの読み取り判定で,-H/--headerを書き込みのオプションとして扱わないcurl/wgetを,送信のオプション (-d,--data*,-F,--form,-T,--upload-file,-Xの GET/HEAD 以外,-K) が無い限り外向きでも許可にするrm: すべての対象が一時ディレクトリの中か,git 管理で未変更のファイルなら許可.rm -rは対象がすべて一時ディレクトリの中なら許可.settings.jsonのBash(rm:*)の ask を外し,判定をフックに任せるshell_syntaxで関数の本体を取り出し,同じ規則で判定する.同じコマンドの中で定義した関数の呼び出しは,本体の判定結果を使うreplay_commands.py --since 2026-10-18を変更前後で流し,確認が減り拒否が変わらないことを比べる順番は 2 → 3 → 4 → 5 → 6 (簡単で効果のあるものから).
fix(agents): close option and rm bypasses found in review
fix(agents): judge request options on decoded arguments
fix(agents): judge curl and wget on their arguments, not on text
fix(agents): find spreading expansions in the syntax tree
fix(agents): ask for every remote curl and wget request
docs(agents): prefer the web-fetch tool over curl for reading the web (…
fix(agents): stop asking for commands the hooks can prove safe
fix(agents): close option and rm bypasses found in review
fix(agents): judge request options on decoded arguments
fix(agents): judge curl and wget on their arguments, not on text
fix(agents): find spreading expansions in the syntax tree
fix(agents): ask for every remote curl and wget request
fix(agents): give wget its own options and see compound redirects
fix(agents): resolve rm targets against the tool workdir
3 remaining items
fix(agents): ask for line continuations and any unquoted brace
fix(agents): allow rm only for absolute temporary paths
fix(agents): trust only plain rm paths, real temp roots, and main's g…
fix(agents): keep main's denials for escaped and unsettled rm trees
fix(agents): take rm out of this change and hold Herdr's new forms to…
fix(agents): restore main's rm rules and describe the curl and wget a…
fix(agents): treat any expansion as non-literal for the literal_words…
fix(agents): judge literal_words rules on the whole command text
fix(agents): skip single-quoted text in the literal_words check
fix(agents): apply literal_words rules only to one plain gh or herdr …
fix(agents): keep assignments and redirects out of the literal_words …
fix(agents): close Herdr's global options and local requests that lea…
fix(agents): ask for every wget and allow local curl only as one plai…
fix(agents): let local curl clusters hold only value-less flags