langgraph CLAUDE.md

langgraph CLAUDE.md is an instructions file for coding agents from langchain-ai/langgraph. It costs 471 tokens per session, scanned A, a copy of langgraph AGENTS.md, MIT.

A set of instructions for working on LangGraph, a project for building stateful software agents, across a repository containing multiple libraries. A monorepo is one repository that stores several related projects.

In plain words
What is it for?
Use it when changing LangGraph libraries, including its Python and JavaScript or TypeScript packages, and when running formatting, linting, or tests.
Why use it?
It tells coding agents how this repository is organized, which security analysis is required, and which checks to run before a pull request.

Instructions file

About the project

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.

langchain-ai/langgraph · 40,875 stars · on GitHub

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.

agentmods
npx agentmods add instructions/langchain-ai/langgraph/claude-md
Clone the repo
git clone --depth 1 https://github.com/langchain-ai/langgraph

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 langgraph CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/langchain-ai/langgraph/claude-md.svg)](https://agentmods.dev/instructions/langchain-ai/langgraph/claude-md)
Your own site
<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>
Per session 471 This file is loaded in full into every session.
When invoked 471 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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 $0.00471 $0.00471
Opus 5 $0.00235 $0.00235
Sonnet 5 $0.00094 $0.00094
Haiku 4.5 $0.00047 $0.00047

Measured 5d ago against content hash e55710a3d7c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

Origin

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.

CLAUDE.md · 66 lines

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 formatters
  • make lint – run the linter
  • make 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.

Read the full file on GitHub · 66 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. 5d ago First seen · 66 lines · 471 tokens per session scan A e55710a3d7c5

Subscribe to this mod's changes

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.

Related

Other instructions, from other repositories