Skip to main content
skill CX Codex

deepagents-python-quickstart — Claude Code skill: setup guide

Scaffolds a minimal Deep Agent in Python from the live LangChain quickstart: asks for a model, keeps work in a fresh folder, swaps Tavily for provider-native search.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a claude-code
Open on GitHub

What deepagents-python-quickstart does

The skill follows the official Deep Agents quickstart rather than an API half-remembered by the model. It pulls the LangChain docs page and builds the research-agent shape shown there: create_deep_agent, a research system prompt, and an invoke call with a question such as "What is LangGraph?".

First it asks which provider and model to use, passed as a provider:model string like openai:gpt-5.5 or google_genai:gemini-3.5-flash. If you have no preference it suggests starting with anthropic:claude-sonnet-5. Files land in a new directory such as deep-agent/, so the project you have open stays untouched.

Search comes from the chosen provider, not from a second vendor. The quickstart's Tavily tool gets replaced with the native one: {"type": "web_search"} for OpenAI, {"google_search": {}} for Google, web_search with max_uses: 5 for Anthropic. The only secret is that provider's API key in a gitignored .env. It installs deepagents, python-dotenv and the provider package, runs the example, shows the output, then stops and points to deep-agents-core and the customization docs. Without a key for that provider the agent cannot search, since the setup deliberately carries no separate search credential.

What it helps with

  • Stand up a research agent on Deep Agents in an isolated folder
  • Check the code against the live docs page instead of model memory
  • Drop Tavily and use the provider's built-in search tool
  • Wire a single API key into .env and keep it out of git
  • Run the research example and inspect the output

Example prompts for the agent

  • Scaffold a Deep Agent in Python from the official quickstart, keep everything in a new deep-agent/ folder
  • Use openai:gpt-5.5 with its built-in web search, skip Tavily
  • Run the research example and show me the output

How to install deepagents-python-quickstart

1Skills CLI (Vercel)

npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a claude-code

2Manually: put the files in place

~/.claude/skills/deepagents-python-quickstart/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/deepagents-python-quickstart/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about deepagents-python-quickstart

How do I install deepagents-python-quickstart in Claude Code?

Run npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a claude-code. The skill file ends up at ~/.claude/skills/deepagents-python-quickstart/SKILL.md.

What does deepagents-python-quickstart do?

It scaffolds a minimal Deep Agent in Python from the official quickstart: asks for a model, creates a separate folder, installs the packages, runs the research example and shows the result.

Why does it use built-in provider search instead of Tavily?

The skill deliberately skips a second search vendor. Search runs through the chosen model, so the only credential you need is that provider's API key in .env.

Source text

SKILL.md · MIT
---
name: deepagents-python-quickstart
description: "Scaffold a minimal local Deep Agent in Python by following the official quickstart, using provider-native web search instead of Tavily. Use when the user wants to quickly build or try a Deep Agent locally."
---

# Deep Agents Python quickstart

Follow the live docs — do not invent an alternate API from memory:

**https://docs.langchain.com/oss/python/deepagents/quickstart**

Fetch that page (Docs MCP or HTTP) and implement the research-agent shape it shows (`create_deep_agent`, research system prompt, invoke with a research question like “What is LangGraph?”).

## Local setup constraints

Apply these on top of the quickstart (they keep setup minimal and model-agnostic):

1. **Ask** which provider/model to use. Showcase that Deep Agents are model-agnostic. Suggested prompt:

   > Which model should this agent use? Pass a `provider:model` string — e.g. `openai:gpt-5.5`, `anthropic:claude-sonnet-5`, `google_genai:gemini-3.5-flash`. Default if you're unsure: **`anthropic:claude-sonnet-5`**.  
   > We'll use that provider's built-in web search (no separate search API key).

2. Create a **new** directory (e.g. `deep-agent/`) and do all work there — do not pollute the open project.

3. **Do not use Tavily** (or any second search vendor). Replace the quickstart's `internet_search` / Tavily tool with the chosen provider's built-in web search. Look up the current tool shape on that provider's LangChain chat docs (examples as of writing — re-check if needed):

   | Provider | Built-in search tool |
   |----------|----------------------|
   | Anthropic | `{"type": "web_search_20260209", "name": "web_search", "max_uses": 5}` |
   | OpenAI | `{"type": "web_search"}` |
   | Google | `{"google_search": {}}` |

   Prefer Anthropic / OpenAI / Google so provider search is available. Only secret: that provider's API key in `.env` (gitignored). Skip LangSmith tracing unless they ask.

4. Install `deepagents` (+ `python-dotenv`) and the provider package for their model — not `tavily-python`.

5. Run the research example, show output, then stop. Point to `deep-agents-core` / customization / Managed Deep Agents for next steps.

© langchain-ai · MIT · langchain-ai/langchain-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set22

swarm Fans out independent items across subagents in parallel and aggregates the results. Useful for batch file reviews, labeling, and data extraction. CX Codex +1 8,800installs ecosystem-primer Guides framework selection across LangChain, LangGraph, and Deep Agents before writing code. Maps requirements to the right layer, env vars, and quickstarts. CX Codex +1 8,000installs eval-engineering A skill that walks you through agent eval design: it inspects your repo, writes a Task Spec, then builds and audits runnable tasks in Harbor. CX Codex +1 5,300installs langgraph-python-quickstart Scaffolds a minimal local LangGraph Python agent using the official quickstart. Useful when you need to test a Graph API agent in an isolated folder. CX Codex +1 5,200installs langgraph-typescript-quickstart Scaffolds a minimal local LangGraph agent in TypeScript following official docs. Useful when testing graph architectures locally without polluting existing repositories. CX Codex +1 5,000installs langchain-python-quickstart Builds a minimal local LangChain agent in Python from the current quickstart. Use it to try an agent in a separate project directory. CX Codex +1 5,000installs deepagents-typescript-quickstart Scaffolds a minimal TypeScript Deep Agent from the official quickstart, swapping Tavily for the provider's built-in web search. CX Codex +1 4,900installs langchain-typescript-quickstart Builds a minimal LangChain agent in TypeScript following the official quickstart: a weather tool, createAgent, its own folder. Handy when you want to try LangChain locally. CX Codex +1 5,000installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor