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-claude-managed-agents-pygit 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-claude-managed-agents-py)<a href="https://agentmods.dev/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-claude-managed-agents-py"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-claude-managed-agents-py/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-claude-managed-agents-py"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-plugin/integrate-arcjet-guard-claude-managed-agents-py.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.00095 | $0.03079 |
| Opus 5 | $0.00048 | $0.01540 |
| Sonnet 5 | $0.00019 | $0.00616 |
| Haiku 4.5 | $0.00010 | $0.00308 |
Grade A, and why
integrate-arcjet-guard-claude-managed-agents-py 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 5d 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
88% identical to integrate-arcjet-guard-claude-managed-agents-py — 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 — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Integrate Arcjet Guard into Python Claude Managed Agents
arcjet.guard.claude_managed_agents wraps the agent's existing Arcjet
client. It never talks to the Arcjet API itself. Shared Guard
fundamentals (client, rules, labels, decisions, capture, registration)
live in
../arcjet/references/guards_python.md.
Load that reference for anything that is not Claude Managed
Agents-specific.
Official anthropic>=0.92.0,<2 only — not claude-agent-sdk, not
arcjet.guard.claude_agent_sdk, not the JS
@anthropic-ai/claude-agent-sdk adapter, and not JS Claude Managed
Agents (@arcjet/guard/claude-managed-agents/v0, docs
https://docs.arcjet.com/guards/claude-managed-agents/). Importing
arcjet.guard.claude_managed_agents does not load Claude Agent SDK,
LangChain, or CrewAI. The extra is safe (no chromadb).
This is the hosted Claude Managed Agents harness
(client.beta.sessions). Anthropic runs the agent loop and the built-in
toolset (bash, files, web_*). The agent toolset defaults to
always_allow, so there is no customer pre-exec for bash/files —
agent.tool_use / agent.tool_result fire after the built-in already
ran. There is no PreToolUse. Do not paper over that gap with
always_ask. It is not Claude Agent SDK local query() / guard_hooks.
Exports: guard_custom_tool, guard_events,
claude_managed_agents_context. There is no guard_inbound, no
guard_tool, and no guard_tool_confirmation.
Three surfaces, one decision rule:
- Inbound text (
user.message/initial_events) →guard_eventswrapssessions.events.send. DENY raisesArcjetDeniedError/ArcjetUnavailableErrorand does not call send. - A custom tool you execute (
agent.custom_tool_use) →guard_custom_tool(run=…). DENY does not run the originalrun; the helper sendsuser.custom_tool_resultwith schema fieldis_error. - Correlation →
claude_managed_agents_contextreads a caller-ownedcorrelation_id/session_id. It never mints. It never reads Anthropicsession.id/sevt_….
Docs: https://docs.arcjet.com/guards/claude-managed-agents/ (shared
JS+Python page). Do not use /guards/claude-agent-sdk/. There is no separate
/guards/claude-managed-agents-py/ page. JS adapter is not in npm
1.11.0 — pin @arcjet/guard to cb35c8f92c3a2fb63fbeb9b386d79b1878c19d92.
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.
- 5d ago Changed · +4 lines 11351254659e
- 6d ago First seen · 257 lines · 95 tokens per session scan A 87345cc0e4f3
integrate-arcjet-guard-claude-managed-agents-py is a skill published in the GitHub repository arcjet/arcjet-plugin (1 stars, last pushed 5d ago), licensed Apache-2.0. It adds 95 tokens to every session and 3,079 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to integrate-arcjet-guard-claude-managed-agents-py, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
chief-strategy-officer
Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…
seo-strategy
Audits and improves organic search performance — technical health, site architecture, internal linking, structured data, and the content decisions that determine what can rank. Use this to run an SEO audit, diagnose why pages are not ranking or were deindexed, plan a site's URL and navigation structure, add structured…
customer-success-management
Runs the ongoing relationship with accounts after the sale — segmenting coverage against account value, building a health score that predicts rather than describes, running reviews customers find worth attending, forecasting renewals honestly, and finding expansion that follows usage instead of quota. Use this to…
chief-financial-officer
Owns the financial position: planning, budgeting, forecasting, unit economics, cash, and the numbers the business is run and reported on. Use this to build or challenge a budget, model a decision's financial consequence, assess unit economics or runway, evaluate an investment or spend request, set financial controls…
service-desk
Runs the IT service desk — intake, triage, prioritization, escalation, knowledge, and the metrics that improve service rather than distort it. Use this to set up or fix a service desk, design ticket priority and escalation, reduce repeat contacts, structure a knowledge base, or work out why a desk hitting its targets…
telephony-and-conferencing
Runs voice and meeting infrastructure — phone systems and numbers, emergency calling obligations, conference rooms and their AV, call recording and its retention consequences, and the porting that makes provider changes go badly. Use this to replace a phone system, fix rooms nobody can start a meeting in, meet…