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.
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.
curl -O https://raw.githubusercontent.com/langchain-ai/deepagents/main/AGENTS.mdgit clone --depth 1 https://github.com/langchain-ai/deepagentsWrote 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/deepagents/agents-md)<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.
<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>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.02715 | $0.02715 |
| Opus 5.5 | $0.01086 | $0.01086 |
| Sonnet 5.5 | $0.00543 | $0.00543 |
| Haiku 4.5 | $0.00271 | $0.00271 |
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.
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:
libs/DEVELOPMENT.md— repository layout, setup, commands, pre-commit, the edit-test-lint loop, testing, and benchmarks.libs/ARCHITECTURE.md— runtime structure and SDK starting points..github/RELEASING.md— releases, version lines, fan-out, CI labels, and troubleshooting.- LangChain contributing guide — general contribution policy.
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.
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.
- 7d ago Changed · +11 lines · +131 tokens per session 155277b45433
- 21d ago Changed · +8 lines · +273 tokens per session 79ad6cc36fde
- 1mo ago Changed · +1 lines · +43 tokens per session 5a7bcb0f7958
- 2mo ago First seen · 155 lines · 2,268 tokens per session scan A 46b5bf4789af
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.
deepagents AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| deepagents AGENTS.mdlangchain-ai/deepagents | Instructions file | 31k | yesterday | MIT | A | 2,715 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |