pi: prompt before dangerous commands

135 · Thiago Perrotta · Aug. 16, 2026, 11:38 a.m.
Summary
This blog post discusses a new feature in the Pi extension that allows interactive confirmation before executing potentially dangerous shell commands. The author explains how this change improves safety by giving users the option to approve or deny commands such as 'rm -rf' and 'git reset --hard'. The post provides a technical overview of the implementation, highlighting the use of tree-sitter for command parsing and user interface prompts as a safeguard against accidental data loss.