langchain-ai/langgraph is a low-level framework for building agents and workflows that keep state while they run over time. Developers use it when agents need durable execution, memory, human oversight, debugging, or deployment support.
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 agentmods add instructions/langchain-ai/langgraph/claude-mdgit clone --depth 1 https://github.com/langchain-ai/langgraphWrote 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/instructions/langchain-ai/langgraph/claude-md)<a href="https://agentmods.dev/instructions/langchain-ai/langgraph/claude-md"><img src="https://agentmods.dev/badge/instructions/langchain-ai/langgraph/claude-md.svg" alt="Measured on agentmods" 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 | $0.00471 | $0.00471 |
| Opus 5 | $0.00235 | $0.00235 |
| Sonnet 5 | $0.00094 | $0.00094 |
| Haiku 4.5 | $0.00047 | $0.00047 |
Grade A, and why
langgraph CLAUDE.md 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 langgraph AGENTS.md — 4 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 — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS Instructions
This repository is a monorepo. Each library lives in a subdirectory under libs/.
Corridor security analysis
Before generating or modifying code, create a plan and use Corridor's analyzePlan tool to analyze it. Apply the resulting security guidance before writing code.
When you modify code in any library, run the following commands in that library's directory before creating a pull request:
make format– run code formattersmake lint– run the lintermake test– execute the test suite
To run a particular test file or to pass additional pytest options you can specify the TEST variable:
TEST=path/to/test.py make test
Other pytest arguments can also be supplied inside the TEST variable.
Libraries
The repository contains several Python and JavaScript/TypeScript libraries. Below is a high-level overview:
- checkpoint – base interfaces for LangGraph checkpointers.
- checkpoint-postgres – Postgres implementation of the checkpoint saver.
- checkpoint-sqlite – SQLite implementation of the checkpoint saver.
- cli – official command-line interface for LangGraph.
- langgraph – core framework for building stateful, multi-actor agents.
- prebuilt – high-level APIs for creating and running agents and tools.
- sdk-js – JS/TS SDK for interacting with the LangGraph REST API.
- sdk-py – Python SDK for the LangGraph Server API.
Dependency map
The diagram below lists downstream libraries for each production dependency as
declared in that library's pyproject.toml (or package.json).
checkpoint
├── checkpoint-postgres
├── checkpoint-sqlite
├── prebuilt
└── langgraph
prebuilt
└── langgraph
sdk-py
├── langgraph
└── cli
sdk-js (standalone)
Changes to a library may impact all of its dependents shown above.
- Do NOT use Sphinx-style double backtick formatting (
``code``). Use single backticks (`code`) for inline code references in docstrings and comments.
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 First seen · 66 lines · 471 tokens per session scan A e55710a3d7c5
langgraph CLAUDE.md is an instructions file published in the GitHub repository langchain-ai/langgraph (40,875 stars, last pushed 2d ago), licensed MIT. It adds 471 tokens to every session, about $0.0024 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to langgraph AGENTS.md, differing in 4 lines, and is treated as a copy.
Other instructions, from other repositories
deepagents AGENTS.md
AGENTS.md instructions for langchain-ai/deepagents, covering global development guidelines for the deep agents monorepo, corridor security analysis, development workflow, suppressing ruff rules and pr conventions.
gptme AGENTS.md
AGENTS.md instructions for gptme/gptme, covering agent instructions for gptme, git workflow, code style, testing and project structure.
chatgpt-cli CLAUDE.md
Claude Code instructions for kardolus/chatgpt-cli, covering chatgpt-cli — release runbook, prerequisites, 1. cut the release, 2. publish the github release + binaries and 3. update the homebrew tap.
AstrBot copilot-instructions.md
Copilot instructions for AstrBotDevs/AstrBot, covering astrbot development instructions, working effectively, bootstrap and install dependencies, running the application and dashboard build (vue.js/node.js).
NeuroAPI AGENTS.md
Instructions for neurogen-dev/NeuroAPI, a project described as: NeuroAPI: российский AI API для Codex CLI и Claude Code — безопасные one-click установщики для Windows и macOS.
ebay-mcp AGENTS.md
Instructions for YosefHayim/ebay-mcp, covering agents.md, what this is, instruction sources, validation commands and module map (src/).