TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/microsoft/agent-governance-toolkit/llms.txt
Use this file to discover all available pages before exploring further.
agt command-line interface ships as part of the agent-governance-toolkit-cli distribution and provides tools for checking your installation health, running OWASP compliance attestations, auditing prompts for injection vulnerabilities, and validating policy files — all from a single unified surface. Every command is designed to integrate naturally into CI/CD pipelines, giving you deterministic go/no-go signals on every pull request.
Installation
Install the CLI as a standalone package or as part of the full toolkit:Commands
agt doctor
Checks your AGT installation for configuration problems, missing dependencies, and initialisation issues. Run this first when troubleshooting or setting up a new environment.
Usage
- All installed AGT packages and their versions
- Whether any required packages are missing or have version conflicts
- Cloud connectivity requirements (only relevant for Azure-integrated features)
- Loaded policies and whether any agent is running effectively ungoverned (no policies loaded)
- Component initialisation state
agt verify
Runs an OWASP Agentic AI Top 10 compliance check against your deployed agent. By default it performs a lightweight structural check; supply --evidence to run against a runtime evidence file and --strict to fail the command with a non-zero exit code if any control has weak or missing evidence.
Usage
| Flag | Description |
|---|---|
--evidence FILE | Path to a runtime evidence JSON file produced by the AGT governance layer |
--strict | Exit with code 1 if any OWASP control is not fully covered; suitable for CI gates |
The
--evidence flag points to a JSON file emitted at runtime by the governance layer. Enable runtime evidence mode with the evidence_mode=True option when creating your PolicyEvaluator.agt red-team scan
Runs a prompt injection audit across a directory of prompt files, scoring each one against AGT’s 12-vector PromptDefenseEvaluator. Returns a letter grade (A–F) per prompt and an aggregate grade for the directory.
Usage
| Flag | Description |
|---|---|
<PATH> | Directory or file containing prompts to audit |
--min-grade GRADE | Minimum acceptable grade (A–F); exits non-zero if any prompt scores below this threshold |
agt lint-policy
Validates YAML policy files against the AGT policy schema — checking apiVersion, rule structure, condition syntax, and conflict resolution strategy. Returns a human-readable report and exits non-zero on any schema violation.
Usage
| Flag | Description |
|---|---|
<PATH> | Directory or single .yaml file to validate |
CI/CD Integration
Addingagt verify --strict to a GitHub Actions workflow gives you a hard gate that fails the build if any OWASP Agentic Top 10 control is not covered.
Example: GitHub Actions workflow
The
agt-evidence.json file is generated at runtime by your governed agent. Collect it during your integration test run (step prior to the governance check job) and pass it as an artifact between jobs.Python Distributions
The CLI is packaged as part of theagent-governance-toolkit-cli distribution (one of the five consolidated packages in v4.0.0):
| Distribution | What’s included |
|---|---|
agent-governance-toolkit-cli | agt CLI, OWASP verification, integrity checks, policy linting |
agent-governance-toolkit[full] | Meta-package installing all distributions, including the CLI |
agent-os-kernel, agentmesh-platform) remain installable as stub packages that redirect to the consolidated distributions.