Auto mode plugin for the Pi coding agent that uses Kev/Laya (running locally) or Jev to classify commands

Reddit r/LocalLLaMA Tools

Summary

发布了 pi-automode-classifier 插件,为 Pi coding agent 提供命令自动审批功能:内置规则先判断常见命令,未知命令交由 Jev(托管)或 Kev/Laya(本地 llama.cpp 运行)评估风险概率,超过阈值才请求人工确认。

Just published pi-automode-classifier, an auto mode plugin for the Pi coding agent that uses Jev or Kev/Laya (running locally) to classify commands. Pi runs every tool call without asking for approval. This plugin checks each shell command before it runs: Built-in rules decide most commands. For example ls, builds and tests run, rm -rf ~ is blocked, and git push and sudo need my approval. Commands the rules do not know are sent to the model. It returns the probability that the command is risky. If the probability is above a threshold, I get a confirm prompt. The model never blocks a command by itself. The models I tested: Jev 1.13 (hosted, from TypeSafe) through OpenRouter: about 270 ms per check and about 1.5 cents per 1,000 checks. The commands are sent to OpenRouter and TypeSafe. Kev-0.8B on CPU with llama.cpp: about 170 ms per check and 1.1 GB of RAM. This is what I use. Nothing leaves the machine. Laya typed-decisions on CPU with llama.cpp: about 100 ms per check and about 550 MB of RAM. In my test with 50 commands (25 safe, 25 risky), all safe commands ran without a prompt and no risky command did. I wrote the test commands myself, so this is only a rough check. The plugin is not a sandbox. pi install npm:pi-automode-classifier Code and docs: https://github.com/deepu105/pi-automode-classifier Let me know if it allows or blocks something it should not.
Original Article

Similar Articles

@9hills: After several weeks of exploration and various attempts, the configuration of pi agent is basically stable. I posted a list before without explanation, which wasn't very friendly. This time I'm posting a full version with comments. Warning: If you need an out-of-box Coding Agent, don't use Pi; Claude Code/Codex is more suitable…

X AI KOLs Timeline

The author shares the stable configuration of pi agent (full version with comments), and warns that if you need an out-of-box Coding Agent, Claude Code/Codex is more suitable.

@realchendahuang: I've put together a comprehensive configuration scheme for Pi Agent, including 17 plugins, 18 global Skills, 2 MCP servers, with a one-click install script. Pi out of the box only has four functions: read and write files and run commands. This configuration is not simply stacking plugins; it's a complete design built around the actual coding process...

X AI KOLs Timeline

A practical complete configuration scheme for Pi Coding Agent, including 17 plugins, 18 global Skills, and 2 MCP servers, with a one-click install script, aimed at turning it into a powerful terminal coding agent.

Pi Coding Agent

Product Hunt

Pi Coding Agent is a customizable harness for building coding agents, now available on Product Hunt.