integrate-arcjet-guard-langgraph

integrate-arcjet-guard-langgraph is a skill for Claude Code, Codex from arcjet/arcjet-js. It costs 87 tokens per session (2,869 once invoked), scanned A, original, Apache-2.0.

A security integration for LangGraph Graph API agents built with StateGraph and ToolNode. LangGraph is a framework for connecting agent steps into a graph; this integration checks authored tools and tools executed by a ToolNode with Arcjet.

In plain words
What is it for?
Use it with StateGraph and ToolNode agents to guard tools, screen incoming requests before invoke(), and preserve correlation across graph runs.
Why use it?
It helps prevent unprotected or runtime-discovered tools from running and avoids checking an already protected tool twice. It also links decisions to the graph's thread or run identifiers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with StateGraph and ToolNode agents to guard tools, screen incoming requests before invoke(), and preserve correlation across graph runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcjet/arcjet-js/integrate-arcjet-guard-langgraph
Install

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.

Any agent
npx skills add arcjet/arcjet-js --skill integrate-arcjet-guard-langgraph
Clone the repo
git clone --depth 1 https://github.com/arcjet/arcjet-js

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for integrate-arcjet-guard-langgraph

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-langgraph/github.svg)](https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-langgraph)
Your own site
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-langgraph"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-langgraph/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.

agentmods 80×15 button for integrate-arcjet-guard-langgraph

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-langgraph"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-langgraph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,869 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.02869
Opus 5 $0.00044 $0.01435
Sonnet 5 $0.00017 $0.00574
Haiku 4.5 $0.00009 $0.00287

Measured today against content hash 1dfbd0f22c78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

integrate-arcjet-guard-langgraph 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 today.

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.

arcjet-guard/skills/integrate-arcjet-guard-langgraph/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Integrate Arcjet Guard into a LangGraph agent

@arcjet/guard's LangGraph v1 namespace wraps the agent's existing Arcjet client. It never talks to the Arcjet API itself. Two surfaces, one decision rule:

  • An authored tool (tool() / StructuredTool) → guardTool(). DENY returns a structured ArcjetDenialResult. Do not throw.
  • MCP / runtime-discovered / unwrapped toolsguardToolNode(). Guards the tools a ToolNode from @langchain/langgraph/prebuilt executes, in place, so execute still hits Guard. Already-branded tools are skipped (no double-call).
  • CorrelationlanggraphAgentContext() reads configurable.thread_id, then the run id, then checkpoint_ns. It never mints a new id.

This namespace is LangGraph Graph API (StateGraph + ToolNode). createReactAgent is deprecated in LangGraph JS v1 in favor of LangChain createAgent / wrapToolCall. Do not build on createReactAgent. Do not use this path for a LangChain createAgent app — that is @arcjet/guard/langchain/v1.

Screen inbound before invoke (or at the first graph node)

There is no first-class LangGraph channel for inbound screening, so there is no guardInbound. Put prompt-injection (and other inbound rules) in the application before graph.invoke, or in the graph's first node.

interrupt() is not a policy gate

interrupt() / interrupt_before=["tools"] is human-in-the-loop, not policy. Same trap as Mastra requireApproval, Claude canUseTool, and Google ADK requireConfirmation. There is no guardInterrupt and no guardApproval. Do not wrap them as Guard.

ToolNode is the deny point for tools; hooks / HITL cannot enforce

Unwrapped and MCP tools run inside ToolNode. Graph hooks and HITL pauses cannot stop tool.invoke. Use guardToolNode (or guardTool for authored tools you invoke yourself).

guardToolNode guards the node's tools in place and returns the same node. ToolNode's constructor captures func: (input, config) => this.run(input, config) and run reads this.tools, so guarding a copy would leave the original node running unguarded tools. This also means a caller still holding the pre-wrap node cannot bypass Guard.

Read the full file on GitHub · 271 lines

Changes

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.

  1. today Changed · +7 lines 1dfbd0f22c78
  2. 4d ago Changed · +7 lines fccf42c55666
  3. 10d ago First seen · 257 lines · 87 tokens per session scan A 3e641fecc89b

Subscribe to this mod's changes

integrate-arcjet-guard-langgraph is a skill published in the GitHub repository arcjet/arcjet-js (682 stars, last pushed today), licensed Apache-2.0. It adds 87 tokens to every session and 2,869 once invoked, about $0.0004 per session on Opus 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-08-30.

Related

Other skills, from other repositories

clinical-trial-protocol-skill

Generate clinical trial protocols for medical devices or drugs. This skill should be used when users say "Create a clinical trial protocol", "Generate protocol for [device/drug]", "Help me design a clinical study", "Research similar trials for [intervention]", or when developing FDA submission documentation for…

Agent-Threat-Rule/agent-threat-rules · 70 tokens

claude-d3js-skill

This skill provides guidance for creating sophisticated, interactive data visualisations using d3.js.

Agent-Threat-Rule/agent-threat-rules · 25 tokens

adr-skill

Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses…

Agent-Threat-Rule/agent-threat-rules · 89 tokens

linear-claude-skill

Manage Linear issues, projects, and teams.

Agent-Threat-Rule/agent-threat-rules · 15 tokens

playwright-skill

IMPORTANT - Path Resolution: This skill can be installed in different locations (plugin system, manual installation, global, or project-specific). Before executing any commands, determine the skill directory based on where you loaded this SKILL.md file, and use that path in all commands below.

Agent-Threat-Rule/agent-threat-rules · 60 tokens

terraform-skill

Terraform infrastructure as code best practices.

Agent-Threat-Rule/agent-threat-rules · 10 tokens