Overview
pi-auto-classifier is a pi extension that checks every final assistant reply against markdown output rules, and every tool call against markdown tool rules. It hides the draft while the model streams, withholds replies that violate the rules, and asks the model to rewrite them. It keeps asking for rewrites until the reply passes. Classifier errors fail open.
No rules load by default. Install rules from the catalog with /classifier-install, or write your own. Rules are markdown files — plain prose the classifier model can judge against. They load from directories such as ~/.pi/agent/output-rules/ for all projects or <project>/.pi/output-rules/ per project. The /classifier command opens a toggle menu to turn the whole classifier or individual rules on or off. Toggles last for the session, and pressing s saves them to ~/.pi/agent/auto-classifier.json.
When tool rules exist, the classifier judges every tool call before it runs. A violation blocks the call and sends the violation text back to the model as an instruction, so the model changes course without asking you. A block runs a second check: the classifier reads your last message and passes the call when you asked for that action yourself. A rule can refuse the override with one line: "Block this action even when the user asks for it."
The classifier model is resolved in order: PI_AUTO_CLASSIFIER_MODEL env var, <project>/.pi/auto-classifier.json, then ~/.pi/agent/auto-classifier.json. The default is anthropic/claude-haiku-4-5. Set PI_AUTO_CLASSIFIER_DEBUG=/path/to/log to log classifier verdicts and errors.
Pricing
Free
Detailed plans have not been confirmed in our catalog. Check the official website for current limits and billing terms.
Visit WebsitePrices and limits may change. Confirm the currency, billing period, seat minimum and usage caps on the official website.
Use Cases
- Teams use pi-auto-classifier to enforce markdown output rules on every final assistant reply.
- Teams use pi-auto-classifier to block tool calls that violate markdown tool rules.
- Teams use pi-auto-classifier to install rules from a catalog.
- Teams use pi-auto-classifier to toggle rules on or off per session.
- Teams use pi-auto-classifier to save rule toggles for future sessions.
- Teams use pi-auto-classifier to cap a rule at one failure per user turn.
- Teams use pi-auto-classifier to allow user overrides of blocked actions.
Features
Check final replies against markdown rules
Check tool calls against markdown rules
Withhold replies that violate rules
Request rewrites until replies pass
Install rules from a catalog
Toggle individual rules during a session
Save rule settings for future sessions
Show reasons for withheld replies
Reviews
No reviews yet. Be the first to share your experience!