AcademyResourcesDevelopment

Agent Guard

Engineering and IT teams that let AI coding agents work in repositories that hold credentials.

  • Recommendedour rating
  • 31gitHub stars
  • MITlicence
  • 3 days agolast update
git clone https://github.com/JeongJaeSoon/agent-guard.git
README.md

Loading the file...

What it does

Agent Guard is a local guardrail that blocks risky .env reads, masks secret-like output and scans changed files for leaked secrets before they reach Git. It works with Claude Code, Codex, Git hooks, GitHub Actions and the shell, and uses gitleaks. It sends no telemetry and does not replace existing secret scanning.

Use cases

  1. 01Blocking agents from reading .env files
  2. 02Masking secrets in terminal output from coding agents
  3. 03Scanning changes for leaked keys before a commit

Questions about
Agent Guard.

What is Agent Guard used for?

Engineering and IT teams that let AI coding agents work in repositories that hold credentials. Agent Guard is a local guardrail that blocks risky .env reads, masks secret-like output and scans changed files for leaked secrets before they reach Git. It works with Claude Code, Codex, Git hooks, GitHub Actions and the shell, and uses gitleaks. It sends no telemetry and does not replace existing secret scanning.

How do I install Agent Guard?

Run this in your terminal: git clone https://github.com/JeongJaeSoon/agent-guard.git

Is Agent Guard open source?

Yes. The code is on GitHub (JeongJaeSoon/agent-guard) under the MIT licence.

Is Agent Guard safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.