Current collected state Current
Observed since 20 Oct, 23:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Security infrastructure for autonomous AI agents
Security infrastructure for autonomous AI agents.
pip install agentsec
from agentsec import AgentSecClient, policy
# Initialize client
client = AgentSecClient(agent_id="my-agent")
# Capture events manually
client.capture_prompt("What files are in /etc?")
client.capture_response("I'll list the files in /etc for you.")
client.capture_tool_call("list_directory", {"path": "/etc"})
# Or use the guard decorator for automatic capture + policy enforcement
@policy.guard
def execute_command(cmd: str) -> str:
# Your implementation
pass
from agentsec import policy
# Load policies
policy.load("policies/")
# Policies are automatically enforced on guarded functions
@policy.guard
def read_file(path: str) -> str:
with open(path) as f:
return f.read()
# This will raise PermissionError if policy denies
read_file("/etc/passwd")
Events are stored locally by default in .agentsec/events/. Each run creates a JSONL file.
# View events
cat .agentsec/events/*.jsonl | jq .
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.3.0 | 12 Mar 2026 | 11 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 23:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ee0835368d7fb7eb153790c805e7b33ebeb66a99090c0674e14a337712e2f780