Pi coding agent gets an auto-mode plugin that locally classifies risky shell commands

deepu105 · reddit · 2026-10-08

Developer deepu105 released pi-automode-classifier, an open-source plugin for the Pi coding agent that adds a safety layer to its auto mode, where every tool call otherwise runs without approval.

How it works, in three layers:

The author benchmarked three classifier models:

In a self-written test of 50 commands (25 safe, 25 risky), all safe commands ran without prompts and no risky command slipped through — though the author cautions this is a rough check and the plugin is not a sandbox. Install with pi install npm:pi-automode-classifier.

Original post →

More from coding & agent

coding & agent channel →