whatisgithub

What is agent-zero-trust?

ralfyishere/agent-zero-trust — explained in plain English

Analysis updated 2026-05-18

4PythonAudience · developerComplexity · 2/5Setup · easy

In one sentence

A tool that scans a repository for hidden instructions or malicious commands before an AI coding agent is allowed to work inside it.

Mindmap

mindmap
  root((agent-zero-trust))
    What it does
      Scans repos before agents run
      Flags hidden instructions
      Flags risky commands
    Tech stack
      Python stdlib
      GitHub Action
      MCP config scanning
    Use cases
      Pre-agent repo intake
      CI pull request gate
      Block agent tools until scan passes
    Audience
      AI agent developers
      Security-conscious teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scan a freshly cloned repository for hidden agent instructions before running Claude Code or Cursor in it.

USE CASE 2

Add an automated CI check that fails a pull request if it introduces prompt-injection or hostile automation patterns.

USE CASE 3

Block an AI agent's file-editing tools in a workspace until an intake scan has passed.

USE CASE 4

Review a scan's findings, such as pipe-to-shell commands or hidden HTML-comment instructions, before trusting a repo.

What is it built with?

PythonGitHub ActionsMCPCLI

How does it compare?

ralfyishere/agent-zero-trust1038lab/agnes-ai3eyedtiger/video2vrcemote
Stars444
LanguagePythonPythonPython
Setup difficultyeasyeasyeasy
Complexity2/52/51/5
Audiencedevelopervibe codervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

The core scanner is stdlib-only Python with no install required to try it against the bundled example fixtures.

License badge is referenced in the README but the specific license text was not included in the excerpt.

So what is it?

This tool scans a code repository before an AI coding agent like Claude Code, Cursor, Codex, or Gemini is allowed to work inside it, looking for hidden instructions that could manipulate the agent. The idea is that a repository is not just code anymore. For an AI agent that reads and follows files, a README, a hidden HTML comment, a configuration file, or a startup script can act as an instruction, sometimes ones the human never sees rendered on screen but that the agent still reads as plain text. The scanner is deterministic and works entirely offline using only Python's standard library, and it never calls another AI model itself, since a checker that asks a model whether content is safe could itself be tricked by that same content. When it finds a problem, it reports findings ranked from high to medium severity, showing exactly which file and line triggered it and why, such as an instruction hidden in an HTML comment telling the agent to hide its activity, or a command that downloads and runs code from the internet in one step. It exits with a nonzero status code when serious findings are present, which makes it easy to plug into automated checks. It looks at a wide range of files that can influence an agent, including agent instruction files, Claude Code hooks, MCP server configs, git hooks, package lifecycle scripts, and CI workflow files. It checks for instruction overrides, hidden imperatives, commands that pipe downloaded content straight into a shell, credential and token patterns, and other automation traps. It can also run as a GitHub Action that fails a pull request check when these patterns show up, and it offers an optional gate mode that blocks an agent's file-editing tools in a workspace until a scan has passed. The tool is upfront that a clean scan only means no known attack pattern was found, not that a repository is fully safe, and it publishes its own known false negatives publicly so its limits stay visible. This is aimed at developers and teams who use AI coding agents and want an automated first check before letting an agent operate in an unfamiliar or newly cloned repository. It installs via pip or pipx and is written in Python.

Copy-paste prompts

Prompt 1
Explain what agent-zero-trust checks for when it scans a repository.
Prompt 2
Walk me through setting up agent-zero-trust as a GitHub Action on my pull requests.
Prompt 3
Show me how to install the PreToolUse gate hook so Claude Code can't edit files until a scan passes.
Prompt 4
What is the difference between a HIGH and MEDIUM severity finding in an azt scan?
Prompt 5
Help me understand why azt never calls an AI model itself during scanning.

Frequently asked questions

What is agent-zero-trust?

A tool that scans a repository for hidden instructions or malicious commands before an AI coding agent is allowed to work inside it.

What language is agent-zero-trust written in?

Mainly Python. The stack also includes Python, GitHub Actions, MCP.

What license does agent-zero-trust use?

License badge is referenced in the README but the specific license text was not included in the excerpt.

How hard is agent-zero-trust to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is agent-zero-trust for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.