Back to Skills

deep-agents-core

INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format, and configuration options.

638stars57forksUpdated 4/30/2026

Security Assessment

Safe(100/100)
Security Score100/100

About deep-agents-core

The deep-agents-core skill provides a structured framework for building complex, multi-step AI agents with minimal implementation overhead. It is designed to streamline the creation of Deep Agents applications by offering a pre-configured harness that manages task planning, context, subagent delegation, long-term memory, and human-in-the-loop workflows. By abstracting the underlying complexity, developers can focus on configuring their agents rather than building each component from scratch, ensuring consistency and efficiency across projects that require advanced agent orchestration.

Key features include built-in middleware such as TodoListMiddleware for task breakdown, FilesystemMiddleware for context management with pluggable backends, SubAgentMiddleware for specialized agent delegation, MemoryMiddleware for persistent storage across threads, and HumanInTheLoopMiddleware for approval workflows. Additionally, SkillsMiddleware allows on-demand loading of specialized capabilities, making the framework highly extensible. The harness architecture automatically integrates these middleware components, so developers primarily define tools, subagents, skills, and configuration options without implementing the infrastructure themselves.

This skill is particularly useful for applications that involve multi-step problem solving, complex workflows, large or persistent context, and scenarios requiring specialized subagents. Target users include AI developers, data engineers, and teams building intelligent assistants or automation pipelines who need a scalable and maintainable agent framework. It is ideal for projects where task planning, context management, and persistent memory are critical, while simpler single-session tasks might still be better served by a more lightweight agent creation approach.

FAQ

How do I create a basic deep agent?

You can create a basic deep agent by using the create_deep_agent function and providing a model, tools, and a system prompt. Once configured, you can invoke the agent with user messages.

Can I use this skill with both Python and TypeScript?

Yes, the skill provides examples and support for both Python and TypeScript, allowing you to create agents in either language.

What middleware options are available for Deep Agents?

Available middleware includes TodoListMiddleware, FilesystemMiddleware, SubAgentMiddleware, HumanInTheLoopMiddleware, SkillsMiddleware, and MemoryMiddleware. Each can be configured based on your application's needs.

Does deep-agents-core support persistent memory?

Yes, the MemoryMiddleware in combination with a Store instance allows agents to maintain long-term memory across threads and sessions.

When should I use deep-agents-core instead of LangChain's create_agent?

Use deep-agents-core for multi-step tasks, large context, specialized subagents, and persistent memory requirements. For simple, single-purpose tasks with ephemeral context, LangChain's create_agent may be sufficient.

Install deep-agents-core

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill