Releases: greenhost87/agent-command-guard
Release list
v1.1.0
v1.1.0
Policy configuration is now externalized and overridable without forking the binary.
Policy config
- Policy tables moved from
main.gointo embeddedconfig/policy.json, loaded at init via a hand-rolled JSON parser inpolicy.go(~6 µs/process, no measurable e2e regression). ACG_POLICY_CONFIGis an overlay (union + disable via-prefix / clear via[]), not a full replacement.- Default
config/policy.jsonis self-protected from agent edits outside this repo (protected_paths+ cwd gate).
Docs & tooling
- README policy section rewritten: hard allow/deny vs macOS
osascriptinstall confirmation; Go 1.27 requirement. policy_bench_test.gomicro-benchmarks on the productionloadMergedPolicyConfigpath; notes indocs/config-extraction-experiments.md.
Install / upgrade
go run ./cmd/installOr download agent-command-guard-1.1.0.tgz and run bun package/dist/install-cli.js.
Full changelog: v1.0.0...v1.1.0
v1.0.0 — Agent Command Guard
Agent Command Guard v1.0.0
First stable release of Agent Command Guard — an opinionated command-policy guard for coding agents (Codex, Cursor, Pi). It inspects shell commands before execution via harness hooks and blocks risky patterns: inline interpreters (node -e, python3 -c, bash -c), command substitution, heredocs, pipe-to-interpreter, deletion outside the workspace, remote transfer, destructive git commands, and more.
Heuristic guard, not a sandbox. Text inspection only — not a security boundary.
Install
Bootstrap without checkout:
curl -fsSL https://raw.githubusercontent.com/greenhost87/agent-command-guard/main/install.sh | bashOr from source:
./install.sh # all harnesses (Codex, Cursor, Pi)Assets
agent-command-guard-1.0.0-darwin-arm64— prebuilt macOS arm64 binary; the bootstrap installer downloads it automatically.agent-command-guard-1.0.0.tgz— package tarball with sources (bootstrap-compatible layout).
Notes
- Requires Go 1.26+ to build; Bun 1.4+ only for the Pi adapter.
- Install-confirmation prompts (
osascript) are macOS-only; other platforms fail closed. - Full policy details in
README.mdandmain.go/cursor.go.
Full Changelog: https://github.com/greenhost87/agent-command-guard/commits/v1.0.0