Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add arcjet/arcjet-plugin --skill integrate-arcjet-guard-agent-framework-gogit clone --depth 1 https://github.com/arcjet/arcjet-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-agent-framework-go)<a href="https://agentmods.dev/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-agent-framework-go"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-agent-framework-go/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-agent-framework-go"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-agent-framework-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00119 | $0.03130 |
| Opus 5.5 | $0.00048 | $0.01252 |
| Sonnet 5.5 | $0.00024 | $0.00626 |
| Haiku 4.5 | $0.00012 | $0.00313 |
Grade A, and why
integrate-arcjet-guard-agent-framework-go scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
95% identical to integrate-arcjet-guard-agent-framework-go — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 279 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Integrate Arcjet Guard into Microsoft Agent Framework for Go
github.com/arcjet/arcjet-go/agentframework wraps the application's existing
arcjet.GuardClient. Shared Guard fundamentals (client, rules, labels,
decisions, capture) live in
../arcjet/references/guards_go.md. Load
that reference for anything that is not framework-specific.
Three surfaces, one decision rule:
- Any Go function →
arcjet.GuardActionin the root module. No framework dependency. Returns*arcjet.GuardDeniedErroror*arcjet.GuardUnavailableError. - A
tool.FuncToolyou can name at wiring time (fromfunctool.New,mcptool.ListTools, oragenttool.New) →agentframework.GuardTool, orGuardToolsfor a list. The result is still atool.FuncTool. - An agent whose tools the model picks, or user text to screen →
agentframework.GuardMiddlewareinagent.Config.Middlewares.
This is the Go framework. The .NET and Python Microsoft Agent Framework
implementations have no Arcjet adapter. Do not import @arcjet/guard or
arcjet.guard here.
Denials are tool results, never errors
The framework replaces a tool error with Error: Function failed. and
allows three consecutive rounds of failing tool calls before the fourth ends
the run. GuardTool therefore returns arcjet.GuardDenialResult as a
successful result. Do not "fix" this by returning an error, and do not set
IncludeDetailedErrors to make errors carry the denial.
Fail closed by default
GuardTool, GuardTools, GuardMiddleware, and arcjet.GuardAction deny
when policy cannot be evaluated. That is a different outcome from a policy
DENY, and the two return different results to the model.
- Policy could not be evaluated:
arcjet.NewGuardUnavailableResult(), reasonERROR, five second retry hint. - Policy denied the call, such as an exhausted rate limit or detected prompt
injection:
arcjet.NewGuardDenialResult(decision), or whateverToolPolicy.OnDenyreturns in its place.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 29d ago First seen · 279 lines · 119 tokens per session scan A 6f84769a8fd8
integrate-arcjet-guard-agent-framework-go is a skill published in the GitHub repository arcjet/arcjet-plugin (1 stars, last pushed 25d ago), licensed Apache-2.0. It adds 119 tokens to every session and 3,130 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to integrate-arcjet-guard-agent-framework-go, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
go-concurrency
Use when writing or reviewing Go concurrency — goroutines, channels, errgroup, context cancellation, or goroutine leaks. Not for sequential idioms (go-core-idioms).
go-core-idioms
Use when writing or reviewing idiomatic sequential Go — error handling, slog logging, generics, interfaces, style. Not for concurrency (go-concurrency).
go-testing-quality
Use when writing or reviewing Go tests, adding coverage, benchmarking, or profiling a Go program. Not for CI/lint wiring (go-tooling-security) or non-Go tests.
integrate-arcjet-guard-agent-framework-go
Integrate Arcjet Guard into Microsoft Agent Framework for Go (github.com/microsoft/agent-framework-go). Wrap a functool or MCP tool with GuardTool, guard every tool an agent can see and screen inbound text with GuardMiddleware, or guard any Go function with arcjet.GuardAction. Use when asked to add Arcjet to a Go…
golang-documentation
Comprehensive documentation guide for Golang projects, covering godoc comments, README, CONTRIBUTING, CHANGELOG, Go Playground, Example tests, API docs, and llms.txt. Use when writing or reviewing doc comments, documentation, adding code examples, setting up doc sites, or discussing documentation best practices.…
golang-modernize
Modernize Golang code to use recent language features, standard library improvements, and idiomatic patterns. Use when reviewing Go code with old-style patterns, when encountering a deprecation warning, or when the user asks for modernization, a Go version upgrade (e.g. to Go 1.27), or a CI/tooling refresh. Not for…