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-js --skill integrate-arcjet-guard-cloudflare-thinkgit clone --depth 1 https://github.com/arcjet/arcjet-jsWrote 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-js/integrate-arcjet-guard-cloudflare-think)<a href="https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-cloudflare-think"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-cloudflare-think/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-js/integrate-arcjet-guard-cloudflare-think"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-cloudflare-think.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.00106 | $0.03384 |
| Opus 5.5 | $0.00042 | $0.01354 |
| Sonnet 5.5 | $0.00021 | $0.00677 |
| Haiku 4.5 | $0.00011 | $0.00338 |
Grade A, and why
integrate-arcjet-guard-cloudflare-think 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Integrate Arcjet Guard into Cloudflare Think
@arcjet/guard's Cloudflare Think v0 namespace wraps the agent's existing
Arcjet client. It never talks to the Arcjet API itself. Two surfaces, one
decision rule:
- Tool calls →
guardHooks(). A{ beforeToolCall }object assigned on aThinksubclass. Default DENY is{ action: "substitute", output: ArcjetDenialResult }so the tool never runs and the model sees the payload. OptionalonDeny: "block"returns{ action: "block", reason }and skips the tool — the model does not getArcjetDenialResult. Do not throw from the hook. Fail-closed unavailable stays substitute even whenonDenyis"block". - Correlation →
cloudflareThinkContext()reads a caller-owned id from helper options (guardHooks({ sessionId })) or a wrap (cloudflareThinkContext({ context: appContext })). It never mints a new id. It never readstoolCallId(Think always generates it). It never readsrequestId/traceId/ Durable Objectname/id.
There is no guardTool. There is no guardInbound, no
guardApproval, and no afterToolCall capture hook.
This namespace is Cloudflare Think Think + class beforeToolCall.
Not the Vercel AI SDK. Do not also wrap with
@arcjet/guard/vercel-ai/v7 or @arcjet/guard/claude-managed-agents/v1.
Client tools with no local execute are out of scope.
Docs live at
docs.arcjet.com/guards/cloudflare-think/.
Do not overwrite any other /guards/... slug.
The floor is @cloudflare/[email protected] because that is the first
release whose beforeToolCall returns a functional ToolCallDecision
(allow / block / substitute) and wraps every server-side tool's
execute so the hook runs first.
Screen inbound before the Think turn — there is no inbound hook.
There is no first-class inbound deny channel, so there is no
guardInbound. Put prompt-injection (and other inbound rules) in the
application before the turn. Call guard() directly. guard() fails
open — callers must check hasFailedOpen().
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.
- 6d ago Changed · +1 lines 0a39d1737a61
- 10d ago Changed · +1 lines c8333975a051
- 13d ago Changed · +2 lines af9b3973afac
- 18d ago Changed · +13 lines c9c91461f890
- 1mo ago Changed 90c4c737f10b
- 1mo ago Changed · -4 lines 95d72e3d81aa
- 1mo ago Changed · +1 lines 9137adaffad0
- 1mo ago Changed · +5 lines 14d85846b4d0
- 1mo ago Changed · +3 lines c51b7892b59f
- 2mo ago First seen · 262 lines · 106 tokens per session scan A 2f661716f6fc
integrate-arcjet-guard-cloudflare-think is a skill published in the GitHub repository arcjet/arcjet-js (704 stars, last pushed 2d ago), licensed Apache-2.0. It adds 106 tokens to every session and 3,384 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.
integrate-arcjet-guard-cloudflare-think compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| integrate-arcjet-guard-cloudflare-thinkarcjet/arcjet-js | Skill | 704 | 2d ago | Apache-2.0 | A | 106 | Claude Code, Codex |
| create-auth-skillAgent-Threat-Rule/agent-threat-rules | Skill | 445 | yesterday | MIT | A | 66 | Claude Code, Codex |
| fhir-developer-skillAgent-Threat-Rule/agent-threat-rules | Skill | 445 | yesterday | MIT | A | 132 | Claude Code, Codex |
| create-auth-skillAgent-Threat-Rule/agent-threat-rules | Skill | 445 | yesterday | MIT | A | 66 | Claude Code, Codex |
| hunt-api-misconfigelementalsouls/Claude-BugHunter | Skill | 28k | yesterday | MIT | A | 207 | Claude Code |
| clinical-trial-protocol-skillAgent-Threat-Rule/agent-threat-rules | Skill | 445 | yesterday | MIT | A | 70 | Claude Code, Codex |
| claude-d3js-skillAgent-Threat-Rule/agent-threat-rules | Skill | 445 | yesterday | MIT | A | 25 | Claude Code, Codex |