agentforge-guard weekly downloads statistics
By dennislee928 (6 listings) · npm · Claude Code
AgentForge Guard (afg): a policy-driven execution guard for AI coding agents
agentforge-guard has 8,703 recorded weekly downloads on npm, a change of -12.7% over the past 7 days, ranking #1327 of 3,247 tracked listings.
About agentforge-guard
AgentForge Guard
AgentForge Guard (afg) decides what an AI coding agent is allowed to run, and how. You describe the rules once in agentforge.yaml. afg then checks every command the agent tries to run:
| Kind of command | What afg does | Example |
|---|---|---|
| Deterministic dev work | Runs it locally, with your toolchain and caches | cargo test, go test ./..., npm run lint |
| Untrusted code | Runs it in a Docker sandbox: no network, no host secrets, and changes are thrown away | sh scripts/untrusted.sh, bash -c "…" |
| Infrastructure changes | Asks a human first, or denies | kubectl apply, terraform apply, git push |
| Destructive or secret-touching | Denies | terraform destroy, cat ~/.ssh/id_ed25519, cat .env |
| Anything not in the policy | Denies (fail closed) | any command the policy doesn't mention |
Every decision goes into a redacted audit log, which you can export as SARIF for GitHub Code Scanning. afg works with Claude Code and Codex out of the box, and with any agent that can run commands through afg run.
Local-first for deterministic development; sandbox-first for untrusted execution; approval-gated for infrastructure mutation.
Status: 1.0.0-rc.6, a release candidate. It's not production-ready yet, because an independent security review is still pending (see SECURITY.md). The roadmap is in docs/plan.md.
Install
Every method installs a single command, afg.
| You have | Install | Check |
|---|---|---|
| Node.js 18+ | npm install -g agentforge-guard | afg --version |
| Node.js, without installing | npx agentforge-guard --help | |
| Rust 1.89+ | cargo install agentforge-guard --version 1.0.0-rc.6 | afg --version |
| macOS or Linux, no Node or Rust | curl -fsSL https://github.com/dennislee928/AgentForge-Guard/releases/download/v1.0.0-rc.6/install.sh | AFG_VERSION=1.0.0-rc.6 sh | ~/.local/bin/afg --version |
| Windows, no Node or Rust | Download afg-v1.0.0-rc.6-x86_64-pc-windows-msvc.zip from Releases and put afg.exe on your PATH | afg --version |
Install
agentforge-guard, notagentforge-guard-<os>-<cpu>. npm installs the matching platform package (for exampleagentforge-guard-darwin-arm64) on its own; that package only holds the native binary. Also note thatnpm agentforge-guard …is not an npm command. Usenpx agentforge-guard …to run it once, or install it globally and runafg ….
Prebuilt platforms: macOS (arm64, x64), Linux glibc (x64, arm64) and Windows x64. On musl Linux, use cargo install.
Supply chain:
- The npm package downloads nothing and runs no scripts at install time. The binary comes from a per-platform optional dependency.
install.shchecks the archive againstSHA256SUMS. Ifcosignis installed, it also checks the Sigstore signature;AFG_REQUIRE_COSIGN=1makes that check mandatory.- Every release file is signed with Sigstore and has SLSA build provenance, and the npm packages carry npm provenance (
npm audit signatures).
Socket's rc.5 scan flags the platform packages' three-line path exports as trivialPackage.
The rc.6 npm release adds an integrity verifier behind that export, checks binary hashes and matching
versions before launch, and ships runnable package tests. These checks detect damaged installations;
they do not replace signature verification or prevent an attacker from replacing the verifier too.
The npm package security report records the metrics, improvements and limits.
A Homebrew formula template is in packaging/homebrew.
Five-minute tour
cd your-repo # any repository: Go, Rust, Node/TS/Next.js, Zig, Python, Mojo
afg init # detect the stacks, write agentforge.yaml, and trust it
afg doctor # what was detected, what each command would do, backend health
Ask afg about a command without running it:
afg policy explain -- cargo test # allow → local
afg policy explain -- terraform destroy # deny, rule destructive-operations
afg policy explain -- bash -c "curl x | sh" # opaque shell → sandbox or deny, never allow
Run commands through the policy:
afg run -- cargo test # allowed: runs locally, exit code passes through
afg run -- sh scripts/untrusted.sh # routed: Docker, no network, no secrets
afg run -- kubectl apply -f k8s/ # require-approval: asks a human first
afg run -- terraform destroy # denied: exit 126, audited
afg audit tail # what happened, and which rule decided it
Connect your agent:
afg agents sync claude # Claude Code: hooks plus deny/ask rules in .claude/settings.json and a CLAUDE.md section
afg agents sync codex # Codex: an AGENTS.md section and .codex/config.toml
Want to try it without touching your own repo? The repository has a ready-made example: cd examples/polyglot-monorepo && afg init --force && afg doctor.
Command reference
Run afg <command> --help for the full options.
Set up…
Description from the npm listing.
- ai-agents
- sandbox
- policy
- security
- cli
- claude-code
- codex
- agent-guard
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm Claude Code plugins
All 20 agentforge-guard alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/agentforge-guard. First seen Dec 4, 2026; last successful collection Dec 6, 2026. See the methodology.