Deepagents Python Quickstart
langchain-ai/langchain-skills
Scaffold a minimal local Deep Agent in Python by following the official quickstart, using provider-native web search instead of Tavily.
Wire AG2 beta's shipped tools into an Agent — both provider-native server-side tools (web search, web fetch, code execution, MCP, image generation, memory) and locally-executed common toolkits…
$ npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ag2ai/build-with-ag2 ag2-use-builtin-tools --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ag2ai/build-with-ag2.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ag2-use-builtin-tools .claude/skills/ag2-use-builtin-tools && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ag2-use-builtin-tools" agent skill from https://github.com/ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-use-builtin-tools into .claude/skills/ag2-use-builtin-tools/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ag2-use-builtin-tools", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-use-builtin-toolsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ag2ai/build-with-ag2 ag2-use-builtin-tools --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ag2ai/build-with-ag2.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/ag2-use-builtin-tools .agents/skills/ag2-use-builtin-tools && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ag2-use-builtin-tools" agent skill from https://github.com/ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-use-builtin-tools into .agents/skills/ag2-use-builtin-tools/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ag2-use-builtin-tools", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ag2ai/build-with-ag2 ag2-use-builtin-tools --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ag2ai/build-with-ag2.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/ag2-use-builtin-tools .cursor/skills/ag2-use-builtin-tools && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ag2-use-builtin-tools" agent skill from https://github.com/ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-use-builtin-tools into .cursor/skills/ag2-use-builtin-tools/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ag2-use-builtin-tools", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ag2ai/build-with-ag2.git --path .agents/skills/ag2-use-builtin-tools--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ag2ai/build-with-ag2 ag2-use-builtin-tools --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ag2ai/build-with-ag2.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/ag2-use-builtin-tools .gemini/skills/ag2-use-builtin-tools && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ag2-use-builtin-tools" agent skill from https://github.com/ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-use-builtin-tools into .gemini/skills/ag2-use-builtin-tools/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ag2-use-builtin-tools", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ag2ai/build-with-ag2 ag2-use-builtin-toolsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ag2ai/build-with-ag2.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/ag2-use-builtin-tools .github/skills/ag2-use-builtin-tools && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ag2-use-builtin-tools" agent skill from https://github.com/ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-use-builtin-tools into .github/skills/ag2-use-builtin-tools/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ag2-use-builtin-tools", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ag2ai/build-with-ag2 ag2-use-builtin-tools --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ag2ai/build-with-ag2.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/ag2-use-builtin-tools .opencode/skills/ag2-use-builtin-tools && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ag2-use-builtin-tools" agent skill from https://github.com/ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-use-builtin-tools into .opencode/skills/ag2-use-builtin-tools/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ag2-use-builtin-tools", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ag2-use-builtin-toolsWire AG2 beta's shipped tools into an Agent — both provider-native server-side tools (web search, web fetch, code execution, MCP, image generation, memory) and locally-executed common toolkits…
Ag2 Use Builtin Tools is an agent skill from ag2ai/build-with-ag2. Wire AG2 beta's shipped tools into an Agent — both provider-native server-side tools (web search, web fetch, code execution, MCP, image generation, memory) and locally-executed common toolkits (filesystem, DuckDuckGo, Exa, Tavily, skills). Use when the user wants capabilities AG2 already ships rather than writing custom Python. For shell commands see ag2-shell-tool; for custom Python tools see ag2-add-custom-tool.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/builtin_tools_matrix.md`).
It sits in Productivity & Automation, covering Web search and Image generation. It works with Python, Model Context Protocol, Tavily and OpenAI. The repository describes itself as: Sample code and application showcases to get you going with AG2 (formally AutoGen). The licence is Apache-2.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 29eeac3. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
EXA_API_KEYTAVILY_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Ag2 Use Builtin Tools loads about 1.3k tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 111 tokens; SKILL.md has 289 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ag2ai/build-with-ag2 at commit 29eeac3, republished under its Apache-2.0 licence (© ag2ai). 289 words, ~1,318 tokens.
.claude/skills/ag2-use-builtin-tools/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Reach for this skill when the user wants to add a capability that AG2 already ships. Two families:
autogen.beta.tools — WebSearchTool, CodeExecutionTool, etc.) — executed server-side by Anthropic / OpenAI / Gemini. No Python implementation on your side.autogen.beta.tools — FilesystemToolkit, DuckDuckSearchTool, ExaToolkit, TavilySearchTool, SkillsToolkit) — regular Python that runs in your process and works with every provider.For shell commands, use ag2-shell-tool (it's important enough to live in its own skill).
For custom Python tools, use ag2-add-custom-tool.
from autogen.beta import Agent
from autogen.beta.config import AnthropicConfig
from autogen.beta.tools import WebSearchTool, UserLocation
agent = Agent(
"researcher",
config=AnthropicConfig(model="claude-sonnet-4-6"),
tools=[
WebSearchTool(
max_uses=5,
user_location=UserLocation(country="US"),
allowed_domains=["github.com", "pypi.org"],
blocked_domains=["pinterest.com"],
),
],
)from autogen.beta.tools import WebFetchTool
tools = [WebFetchTool(max_uses=3, max_content_tokens=50000, citations=True)]from autogen.beta.tools import CodeExecutionTool
agent = Agent("analyst", config=config, tools=[CodeExecutionTool()])from autogen.beta.tools import MCPServerTool
tools = [
MCPServerTool(
server_url="https://mcp.example.com/sse",
server_label="my-tools",
allowed_tools=["search", "summarize"],
),
]from autogen.beta.config import OpenAIResponsesConfig
from autogen.beta.tools import ImageGenerationTool
agent = Agent(
"designer",
config=OpenAIResponsesConfig(model="gpt-4.1"),
tools=[ImageGenerationTool(quality="high", size="1024x1024", output_format="png")],
)
reply = await agent.ask("Generate a logo for a coffee shop.")
images: list[bytes] = reply.imagesfrom autogen.beta.tools import FilesystemToolkit
fs = FilesystemToolkit(base_path="/tmp/workspace")
agent = Agent("worker", config=config, tools=[fs])base_path is enforced — ../../etc/passwd raises PermissionError. Use read_only=True to expose only read_file and find_files. For ephemeral workspaces use tempfile.TemporaryDirectory() rather than hardcoding /tmp.
from autogen.beta.tools import DuckDuckSearchTool
# requires: pip install ag2[ddgs]
tools = [DuckDuckSearchTool(max_results=10, region="us-en", safesearch="moderate")]import os
from autogen.beta.tools import ExaToolkit
# requires: pip install ag2[exa]
tools = [ExaToolkit(api_key=os.environ["EXA_API_KEY"])]Each tool is exposed as a factory method (exa.search(), exa.find_similar(), exa.get_contents(), exa.answer()) so you can pass only what you need with per-call config.
import os
from autogen.beta.tools import TavilySearchTool
# requires: pip install ag2[tavily]
tools = [TavilySearchTool(
api_key=os.environ["TAVILY_API_KEY"],
search_depth="advanced",
include_answer=True,
)]references/builtin_tools_matrix.md.website/docs/beta/tools/builtin_tools.mdx (provider-native), website/docs/beta/tools/common_toolkits.mdx (common toolkits — also covers SkillsToolkit and SkillSearchToolkit).website/docs/beta/tools/toolkits.mdx.WebFetchTool raises with OpenAI; MemoryTool is Anthropic-only; ImageGenerationTool is OpenAI Responses only. Check references/builtin_tools_matrix.md first.version="web_search_20260209" etc. when you need dynamic filtering on Opus 4.6 / Sonnet 4.6.FilesystemToolkit paths are sandboxed — by design. Don't try to bypass the path-traversal guard; choose a wider base_path instead.tools=[fs, exa, my_custom_tool] is fine.DuckDuckSearchTool, ExaToolkit, TavilySearchTool need their ag2[<extra>] install. Without it you get a clear ImportError from the config-fallback layer, not a confusing crash.© ag2ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in .agents/skills/ag2-use-builtin-tools of ag2ai/build-with-ag2.
Open the folder on GitHubat commit 29eeac3
Ag2 Use Builtin Tools next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Ag2 Use Builtin Tools this skillag2ai/build-with-ag2 | 252 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Deepagents Python Quickstartlangchain-ai/langchain-skills | 1.3k | — | ~549 | Automated safety check: Notes | MIT | |
| Mysearchskernelx/MySearch-Proxy | 159 | — | ~1.4k | Automated safety check: Notes | MIT | |
| Mysearchskernelx/MySearch-Proxy | 159 | — | ~3k | Automated safety check: Notes | None | |
| Scrapingbee CLIScrapingBee/scrapingbee-cli | 108 | — | ~3.2k | Automated safety check: Notes | MIT | |
| Web Accessitwanger/PaiCLI-Python | 102 | — | ~183 | Automated safety check: Pass | MIT |
langchain-ai/langchain-skills
Scaffold a minimal local Deep Agent in Python by following the official quickstart, using provider-native web search instead of Tavily.
skernelx/MySearch-Proxy
DEFAULT search skill for OpenClaw. An agent skill from skernelx/MySearch-Proxy.
skernelx/MySearch-Proxy
Install, verify, debug, and use MySearch MCP/Skill. An agent skill from skernelx/MySearch-Proxy.
ScrapingBee/scrapingbee-cli
Fetch and read any web page, search the web, crawl a site, or pull structured data out of pages.
itwanger/PaiCLI-Python
A skill your agent uses for live web research, webpage fetching, login-state browsing, dynamic pages, social sites, and tasks that need current internet evidence.
nanocoai/nanoclaw
Registers Tavily's keyless remote MCP server, search and extract, for selected NanoClaw agent groups by pinning an mcp-remote bridge and running it through an approval-gated config step.
ag2ai/build-with-ag2
Add a custom Python tool to an AG2 beta Agent using the @tool decorator.
ag2ai/build-with-ag2
Intercept the AG2 beta agent loop with BaseMiddleware — wrap full turns (onturn), each LLM call (onllmcall), each tool execution (ontoolexecution), or each human-input request (onhumaninput).
ag2ai/build-with-ag2
Persist agent state across runs, shape what the LLM sees per turn, and cap history to fit a context window.
ag2ai/build-with-ag2
Monitor an AG2 beta agent's stream — log events, detect repeated tool calls, track token spend, build trigger-driven observers, route observer alerts to the model, and halt on FATAL conditions.
ag2ai/build-with-ag2
Build a minimal AG2 beta Agent end to end — pick a model provider, set a prompt, call agent.ask(), then continue the conversation with reply.ask() (multi-turn).
ag2ai/build-with-ag2
Get a typed Python value back from an AG2 beta Agent instead of free text.
Works with
Wire AG2 beta's shipped tools into an Agent — both provider-native server-side tools (web search, web fetch, code execution, MCP, image generation, memory) and locally-executed common toolkits…. Ag2 Use Builtin Tools is an agent skill from ag2ai/build-with-ag2. Wire AG2 beta's shipped tools into an Agent — both provider-native server-side tools (web search, web fetch, code execution, MCP, image generation, memory) and locally-executed common toolkits (filesystem, DuckDuckGo, Exa, Tavily, skills).
Ag2 Use Builtin Tools fits situations like: the user wants capabilities AG2 already ships rather than writing custom Python; tasks that involve Web search; tasks that involve Image generation.
Run `npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a claude-code`. Or copy the skill folder (.agents/skills/ag2-use-builtin-tools in ag2ai/build-with-ag2) into .claude/skills/ag2-use-builtin-tools in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a codex`. Or copy the skill folder (.agents/skills/ag2-use-builtin-tools in ag2ai/build-with-ag2) into .agents/skills/ag2-use-builtin-tools in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ag2ai/build-with-ag2 --skill ag2-use-builtin-tools -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ag2-use-builtin-tools, .gemini/skills/ag2-use-builtin-tools, .github/skills/ag2-use-builtin-tools and .opencode/skills/ag2-use-builtin-tools in your project.
Going by SKILL.md and its folder, Ag2 Use Builtin Tools needs credentials named EXA_API_KEY and TAVILY_API_KEY. Our summary lists: Python 3; A credential in EXA_API_KEY; A credential in TAVILY_API_KEY.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Ag2 Use Builtin Tools is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Ag2 Use Builtin Tools: Deepagents Python Quickstart (langchain-ai/langchain-skills, 1.3k stars), Mysearch (skernelx/MySearch-Proxy, 159 stars), Mysearch (skernelx/MySearch-Proxy, 159 stars) and Scrapingbee CLI (ScrapingBee/scrapingbee-cli, 108 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ag2ai (a GitHub organization) maintains it in ag2ai/build-with-ag2, which has 252 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on September 6, 2026.
Source: ag2ai/build-with-ag2 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.