Catalog PyPI
PACKAGE EXPLORERView in registry

agentguard-dev

PyPI

An honest pre-deployment reliability and security gate for AI agents.

agentsaicideployment-gatellmsecurity
Versions collected1
Direct dependencies2From release 0.1.2
Last observed20 Oct, 22:06 UTC

README

Version 0.1.2 documentation

AgentGuard

An honest pre-deployment gate for AI agents.

Website · Documentation · PyPI · Source

AgentGuard checks an agent specification before deployment and produces evidence that a developer or CI pipeline can understand. It reports what was evaluated, what failed, and what was not tested instead of turning skipped coverage into a green badge.

The CLI is deterministic: an LLM never decides whether something is a vulnerability. The same specification produces the same fingerprint and explainable result.

Install

python -m pip install agentguard-dev
agentguard --version

Requires Python 3.12 or newer. The CLI has two lightweight runtime dependencies (httpx and PyYAML); it does not install the AgentGuard control plane or a web framework.

Quick start: offline static check

agentguard init
# Edit agentguard.yaml with your real prompt, model, tools, and policies.
agentguard scan --local \
  --report-json agentguard-report.json \
  --sarif agentguard-findings.sarif

Local mode reads the selected manifest only. It executes no model or real tools, calls no external API, reads no environment variables, and accesses no production data.

Because behavioural scenarios cannot run without a model, they are reported as SKIPPED. The strict command exits 40 (INCOMPLETE) instead of claiming they passed. When your CI policy intentionally accepts a static-only partial gate, acknowledge that boundary:

agentguard scan --local --allow-incomplete-static --sarif agentguard-findings.sarif

This returns 0 with ALLOWED (PARTIAL) while keeping the skipped coverage visible.

What AgentGuard helps with

  • Agent-manifest structure and declared-policy checks
  • Accidental credential detection before evidence is written
  • Reproducible configuration fingerprints and evidence digests
  • Redacted JSON proof objects and SARIF for CI/code-scanning tools
  • Fail-closed exit codes for deployment pipelines
  • Explicit reporting of skipped scenarios and untested surfaces

What it does not claim

  • AgentGuard does not automatically discover every prompt, tool, and policy from source code; describe the real agent in agentguard.yaml or manifest.json.
  • A static check does not prove how a live model will behave.
  • Offline mode does not execute tools or validate downstream production side effects.
  • It does not replace application tests, red teaming, monitoring, or human security review.

Configuration

agentguard init creates the recommended agentguard.yaml, a legacy manifest.json, and a GitHub Actions workflow. Edit the YAML before treating its result as evidence for your agent—the generated customer-support example is only a template.

AgentGuard auto-discovers files in this order:

  1. agentguard.yaml
  2. agentguard.yml
  3. manifest.json

You can select a file explicitly with --manifest path/to/agentguard.yaml.

Behaviour simulation through a control plane

A configured AgentGuard control plane can evaluate observed model decisions and create an HTML report:

export AGENTGUARD_API_KEY=ag_your_key_here

agentguard scan \
  --api-url https://your-agentguard-host \
  --agent my-agent \
  --manifest agentguard.yaml \
  --environment staging \
  --html agentguard-report.html

The V1 proof objects are self-attested evidence, not cryptographically signed attestations. The evidence digest answers “is this the same evidence?”; it is not a tamper-proof seal.

Exit codes

CodeMeaning
0Allowed, including an explicitly accepted partial static gate
10Configuration or execution error
20Blocked by a finding at blocking severity
30Unknown—the evaluation could not reach a trustworthy decision
40Incomplete—behavioural coverage was not run

Fingerprint an agent specification

agentguard fingerprint --manifest agentguard.yaml

The fingerprint identifies an exact agent configuration. A result for one fingerprint is never silently inherited by a changed prompt, model, tool, or policy configuration.

AgentGuard is open source under the Apache-2.0 license. Contributions and real-world agent integration feedback are welcome.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.21 Aug 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
nagamiji/agentguard

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c0750221c9eb5071ce2f7a06ba76f79a06ef1f1f3479e404e26e15a97f102936