If you're building AI agents with Cursor, Replit, or ChatGPT —
your agent can send emails, delete data, and spend money
without asking you first.
I learned this the hard way.
The problem
I built an agent that worked great in testing. Then I realized:
there's nothing stopping it from sending emails to real people
with hallucinated data, processing duplicate payments, or
deleting records it shouldn't touch.
I looked for a simple safety layer. Everything I found was
either enterprise compliance software ($$$) or required
rewriting my entire agent architecture.
So I built one
pip install autonomica
Then add one line above any function your agent can call:
from autonomica import govern
@govern(agent_id="my-bot")
def send_email(to, subject, body):
# your existing code — nothing changes
email_api.send(to, subject, body)
That's it. Autonomica now watches every call and decides:
| Risk level | What happens | Example |
|---|---|---|
| 🟢 Low | Goes through automatically | Reading a database |
| 🔵 Medium | Goes through + you get alerted | Sending an email |
| 🟡 High | Pauses for your approval | $75K payment |
| 🔴 Critical | Blocked until you review | Deleting records |
The cool part: it learns
New agent → everything gets flagged (like a new employee on day 1)
After 50 good actions → it trusts routine tasks
Makes a mistake → guardrails tighten automatically
You don't configure any of this. It adapts.
The nerdy part (optional)
The architecture is inspired by the human autonomic nervous system.
Your brain makes ~35,000 decisions daily — 99.85% on autopilot,
only critical ones get escalated to conscious attention.
Autonomica does the same for your agents.
Numbers
- Adds 0.1ms latency (invisible)
- 436 tests passing
- Apache 2.0 (free forever)
- Works with any Python function, LangChain, CrewAI, AutoGen
Try it
pip install autonomica
GitHub: https://github.com/ai-singh07/autonomica
Built this in 48 hours with Claude Code, solo developer,
first open source project. Feedback welcome — especially
on what risk signals I'm missing.
Top comments (0)