Skip to content

Deep Agents

  • https://docs.langchain.com/oss/python/deepagents/cli/overview
  • https://blog.langchain.com/deep-agents/

  • It's a new project in the Langchain umbrella

  • It's basically a more rich agent with more capabilities

  • It's an Agent Harness (and agent general purpose client), not a framework like langchain

  • Store keys in ~/.deepagents/.env so they're available in every project without per-shell exports

  • Those capabilities/techniques mainly involve

  • Planning Tool: e.g., checklists
  • Sub Agents: sub instances of agents for specialized tasks
  • File System
  • System Prompt

  • Deep Agents solve the problem of an increasingly context. Because it delegates tasks and offload unnecessary context

Deep Agents

Install

# install globally
uv tool install 'deepagents-cli[ollama,groq]'

# install for the project (on the venv)
uv add 'deepagents-cli[ollama,groq]'

Usage

# Run it (uses a default agent)
deepagents

# Run your own agent
# the state (long term memory) for this agent will be stored (at ~/.deepagents/<myagent>/) and you can reopen it later on
deepagents --agent myagent

# List all agents created
deepagents list

Skills

  • Deep agents have a skills framework
  • Workflow
  • Skills are loaded to the to the agent state on the session start
  • Then, on each LLM call, the system prompt is updated with the skills metadata.
  • Based on that, the LLM can request the read of the full skill when needed (progressive disclosure)

  • Skills at ~/.agents/skills/ are read by deepagents

  • It has the built-in skill skill-creator
npx skills add "remotion-dev/skills"
  • You can ask deepagents which skills he has to verify