Your agent reads your repo.
Your gate reads with it.

AgentGuard blocks invisible instructions, secrets and permission traps in every pull request — before they reach your merge.

MIT license 47 tests 30 repos scanned v0.2.1 No LLM in the scan path

What is hiding in your repo?

Three ways a repo turns your own agent against you. All documented, all reproducible — and invisible in a normal PR review.

Invisible characters

Zero-width characters woven into a skill file instruct your agent to exfiltrate environment files. Invisible to humans — crystal clear to your agent.

The squatted host

A typo-squatted MCP server name slips through — your agent trusts a server you never reviewed.

The piped shell

A hook pipes remote content straight into your shell. One merged PR is enough.

Merge, calmly.

Not more process. More certainty.

See everything in seconds

One scan, every agent-facing surface: instruction files, skills, MCP configs, hooks and commands.

Proof, not gut feeling

12/12 attack fixtures caught, 47 regression tests green — every rule pinned by a test.

One gate, every harness

Claude Code, Codex, Cursor, OpenCode — the same rules, the same gate, the same peace of mind.

Deterministic — not influenceable

No LLM in the scan path. The gate cannot be talked out of a finding.

Trust, verified

30
public repos scanned
5
with critical findings
12/12
attack fixtures caught
0
false positives on control repo
✕ Check failed — grade E ✓ Bot comment: 1 finding

A planted attack, blocked before merge. Watch the real pull request — red check, bot comment, no merge.

See the blocked attack live →

Live demo

Deterministic test runs against our attack fixture repo and the clean control repo. Reproducible with npm run demo.

Loading demo data…

Sharp in 60 seconds

01

Add the workflow

One file in your repo.

02

Commit

The action runs on every pull request.

03

First scan

Grade A–F, critical findings block the merge.

name: AgentGuard
on: pull_request
jobs:
  agentguard:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: agentguard-dev/agentguard@v0
        with:
          exit-on: critical

Start in report mode; switch to block mode once your team is comfortable.

Start today. Cheaper than the incident it prevents.

Free

$0

Get started
Popular

Pro — PR bot

$19 /repo/mo

  • Automatic PR comments (grade + findings)
  • Check-run gate: criticals block the merge
  • Multi-harness: Claude Code, Codex, Cursor, OpenCode
Request Pro trial

Instant audit

$499 one-time

  • Full repo scan
  • Prioritized report + risk matrix (24–48 h)
  • Fix list with concrete PR suggestions
Request audit

RedTeam report

$499 /quarter

  • 3-agent attack: attacker → defender → auditor
  • Risk matrix + top-5 action list
  • Monthly, measures your progress
Request report

Response within 24 h (weekdays) — first scan free.

Frequently asked

Yes — the rules are harness-agnostic: AGENTS.md, .claude/, .cursor/, .codex/, .agents/, skills, MCP configs and hooks are all checked (Claude Code, Codex, Cursor, OpenCode).
It never executes code from your repo (read-only), it is deterministic (no LLM in the path) and scans itself on every PR — details in SECURITY.md. Two more guarantees: on misconfiguration the gate now fails loudly instead of silently passing (fail-closed), and a .agentguard-ignore shipped inside a PR is ignored in CI (bypass protection).
Report mode is the default (single-step check). You opt into block mode and rule customization; every rule ships with regression tests that pin down past false positives.
Native settings protect execution at runtime. AgentGuard checks what lives in the repo and flows into every PR — before the merge, across all harnesses at once.
Free: public repos (report mode). Pro: $19/repo/mo (PR bot + gate). Audit: $499 one-time. RedTeam report: $499/quarter. No hidden fees.
Seconds: the action is dependency-free and runs on standard Node on GitHub runners; the 30-repo study completed in minutes.
Yes — the CLI runs anywhere Node 18+ runs: clone the repo, npm ci, then node cli.js scan --path . for an instant grade.

Comparison: what others do — and what AgentGuard adds

ApproachAGENTS.md & skillsMCPHooksPR gate + commentRedTeam service
Native sandbox settings
MCP-only scanners/actionspartial
Claude-home config auditorspartialpartial
AgentGuard

Plus what no table shows: a verified 30-repo real-world scan as public evidence.

Built with distrust of itself

Not influenceable

Deterministic rules instead of an LLM — the tool itself cannot be prompt-injected. Details in the threat model.

Double dogfooding

AgentGuard scans itself on every own PR — and GitHub's push protection blocked a fake token in our tests during development. The rules got harder that day: changelog.

Publicly verified

Every finding in the 30-repo scan is byte-checked and publicly documented: real-world findings.

⭐ Star on GitHub · Follow @agentguard-dev

Your agents read your repo.
From today on, your gate reads with it.