← Back to Leaderboard
AJeongJaeSoon

JeongJaeSoon/agent-guard

Local shell guardrails against coding-agent secret leaks, backed by gitleaks

Engineering Health (Methodology)
A · 76/100
Maintenance Activity
● Updated yesterday
Latest Release
v3.17.3
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption1/25
Release Cadence20/20
License Clarity20/20
Self-HostedCLI
Total Stars
★ 47
24h Growth
+0
7d Growth
+2
Forks
0

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

JeongJaeSoon/agent-guard Star History (2026-05-12 - 2026-12-03) ALL-TIME STAR HISTORY (2026-05 – 2026-12) +46 in 205d · avg +0/day 51 26 0 2026-05-12: ★ 12026-05-30: ★ 52026-06-13: ★ 62026-06-27: ★ 82026-07-11: ★ 122026-07-25: ★ 142026-08-08: ★ 172026-08-22: ★ 242026-09-05: ★ 262026-09-19: ★ 282026-10-03: ★ 312026-10-17: ★ 332026-10-31: ★ 372026-11-13: ★ 402026-11-26: ★ 452026-12-03: ★ 47 ★ 47 2026-05 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Agent Guard is a shell-based policy layer around coding-agent tools and Git. Claude Code and Codex hooks apply policy before supported commands execute, mask output where the host exposes a supported route, and trigger scans after file mutations. The native pre-commit hook, GitHub Action, and standalone CLI provide scan entry points that do not depend on agent hook dispatch.

Shell owns detection orchestration, policy, and host adapters; gitleaks provides secret scanning. Release archives and Homebrew packages use a checksum-verified, prebuilt Rust helper for literal replacement rather than moving policy or detection into the native binary. A shell fallback remains available, and Git marketplace plugins are source-only.

Key Capabilities & Differentiators

Agent Guard can block common risky .env reads before a supported tool executes, mask secret-like values on supported output routes, and scan modified files after edits. For supported agent-driven commit and push commands, the plugin checks staged added lines and refuses options that disable Git hooks or signing. The commit gate also accounts for tracked changes that Git may stage as part of the commit itself.

When the final commit contents cannot be determined ahead of time, the plugin can scan tracked changes and untracked files rather than relying on the current index. The native pre-commit hook checks staged additions once Git has assembled the commit's contents and aborts on a finding or scan failure. The GitHub Action checks the files checked out for the push or pull request on which it runs; this is not a claim of full Git-history coverage.

Trade-offs & Limitations

Standalone gitleaks is the simpler choice for a scan at a known Git or CI checkpoint. Agent Guard adds coverage earlier in the agent's workflow, including certain reads and output paths that a repository scanner never sees. That coverage depends on host hook dispatch and shell command interpretation, so a passing synthetic check is not evidence that every live route works. Broader scans when commit contents are uncertain are worth testing in large working trees.

Default processing is local and ephemeral, without a hosted account or telemetry collector. An endpoint-backed PII provider changes that boundary and warrants separate privacy review. Keep GitHub Secret Scanning, Push Protection, and regular credential management in place: Agent Guard is an additional control, not a vault, DLP system, EDR, or credential rotator.

Hardware & Deployment Guide

Supported platforms are Apple silicon macOS and Linux on x64 or arm64; Windows and Intel macOS are unsupported. Existing Intel Mac installs can still use the shell/jq fallback but are not release-tested. Runtime requirements are sh, awk, git, jq, and gitleaks 8.30 or newer. The gitleaks version probe also needs setsid or Perl for process-group isolation; agent-guard doctor reports a missing isolation tool. Rust is not a runtime dependency.

Run guided plugin setup first, then use the harmless live probes to verify dispatch on the actual host tool routes you rely on. v3.17.2 moved the shell-word parser and Git gate into bin/lib. v3.17.3 refined handling of quoted and piped ripgrep commands and made a signaled hook-input validator follow infrastructure-failure policy rather than treating its input as malformed.

Host integration: Claude Code and Codex plugins, a native Git pre-commit hook, a GitHub Action, and a standalone CLI
Secret handling: Blocks common risky .env reads, masks supported tool output, and scans changed files after mutations
Git coverage: Scans staged additions and accounts for tracked changes that Git may stage during a commit
Direct scans: scan-working-tree, scan-staged, and scan-path support explicit working-tree, index, and path checks
Packaging: Release archives and Homebrew packages include a checksum-verified Rust literal-replacement helper with a shell fallback
Support diagnostics: Metadata-only JSONL export creates a new mode-0600 file and refuses to overwrite an existing file or symlink
Best For

Teams using Claude Code or Codex that want to stop accidental secret exposure on verified tool routes and back that up with local Git and CI checks.

Skip If

A standalone CI scan is sufficient, your fleet is Windows-only, or you need comprehensive DLP, credential rotation, or guaranteed coverage across every agent tool.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedCLI
agent-guard scan-working-tree
agent-guard scan-staged
agent-guard scan-path .

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
agent-guard ★47+2ShellMITLocal shell guardrails against coding-agent secret leaks, backed by gitleaks
obsidian-skills56.2k+1.7kShellMITAgent Skills plugins for editing Obsidian files and working with vaults
ponytail204.4k+4.1kJavaScriptMITA prompt-driven coding-agent plugin for smaller changes and focused tests.
ECC316.1k+4.2kJavaScriptMITPlugins and CLI workflows for planning, reviewing, and verifying agent-written c

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/JeongJaeSoon/agent-guard.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

JeongJaeSoon/agent-guard Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about agent-guard

Does a successful plugin setup prove that my agent is protected?

Guided setup checks dependencies and runs synthetic tests. It does not establish that the target Claude Code or Codex tool route actually dispatches the hook. Run the harmless live probes in docs/verification.md on the routes your team uses, and verify command blocking and output masking separately.

What hardware does it need, and where should I measure overhead?

No GPU, model runtime, or VRAM is required. The core stack is shell, jq, Git, and gitleaks, with an optional prebuilt Rust helper used by packaged installs. Measure scan times on your own repositories, especially when commit contents cannot be resolved in advance and the guard scans beyond the Git index.

Can we deploy it internally without sending data to a hosted service?

The project is MIT-licensed. Default processing is local and ephemeral, with no required hosted account or telemetry collector. An endpoint-backed PII provider changes the data-handling model; review PRIVACY.md and assess that endpoint separately before enabling it. The GitHub Action is a separate CI execution path.

When is Agent Guard worth adding over standalone gitleaks?

Standalone gitleaks is enough if all you need is a scan at a defined Git or CI checkpoint. Agent Guard adds policy before supported agent commands run, masking on supported output routes, and scans after edits. Keep GitHub Secret Scanning and Push Protection as separate repository controls rather than treating the plugin as a replacement.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining JeongJaeSoon/agent-guard? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature JeongJaeSoon/agent-guard on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare