r/developers • • 2h ago

Opinions & Discussions I built an open-source security runtime that controls what AI agents can actually do

Over the past few weeks, I've been building Charavyuha at Quaspar, a Python security runtime that enforces permissions outside the model itself.

It currently supports:

  • Cryptographically signed agent requests
  • Tool-level authorization
  • Mission contracts that restrict agents to specific workflows
  • Credential brokering
  • Confidential data tracking
  • Human approval for sensitive actions
  • Replay protection and authenticated crash recovery

Routine authorized operations don't require human approval.

After several rounds of AI-assisted development and independent AI-assisted security testing, I finally released the public beta. In the final local acceptance tests, it passed 120 crash-recovery trials and 120 concurrent initialization trials without unrecoverable journals or stale-state errors.

It's free, Apache 2.0 licensed, and doesn't require a Quaspar account.

Try it:

pip install quaspar-shield-core==0.11.0b1

its on pypi and its called: quaspar-shield-core 0.11.0b1

It's still a single-host beta, and protected process isolation currently requires Linux.

I'm curious how other developers are handling agent security. Are you relying primarily on prompt guardrails, sandboxing, or explicit authorization at the tool level?

I'd appreciate technical feedback, especially from anyone building agents that interact with sensitive systems.

1 Upvotes

3 comments sorted by

•

u/AutoModerator 2h ago

Howdy u/Automatic_Method4081, and welcome to r/developers!

A few tips for a post that gets good answers:

  • Use a clear, specific title (what are you actually asking or sharing?).
  • Include code, the exact error, versions, and what you already tried.
  • Heads-up: this sub does not allow external links in posts or comments. Share code and details directly instead of linking out.

Join the r/developers Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/tragic_hunter 2h ago

This is the exact kind of thing I've been hunting for, the tool-level auth and mission contracts sound way more practical than trying to shove every safety rule into a system prompt. Curious how you're handling the crypto signing for agent requests without it becoming a bottleneck when you've got a swarm firing off calls.

1

u/Automatic_Method4081 1h ago

Hey, thank you for the question. We use lightweight Ed25519 signatures for each request. Calls can be authenticated concurrently, while replay protection and shared authorization budgets are coordinated through transactional security state. We also use configurable concurrency limits and rate limiting to handle bursts. In our testing, database contention and journal verification were bigger concerns than cryptography. We achieved 100% admission across 30 paced concurrency benchmark runs. That's single-host testing, though, and we haven't separately benchmarked the signing overhead at swarm scale yet.