AZT · Agent Zero Trust
Know what changed. Before you delegate.
Project instructions can shape what your AI coding agent does—even when you didn't write them. AZT helps you spot changes, understand warnings and keep a review. Free, offline and open source.
Scan your project · Reproduce the demo · Read the evidence
Animation · Still image · Mobile still · Transcript and reproduction
Illustrated demonstration of the recorded CLI workflow, not a shipped graphical interface or live-agent test. Repeats every 22 seconds with a reset; pacing is editorial. No target instruction is executed.
I use AI to build, and I take its risks seriously. AZT is my contribution to helping people use it with less blind trust. — Rafael (Ralph) Peña · Why I'm building this
Scan your project
Python 3.9+ on Linux or macOS; native Windows is unsupported. Installation downloads the released package. Scanning and change review then run offline: no account, model calls, telemetry, Docker or hook needed.
Start in the specific project directory you want to inspect. The temporary environment and reports belong outside that directory; don't scan your home, whole disk or a parent directory containing the temporary review folder.
AZT_PROJECT=$(pwd -P)
AZT_REVIEW=$(mktemp -d)
AZT_REVIEW=$(cd "$AZT_REVIEW" && pwd -P)
cd "$AZT_REVIEW"
python3 -m venv "$AZT_REVIEW/venv"
. "$AZT_REVIEW/venv/bin/activate"
python -m pip --isolated install \
--index-url https://pypi.org/simple --no-deps \
agent-zero-trust==0.1.11
azt --version
azt scan "$AZT_PROJECT"
Inspect only projects you are authorized to scan. AZT reads their contents;
it never runs their instructions. Keep this activated terminal for later checks.
Setup runs from the new review directory, not from the inspected project.
pwd -P avoids temporary-path symlink aliases on macOS.
Scan exits: 0 passes the selected threshold; 1 has findings meeting it; 2 means incomplete inspection or an error. A clean scan is not proof of safety.
Save a baseline, then compare after you edit
Before editing, save a scan outside the project:
azt scan "$AZT_PROJECT" --json > "$AZT_REVIEW/before.json"
After making your intended project changes, scan again, compare and export:
use a rule ID from your findings with azt explain (net.pipe_shell is an example).
azt scan "$AZT_PROJECT" --json > "$AZT_REVIEW/after.json"
azt changes --before "$AZT_REVIEW/before.json" \
--after "$AZT_REVIEW/after.json"
azt explain net.pipe_shell
azt changes --before "$AZT_REVIEW/before.json" \
--after "$AZT_REVIEW/after.json" \
--format html --output "$AZT_REVIEW/review.html"
Run interactively, without set -e. Open review.html locally. Use a fresh
output filename for each export. Comparison exits 0 when it completes—even
with changes or reduced comparability—and 2 for invalid input/output. It
does not approve the change. JSON/text exports and advanced syntax.
Reproduce the demo
New in source, not yet published: sensitive-request review helps you spot helpful-looking instructions asking for shell history, environment dumps or authentication material. Use the same scan → compare → explain → export workflow; AZT never collects the requested diagnostics or sends them.
This instruction asks your agent to download and run a remote script. Review the source before using it. That is the reason for review—not a claim that the source is malicious.
Run the four-case synthetic lab for the complete setup and scan → compare → explain → export commands. It uses inert example text, not your project or real credentials; the suspicious instruction is never executed. The lab keeps its environment and reports outside its fixture trees.
The illustrated AGENTS.md edit has two new findings: net.pipe_shell
(HIGH: download piped directly into an interpreter) and net.fetch_unknown
(MEDIUM: a download host outside the rule's allowlist). The benign edit has
none; incomplete inspection retains two unresolved observations.
The graphic uses the recorded 0.1.11 candidate at
0296face,
not new execution evidence. Transcript · Visual provenance.
Four steps, one review
| Step | What you get |
|---|---|
| Scan | “What deserves a closer look?” Known suspicious patterns in project text and supported settings, plus what AZT couldn't inspect. |
| Compare | “What changed since my last check?” Changed files, new or remaining findings, and changes to the rules or scope of the review. |
| Explain | “Why does this matter, and what can I check next?” Guidance for each rule, including legitimate uses and inspection limits. |
| Export | “How do I keep or share this review?” Readable text, a local HTML report or structured JSON. Nothing is uploaded. |
New to security or vibe coding? Start with the example above; you don't need to recognize a rule ID to ask what changed. Building an agent workflow? Use saved JSON reports and the CLI contract; a report is information, not permission for an agent to approve itself. Working in cybersecurity? Review the matching method and evidence, policy provenance and known misses.
Saved reports are snapshots, not automatic monitoring. Target .azt-ignore
requests cannot silently suppress findings. Explicit operator exceptions remain
visible and bound to reviewed content. Migration and policy details.
Why I built AZT
AI risk isn't only a conversation about the distant future. In its August 26, 2026 incident account, OpenAI described models crossing technical boundaries during internal cybersecurity evaluations with reduced safeguards. That is a documented incident in a particular setting—not evidence that AZT would have prevented it.
I started AZT in July with a smaller, practical insight: a repository—your project's files—is an instruction environment, not just code. The broader AI-risk discussion pushed me to strengthen that existing work, question AZT's own assumptions, and make its checks and evidence easier for others to inspect.
I want people to benefit from AI without giving it blind trust. This is my contribution to that effort: a free tool for reviewing what could influence a coding agent, with open code and examples people can challenge and improve. It doesn't solve the whole problem. It gives us one useful place to start.
AI Is Getting More Powerful. Blind Trust Is Not a Safety Strategy.
Evidence and scope
“No longer observed” is not “proven fixed.” Missing inputs, incomplete inspection or changed rules can limit comparison. Reports and their hashes are not authenticated evidence. Exported excerpts are omitted, but paths and labels can still be sensitive: review before sharing.
AZT detects known patterns, not every prompt injection or cross-file intention. Recognized files are not necessarily fully parsed. No live-agent integration, continuous authorization or general containment is provided.
Change-review evidence and methodology · Rule guidance and matching · Coverage and known misses · Supported files · Release notes
Optional: snapshot gate and experimental access check
The snapshot gate is an opt-in workflow aid; edits require operator re-admission. A same-user hook or signing key is not a sandbox.
AZT-FS-001 separately compares selected Compose JSON mounts and proposes a reviewable repair. Its historical Docker/Linux evidence is a synthetic trusted-probe experiment—not a live-agent evaluation or general containment. Docker supplies isolation. A passing misconfigured phase demonstrates intentional exposure, not approval of an unsafe configuration. Exact evidence · Prerequisites and reproduction.
Help make the next review better
Bring a minimal synthetic example, not private repository content. The small contributor queue has three testable tasks: reproduce a comparison regression, clarify one rule's legitimate context, or repeat the four-case lab on another supported Linux installation.
Contribute · Report a security issue · Open a reproducible issue · Use the Action
Created by Rafael (Ralph) Peña, with credit to contributors and upstream work. The original engine came from rulebench vet. MIT · Citation · Public principles.
Delegate work. Retain control.
Release files for agent-zero-trust 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_zero_trust-0.1.12.tar.gz | 995.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_zero_trust-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / agent_zero_trust-0.1.12.tar.gz
| Download URL | agent_zero_trust-0.1.12.tar.gz |
|---|---|
| Size | 995.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80460f941bfdd2b63107ddc7ef72c9e7a777020d9a29c7fe29d14c5bf0653d9e
|
|
BLAKE2b-256 checksum How to use checksums |
3e7522e57a59c3270d35226ae4875452029592929eaed1d7f88e462cb64ebfa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / agent_zero_trust-0.1.12-py3-none-any.whl
| Download URL | agent_zero_trust-0.1.12-py3-none-any.whl |
|---|---|
| Size | 80.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd47d0d2d72b3b642ba92a43bb73f12c3c01e136a62c47017c40486a7f2d7d32
|
|
BLAKE2b-256 checksum How to use checksums |
e4a3fd403b3c247f0a83c968371e38e6df648be2859b00c29668549bfea35449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency log