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.
npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a claude-codeWhat 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
.envand 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.5with 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-code2Manually: put the files in place
~/.claude/skills/deepagents-python-quickstart/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/deepagents-python-quickstart/
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a codex2Manually: put the files in place
.agents/skills/deepagents-python-quickstart/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a cursor2Manually: put the files in place
.cursor/skills/deepagents-python-quickstart/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install langchain-ai/langchain-skills deepagents-python-quickstart2Manually: put the files in place
.github/skills/deepagents-python-quickstart/SKILL.md1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a gemini-cli2Platform CLI
gemini skills install https://github.com/langchain-ai/langchain-skills --path config/skills/deepagents-python-quickstartManually: put the files in place
.devin/skills/deepagents-python-quickstart/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill deepagents-python-quickstart -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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