DEV Community

Dk Bk
Dk Bk

Posted on

"I built an open source AI agent governance kernel in 3 days as a non-coder"

"Just posted AgentGuard on Hacker News πŸ›‘οΈ
AI agent governance kernel β€” built in 3 days

Would mean a lot if you checked it out πŸ™

You're building with AI agents. Your agent has access to your database, your payments, your users.

What happens when it does something it shouldn't?

Most startups have no answer. No pause button. No audit trail. No trust scoring. No approval gate. Just an agent with full access and a prayer.

AgentGuard changes that.

GitHub logo Mangomindai / agentguard

AI Agent Governance Kernel β€” trust, approvals, audit

AgentGuard

Constitutional Governance Kernel for AI Agents

"Your AI agents are only as safe as the system governing them." "If your agent can break AgentGuard, it better be good at breaking Bitcoin."

License: MIT Python 3.10+ PyPI


Install

pip install agentguard-kernel
Enter fullscreen mode Exit fullscreen mode

PyPI

The Problem

You're building with AI agents. Your agent has access to your database, your payments, your users.

What happens when it does something it shouldn't?

Most teams have no answer. No pause button. No audit trail. No trust scoring. No approval gate. Just an agent with full access and a prayer.

AgentGuard changes that.


Quick Start

from agentguard import TrustEngine
engine = TrustEngine(db_path="trust.db")

# New agent starts TRUSTED
level = engine.get_trust_level("my-agent-001")
print(level)  # β†’ TRUSTED

# Quick permission check
if engine.is_allowed("my-agent-001"):
    # proceed with action
    pass

# Agent does something bad
result = engine.
…
Enter fullscreen mode Exit fullscreen mode

Top comments (0)