Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

deepagents-setup-configurationDeepagents 设置配置

Agent Skill

deepagents-setup-configuration 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

499

周安装

20

GitHub Stars

94

下载量

162
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lubu-labs/langchain-agent-skills --skill deepagents-setup-configuration

简介

deepagents-setup-configuration 提供 Deep Agents 快速搭建与静态配置验证支持。

  • 适用于需要 Python 或 JavaScript 快速启动、子代理管理、文件系统上下文或迁移旧版 create_react_agent 流的场景。
  • 包含项目脚手架生成、配置静态校验与安全检查预演等生产就绪部署辅助功能。
  • 使用前需确认目标平台支持 LangChain + LangGraph 运行时,并注意配置验证可能涉及敏感信息扫描。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Deep Agents Setup and Configuration

Deep Agents are an agent harness on top of LangChain + LangGraph with built-in planning, filesystem context management, and subagent delegation.

Use This Skill When

  • You need a Deep Agent quickly (Python or JavaScript).
  • You need subagents, filesystem-backed context, planning (write_todos), or long-term memory patterns.
  • You need migration guidance from older create_react_agent flows.
  • You need to scaffold a starter project with repository scripts.
  • You need to statically validate an agent.py / agent.js / agent.ts config.
  • You need safety checks before open-sourcing Deep Agents examples/templates.

Tooling In This Skill

  • scripts/init_deep_agent_project.py: scaffolds Python/JS projects with templates.
  • scripts/validate_deep_agent_config.py: static checks for Deep Agent config quality.
  • references/deep-agents-reference.md: detailed API, middleware, backends, migration, troubleshooting.
  • assets/templates/deep-agent-simple/: minimal Python starter template.
  • assets/examples/basic-deep-agent/: richer Python example.

Recommended Workflow

  1. Decide if Deep Agents is the right abstraction.
  2. Scaffold with init_deep_agent_project.py (Python or JS).
  3. Customize tools, prompt, backend, subagents, and persistence.
  4. Run validate_deep_agent_config.py.
  5. Use references/deep-agents-reference.md for advanced configuration.
  6. Run the generated project and verify traces/behavior.

Choose The Right Abstraction

NeedDeep AgentsLangChain create_agentLangGraph
Built-in planning/filesystem/subagents✅ Best fit⚠️ Manual middleware setup❌ Manual graph design
Fast path for complex multi-step tasks⚠️⚠️
Fully custom graph topology✅ Best fit
Minimal/simple agent (1-3 steps)⚠️ Overhead✅ Best fit⚠️

Initialize A Project

Use repo-local scripts and prefer uv run.

# Python simple template
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language python --template simple --path skills/

# Python with subagents
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language python --template with-subagents --path skills/

# Python CLI-config template (memory/checkpointer toggles)
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language python --template cli-config --path skills/

# JavaScript template
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language javascript --template simple --path skills/

Templates currently supported by the script:

  • simple
  • with-subagents
  • cli-config

Generated outputs include:

  • agent.py or agent.js
  • tools/example_tools.py or tools/example_tools.js
  • .env.example
  • README.md
  • .gitignore
  • pyproject.toml (Python) or package.json (JavaScript)

Validate Agent Configuration

Run static validation before shipping examples/templates:

uv run skills/deepagents-setup-configuration/scripts/validate_deep_agent_config.py path/to/agent.py
uv run skills/deepagents-setup-configuration/scripts/validate_deep_agent_config.py path/to/agent.js
uv run skills/deepagents-setup-configuration/scripts/validate_deep_agent_config.py path/to/agent.ts

Validator behavior:

  • Errors on missing agent calls or invalid file types.
  • Warns on risky/weak configs (missing prompt, odd backend usage, deprecated models).
  • Supports dynamic config patterns (create_deep_agent(**kwargs), createDeepAgent(config)), with warning that some static checks are skipped.
  • Validates HITL style: interrupt_on / interruptOn should be mapping/object, and requires checkpointer.

Current Deep Agents Defaults (Verified)

Default middleware includes:

  1. TodoListMiddleware
  2. FilesystemMiddleware
  3. SubAgentMiddleware
  4. SummarizationMiddleware
  5. AnthropicPromptCachingMiddleware
  6. PatchToolCallsMiddleware

Conditionally added middleware:

  • MemoryMiddleware when memory is set
  • SkillsMiddleware when skills is set
  • HumanInTheLoopMiddleware when interrupt_on / interruptOn is set

Core Configuration Patterns

agent = create_deep_agent(
    model="anthropic:claude-sonnet-4-5-20250929",  # string or model object
    tools=[...],
    system_prompt="...",
    subagents=[...],          # optional delegation specialists
    middleware=[...],         # optional custom middleware
    store=store,              # needed for StoreBackend patterns
    backend=backend_factory,  # State/Store/Filesystem/Composite
    checkpointer=checkpointer # required for HITL interrupts
)

Backend guidance:

  • StateBackend (default): thread-scoped, ephemeral.
  • StoreBackend: persistent files via LangGraph store (requires store=).
  • CompositeBackend: route prefixes (common /memories/ -> StoreBackend).
  • FilesystemBackend: direct disk access; use carefully, prefer virtual_mode=True with root_dir.

HITL And Persistence

If using human approval interrupts:

  • Python: use interrupt_on={...}
  • JavaScript: use interruptOn={...}
  • Always provide a checkpointer (InMemorySaver, MemorySaver, Sqlite/Postgres saver, etc.)

Migration Guidance

  • langgraph.prebuilt.create_react_agent is deprecated in LangGraph v1.
  • For standard agents, prefer langchain.agents.create_agent.
  • For harness capabilities (planning/filesystem/subagents), use deepagents.create_deep_agent / createDeepAgent.

Versioning Note

  • deepagents is currently a pre-1.0 package, so minor-version upgrades may include API changes.
  • Re-validate generated templates and examples when bumping deepagents versions.

Open-Source Safety Checklist

Before publishing this skill:

  • Ensure no real secrets are committed (.env.example must stay placeholder-only).
  • Remove generated artifacts like __pycache__/ and *.pyc from skill folders.
  • Avoid absolute local paths in code/examples.
  • Keep provider credentials in environment variables only.
  • Re-run validator on all shipped agent.py / agent.js templates.

Troubleshooting Quick Hits

  • Model/tool-call errors: verify tool-calling model and provider credentials.
  • Files not persisting: confirm StoreBackend route + store= wiring.
  • HITL not interrupting: verify interrupt mapping/object and checkpointer.
  • Too much overhead for simple tasks: use create_agent or plain LangGraph.

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.98%
按下载量换算55

Claude

30.07%
按下载量换算49

Cursor

21.22%
按下载量换算34

Gemini CLI

10.15%
按下载量换算16

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills