deepagents: Instructions file for Codex

AGENTS.md

deepagents AGENTS.md is an instructions file for Codex, OpenCode from langchain-ai/deepagents. It costs 2,715 tokens per session, scanned A, original, MIT.

A set of repository instructions for contributors working on LangChain's Deep Agents monorepo, a code repository containing multiple related packages. It covers development, security review, linting, testing, and release practices.

In plain words
What is it for?
Use it when modifying the Deep Agents repository, especially when planning changes, running checks, handling lint exceptions, or preparing releases.
Why use it?
It gives coding agents the project-specific rules they need before changing code. It also points them to the correct documents for architecture, development, and releases.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is langchain-ai/deepagents's own configuration. It tells Codex and OpenCode how to work on deepagents itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deepagents configures →

About the project

Deep Agents is an extensible agent harness that provides an out-of-the-box agent for long, multi-step tasks, with features such as planning, sub-agents, filesystem access, context management, memory, and human approval of tool calls. It is used by developers building agents with different language models, and its catalogue entries extend the harness with reusable skills, MCP servers, and instructions.

langchain-ai/deepagents · 31,014 stars · on GitHub · docs.langchain.com

Reuse

Borrowing it

Nothing to install: this file belongs to langchain-ai/deepagents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/langchain-ai/deepagents/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/langchain-ai/deepagents

Made for: Codex, OpenCode.

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 deepagents AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/langchain-ai/deepagents/agents-md/github.svg)](https://agentmods.dev/instructions/langchain-ai/deepagents/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/langchain-ai/deepagents/agents-md"><img src="https://agentmods.dev/badge/instructions/langchain-ai/deepagents/agents-md/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 deepagents AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/langchain-ai/deepagents/agents-md"><img src="https://agentmods.dev/badge/instructions/langchain-ai/deepagents/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,715 This file is loaded in full into every session.
When invoked 2,715 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02715 $0.02715
Opus 5.5 $0.01086 $0.01086
Sonnet 5.5 $0.00543 $0.00543
Haiku 4.5 $0.00271 $0.00271

Measured 7d ago against content hash 155277b45433, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deepagents AGENTS.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 7d 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.

AGENTS.md · 175 lines

How it starts

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

Global development guidelines for the Deep Agents monorepo

This file contains repository-wide rules for agents and contributors. Use these sources for details instead of duplicating them here:

Corridor security analysis

When Corridor's analyzePlan tool is available, create a plan and use the tool to analyze it before generating or modifying code. Apply the resulting security guidance before writing code.

Development workflow

Work inside the package you are changing; libs/DEVELOPMENT.md covers environment setup (uv, make) and the edit-test-lint loop.

Do not add dependencies unless required. When adding one, justify its maintenance, adoption, and release activity.

Suppressing ruff rules

Use inline # noqa: RULE with a justification for individual exceptions. Reserve [tool.ruff.lint.per-file-ignores] for categorical policies that apply to a whole class of files, such as tests not requiring docstrings. Do not hide a single violation with a file-wide ignore. If you cannot justify a suppression, the code is probably the problem. See libs/DEVELOPMENT.md for worked examples.

Opening issues

Before opening an issue on a user's behalf, suggest a reasonable priority from the existing repository labels and ask the user to confirm it:

  • priority:triage: no one has reviewed it; a maintainer should review and assign priority.
  • priority:backlog: not now.
  • priority:medium: planned, likely this sprint or next.
  • priority:high: important; will do now.

Read the full file on GitHub · 175 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. 7d ago Changed · +11 lines · +131 tokens per session 155277b45433
  2. 21d ago Changed · +8 lines · +273 tokens per session 79ad6cc36fde
  3. 1mo ago Changed · +1 lines · +43 tokens per session 5a7bcb0f7958
  4. 2mo ago First seen · 155 lines · 2,268 tokens per session scan A 46b5bf4789af

Subscribe to this mod's changes

deepagents AGENTS.md is an instructions file published in the GitHub repository langchain-ai/deepagents (31,014 stars, last pushed yesterday), licensed MIT. It adds 2,715 tokens to every session, about $0.0109 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-08-30.

Related

deepagents AGENTS.md compared with instructions from other repositories

deepagents AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deepagents AGENTS.mdlangchain-ai/deepagentsInstructions file31kyesterdayMITA2,715Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode