Read-only subagent can still write via bash #204

Open
opened 2026-11-21 12:36:49 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-core/src/subagent.rs (read-only tool list, ~line 260)
What is hacky: bash is allowed; only the prompt forbids writing.
Proper fix: replace bash with search/grep tools or enforce a sandbox.
Original comment: "Tools of a read-only child. ponytail: bash can still write; the prompt forbids it. Drop bash for a search/grep tool if models ignore that."

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-core/src/subagent.rs (read-only tool list, ~line 260) What is hacky: `bash` is allowed; only the prompt forbids writing. Proper fix: replace `bash` with search/grep tools or enforce a sandbox. Original comment: "Tools of a read-only child. ponytail: `bash` can still write; the prompt forbids it. Drop `bash` for a search/grep tool if models ignore that." Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the core label 2026-11-21 12:36:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#204