Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

deep-agents-core深层 Agent 核心

Agent Skill

deep-agents-core 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

129,744

周安装

5,270

GitHub Stars

638

下载量

41,552
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:deep-agents-core(深层 Agent 核心)
来源仓库:https://github.com/langchain-ai/langchain-skills
仓库路径:skills/deep-agents-core
安装命令:
npx skills add https://github.com/langchain-ai/langchain-skills --skill deep-agents-core
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/langchain-ai/langchain-skills --skill deep-agents-core

简介

用于构建具有内置规划、内存和技能委派的多步骤代理的基础框架。

  • 提供六种核心中间件选项:任务规划、文件系统上下文管理、子代理委派、持久内存、人工审批工作流程和按需技能加载
  • 包括三个始终存在的内置工具:write_todos
  • 用于任务跟踪、文件系统操作( ls, 读取文件, 写入文件, 编辑文件, 全局, grep)和任务
  • 用于生成专门的子代理
  • 支持两种后端策略:用于本地技能目录的 FilesystemBackend 和用于无文件系统访问的环境的 StoreBackend
  • 需要带有 YAML frontmatter 的 SKILL.md 格式以进行技能发现;技能根据代理相关性按需加载,而不是在启动时加载

SKILL.md

  • Task Planning: TodoListMiddleware for breaking down complex tasks
  • Context Management: Filesystem tools with pluggable backends
  • Task Delegation: SubAgent middleware for spawning specialized agents
  • Long-term Memory: Persistent storage across threads via Store
  • Human-in-the-loop: Approval workflows for sensitive operations
  • Skills: On-demand loading of specialized capabilities

The agent harness provides these capabilities automatically - you configure, not implement.

Use Deep Agents WhenUse LangChain's create_agent When
Multi-step tasks requiring planningSimple, single-purpose tasks
Large context requiring file managementContext fits in a single prompt
Need for specialized subagentsSingle agent is sufficient
Persistent memory across sessionsEphemeral, single-session work
If you need to...MiddlewareNotes
Track complex tasksTodoListMiddlewareDefault enabled
Manage file contextFilesystemMiddlewareConfigure backend
Delegate workSubAgentMiddlewareAdd custom subagents
Add human approvalHumanInTheLoopMiddlewareRequires checkpointer
Load skillsSkillsMiddlewareProvide skill directories
Access memoryMemoryMiddlewareRequires Store instance

@tool def get_weather(city: str) -> str: """Get the weather for a given city.""" return f"It is always sunny in {city}"

agent = create_deep_agent(model="claude-sonnet-4-5-20250929", tools=[get_weather], system_prompt="You are a helpful assistant")

config = {"configurable": {"thread_id": "user-123"}} result = agent.invoke({"messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]}, config=config)

</python>
<typescript>
Create a basic deep agent with a custom tool and invoke it with a user message.

import { createDeepAgent } from "deepagents"; import { tool } from "@langchain/core/tools"; import { z } from "zod";

const getWeather = tool( async ({ city }) => It is always sunny in ${city}, { name: "get_weather", description: "Get weather for a city", schema: z.object({ city: z.string() }) } );

const agent = await createDeepAgent({ model: "claude-sonnet-4-5-20250929", tools: [getWeather], systemPrompt: "You are a helpful assistant" });

const config = { configurable: { thread_id: "user-123" } }; const result = await agent.invoke({ messages: [{ role: "user", content: "What's the weather in Tokyo?" }] }, config);


agent = create_deep_agent(name="my-assistant", model="claude-sonnet-4-5-20250929", tools=[custom_tool1, custom_tool2], system_prompt="Custom instructions", subagents=[research_agent, code_agent], backend=FilesystemBackend(root_dir=".", virtual_mode=True), interrupt_on={"write_file": True}, skills=["./skills/"], checkpointer=MemorySaver(), store=InMemoryStore())

</python> <typescript> Configure a deep agent with all available options including subagents, skills, and persistence.

import { createDeepAgent, FilesystemBackend } from "deepagents";
import { MemorySaver, InMemoryStore } from "@langchain/langgraph";

const agent = await createDeepAgent({
  name: "my-assistant",
  model: "claude-sonnet-4-5-20250929",
  tools: [customTool1, customTool2],
  systemPrompt: "Custom instructions",
  subagents: [researchAgent, codeAgent],
  backend: new FilesystemBackend({ rootDir: ".", virtualMode: true }),
  interruptOn: { write_file: true },
  skills: ["./skills/"],
  checkpointer: new MemorySaver(),
  store: new InMemoryStore()
});
  1. Planning: write_todos - Track multi-step tasks
  2. Filesystem: ls, read_file, write_file, edit_file, glob, grep
  3. Delegation: task - Spawn specialized subagents

SKILL.md Format

Directory Structure

skills/
└── my-skill/
    ├── SKILL.md        # Required: main skill file
    ├── examples.py     # Optional: supporting files
    └── templates/      # Optional: templates

SKILL.md Format

---
name: my-skill
description: Clear, specific description of what this skill does
---

# Skill Name

## Overview
Brief explanation of the skill's purpose.

## When to Use
Conditions when this skill applies.

## Instructions
Step-by-step guidance for the agent.
SkillsMemory (AGENTS.md)
On-demand loadingAlways loaded at startup
Task-specific instructionsGeneral preferences
Large documentationCompact context
SKILL.md in directoriesSingle AGENTS.md file

agent = create_deep_agent(backend=FilesystemBackend(root_dir=".", virtual_mode=True), skills=["./skills/"], checkpointer=MemorySaver())

result = agent.invoke({"messages": [{"role": "user", "content": "Use the python-testing skill"}]}, config={"configurable": {"thread_id": "session-1"}})

</python>
<typescript>
Set up an agent with skills directory and filesystem backend for on-demand skill loading.

import { createDeepAgent, FilesystemBackend } from "deepagents"; import { MemorySaver } from "@langchain/langgraph";

const agent = await createDeepAgent({ backend: new FilesystemBackend({ rootDir: ".", virtualMode: true }), skills: ["./skills/"], checkpointer: new MemorySaver() });

const result = await agent.invoke({ messages: [{ role: "user", content: "Use the python-testing skill" }] }, { configurable: { thread_id: "session-1" } });


store = InMemoryStore()

# Load skill content into store

## skill_content = """--- name: python-testing description: Best practices for Python testing with pytest

# Python Testing Skill

..."""

store.put(namespace=("filesystem",), key="/skills/python-testing/SKILL.md", value=create_file_data(skill_content))

agent = create_deep_agent(backend=lambda rt: StoreBackend(rt), store=store, skills=["/skills/"])

</python> </ex-skills-with-store-backend>

<boundaries>

What Agents CAN Configure

  • Model selection and parameters
  • Additional custom tools
  • System prompt customization
  • Backend storage strategy
  • Which tools require approval
  • Custom subagents with specialized tools

What Agents CANNOT Configure

  • Core middleware removal (TodoList, Filesystem, SubAgent always present)
  • The write_todos, task, or filesystem tool names
  • The SKILL.md frontmatter format

</boundaries>

<fix-checkpointer-for-interrupts> <python> Interrupts require a checkpointer.

# WRONG
agent = create_deep_agent(interrupt_on={"write_file": True})

# CORRECT
agent = create_deep_agent(interrupt_on={"write_file": True}, checkpointer=MemorySaver())

// CORRECT const agent = await createDeepAgent({interruptOn: {write_file: true}, checkpointer: new MemorySaver()});

</typescript>
</fix-checkpointer-for-interrupts>

<fix-store-for-memory>
<python>
StoreBackend requires a Store instance for persistent memory across threads.

WRONG

agent = create_deep_agent(backend=lambda rt: StoreBackend(rt))

CORRECT

agent = create_deep_agent(backend=lambda rt: StoreBackend(rt), store=InMemoryStore())


// CORRECT const agent = await createDeepAgent({backend: (config) => new StoreBackend(config), store: new InMemoryStore()});

</typescript> </fix-store-for-memory>

<fix-thread-id-for-conversations> <python> Use consistent thread_id to maintain conversation context across invocations.

# WRONG: Each invocation is isolated
agent.invoke({"messages": [{"role": "user", "content": "Hi"}]})
agent.invoke({"messages": [{"role": "user", "content": "What did I say?"}]})

# CORRECT
config = {"configurable": {"thread_id": "user-123"}}
agent.invoke({"messages": [...]}, config=config)
agent.invoke({"messages": [...]}, config=config)

// CORRECT const config = {configurable: {thread_id: "user-123"}}; await agent.invoke({messages: [...]}, config); await agent.invoke({messages: [...]}, config);

</typescript>
</fix-thread-id-for-conversations>

<fix-frontmatter-required>

WRONG: Missing frontmatter in SKILL.md

My Skill

This is my skill...

CORRECT: Include YAML frontmatter


name: my-skill description: Python testing best practices with pytest fixtures and mocking


My Skill

This is my skill...


# CORRECT: Use FilesystemBackend for local skills

agent = create_deep_agent(backend=FilesystemBackend(root_dir=".", virtual_mode=True), skills=["./skills/"])

</python> </fix-backend-for-skills>

<fix-specific-skill-descriptions> Use specific descriptions to help agents decide when to use a skill.

# WRONG: Vague description
---
name: helper
description: Helpful skill
---

# CORRECT: Specific description
---
name: python-testing
description: Python testing best practices with pytest fixtures, mocking, and async patterns
---

CORRECT: Provide skills explicitly

agent = create_deep_agent(skills=["/main-skills/"], subagents=[{"name": "helper", "skills": ["/helper-skills/"],...}])

</python>
</fix-subagent-skills>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.17%
按下载量换算15,029

Claude

30.47%
按下载量换算12,661

Cursor

16.98%
按下载量换算7,056

Gemini CLI

9.64%
按下载量换算4,006

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/langchain-ai/langchain-skills --skill deep-agents-core 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills