pub fn is_write_operation(tool_name: &str, arguments: &str) -> boolExpand description
Determine if a tool operation is a write operation based on tool name and arguments.
Write operations include:
- shell/bash/execute: commands that appear to modify state (best-effort classifier)
- file: write/edit operations (or implicit write when
contentexists) - git: operations that modify repository state (commit/push/etc)
This classifier is intentionally conservative.