deepagents-langchain

deepagents-langchain is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 56 tokens per session (1,040 once invoked), scanned A, original, MIT.

A ready-made framework for building AI agents with LangGraph, LangChain’s system for connecting agent steps into a workflow. It includes planning, file and shell tools, separate sub-agents, and automatic shortening of long conversations.

In plain words
What is it for?
Use it to build coding or research agents that manage task lists, read and change files, run shell commands, call sub-agents, or use MCP tools.
Why use it?
It removes much of the setup needed to create an agent that can plan tasks, use tools, and keep working across longer jobs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the tradecraft plugin — 58 skills shipped together

Good fit Use it to build coding or research agents that manage task lists, read and change files, run shell commands, call sub-agents, or use MCP tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/deepagents-langchain
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 mahmoud20138/Tradecraft --skill deepagents-langchain
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

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-langchain

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/deepagents-langchain"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/deepagents-langchain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,040 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.
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.00056 $0.01040
Opus 5 $0.00028 $0.00520
Sonnet 5 $0.00011 $0.00208
Haiku 4.5 $0.00006 $0.00104

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

Security

Grade A, and why

deepagents-langchain 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 12d 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.

plugins/tradecraft/skills/deepagents-langchain/SKILL.md · 168 lines

How it starts

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

deepagents-langchain

USE FOR:

  • "production-ready agent with LangGraph"
  • "batteries-included coding/research agent"
  • "sub-agents with isolated context windows"
  • "LangChain agent framework"
  • "agent with planning + filesystem + shell"
  • "MCP tools in LangGraph agent" tags: [LangGraph, LangChain, agent, production, sub-agents, MCP, planning, filesystem, shell, open-source] kind: framework category: ai-agent-builder

What Is DeepAgents?

Production-ready, batteries-included LangGraph agent by LangChain. No manual setup — create_deep_agent() returns a fully functional agent.


Quick Start

pip install deepagents
from deepagents import create_deep_agent

agent = create_deep_agent()
result = agent.invoke({
    "messages": [{"role": "user", "content": "Research the latest AI agent frameworks and summarize"}]
})
print(result["messages"][-1].content)

Built-in Capabilities

Capability Tools Included
Planning write_todos — task decomposition + progress tracking
Filesystem read, write, edit, search files
Shell execute commands (with sandboxing)
Sub-agents delegate tasks with isolated context windows
Context auto-summarization, large output → file handling

Architecture (LangGraph)

# Returns a compiled LangGraph graph
agent = create_deep_agent()

# Supports all LangGraph features:
# - Streaming
for chunk in agent.stream({"messages": [("user", "task")]}):
    print(chunk)

# - Persistence / checkpointing
from langgraph.checkpoint.memory import MemorySaver
agent = create_deep_agent(checkpointer=MemorySaver())

# - LangGraph Studio compatibility (visual debug)

Customization

from deepagents import create_deep_agent
from langchain_anthropic import ChatAnthropic

# Custom model
agent = create_deep_agent(
    model=ChatAnthropic(model="claude-opus-4-6")
)

# Add custom tools
from langchain_core.tools import tool

@tool
def my_tool(query: str) -> str:
    """Custom tool description"""
    return do_something(query)

agent = create_deep_agent(tools=[my_tool])

# Custom system prompt
agent = create_deep_agent(
    system_prompt="You are an expert financial analyst..."
)

Read the full file on GitHub · 168 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. 12d ago First seen · 168 lines · 0 tokens per session scan A 1b16a037c516

Subscribe to this mod's changes

deepagents-langchain is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 56 tokens to every session and 1,040 once invoked, about $0.0003 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

offensive-crypto-attacks

Systematic methodology for identifying and exploiting cryptographic implementation weaknesses in real-world applications. Covers padding oracle attacks against CBC-mode ciphers with PKCS7 padding (Vaudenay's original attack through modern padbuster automation), ECB mode exploitation including block cut-and-paste and…

SnailSploit/Claude-Red · 261 tokens

offensive-parameter-pollution

HTTP parameter pollution (HPP) checklist: duplicate parameter injection, backend vs frontend parsing differences, WAF bypass via HPP, server-side vs client-side HPP, and practical exploitation patterns. Use when testing web applications for parameter handling flaws.

SnailSploit/Claude-Red · 0 tokens

offensive-wifi

Wireless / 802.11 attack methodology for red team engagements and wireless security assessments. Covers monitor-mode setup, WPA/WPA2-PSK handshake capture and PMKID attacks, WPA3 SAE downgrade and Dragonblood, WPA-Enterprise (EAP) attacks (MSCHAPv2 cracking, EAP-TLS cert theft, evil-twin RADIUS), Karma / Known Beacons…

SnailSploit/Claude-Red · 183 tokens

offensive-z-wave

Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…

SnailSploit/Claude-Red · 113 tokens

comptable

Comptabilité, fiscalité et facturation pour entreprises françaises. Gère écritures PCG, déclarations TVA, IS/IR, clôture annuelle, liasse fiscale (2033/2065), FEC, états financiers, et chaîne facturation (mentions obligatoires, numérotation, Factur-X/UBL/CII, plateformes agréées PDP/PA, e-reporting, réforme 2026…

romainsimon/paperasse · 143 tokens

fiscaliste

Fiscaliste IA pour la fiscalité personnelle des particuliers français : optimisation et déclaration de l'impôt sur le revenu, IFI, revenus du capital, revenus fonciers, equity salarial, crypto-actifs et PER. Couvre le calcul de l'IR (barème, quotient familial, décote, PAS, CEHR, revenus exceptionnels), la déclaration…

romainsimon/paperasse · 302 tokens