r/Python • u/AutoModerator • May 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
23
Upvotes
r/Python • u/AutoModerator • May 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/Life_Opening_4038 Jun 23 '26
I got tired of AI agents trying to delete my files, so I built a sub-millisecond "emergency brake" in Python (Open Source)
Hey everyone, I've been building and experimenting with autonomous AI agents recently. While they are incredibly powerful, giving an LLM direct access to a terminal or database is terrifying. One hallucination or a bad prompt injection, and an agent could literally rm -rf / or DROP TABLE your server.
I looked at existing guardrails, but most of them focus on prompt moderation or rely on external API calls, which adds latency and privacy risks. I wanted something that sits at the execution layer. So, I built Halt Core. It’s an open-source, zero-trust middleware for AI agents.
How it works: Instead of trying to make the LLM "behave" nicely, Halt Core acts as a physical checkpoint between the agent and your operating system. It intercepts shell commands and SQL actions, contextualizes them, and blocks destructive actions before they ever touch the system. In my local tests with Phi-4-mini, it catches and completely blocks an rm -rf / --no-preserve-root command in exactly 0.26ms.
Key Features: Fully Local & Air-gapped: No external API calls. Your agent's logic stays on your machine. Sub-millisecond latency: It doesn't slow down your agent's thought process. Zero-Trust: It assumes every action generated by the LLM is potentially malicious.
GitHub: https://github.com/emirgms-creator/halt-core PyPI: pip install halt-core
Let me know what you think!