2026-11-27 16:21 UTC

Pi extension layers rules and local models to review coding-agent tool calls

state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-tool-safety local-classifier coding-agentsdeepu105

What is this?

Developer deepu105 announced pi-automode-classifier 0.3.0, an installable extension for the Pi coding agent that decides whether tool calls run, require approval, or are blocked. It layers configurable rules, an optional lightweight classifier, and an optional chat model that can consider the user’s request; the developer describes a setup using LANCET Nano on CPU and a local Qwen model. The author reports benchmark results across 1,793 commands, including fewer prompts for safe calls than rules alone, but also risky calls that ran. These are self-reported tests, and the author explicitly says the extension is not a sandbox.

Why it matters

This is a practical experiment in making coding agents less interruptive without handing every tool call to a slow, expensive model. The layered design combines fast rules and a CPU classifier with a slower model that can use the user’s request as context. It could make local agents more usable while keeping more decisions on-device—but the author’s own results show that fewer approval prompts can come with more risky calls running. This is a developer’s release, not evidence of broad adoption or production-grade protection.

Current assessment

Developer deepu105 announced version 0.3.0 of pi-automode-classifier, an installable Pi coding-agent extension that can allow, ask approval for, or block tool calls, with configurable session and global exception rules. Its optional pipeline uses rules first, then a command-only classifier, then a chat model that can consider the conversation and tool call. The author describes a local setup using LANCET Nano (111M parameters, CPU; about 15 ms per command) and a local Qwen model for the chat-model stage; these are the author’s configuration and performance claims. In self-reported tests over 1,793 commands from repository suites, the setup prompted less often for safe commands than rules alone, but let 133 risky calls run versus 37 under rules alone. The author notes that 76 of those 133 were GTFOBins sample rows, and that stricter classifier cutoffs reduced risky calls that ran while increasing safe calls stopped. The chat-model stage had a reported median latency of 28 seconds and p95 of 110 seconds; 13 calls were blocked when it returned no answer. These results are limited by the test suites: only one included the user request for each command, and the others used a generic task message. The author explicitly says this is not a sandbox. The release is useful evidence of an emerging local, layered approach to agent action review, but its safety effectiveness and performance in real-world use remain unverified by independent evidence in the supplied sources.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-28 15:31 (minted)⭐ origin echo-reconstructedThe repository README is the original project artifact matching the post. It describes the same three-stage tool-call guard: “Built-in rules
Deepu (deepu105) on github (echo) · attributed from reddit.post.1xhpoer · published time unknown
—
10-28 14:31first on r/LocalLLaMA · published · lag ?Three stage tool call classifier: Rules, followed by LANCET on CPU, followed by local Qwen3.8-Flash-Next for a Claude Code-like auto mode safety check
deepu105
—
10-28 14:31amplified on r/LocalLLaMA 👑reddit.post.1xhpoer
deepu105
peak 5 · 6 comments · 99% of case engagement
10-28 15:20our radar first saw it · lag ?discovery anchor: reddit.post.1xhpoer—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 redditThree stage tool call classifier: Rules, followed by LANCET on CPU, followed by local Qwen3.8-Flash-Next for a Claude Code-like auto mode safety check
LocalLLaMA
deepu10556
🟧 echo.github ⭐The repository README is the original project artifact matching the post. It describes the same three-stage tool-call guard: “Built-in rulesDeepu (deepu105)——

Interpretation history

Decision trace