# Try JeongJaeSoon/agent-guard: synthetic secret-boundary checks

**Agent Signal — 4 November 2026 · Optional reader lab (10–15 minutes).**

**Tested status: SOURCE REVIEW ONLY.** The commands below were checked against the official [installation](https://github.com/JeongJaeSoon/agent-guard/blob/main/docs/installation.md), [verification](https://github.com/JeongJaeSoon/agent-guard/blob/main/docs/verification.md) and [v3.6.13 release](https://github.com/JeongJaeSoon/agent-guard/releases/tag/v3.6.13) documentation. **Not run by this publication:** installation, smoke-test, repository scan, host hook, AI model or GitHub Actions.

## Why this is worth trying

Agent Guard is a local-first MIT-licensed CLI and coding-agent plugin that attempts to stop secret-like material before supported agent actions expose it. It uses gitleaks, shell checks and host-specific hooks. Its 3 November v3.6.13 release reduces a false positive for a record UUID in a generic `key` field; broader guarding features were already available. A static smoke test cannot prove that Claude Code or Codex has installed and trusted the required hook.

## Prerequisites, privacy and costs

- macOS or Linux on x64/arm64; Windows unsupported in the maintainer's verified compatibility list.
- For the standalone CLI: `sh`, `awk`, `git`, `jq`, **gitleaks 8.30+**, and `setsid` (typically util-linux on Linux) **or Perl** for timeout isolation.
- A terminal and optional Homebrew installation path. Review the pinned release and checksums before installing third-party software. The program is MIT; Homebrew and the scanner are free to use, but computer, internet and disk resources are needed. **No API key, AI inference, hosted subscriber service or paid subscription.**
- Use a personal, disposable environment. Never put real secrets into a test or publish scan output containing sensitive paths.

## Steps

On a personal Mac with Homebrew, if you decide to install it, review the official tap first. The project also offers a checksum-checking standalone bootstrap, but this guide does not ask you to pipe an unreviewed network script to a shell.

```sh
brew tap JeongJaeSoon/tap
brew install JeongJaeSoon/tap/agent-guard
agent-guard version
agent-guard doctor
agent-guard check
```

On Linux, use the maintainer's [installation instructions](https://github.com/JeongJaeSoon/agent-guard/blob/main/docs/installation.md) to inspect the signed/released archive, dependencies and correct install destination before using its CLI.

Next, run the **built-in synthetic deterministic exercise** (not a model call):

```sh
agent-guard smoke-test
```

To inspect a **disposable personal repository**, you can additionally run:

```sh
mkdir -p /tmp/agent-signal-guard-2026-11-04
cd /tmp/agent-signal-guard-2026-11-04
git init -q
printf 'project = demo\n' > README.txt
agent-guard scan-path README.txt
echo "Scan exit status: $?"
```

Do not add authentic credentials or mock real-looking account credentials to the sample. For a positive secret-detection test, use the tool's bundled synthetic cases instead of crafting new sensitive strings.

## Expected output, not observed results

`version` identifies the installed version. `doctor` and `check` report whether required dependencies and policy exist. `smoke-test` exercises bundled denial, scanner and redaction paths and should report a pass if correctly installed. A clean `scan-path` on the innocuous text normally exits **0**, whereas **1** means a secret-like value was found; **2** is a usage/scanner error and **3** means the check did not run. Treat 2 or 3 as **NOT SCANNED**, never as clean. Output wording and exit behavior depend on exact version.

**Important boundary:** Successful `smoke-test` verifies the CLI's synthetic paths, **not the host dispatch of its hooks**. To establish protection for a specific Codex/Claude tool route, follow the official verification guide's harmless live pre/post-tool sentinel procedure and correlate the hook's run ID with the metadata-only local log. Do not assert that a model route was protected from the smoke test alone.

## Score it fairly (0–5)

Give one point each for (1) vetted installed version and MIT license, (2) all prerequisites passing doctor/check, (3) bundled synthetic smoke test passes, (4) an innocuous disposable-file scan returns 0 and a known error is not mistaken for 0, and (5) a *separate* harmless live host-hook probe recorded the expected hook run. If you did not install a host plugin, item 5 is 0. A low score is incomplete protection evidence, not a universal quality score.

## Troubleshooting

- `brew`, `agent-guard` or `jq` missing: follow the official dependency installation docs, rerun `doctor`; do not silently pretend success.
- gitleaks missing or below 8.30: upgrade the free scanner only after reviewing its provenance.
- `setsid`/Perl missing: `doctor` reports the isolation dependency; no scan should be called clean.
- Smoke test fails: keep the failure output without revealing sensitive paths and check the exact version's official docs.
- A plugin was installed but hooks are not firing: standalone CLI installation alone does **not** install host adapters; use the pinned official host plugin and complete separate harmless live verification.
- `scan-path` returns 2 or 3: treat as incomplete, not safe. Preserve outputs and stop before trusting it with real repositories.

## Truthful status

**Source reviewed on 4 November; no computer, GitHub Actions agent, AI model or scanner was invoked for this guide.** The commands are reproducible reader instructions, not observed test results or proof that your live host is guarded.
