[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-langchain-deep-agents-core":3,"mdc--z8ma7g-key":34,"related-repo-langchain-deep-agents-core":4577,"related-org-langchain-deep-agents-core":4675},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":32,"mdContent":33},"deep-agents-core","build applications with LangChain Deep Agents","INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format, and configuration options.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"langchain","LangChain","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Flangchain.png","langchain-ai",[13,17,20,21],{"name":14,"slug":15,"type":16},"LLM","llm","tag",{"name":18,"slug":19,"type":16},"Architecture","architecture",{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},"Agents","agents",877,"https:\u002F\u002Fgithub.com\u002Flangchain-ai\u002Flangchain-skills","2026-04-06T18:26:24.822592",null,77,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":27},[],"https:\u002F\u002Fgithub.com\u002Flangchain-ai\u002Flangchain-skills\u002Ftree\u002FHEAD\u002Fconfig\u002Fskills\u002Fdeep-agents-core","---\nname: deep-agents-core\ndescription: \"INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format, and configuration options.\"\n---\n\n\u003Coverview>\nDeep Agents are an opinionated agent framework built on LangChain\u002FLangGraph with built-in middleware:\n\n- **Task Planning**: TodoListMiddleware for breaking down complex tasks\n- **Context Management**: Filesystem tools with pluggable backends\n- **Task Delegation**: SubAgent middleware for spawning specialized agents\n- **Long-term Memory**: Persistent storage across threads via Store\n- **Human-in-the-loop**: Approval workflows for sensitive operations\n- **Skills**: On-demand loading of specialized capabilities\n\nThe agent harness provides these capabilities automatically - you configure, not implement.\n\u003C\u002Foverview>\n\n\u003Cwhen-to-use>\n\n| Use Deep Agents When | Use LangChain's create_agent When |\n|---------------------|-----------------------------------|\n| Multi-step tasks requiring planning | Simple, single-purpose tasks |\n| Large context requiring file management | Context fits in a single prompt |\n| Need for specialized subagents | Single agent is sufficient |\n| Persistent memory across sessions | Ephemeral, single-session work |\n\n\u003C\u002Fwhen-to-use>\n\n\u003Cmiddleware-selection>\n\n| If you need to... | Middleware | Notes |\n|------------------|------------|-------|\n| Track complex tasks | TodoListMiddleware | Default enabled |\n| Manage file context | FilesystemMiddleware | Configure backend |\n| Delegate work | SubAgentMiddleware | Add custom subagents |\n| Add human approval | HumanInTheLoopMiddleware | Requires checkpointer |\n| Load skills | SkillsMiddleware | Provide skill directories |\n| Access memory | MemoryMiddleware | Requires Store instance |\n\n\u003C\u002Fmiddleware-selection>\n\n\u003Cex-basic-agent>\n\u003Cpython>\nCreate a basic deep agent with a custom tool and invoke it with a user message.\n\n```python\nfrom deepagents import create_deep_agent\nfrom langchain.tools import tool\n\n@tool\ndef get_weather(city: str) -> str:\n    \"\"\"Get the weather for a given city.\"\"\"\n    return f\"It is always sunny in {city}\"\n\nagent = create_deep_agent(\n    model=\"claude-sonnet-4-5-20250929\",\n    tools=[get_weather],\n    system_prompt=\"You are a helpful assistant\"\n)\n\nconfig = {\"configurable\": {\"thread_id\": \"user-123\"}}\nresult = agent.invoke({\n    \"messages\": [{\"role\": \"user\", \"content\": \"What's the weather in Tokyo?\"}]\n}, config=config)\n```\n\u003C\u002Fpython>\n\u003Ctypescript>\nCreate a basic deep agent with a custom tool and invoke it with a user message.\n\n```typescript\nimport { createDeepAgent } from \"deepagents\";\nimport { tool } from \"@langchain\u002Fcore\u002Ftools\";\nimport { z } from \"zod\";\n\nconst getWeather = tool(\n  async ({ city }) => `It is always sunny in ${city}`,\n  { name: \"get_weather\", description: \"Get weather for a city\", schema: z.object({ city: z.string() }) }\n);\n\nconst agent = await createDeepAgent({\n  model: \"claude-sonnet-4-5-20250929\",\n  tools: [getWeather],\n  systemPrompt: \"You are a helpful assistant\"\n});\n\nconst config = { configurable: { thread_id: \"user-123\" } };\nconst result = await agent.invoke({\n  messages: [{ role: \"user\", content: \"What's the weather in Tokyo?\" }]\n}, config);\n```\n\u003C\u002Ftypescript>\n\u003C\u002Fex-basic-agent>\n\n\u003Cex-full-configuration>\n\u003Cpython>\nConfigure a deep agent with all available options including subagents, skills, and persistence.\n\n```python\nfrom deepagents import create_deep_agent\nfrom deepagents.backends import FilesystemBackend\nfrom langgraph.checkpoint.memory import MemorySaver\nfrom langgraph.store.memory import InMemoryStore\n\nagent = create_deep_agent(\n    name=\"my-assistant\",\n    model=\"claude-sonnet-4-5-20250929\",\n    tools=[custom_tool1, custom_tool2],\n    system_prompt=\"Custom instructions\",\n    subagents=[research_agent, code_agent],\n    backend=FilesystemBackend(root_dir=\".\", virtual_mode=True),\n    interrupt_on={\"write_file\": True},\n    skills=[\".\u002Fskills\u002F\"],\n    checkpointer=MemorySaver(),\n    store=InMemoryStore()\n)\n```\n\u003C\u002Fpython>\n\u003Ctypescript>\nConfigure a deep agent with all available options including subagents, skills, and persistence.\n\n```typescript\nimport { createDeepAgent, FilesystemBackend } from \"deepagents\";\nimport { MemorySaver, InMemoryStore } from \"@langchain\u002Flanggraph\";\n\nconst agent = await createDeepAgent({\n  name: \"my-assistant\",\n  model: \"claude-sonnet-4-5-20250929\",\n  tools: [customTool1, customTool2],\n  systemPrompt: \"Custom instructions\",\n  subagents: [researchAgent, codeAgent],\n  backend: new FilesystemBackend({ rootDir: \".\", virtualMode: true }),\n  interruptOn: { write_file: true },\n  skills: [\".\u002Fskills\u002F\"],\n  checkpointer: new MemorySaver(),\n  store: new InMemoryStore()\n});\n```\n\u003C\u002Ftypescript>\n\u003C\u002Fex-full-configuration>\n\n\u003Cbuilt-in-tools>\nEvery deep agent has access to:\n\n1. **Planning**: `write_todos` - Track multi-step tasks\n2. **Filesystem**: `ls`, `read_file`, `write_file`, `edit_file`, `glob`, `grep`\n3. **Delegation**: `task` - Spawn specialized subagents\n\u003C\u002Fbuilt-in-tools>\n\n---\n\n## SKILL.md Format\n\n\u003Cskill-md-format>\nSkills use **progressive disclosure** - agents only load content when relevant.\n\n### Directory Structure\n\n```\nskills\u002F\n└── my-skill\u002F\n    ├── SKILL.md        # Required: main skill file\n    ├── examples.py     # Optional: supporting files\n    └── templates\u002F      # Optional: templates\n```\n\n### SKILL.md Format\n\n```markdown\n---\nname: my-skill\ndescription: Clear, specific description of what this skill does\n---\n\n# Skill Name\n\n## Overview\nBrief explanation of the skill's purpose.\n\n## When to Use\nConditions when this skill applies.\n\n## Instructions\nStep-by-step guidance for the agent.\n```\n\u003C\u002Fskill-md-format>\n\n\u003Cskills-vs-memory>\n\n| Skills | Memory (AGENTS.md) |\n|--------|-------------------|\n| On-demand loading | Always loaded at startup |\n| Task-specific instructions | General preferences |\n| Large documentation | Compact context |\n| SKILL.md in directories | Single AGENTS.md file |\n\n\u003C\u002Fskills-vs-memory>\n\n\u003Cex-skills-with-filesystem-backend>\n\u003Cpython>\nSet up an agent with skills directory and filesystem backend for on-demand skill loading.\n\n```python\nfrom deepagents import create_deep_agent\nfrom deepagents.backends import FilesystemBackend\nfrom langgraph.checkpoint.memory import MemorySaver\n\nagent = create_deep_agent(\n    backend=FilesystemBackend(root_dir=\".\", virtual_mode=True),\n    skills=[\".\u002Fskills\u002F\"],\n    checkpointer=MemorySaver()\n)\n\nresult = agent.invoke({\n    \"messages\": [{\"role\": \"user\", \"content\": \"Use the python-testing skill\"}]\n}, config={\"configurable\": {\"thread_id\": \"session-1\"}})\n```\n\u003C\u002Fpython>\n\u003Ctypescript>\nSet up an agent with skills directory and filesystem backend for on-demand skill loading.\n\n```typescript\nimport { createDeepAgent, FilesystemBackend } from \"deepagents\";\nimport { MemorySaver } from \"@langchain\u002Flanggraph\";\n\nconst agent = await createDeepAgent({\n  backend: new FilesystemBackend({ rootDir: \".\", virtualMode: true }),\n  skills: [\".\u002Fskills\u002F\"],\n  checkpointer: new MemorySaver()\n});\n\nconst result = await agent.invoke({\n  messages: [{ role: \"user\", content: \"Use the python-testing skill\" }]\n}, { configurable: { thread_id: \"session-1\" } });\n```\n\u003C\u002Ftypescript>\n\u003C\u002Fex-skills-with-filesystem-backend>\n\n\u003Cex-skills-with-store-backend>\n\u003Cpython>\nLoad skill content into a Store backend for environments without filesystem access.\n\n```python\nfrom deepagents import create_deep_agent\nfrom deepagents.backends import StoreBackend\nfrom deepagents.backends.utils import create_file_data\nfrom langgraph.store.memory import InMemoryStore\n\nstore = InMemoryStore()\n\n# Load skill content into store\nskill_content = \"\"\"---\nname: python-testing\ndescription: Best practices for Python testing with pytest\n---\n# Python Testing Skill\n...\"\"\"\n\nstore.put(\n    namespace=(\"filesystem\",),\n    key=\"\u002Fskills\u002Fpython-testing\u002FSKILL.md\",\n    value=create_file_data(skill_content)\n)\n\nagent = create_deep_agent(\n    backend=lambda rt: StoreBackend(rt),\n    store=store,\n    skills=[\"\u002Fskills\u002F\"]\n)\n```\n\u003C\u002Fpython>\n\u003C\u002Fex-skills-with-store-backend>\n\n\u003Cboundaries>\n\n### What Agents CAN Configure\n\n- Model selection and parameters\n- Additional custom tools\n- System prompt customization\n- Backend storage strategy\n- Which tools require approval\n- Custom subagents with specialized tools\n\n### What Agents CANNOT Configure\n\n- Core middleware removal (TodoList, Filesystem, SubAgent always present)\n- The write_todos, task, or filesystem tool names\n- The SKILL.md frontmatter format\n\u003C\u002Fboundaries>\n\n\u003Cfix-checkpointer-for-interrupts>\n\u003Cpython>\nInterrupts require a checkpointer.\n\n```python\n# WRONG\nagent = create_deep_agent(interrupt_on={\"write_file\": True})\n\n# CORRECT\nagent = create_deep_agent(interrupt_on={\"write_file\": True}, checkpointer=MemorySaver())\n```\n\u003C\u002Fpython>\n\u003Ctypescript>\nInterrupts require a checkpointer.\n\n```typescript\n\u002F\u002F WRONG\nconst agent = await createDeepAgent({ interruptOn: { write_file: true } });\n\n\u002F\u002F CORRECT\nconst agent = await createDeepAgent({ interruptOn: { write_file: true }, checkpointer: new MemorySaver() });\n```\n\u003C\u002Ftypescript>\n\u003C\u002Ffix-checkpointer-for-interrupts>\n\n\u003Cfix-store-for-memory>\n\u003Cpython>\nStoreBackend requires a Store instance for persistent memory across threads.\n\n```python\n# WRONG\nagent = create_deep_agent(backend=lambda rt: StoreBackend(rt))\n\n# CORRECT\nagent = create_deep_agent(backend=lambda rt: StoreBackend(rt), store=InMemoryStore())\n```\n\u003C\u002Fpython>\n\u003Ctypescript>\nStoreBackend requires a Store instance for persistent memory across threads.\n\n```typescript\n\u002F\u002F WRONG\nconst agent = await createDeepAgent({ backend: (config) => new StoreBackend(config) });\n\n\u002F\u002F CORRECT\nconst agent = await createDeepAgent({ backend: (config) => new StoreBackend(config), store: new InMemoryStore() });\n```\n\u003C\u002Ftypescript>\n\u003C\u002Ffix-store-for-memory>\n\n\u003Cfix-thread-id-for-conversations>\n\u003Cpython>\nUse consistent thread_id to maintain conversation context across invocations.\n\n```python\n# WRONG: Each invocation is isolated\nagent.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"Hi\"}]})\nagent.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"What did I say?\"}]})\n\n# CORRECT\nconfig = {\"configurable\": {\"thread_id\": \"user-123\"}}\nagent.invoke({\"messages\": [...]}, config=config)\nagent.invoke({\"messages\": [...]}, config=config)\n```\n\u003C\u002Fpython>\n\u003Ctypescript>\nUse consistent thread_id to maintain conversation context across invocations.\n\n```typescript\n\u002F\u002F WRONG: Each invocation is isolated\nawait agent.invoke({ messages: [{ role: \"user\", content: \"Hi\" }] });\nawait agent.invoke({ messages: [{ role: \"user\", content: \"What did I say?\" }] });\n\n\u002F\u002F CORRECT\nconst config = { configurable: { thread_id: \"user-123\" } };\nawait agent.invoke({ messages: [...] }, config);\nawait agent.invoke({ messages: [...] }, config);\n```\n\u003C\u002Ftypescript>\n\u003C\u002Ffix-thread-id-for-conversations>\n\n\u003Cfix-frontmatter-required>\n\n```markdown\n# WRONG: Missing frontmatter in SKILL.md\n# My Skill\nThis is my skill...\n\n# CORRECT: Include YAML frontmatter\n---\nname: my-skill\ndescription: Python testing best practices with pytest fixtures and mocking\n---\n# My Skill\nThis is my skill...\n```\n\u003C\u002Ffix-frontmatter-required>\n\n\u003Cfix-backend-for-skills>\n\u003Cpython>\nSkills require a proper backend to load from the filesystem.\n\n```python\n# WRONG: Skills won't load without proper backend\nagent = create_deep_agent(skills=[\".\u002Fskills\u002F\"])\n\n# CORRECT: Use FilesystemBackend for local skills\nagent = create_deep_agent(\n    backend=FilesystemBackend(root_dir=\".\", virtual_mode=True),\n    skills=[\".\u002Fskills\u002F\"]\n)\n```\n\u003C\u002Fpython>\n\u003C\u002Ffix-backend-for-skills>\n\n\u003Cfix-specific-skill-descriptions>\nUse specific descriptions to help agents decide when to use a skill.\n\n```markdown\n# WRONG: Vague description\n---\nname: helper\ndescription: Helpful skill\n---\n\n# CORRECT: Specific description\n---\nname: python-testing\ndescription: Python testing best practices with pytest fixtures, mocking, and async patterns\n---\n```\n\u003C\u002Ffix-specific-skill-descriptions>\n\n\u003Cfix-subagent-skills>\n\u003Cpython>\nSkills are not inherited by subagents - provide them explicitly.\n\n```python\n# WRONG: Custom subagents don't inherit skills\nagent = create_deep_agent(\n    skills=[\"\u002Fmain-skills\u002F\"],\n    subagents=[{\"name\": \"helper\", ...}]  # No skills\n)\n\n# CORRECT: Provide skills explicitly\nagent = create_deep_agent(\n    skills=[\"\u002Fmain-skills\u002F\"],\n    subagents=[{\"name\": \"helper\", \"skills\": [\"\u002Fhelper-skills\u002F\"], ...}]\n)\n```\n\u003C\u002Fpython>\n\u003C\u002Ffix-subagent-skills>\n",{"data":35,"body":36},{"name":4,"description":6},{"type":37,"children":38},"root",[39,4571],{"type":40,"tag":41,"props":42,"children":43},"element","overview",{},[44,47,113,119,203,342,1258,1917],{"type":45,"value":46},"text","\nDeep Agents are an opinionated agent framework built on LangChain\u002FLangGraph with built-in middleware:\n",{"type":40,"tag":48,"props":49,"children":50},"ul",{},[51,63,73,83,93,103],{"type":40,"tag":52,"props":53,"children":54},"li",{},[55,61],{"type":40,"tag":56,"props":57,"children":58},"strong",{},[59],{"type":45,"value":60},"Task Planning",{"type":45,"value":62},": TodoListMiddleware for breaking down complex tasks",{"type":40,"tag":52,"props":64,"children":65},{},[66,71],{"type":40,"tag":56,"props":67,"children":68},{},[69],{"type":45,"value":70},"Context Management",{"type":45,"value":72},": Filesystem tools with pluggable backends",{"type":40,"tag":52,"props":74,"children":75},{},[76,81],{"type":40,"tag":56,"props":77,"children":78},{},[79],{"type":45,"value":80},"Task Delegation",{"type":45,"value":82},": SubAgent middleware for spawning specialized agents",{"type":40,"tag":52,"props":84,"children":85},{},[86,91],{"type":40,"tag":56,"props":87,"children":88},{},[89],{"type":45,"value":90},"Long-term Memory",{"type":45,"value":92},": Persistent storage across threads via Store",{"type":40,"tag":52,"props":94,"children":95},{},[96,101],{"type":40,"tag":56,"props":97,"children":98},{},[99],{"type":45,"value":100},"Human-in-the-loop",{"type":45,"value":102},": Approval workflows for sensitive operations",{"type":40,"tag":52,"props":104,"children":105},{},[106,111],{"type":40,"tag":56,"props":107,"children":108},{},[109],{"type":45,"value":110},"Skills",{"type":45,"value":112},": On-demand loading of specialized capabilities",{"type":40,"tag":114,"props":115,"children":116},"p",{},[117],{"type":45,"value":118},"The agent harness provides these capabilities automatically - you configure, not implement.\n",{"type":40,"tag":120,"props":121,"children":122},"when-to-use",{},[123],{"type":40,"tag":124,"props":125,"children":126},"table",{},[127,146],{"type":40,"tag":128,"props":129,"children":130},"thead",{},[131],{"type":40,"tag":132,"props":133,"children":134},"tr",{},[135,141],{"type":40,"tag":136,"props":137,"children":138},"th",{},[139],{"type":45,"value":140},"Use Deep Agents When",{"type":40,"tag":136,"props":142,"children":143},{},[144],{"type":45,"value":145},"Use LangChain's create_agent When",{"type":40,"tag":147,"props":148,"children":149},"tbody",{},[150,164,177,190],{"type":40,"tag":132,"props":151,"children":152},{},[153,159],{"type":40,"tag":154,"props":155,"children":156},"td",{},[157],{"type":45,"value":158},"Multi-step tasks requiring planning",{"type":40,"tag":154,"props":160,"children":161},{},[162],{"type":45,"value":163},"Simple, single-purpose tasks",{"type":40,"tag":132,"props":165,"children":166},{},[167,172],{"type":40,"tag":154,"props":168,"children":169},{},[170],{"type":45,"value":171},"Large context requiring file management",{"type":40,"tag":154,"props":173,"children":174},{},[175],{"type":45,"value":176},"Context fits in a single prompt",{"type":40,"tag":132,"props":178,"children":179},{},[180,185],{"type":40,"tag":154,"props":181,"children":182},{},[183],{"type":45,"value":184},"Need for specialized subagents",{"type":40,"tag":154,"props":186,"children":187},{},[188],{"type":45,"value":189},"Single agent is sufficient",{"type":40,"tag":132,"props":191,"children":192},{},[193,198],{"type":40,"tag":154,"props":194,"children":195},{},[196],{"type":45,"value":197},"Persistent memory across sessions",{"type":40,"tag":154,"props":199,"children":200},{},[201],{"type":45,"value":202},"Ephemeral, single-session work",{"type":40,"tag":204,"props":205,"children":206},"middleware-selection",{},[207],{"type":40,"tag":124,"props":208,"children":209},{},[210,231],{"type":40,"tag":128,"props":211,"children":212},{},[213],{"type":40,"tag":132,"props":214,"children":215},{},[216,221,226],{"type":40,"tag":136,"props":217,"children":218},{},[219],{"type":45,"value":220},"If you need to...",{"type":40,"tag":136,"props":222,"children":223},{},[224],{"type":45,"value":225},"Middleware",{"type":40,"tag":136,"props":227,"children":228},{},[229],{"type":45,"value":230},"Notes",{"type":40,"tag":147,"props":232,"children":233},{},[234,252,270,288,306,324],{"type":40,"tag":132,"props":235,"children":236},{},[237,242,247],{"type":40,"tag":154,"props":238,"children":239},{},[240],{"type":45,"value":241},"Track complex tasks",{"type":40,"tag":154,"props":243,"children":244},{},[245],{"type":45,"value":246},"TodoListMiddleware",{"type":40,"tag":154,"props":248,"children":249},{},[250],{"type":45,"value":251},"Default enabled",{"type":40,"tag":132,"props":253,"children":254},{},[255,260,265],{"type":40,"tag":154,"props":256,"children":257},{},[258],{"type":45,"value":259},"Manage file context",{"type":40,"tag":154,"props":261,"children":262},{},[263],{"type":45,"value":264},"FilesystemMiddleware",{"type":40,"tag":154,"props":266,"children":267},{},[268],{"type":45,"value":269},"Configure backend",{"type":40,"tag":132,"props":271,"children":272},{},[273,278,283],{"type":40,"tag":154,"props":274,"children":275},{},[276],{"type":45,"value":277},"Delegate work",{"type":40,"tag":154,"props":279,"children":280},{},[281],{"type":45,"value":282},"SubAgentMiddleware",{"type":40,"tag":154,"props":284,"children":285},{},[286],{"type":45,"value":287},"Add custom subagents",{"type":40,"tag":132,"props":289,"children":290},{},[291,296,301],{"type":40,"tag":154,"props":292,"children":293},{},[294],{"type":45,"value":295},"Add human approval",{"type":40,"tag":154,"props":297,"children":298},{},[299],{"type":45,"value":300},"HumanInTheLoopMiddleware",{"type":40,"tag":154,"props":302,"children":303},{},[304],{"type":45,"value":305},"Requires checkpointer",{"type":40,"tag":132,"props":307,"children":308},{},[309,314,319],{"type":40,"tag":154,"props":310,"children":311},{},[312],{"type":45,"value":313},"Load skills",{"type":40,"tag":154,"props":315,"children":316},{},[317],{"type":45,"value":318},"SkillsMiddleware",{"type":40,"tag":154,"props":320,"children":321},{},[322],{"type":45,"value":323},"Provide skill directories",{"type":40,"tag":132,"props":325,"children":326},{},[327,332,337],{"type":40,"tag":154,"props":328,"children":329},{},[330],{"type":45,"value":331},"Access memory",{"type":40,"tag":154,"props":333,"children":334},{},[335],{"type":45,"value":336},"MemoryMiddleware",{"type":40,"tag":154,"props":338,"children":339},{},[340],{"type":45,"value":341},"Requires Store instance",{"type":40,"tag":343,"props":344,"children":345},"ex-basic-agent",{},[346,526],{"type":40,"tag":347,"props":348,"children":349},"python",{},[350,352],{"type":45,"value":351},"\nCreate a basic deep agent with a custom tool and invoke it with a user message.\n",{"type":40,"tag":353,"props":354,"children":358},"pre",{"className":355,"code":356,"language":347,"meta":357,"style":357},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from deepagents import create_deep_agent\nfrom langchain.tools import tool\n\n@tool\ndef get_weather(city: str) -> str:\n    \"\"\"Get the weather for a given city.\"\"\"\n    return f\"It is always sunny in {city}\"\n\nagent = create_deep_agent(\n    model=\"claude-sonnet-4-5-20250929\",\n    tools=[get_weather],\n    system_prompt=\"You are a helpful assistant\"\n)\n\nconfig = {\"configurable\": {\"thread_id\": \"user-123\"}}\nresult = agent.invoke({\n    \"messages\": [{\"role\": \"user\", \"content\": \"What's the weather in Tokyo?\"}]\n}, config=config)\n","",[359],{"type":40,"tag":360,"props":361,"children":362},"code",{"__ignoreMap":357},[363,374,383,393,402,411,420,429,437,446,455,464,473,482,490,499,508,517],{"type":40,"tag":364,"props":365,"children":368},"span",{"class":366,"line":367},"line",1,[369],{"type":40,"tag":364,"props":370,"children":371},{},[372],{"type":45,"value":373},"from deepagents import create_deep_agent\n",{"type":40,"tag":364,"props":375,"children":377},{"class":366,"line":376},2,[378],{"type":40,"tag":364,"props":379,"children":380},{},[381],{"type":45,"value":382},"from langchain.tools import tool\n",{"type":40,"tag":364,"props":384,"children":386},{"class":366,"line":385},3,[387],{"type":40,"tag":364,"props":388,"children":390},{"emptyLinePlaceholder":389},true,[391],{"type":45,"value":392},"\n",{"type":40,"tag":364,"props":394,"children":396},{"class":366,"line":395},4,[397],{"type":40,"tag":364,"props":398,"children":399},{},[400],{"type":45,"value":401},"@tool\n",{"type":40,"tag":364,"props":403,"children":405},{"class":366,"line":404},5,[406],{"type":40,"tag":364,"props":407,"children":408},{},[409],{"type":45,"value":410},"def get_weather(city: str) -> str:\n",{"type":40,"tag":364,"props":412,"children":414},{"class":366,"line":413},6,[415],{"type":40,"tag":364,"props":416,"children":417},{},[418],{"type":45,"value":419},"    \"\"\"Get the weather for a given city.\"\"\"\n",{"type":40,"tag":364,"props":421,"children":423},{"class":366,"line":422},7,[424],{"type":40,"tag":364,"props":425,"children":426},{},[427],{"type":45,"value":428},"    return f\"It is always sunny in {city}\"\n",{"type":40,"tag":364,"props":430,"children":432},{"class":366,"line":431},8,[433],{"type":40,"tag":364,"props":434,"children":435},{"emptyLinePlaceholder":389},[436],{"type":45,"value":392},{"type":40,"tag":364,"props":438,"children":440},{"class":366,"line":439},9,[441],{"type":40,"tag":364,"props":442,"children":443},{},[444],{"type":45,"value":445},"agent = create_deep_agent(\n",{"type":40,"tag":364,"props":447,"children":449},{"class":366,"line":448},10,[450],{"type":40,"tag":364,"props":451,"children":452},{},[453],{"type":45,"value":454},"    model=\"claude-sonnet-4-5-20250929\",\n",{"type":40,"tag":364,"props":456,"children":458},{"class":366,"line":457},11,[459],{"type":40,"tag":364,"props":460,"children":461},{},[462],{"type":45,"value":463},"    tools=[get_weather],\n",{"type":40,"tag":364,"props":465,"children":467},{"class":366,"line":466},12,[468],{"type":40,"tag":364,"props":469,"children":470},{},[471],{"type":45,"value":472},"    system_prompt=\"You are a helpful assistant\"\n",{"type":40,"tag":364,"props":474,"children":476},{"class":366,"line":475},13,[477],{"type":40,"tag":364,"props":478,"children":479},{},[480],{"type":45,"value":481},")\n",{"type":40,"tag":364,"props":483,"children":485},{"class":366,"line":484},14,[486],{"type":40,"tag":364,"props":487,"children":488},{"emptyLinePlaceholder":389},[489],{"type":45,"value":392},{"type":40,"tag":364,"props":491,"children":493},{"class":366,"line":492},15,[494],{"type":40,"tag":364,"props":495,"children":496},{},[497],{"type":45,"value":498},"config = {\"configurable\": {\"thread_id\": \"user-123\"}}\n",{"type":40,"tag":364,"props":500,"children":502},{"class":366,"line":501},16,[503],{"type":40,"tag":364,"props":504,"children":505},{},[506],{"type":45,"value":507},"result = agent.invoke({\n",{"type":40,"tag":364,"props":509,"children":511},{"class":366,"line":510},17,[512],{"type":40,"tag":364,"props":513,"children":514},{},[515],{"type":45,"value":516},"    \"messages\": [{\"role\": \"user\", \"content\": \"What's the weather in Tokyo?\"}]\n",{"type":40,"tag":364,"props":518,"children":520},{"class":366,"line":519},18,[521],{"type":40,"tag":364,"props":522,"children":523},{},[524],{"type":45,"value":525},"}, config=config)\n",{"type":40,"tag":527,"props":528,"children":529},"typescript",{},[530,531],{"type":45,"value":351},{"type":40,"tag":353,"props":532,"children":535},{"className":533,"code":534,"language":527,"meta":357,"style":357},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createDeepAgent } from \"deepagents\";\nimport { tool } from \"@langchain\u002Fcore\u002Ftools\";\nimport { z } from \"zod\";\n\nconst getWeather = tool(\n  async ({ city }) => `It is always sunny in ${city}`,\n  { name: \"get_weather\", description: \"Get weather for a city\", schema: z.object({ city: z.string() }) }\n);\n\nconst agent = await createDeepAgent({\n  model: \"claude-sonnet-4-5-20250929\",\n  tools: [getWeather],\n  systemPrompt: \"You are a helpful assistant\"\n});\n\nconst config = { configurable: { thread_id: \"user-123\" } };\nconst result = await agent.invoke({\n  messages: [{ role: \"user\", content: \"What's the weather in Tokyo?\" }]\n}, config);\n",[536],{"type":40,"tag":360,"props":537,"children":538},{"__ignoreMap":357},[539,591,632,673,680,709,768,905,917,924,958,987,1008,1034,1049,1056,1120,1162,1240],{"type":40,"tag":364,"props":540,"children":541},{"class":366,"line":367},[542,548,554,560,565,570,575,581,586],{"type":40,"tag":364,"props":543,"children":545},{"style":544},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[546],{"type":45,"value":547},"import",{"type":40,"tag":364,"props":549,"children":551},{"style":550},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[552],{"type":45,"value":553}," {",{"type":40,"tag":364,"props":555,"children":557},{"style":556},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[558],{"type":45,"value":559}," createDeepAgent",{"type":40,"tag":364,"props":561,"children":562},{"style":550},[563],{"type":45,"value":564}," }",{"type":40,"tag":364,"props":566,"children":567},{"style":544},[568],{"type":45,"value":569}," from",{"type":40,"tag":364,"props":571,"children":572},{"style":550},[573],{"type":45,"value":574}," \"",{"type":40,"tag":364,"props":576,"children":578},{"style":577},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[579],{"type":45,"value":580},"deepagents",{"type":40,"tag":364,"props":582,"children":583},{"style":550},[584],{"type":45,"value":585},"\"",{"type":40,"tag":364,"props":587,"children":588},{"style":550},[589],{"type":45,"value":590},";\n",{"type":40,"tag":364,"props":592,"children":593},{"class":366,"line":376},[594,598,602,607,611,615,619,624,628],{"type":40,"tag":364,"props":595,"children":596},{"style":544},[597],{"type":45,"value":547},{"type":40,"tag":364,"props":599,"children":600},{"style":550},[601],{"type":45,"value":553},{"type":40,"tag":364,"props":603,"children":604},{"style":556},[605],{"type":45,"value":606}," tool",{"type":40,"tag":364,"props":608,"children":609},{"style":550},[610],{"type":45,"value":564},{"type":40,"tag":364,"props":612,"children":613},{"style":544},[614],{"type":45,"value":569},{"type":40,"tag":364,"props":616,"children":617},{"style":550},[618],{"type":45,"value":574},{"type":40,"tag":364,"props":620,"children":621},{"style":577},[622],{"type":45,"value":623},"@langchain\u002Fcore\u002Ftools",{"type":40,"tag":364,"props":625,"children":626},{"style":550},[627],{"type":45,"value":585},{"type":40,"tag":364,"props":629,"children":630},{"style":550},[631],{"type":45,"value":590},{"type":40,"tag":364,"props":633,"children":634},{"class":366,"line":385},[635,639,643,648,652,656,660,665,669],{"type":40,"tag":364,"props":636,"children":637},{"style":544},[638],{"type":45,"value":547},{"type":40,"tag":364,"props":640,"children":641},{"style":550},[642],{"type":45,"value":553},{"type":40,"tag":364,"props":644,"children":645},{"style":556},[646],{"type":45,"value":647}," z",{"type":40,"tag":364,"props":649,"children":650},{"style":550},[651],{"type":45,"value":564},{"type":40,"tag":364,"props":653,"children":654},{"style":544},[655],{"type":45,"value":569},{"type":40,"tag":364,"props":657,"children":658},{"style":550},[659],{"type":45,"value":574},{"type":40,"tag":364,"props":661,"children":662},{"style":577},[663],{"type":45,"value":664},"zod",{"type":40,"tag":364,"props":666,"children":667},{"style":550},[668],{"type":45,"value":585},{"type":40,"tag":364,"props":670,"children":671},{"style":550},[672],{"type":45,"value":590},{"type":40,"tag":364,"props":674,"children":675},{"class":366,"line":395},[676],{"type":40,"tag":364,"props":677,"children":678},{"emptyLinePlaceholder":389},[679],{"type":45,"value":392},{"type":40,"tag":364,"props":681,"children":682},{"class":366,"line":404},[683,689,694,699,704],{"type":40,"tag":364,"props":684,"children":686},{"style":685},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[687],{"type":45,"value":688},"const",{"type":40,"tag":364,"props":690,"children":691},{"style":556},[692],{"type":45,"value":693}," getWeather ",{"type":40,"tag":364,"props":695,"children":696},{"style":550},[697],{"type":45,"value":698},"=",{"type":40,"tag":364,"props":700,"children":702},{"style":701},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[703],{"type":45,"value":606},{"type":40,"tag":364,"props":705,"children":706},{"style":556},[707],{"type":45,"value":708},"(\n",{"type":40,"tag":364,"props":710,"children":711},{"class":366,"line":413},[712,717,722,728,733,738,743,748,753,758,763],{"type":40,"tag":364,"props":713,"children":714},{"style":685},[715],{"type":45,"value":716},"  async",{"type":40,"tag":364,"props":718,"children":719},{"style":550},[720],{"type":45,"value":721}," ({",{"type":40,"tag":364,"props":723,"children":725},{"style":724},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[726],{"type":45,"value":727}," city",{"type":40,"tag":364,"props":729,"children":730},{"style":550},[731],{"type":45,"value":732}," })",{"type":40,"tag":364,"props":734,"children":735},{"style":685},[736],{"type":45,"value":737}," =>",{"type":40,"tag":364,"props":739,"children":740},{"style":550},[741],{"type":45,"value":742}," `",{"type":40,"tag":364,"props":744,"children":745},{"style":577},[746],{"type":45,"value":747},"It is always sunny in ",{"type":40,"tag":364,"props":749,"children":750},{"style":550},[751],{"type":45,"value":752},"${",{"type":40,"tag":364,"props":754,"children":755},{"style":556},[756],{"type":45,"value":757},"city",{"type":40,"tag":364,"props":759,"children":760},{"style":550},[761],{"type":45,"value":762},"}`",{"type":40,"tag":364,"props":764,"children":765},{"style":550},[766],{"type":45,"value":767},",\n",{"type":40,"tag":364,"props":769,"children":770},{"class":366,"line":422},[771,776,782,787,791,796,800,805,810,814,818,823,827,831,836,840,844,849,854,859,864,868,872,876,880,885,890,895,900],{"type":40,"tag":364,"props":772,"children":773},{"style":550},[774],{"type":45,"value":775},"  {",{"type":40,"tag":364,"props":777,"children":779},{"style":778},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[780],{"type":45,"value":781}," name",{"type":40,"tag":364,"props":783,"children":784},{"style":550},[785],{"type":45,"value":786},":",{"type":40,"tag":364,"props":788,"children":789},{"style":550},[790],{"type":45,"value":574},{"type":40,"tag":364,"props":792,"children":793},{"style":577},[794],{"type":45,"value":795},"get_weather",{"type":40,"tag":364,"props":797,"children":798},{"style":550},[799],{"type":45,"value":585},{"type":40,"tag":364,"props":801,"children":802},{"style":550},[803],{"type":45,"value":804},",",{"type":40,"tag":364,"props":806,"children":807},{"style":778},[808],{"type":45,"value":809}," description",{"type":40,"tag":364,"props":811,"children":812},{"style":550},[813],{"type":45,"value":786},{"type":40,"tag":364,"props":815,"children":816},{"style":550},[817],{"type":45,"value":574},{"type":40,"tag":364,"props":819,"children":820},{"style":577},[821],{"type":45,"value":822},"Get weather for a city",{"type":40,"tag":364,"props":824,"children":825},{"style":550},[826],{"type":45,"value":585},{"type":40,"tag":364,"props":828,"children":829},{"style":550},[830],{"type":45,"value":804},{"type":40,"tag":364,"props":832,"children":833},{"style":778},[834],{"type":45,"value":835}," schema",{"type":40,"tag":364,"props":837,"children":838},{"style":550},[839],{"type":45,"value":786},{"type":40,"tag":364,"props":841,"children":842},{"style":556},[843],{"type":45,"value":647},{"type":40,"tag":364,"props":845,"children":846},{"style":550},[847],{"type":45,"value":848},".",{"type":40,"tag":364,"props":850,"children":851},{"style":701},[852],{"type":45,"value":853},"object",{"type":40,"tag":364,"props":855,"children":856},{"style":556},[857],{"type":45,"value":858},"(",{"type":40,"tag":364,"props":860,"children":861},{"style":550},[862],{"type":45,"value":863},"{",{"type":40,"tag":364,"props":865,"children":866},{"style":778},[867],{"type":45,"value":727},{"type":40,"tag":364,"props":869,"children":870},{"style":550},[871],{"type":45,"value":786},{"type":40,"tag":364,"props":873,"children":874},{"style":556},[875],{"type":45,"value":647},{"type":40,"tag":364,"props":877,"children":878},{"style":550},[879],{"type":45,"value":848},{"type":40,"tag":364,"props":881,"children":882},{"style":701},[883],{"type":45,"value":884},"string",{"type":40,"tag":364,"props":886,"children":887},{"style":556},[888],{"type":45,"value":889},"() ",{"type":40,"tag":364,"props":891,"children":892},{"style":550},[893],{"type":45,"value":894},"}",{"type":40,"tag":364,"props":896,"children":897},{"style":556},[898],{"type":45,"value":899},") ",{"type":40,"tag":364,"props":901,"children":902},{"style":550},[903],{"type":45,"value":904},"}\n",{"type":40,"tag":364,"props":906,"children":907},{"class":366,"line":431},[908,913],{"type":40,"tag":364,"props":909,"children":910},{"style":556},[911],{"type":45,"value":912},")",{"type":40,"tag":364,"props":914,"children":915},{"style":550},[916],{"type":45,"value":590},{"type":40,"tag":364,"props":918,"children":919},{"class":366,"line":439},[920],{"type":40,"tag":364,"props":921,"children":922},{"emptyLinePlaceholder":389},[923],{"type":45,"value":392},{"type":40,"tag":364,"props":925,"children":926},{"class":366,"line":448},[927,931,936,940,945,949,953],{"type":40,"tag":364,"props":928,"children":929},{"style":685},[930],{"type":45,"value":688},{"type":40,"tag":364,"props":932,"children":933},{"style":556},[934],{"type":45,"value":935}," agent ",{"type":40,"tag":364,"props":937,"children":938},{"style":550},[939],{"type":45,"value":698},{"type":40,"tag":364,"props":941,"children":942},{"style":544},[943],{"type":45,"value":944}," await",{"type":40,"tag":364,"props":946,"children":947},{"style":701},[948],{"type":45,"value":559},{"type":40,"tag":364,"props":950,"children":951},{"style":556},[952],{"type":45,"value":858},{"type":40,"tag":364,"props":954,"children":955},{"style":550},[956],{"type":45,"value":957},"{\n",{"type":40,"tag":364,"props":959,"children":960},{"class":366,"line":457},[961,966,970,974,979,983],{"type":40,"tag":364,"props":962,"children":963},{"style":778},[964],{"type":45,"value":965},"  model",{"type":40,"tag":364,"props":967,"children":968},{"style":550},[969],{"type":45,"value":786},{"type":40,"tag":364,"props":971,"children":972},{"style":550},[973],{"type":45,"value":574},{"type":40,"tag":364,"props":975,"children":976},{"style":577},[977],{"type":45,"value":978},"claude-sonnet-4-5-20250929",{"type":40,"tag":364,"props":980,"children":981},{"style":550},[982],{"type":45,"value":585},{"type":40,"tag":364,"props":984,"children":985},{"style":550},[986],{"type":45,"value":767},{"type":40,"tag":364,"props":988,"children":989},{"class":366,"line":466},[990,995,999,1004],{"type":40,"tag":364,"props":991,"children":992},{"style":778},[993],{"type":45,"value":994},"  tools",{"type":40,"tag":364,"props":996,"children":997},{"style":550},[998],{"type":45,"value":786},{"type":40,"tag":364,"props":1000,"children":1001},{"style":556},[1002],{"type":45,"value":1003}," [getWeather]",{"type":40,"tag":364,"props":1005,"children":1006},{"style":550},[1007],{"type":45,"value":767},{"type":40,"tag":364,"props":1009,"children":1010},{"class":366,"line":475},[1011,1016,1020,1024,1029],{"type":40,"tag":364,"props":1012,"children":1013},{"style":778},[1014],{"type":45,"value":1015},"  systemPrompt",{"type":40,"tag":364,"props":1017,"children":1018},{"style":550},[1019],{"type":45,"value":786},{"type":40,"tag":364,"props":1021,"children":1022},{"style":550},[1023],{"type":45,"value":574},{"type":40,"tag":364,"props":1025,"children":1026},{"style":577},[1027],{"type":45,"value":1028},"You are a helpful assistant",{"type":40,"tag":364,"props":1030,"children":1031},{"style":550},[1032],{"type":45,"value":1033},"\"\n",{"type":40,"tag":364,"props":1035,"children":1036},{"class":366,"line":484},[1037,1041,1045],{"type":40,"tag":364,"props":1038,"children":1039},{"style":550},[1040],{"type":45,"value":894},{"type":40,"tag":364,"props":1042,"children":1043},{"style":556},[1044],{"type":45,"value":912},{"type":40,"tag":364,"props":1046,"children":1047},{"style":550},[1048],{"type":45,"value":590},{"type":40,"tag":364,"props":1050,"children":1051},{"class":366,"line":492},[1052],{"type":40,"tag":364,"props":1053,"children":1054},{"emptyLinePlaceholder":389},[1055],{"type":45,"value":392},{"type":40,"tag":364,"props":1057,"children":1058},{"class":366,"line":501},[1059,1063,1068,1072,1076,1081,1085,1089,1094,1098,1102,1107,1111,1115],{"type":40,"tag":364,"props":1060,"children":1061},{"style":685},[1062],{"type":45,"value":688},{"type":40,"tag":364,"props":1064,"children":1065},{"style":556},[1066],{"type":45,"value":1067}," config ",{"type":40,"tag":364,"props":1069,"children":1070},{"style":550},[1071],{"type":45,"value":698},{"type":40,"tag":364,"props":1073,"children":1074},{"style":550},[1075],{"type":45,"value":553},{"type":40,"tag":364,"props":1077,"children":1078},{"style":778},[1079],{"type":45,"value":1080}," configurable",{"type":40,"tag":364,"props":1082,"children":1083},{"style":550},[1084],{"type":45,"value":786},{"type":40,"tag":364,"props":1086,"children":1087},{"style":550},[1088],{"type":45,"value":553},{"type":40,"tag":364,"props":1090,"children":1091},{"style":778},[1092],{"type":45,"value":1093}," thread_id",{"type":40,"tag":364,"props":1095,"children":1096},{"style":550},[1097],{"type":45,"value":786},{"type":40,"tag":364,"props":1099,"children":1100},{"style":550},[1101],{"type":45,"value":574},{"type":40,"tag":364,"props":1103,"children":1104},{"style":577},[1105],{"type":45,"value":1106},"user-123",{"type":40,"tag":364,"props":1108,"children":1109},{"style":550},[1110],{"type":45,"value":585},{"type":40,"tag":364,"props":1112,"children":1113},{"style":550},[1114],{"type":45,"value":564},{"type":40,"tag":364,"props":1116,"children":1117},{"style":550},[1118],{"type":45,"value":1119}," };\n",{"type":40,"tag":364,"props":1121,"children":1122},{"class":366,"line":510},[1123,1127,1132,1136,1140,1145,1149,1154,1158],{"type":40,"tag":364,"props":1124,"children":1125},{"style":685},[1126],{"type":45,"value":688},{"type":40,"tag":364,"props":1128,"children":1129},{"style":556},[1130],{"type":45,"value":1131}," result ",{"type":40,"tag":364,"props":1133,"children":1134},{"style":550},[1135],{"type":45,"value":698},{"type":40,"tag":364,"props":1137,"children":1138},{"style":544},[1139],{"type":45,"value":944},{"type":40,"tag":364,"props":1141,"children":1142},{"style":556},[1143],{"type":45,"value":1144}," agent",{"type":40,"tag":364,"props":1146,"children":1147},{"style":550},[1148],{"type":45,"value":848},{"type":40,"tag":364,"props":1150,"children":1151},{"style":701},[1152],{"type":45,"value":1153},"invoke",{"type":40,"tag":364,"props":1155,"children":1156},{"style":556},[1157],{"type":45,"value":858},{"type":40,"tag":364,"props":1159,"children":1160},{"style":550},[1161],{"type":45,"value":957},{"type":40,"tag":364,"props":1163,"children":1164},{"class":366,"line":519},[1165,1170,1174,1179,1183,1188,1192,1196,1201,1205,1209,1214,1218,1222,1227,1231,1235],{"type":40,"tag":364,"props":1166,"children":1167},{"style":778},[1168],{"type":45,"value":1169},"  messages",{"type":40,"tag":364,"props":1171,"children":1172},{"style":550},[1173],{"type":45,"value":786},{"type":40,"tag":364,"props":1175,"children":1176},{"style":556},[1177],{"type":45,"value":1178}," [",{"type":40,"tag":364,"props":1180,"children":1181},{"style":550},[1182],{"type":45,"value":863},{"type":40,"tag":364,"props":1184,"children":1185},{"style":778},[1186],{"type":45,"value":1187}," role",{"type":40,"tag":364,"props":1189,"children":1190},{"style":550},[1191],{"type":45,"value":786},{"type":40,"tag":364,"props":1193,"children":1194},{"style":550},[1195],{"type":45,"value":574},{"type":40,"tag":364,"props":1197,"children":1198},{"style":577},[1199],{"type":45,"value":1200},"user",{"type":40,"tag":364,"props":1202,"children":1203},{"style":550},[1204],{"type":45,"value":585},{"type":40,"tag":364,"props":1206,"children":1207},{"style":550},[1208],{"type":45,"value":804},{"type":40,"tag":364,"props":1210,"children":1211},{"style":778},[1212],{"type":45,"value":1213}," content",{"type":40,"tag":364,"props":1215,"children":1216},{"style":550},[1217],{"type":45,"value":786},{"type":40,"tag":364,"props":1219,"children":1220},{"style":550},[1221],{"type":45,"value":574},{"type":40,"tag":364,"props":1223,"children":1224},{"style":577},[1225],{"type":45,"value":1226},"What's the weather in Tokyo?",{"type":40,"tag":364,"props":1228,"children":1229},{"style":550},[1230],{"type":45,"value":585},{"type":40,"tag":364,"props":1232,"children":1233},{"style":550},[1234],{"type":45,"value":564},{"type":40,"tag":364,"props":1236,"children":1237},{"style":556},[1238],{"type":45,"value":1239},"]\n",{"type":40,"tag":364,"props":1241,"children":1243},{"class":366,"line":1242},19,[1244,1249,1254],{"type":40,"tag":364,"props":1245,"children":1246},{"style":550},[1247],{"type":45,"value":1248},"},",{"type":40,"tag":364,"props":1250,"children":1251},{"style":556},[1252],{"type":45,"value":1253}," config)",{"type":40,"tag":364,"props":1255,"children":1256},{"style":550},[1257],{"type":45,"value":590},{"type":40,"tag":1259,"props":1260,"children":1261},"ex-full-configuration",{},[1262,1405],{"type":40,"tag":347,"props":1263,"children":1264},{},[1265,1267],{"type":45,"value":1266},"\nConfigure a deep agent with all available options including subagents, skills, and persistence.\n",{"type":40,"tag":353,"props":1268,"children":1270},{"className":355,"code":1269,"language":347,"meta":357,"style":357},"from deepagents import create_deep_agent\nfrom deepagents.backends import FilesystemBackend\nfrom langgraph.checkpoint.memory import MemorySaver\nfrom langgraph.store.memory import InMemoryStore\n\nagent = create_deep_agent(\n    name=\"my-assistant\",\n    model=\"claude-sonnet-4-5-20250929\",\n    tools=[custom_tool1, custom_tool2],\n    system_prompt=\"Custom instructions\",\n    subagents=[research_agent, code_agent],\n    backend=FilesystemBackend(root_dir=\".\", virtual_mode=True),\n    interrupt_on={\"write_file\": True},\n    skills=[\".\u002Fskills\u002F\"],\n    checkpointer=MemorySaver(),\n    store=InMemoryStore()\n)\n",[1271],{"type":40,"tag":360,"props":1272,"children":1273},{"__ignoreMap":357},[1274,1281,1289,1297,1305,1312,1319,1327,1334,1342,1350,1358,1366,1374,1382,1390,1398],{"type":40,"tag":364,"props":1275,"children":1276},{"class":366,"line":367},[1277],{"type":40,"tag":364,"props":1278,"children":1279},{},[1280],{"type":45,"value":373},{"type":40,"tag":364,"props":1282,"children":1283},{"class":366,"line":376},[1284],{"type":40,"tag":364,"props":1285,"children":1286},{},[1287],{"type":45,"value":1288},"from deepagents.backends import FilesystemBackend\n",{"type":40,"tag":364,"props":1290,"children":1291},{"class":366,"line":385},[1292],{"type":40,"tag":364,"props":1293,"children":1294},{},[1295],{"type":45,"value":1296},"from langgraph.checkpoint.memory import MemorySaver\n",{"type":40,"tag":364,"props":1298,"children":1299},{"class":366,"line":395},[1300],{"type":40,"tag":364,"props":1301,"children":1302},{},[1303],{"type":45,"value":1304},"from langgraph.store.memory import InMemoryStore\n",{"type":40,"tag":364,"props":1306,"children":1307},{"class":366,"line":404},[1308],{"type":40,"tag":364,"props":1309,"children":1310},{"emptyLinePlaceholder":389},[1311],{"type":45,"value":392},{"type":40,"tag":364,"props":1313,"children":1314},{"class":366,"line":413},[1315],{"type":40,"tag":364,"props":1316,"children":1317},{},[1318],{"type":45,"value":445},{"type":40,"tag":364,"props":1320,"children":1321},{"class":366,"line":422},[1322],{"type":40,"tag":364,"props":1323,"children":1324},{},[1325],{"type":45,"value":1326},"    name=\"my-assistant\",\n",{"type":40,"tag":364,"props":1328,"children":1329},{"class":366,"line":431},[1330],{"type":40,"tag":364,"props":1331,"children":1332},{},[1333],{"type":45,"value":454},{"type":40,"tag":364,"props":1335,"children":1336},{"class":366,"line":439},[1337],{"type":40,"tag":364,"props":1338,"children":1339},{},[1340],{"type":45,"value":1341},"    tools=[custom_tool1, custom_tool2],\n",{"type":40,"tag":364,"props":1343,"children":1344},{"class":366,"line":448},[1345],{"type":40,"tag":364,"props":1346,"children":1347},{},[1348],{"type":45,"value":1349},"    system_prompt=\"Custom instructions\",\n",{"type":40,"tag":364,"props":1351,"children":1352},{"class":366,"line":457},[1353],{"type":40,"tag":364,"props":1354,"children":1355},{},[1356],{"type":45,"value":1357},"    subagents=[research_agent, code_agent],\n",{"type":40,"tag":364,"props":1359,"children":1360},{"class":366,"line":466},[1361],{"type":40,"tag":364,"props":1362,"children":1363},{},[1364],{"type":45,"value":1365},"    backend=FilesystemBackend(root_dir=\".\", virtual_mode=True),\n",{"type":40,"tag":364,"props":1367,"children":1368},{"class":366,"line":475},[1369],{"type":40,"tag":364,"props":1370,"children":1371},{},[1372],{"type":45,"value":1373},"    interrupt_on={\"write_file\": True},\n",{"type":40,"tag":364,"props":1375,"children":1376},{"class":366,"line":484},[1377],{"type":40,"tag":364,"props":1378,"children":1379},{},[1380],{"type":45,"value":1381},"    skills=[\".\u002Fskills\u002F\"],\n",{"type":40,"tag":364,"props":1383,"children":1384},{"class":366,"line":492},[1385],{"type":40,"tag":364,"props":1386,"children":1387},{},[1388],{"type":45,"value":1389},"    checkpointer=MemorySaver(),\n",{"type":40,"tag":364,"props":1391,"children":1392},{"class":366,"line":501},[1393],{"type":40,"tag":364,"props":1394,"children":1395},{},[1396],{"type":45,"value":1397},"    store=InMemoryStore()\n",{"type":40,"tag":364,"props":1399,"children":1400},{"class":366,"line":510},[1401],{"type":40,"tag":364,"props":1402,"children":1403},{},[1404],{"type":45,"value":481},{"type":40,"tag":527,"props":1406,"children":1407},{},[1408,1409],{"type":45,"value":1266},{"type":40,"tag":353,"props":1410,"children":1412},{"className":533,"code":1411,"language":527,"meta":357,"style":357},"import { createDeepAgent, FilesystemBackend } from \"deepagents\";\nimport { MemorySaver, InMemoryStore } from \"@langchain\u002Flanggraph\";\n\nconst agent = await createDeepAgent({\n  name: \"my-assistant\",\n  model: \"claude-sonnet-4-5-20250929\",\n  tools: [customTool1, customTool2],\n  systemPrompt: \"Custom instructions\",\n  subagents: [researchAgent, codeAgent],\n  backend: new FilesystemBackend({ rootDir: \".\", virtualMode: true }),\n  interruptOn: { write_file: true },\n  skills: [\".\u002Fskills\u002F\"],\n  checkpointer: new MemorySaver(),\n  store: new InMemoryStore()\n});\n",[1413],{"type":40,"tag":360,"props":1414,"children":1415},{"__ignoreMap":357},[1416,1464,1514,1521,1552,1581,1608,1637,1665,1695,1776,1810,1848,1877,1902],{"type":40,"tag":364,"props":1417,"children":1418},{"class":366,"line":367},[1419,1423,1427,1431,1435,1440,1444,1448,1452,1456,1460],{"type":40,"tag":364,"props":1420,"children":1421},{"style":544},[1422],{"type":45,"value":547},{"type":40,"tag":364,"props":1424,"children":1425},{"style":550},[1426],{"type":45,"value":553},{"type":40,"tag":364,"props":1428,"children":1429},{"style":556},[1430],{"type":45,"value":559},{"type":40,"tag":364,"props":1432,"children":1433},{"style":550},[1434],{"type":45,"value":804},{"type":40,"tag":364,"props":1436,"children":1437},{"style":556},[1438],{"type":45,"value":1439}," FilesystemBackend",{"type":40,"tag":364,"props":1441,"children":1442},{"style":550},[1443],{"type":45,"value":564},{"type":40,"tag":364,"props":1445,"children":1446},{"style":544},[1447],{"type":45,"value":569},{"type":40,"tag":364,"props":1449,"children":1450},{"style":550},[1451],{"type":45,"value":574},{"type":40,"tag":364,"props":1453,"children":1454},{"style":577},[1455],{"type":45,"value":580},{"type":40,"tag":364,"props":1457,"children":1458},{"style":550},[1459],{"type":45,"value":585},{"type":40,"tag":364,"props":1461,"children":1462},{"style":550},[1463],{"type":45,"value":590},{"type":40,"tag":364,"props":1465,"children":1466},{"class":366,"line":376},[1467,1471,1475,1480,1484,1489,1493,1497,1501,1506,1510],{"type":40,"tag":364,"props":1468,"children":1469},{"style":544},[1470],{"type":45,"value":547},{"type":40,"tag":364,"props":1472,"children":1473},{"style":550},[1474],{"type":45,"value":553},{"type":40,"tag":364,"props":1476,"children":1477},{"style":556},[1478],{"type":45,"value":1479}," MemorySaver",{"type":40,"tag":364,"props":1481,"children":1482},{"style":550},[1483],{"type":45,"value":804},{"type":40,"tag":364,"props":1485,"children":1486},{"style":556},[1487],{"type":45,"value":1488}," InMemoryStore",{"type":40,"tag":364,"props":1490,"children":1491},{"style":550},[1492],{"type":45,"value":564},{"type":40,"tag":364,"props":1494,"children":1495},{"style":544},[1496],{"type":45,"value":569},{"type":40,"tag":364,"props":1498,"children":1499},{"style":550},[1500],{"type":45,"value":574},{"type":40,"tag":364,"props":1502,"children":1503},{"style":577},[1504],{"type":45,"value":1505},"@langchain\u002Flanggraph",{"type":40,"tag":364,"props":1507,"children":1508},{"style":550},[1509],{"type":45,"value":585},{"type":40,"tag":364,"props":1511,"children":1512},{"style":550},[1513],{"type":45,"value":590},{"type":40,"tag":364,"props":1515,"children":1516},{"class":366,"line":385},[1517],{"type":40,"tag":364,"props":1518,"children":1519},{"emptyLinePlaceholder":389},[1520],{"type":45,"value":392},{"type":40,"tag":364,"props":1522,"children":1523},{"class":366,"line":395},[1524,1528,1532,1536,1540,1544,1548],{"type":40,"tag":364,"props":1525,"children":1526},{"style":685},[1527],{"type":45,"value":688},{"type":40,"tag":364,"props":1529,"children":1530},{"style":556},[1531],{"type":45,"value":935},{"type":40,"tag":364,"props":1533,"children":1534},{"style":550},[1535],{"type":45,"value":698},{"type":40,"tag":364,"props":1537,"children":1538},{"style":544},[1539],{"type":45,"value":944},{"type":40,"tag":364,"props":1541,"children":1542},{"style":701},[1543],{"type":45,"value":559},{"type":40,"tag":364,"props":1545,"children":1546},{"style":556},[1547],{"type":45,"value":858},{"type":40,"tag":364,"props":1549,"children":1550},{"style":550},[1551],{"type":45,"value":957},{"type":40,"tag":364,"props":1553,"children":1554},{"class":366,"line":404},[1555,1560,1564,1568,1573,1577],{"type":40,"tag":364,"props":1556,"children":1557},{"style":778},[1558],{"type":45,"value":1559},"  name",{"type":40,"tag":364,"props":1561,"children":1562},{"style":550},[1563],{"type":45,"value":786},{"type":40,"tag":364,"props":1565,"children":1566},{"style":550},[1567],{"type":45,"value":574},{"type":40,"tag":364,"props":1569,"children":1570},{"style":577},[1571],{"type":45,"value":1572},"my-assistant",{"type":40,"tag":364,"props":1574,"children":1575},{"style":550},[1576],{"type":45,"value":585},{"type":40,"tag":364,"props":1578,"children":1579},{"style":550},[1580],{"type":45,"value":767},{"type":40,"tag":364,"props":1582,"children":1583},{"class":366,"line":413},[1584,1588,1592,1596,1600,1604],{"type":40,"tag":364,"props":1585,"children":1586},{"style":778},[1587],{"type":45,"value":965},{"type":40,"tag":364,"props":1589,"children":1590},{"style":550},[1591],{"type":45,"value":786},{"type":40,"tag":364,"props":1593,"children":1594},{"style":550},[1595],{"type":45,"value":574},{"type":40,"tag":364,"props":1597,"children":1598},{"style":577},[1599],{"type":45,"value":978},{"type":40,"tag":364,"props":1601,"children":1602},{"style":550},[1603],{"type":45,"value":585},{"type":40,"tag":364,"props":1605,"children":1606},{"style":550},[1607],{"type":45,"value":767},{"type":40,"tag":364,"props":1609,"children":1610},{"class":366,"line":422},[1611,1615,1619,1624,1628,1633],{"type":40,"tag":364,"props":1612,"children":1613},{"style":778},[1614],{"type":45,"value":994},{"type":40,"tag":364,"props":1616,"children":1617},{"style":550},[1618],{"type":45,"value":786},{"type":40,"tag":364,"props":1620,"children":1621},{"style":556},[1622],{"type":45,"value":1623}," [customTool1",{"type":40,"tag":364,"props":1625,"children":1626},{"style":550},[1627],{"type":45,"value":804},{"type":40,"tag":364,"props":1629,"children":1630},{"style":556},[1631],{"type":45,"value":1632}," customTool2]",{"type":40,"tag":364,"props":1634,"children":1635},{"style":550},[1636],{"type":45,"value":767},{"type":40,"tag":364,"props":1638,"children":1639},{"class":366,"line":431},[1640,1644,1648,1652,1657,1661],{"type":40,"tag":364,"props":1641,"children":1642},{"style":778},[1643],{"type":45,"value":1015},{"type":40,"tag":364,"props":1645,"children":1646},{"style":550},[1647],{"type":45,"value":786},{"type":40,"tag":364,"props":1649,"children":1650},{"style":550},[1651],{"type":45,"value":574},{"type":40,"tag":364,"props":1653,"children":1654},{"style":577},[1655],{"type":45,"value":1656},"Custom instructions",{"type":40,"tag":364,"props":1658,"children":1659},{"style":550},[1660],{"type":45,"value":585},{"type":40,"tag":364,"props":1662,"children":1663},{"style":550},[1664],{"type":45,"value":767},{"type":40,"tag":364,"props":1666,"children":1667},{"class":366,"line":439},[1668,1673,1677,1682,1686,1691],{"type":40,"tag":364,"props":1669,"children":1670},{"style":778},[1671],{"type":45,"value":1672},"  subagents",{"type":40,"tag":364,"props":1674,"children":1675},{"style":550},[1676],{"type":45,"value":786},{"type":40,"tag":364,"props":1678,"children":1679},{"style":556},[1680],{"type":45,"value":1681}," [researchAgent",{"type":40,"tag":364,"props":1683,"children":1684},{"style":550},[1685],{"type":45,"value":804},{"type":40,"tag":364,"props":1687,"children":1688},{"style":556},[1689],{"type":45,"value":1690}," codeAgent]",{"type":40,"tag":364,"props":1692,"children":1693},{"style":550},[1694],{"type":45,"value":767},{"type":40,"tag":364,"props":1696,"children":1697},{"class":366,"line":448},[1698,1703,1707,1712,1716,1720,1724,1729,1733,1737,1741,1745,1749,1754,1758,1764,1768,1772],{"type":40,"tag":364,"props":1699,"children":1700},{"style":778},[1701],{"type":45,"value":1702},"  backend",{"type":40,"tag":364,"props":1704,"children":1705},{"style":550},[1706],{"type":45,"value":786},{"type":40,"tag":364,"props":1708,"children":1709},{"style":550},[1710],{"type":45,"value":1711}," new",{"type":40,"tag":364,"props":1713,"children":1714},{"style":701},[1715],{"type":45,"value":1439},{"type":40,"tag":364,"props":1717,"children":1718},{"style":556},[1719],{"type":45,"value":858},{"type":40,"tag":364,"props":1721,"children":1722},{"style":550},[1723],{"type":45,"value":863},{"type":40,"tag":364,"props":1725,"children":1726},{"style":778},[1727],{"type":45,"value":1728}," rootDir",{"type":40,"tag":364,"props":1730,"children":1731},{"style":550},[1732],{"type":45,"value":786},{"type":40,"tag":364,"props":1734,"children":1735},{"style":550},[1736],{"type":45,"value":574},{"type":40,"tag":364,"props":1738,"children":1739},{"style":577},[1740],{"type":45,"value":848},{"type":40,"tag":364,"props":1742,"children":1743},{"style":550},[1744],{"type":45,"value":585},{"type":40,"tag":364,"props":1746,"children":1747},{"style":550},[1748],{"type":45,"value":804},{"type":40,"tag":364,"props":1750,"children":1751},{"style":778},[1752],{"type":45,"value":1753}," virtualMode",{"type":40,"tag":364,"props":1755,"children":1756},{"style":550},[1757],{"type":45,"value":786},{"type":40,"tag":364,"props":1759,"children":1761},{"style":1760},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1762],{"type":45,"value":1763}," true",{"type":40,"tag":364,"props":1765,"children":1766},{"style":550},[1767],{"type":45,"value":564},{"type":40,"tag":364,"props":1769,"children":1770},{"style":556},[1771],{"type":45,"value":912},{"type":40,"tag":364,"props":1773,"children":1774},{"style":550},[1775],{"type":45,"value":767},{"type":40,"tag":364,"props":1777,"children":1778},{"class":366,"line":457},[1779,1784,1788,1792,1797,1801,1805],{"type":40,"tag":364,"props":1780,"children":1781},{"style":778},[1782],{"type":45,"value":1783},"  interruptOn",{"type":40,"tag":364,"props":1785,"children":1786},{"style":550},[1787],{"type":45,"value":786},{"type":40,"tag":364,"props":1789,"children":1790},{"style":550},[1791],{"type":45,"value":553},{"type":40,"tag":364,"props":1793,"children":1794},{"style":778},[1795],{"type":45,"value":1796}," write_file",{"type":40,"tag":364,"props":1798,"children":1799},{"style":550},[1800],{"type":45,"value":786},{"type":40,"tag":364,"props":1802,"children":1803},{"style":1760},[1804],{"type":45,"value":1763},{"type":40,"tag":364,"props":1806,"children":1807},{"style":550},[1808],{"type":45,"value":1809}," },\n",{"type":40,"tag":364,"props":1811,"children":1812},{"class":366,"line":466},[1813,1818,1822,1826,1830,1835,1839,1844],{"type":40,"tag":364,"props":1814,"children":1815},{"style":778},[1816],{"type":45,"value":1817},"  skills",{"type":40,"tag":364,"props":1819,"children":1820},{"style":550},[1821],{"type":45,"value":786},{"type":40,"tag":364,"props":1823,"children":1824},{"style":556},[1825],{"type":45,"value":1178},{"type":40,"tag":364,"props":1827,"children":1828},{"style":550},[1829],{"type":45,"value":585},{"type":40,"tag":364,"props":1831,"children":1832},{"style":577},[1833],{"type":45,"value":1834},".\u002Fskills\u002F",{"type":40,"tag":364,"props":1836,"children":1837},{"style":550},[1838],{"type":45,"value":585},{"type":40,"tag":364,"props":1840,"children":1841},{"style":556},[1842],{"type":45,"value":1843},"]",{"type":40,"tag":364,"props":1845,"children":1846},{"style":550},[1847],{"type":45,"value":767},{"type":40,"tag":364,"props":1849,"children":1850},{"class":366,"line":475},[1851,1856,1860,1864,1868,1873],{"type":40,"tag":364,"props":1852,"children":1853},{"style":778},[1854],{"type":45,"value":1855},"  checkpointer",{"type":40,"tag":364,"props":1857,"children":1858},{"style":550},[1859],{"type":45,"value":786},{"type":40,"tag":364,"props":1861,"children":1862},{"style":550},[1863],{"type":45,"value":1711},{"type":40,"tag":364,"props":1865,"children":1866},{"style":701},[1867],{"type":45,"value":1479},{"type":40,"tag":364,"props":1869,"children":1870},{"style":556},[1871],{"type":45,"value":1872},"()",{"type":40,"tag":364,"props":1874,"children":1875},{"style":550},[1876],{"type":45,"value":767},{"type":40,"tag":364,"props":1878,"children":1879},{"class":366,"line":484},[1880,1885,1889,1893,1897],{"type":40,"tag":364,"props":1881,"children":1882},{"style":778},[1883],{"type":45,"value":1884},"  store",{"type":40,"tag":364,"props":1886,"children":1887},{"style":550},[1888],{"type":45,"value":786},{"type":40,"tag":364,"props":1890,"children":1891},{"style":550},[1892],{"type":45,"value":1711},{"type":40,"tag":364,"props":1894,"children":1895},{"style":701},[1896],{"type":45,"value":1488},{"type":40,"tag":364,"props":1898,"children":1899},{"style":556},[1900],{"type":45,"value":1901},"()\n",{"type":40,"tag":364,"props":1903,"children":1904},{"class":366,"line":492},[1905,1909,1913],{"type":40,"tag":364,"props":1906,"children":1907},{"style":550},[1908],{"type":45,"value":894},{"type":40,"tag":364,"props":1910,"children":1911},{"style":556},[1912],{"type":45,"value":912},{"type":40,"tag":364,"props":1914,"children":1915},{"style":550},[1916],{"type":45,"value":590},{"type":40,"tag":1918,"props":1919,"children":1920},"built-in-tools",{},[1921,1923,2013,2017,2024,2213,2290,2861,3082],{"type":45,"value":1922},"\nEvery deep agent has access to:\n",{"type":40,"tag":1924,"props":1925,"children":1926},"ol",{},[1927,1945,1996],{"type":40,"tag":52,"props":1928,"children":1929},{},[1930,1935,1937,1943],{"type":40,"tag":56,"props":1931,"children":1932},{},[1933],{"type":45,"value":1934},"Planning",{"type":45,"value":1936},": ",{"type":40,"tag":360,"props":1938,"children":1940},{"className":1939},[],[1941],{"type":45,"value":1942},"write_todos",{"type":45,"value":1944}," - Track multi-step tasks",{"type":40,"tag":52,"props":1946,"children":1947},{},[1948,1953,1954,1960,1962,1968,1969,1975,1976,1982,1983,1989,1990],{"type":40,"tag":56,"props":1949,"children":1950},{},[1951],{"type":45,"value":1952},"Filesystem",{"type":45,"value":1936},{"type":40,"tag":360,"props":1955,"children":1957},{"className":1956},[],[1958],{"type":45,"value":1959},"ls",{"type":45,"value":1961},", ",{"type":40,"tag":360,"props":1963,"children":1965},{"className":1964},[],[1966],{"type":45,"value":1967},"read_file",{"type":45,"value":1961},{"type":40,"tag":360,"props":1970,"children":1972},{"className":1971},[],[1973],{"type":45,"value":1974},"write_file",{"type":45,"value":1961},{"type":40,"tag":360,"props":1977,"children":1979},{"className":1978},[],[1980],{"type":45,"value":1981},"edit_file",{"type":45,"value":1961},{"type":40,"tag":360,"props":1984,"children":1986},{"className":1985},[],[1987],{"type":45,"value":1988},"glob",{"type":45,"value":1961},{"type":40,"tag":360,"props":1991,"children":1993},{"className":1992},[],[1994],{"type":45,"value":1995},"grep",{"type":40,"tag":52,"props":1997,"children":1998},{},[1999,2004,2005,2011],{"type":40,"tag":56,"props":2000,"children":2001},{},[2002],{"type":45,"value":2003},"Delegation",{"type":45,"value":1936},{"type":40,"tag":360,"props":2006,"children":2008},{"className":2007},[],[2009],{"type":45,"value":2010},"task",{"type":45,"value":2012}," - Spawn specialized subagents\n\n",{"type":40,"tag":2014,"props":2015,"children":2016},"hr",{},[],{"type":40,"tag":2018,"props":2019,"children":2021},"h2",{"id":2020},"skillmd-format",[2022],{"type":45,"value":2023},"SKILL.md Format",{"type":40,"tag":2025,"props":2026,"children":2027},"skill-md-format",{},[2028,2030,2037,2047,2052],{"type":45,"value":2029},"\nSkills use **progressive disclosure** - agents only load content when relevant.\n",{"type":40,"tag":2031,"props":2032,"children":2034},"h3",{"id":2033},"directory-structure",[2035],{"type":45,"value":2036},"Directory Structure",{"type":40,"tag":353,"props":2038,"children":2042},{"className":2039,"code":2041,"language":45},[2040],"language-text","skills\u002F\n└── my-skill\u002F\n    ├── SKILL.md        # Required: main skill file\n    ├── examples.py     # Optional: supporting files\n    └── templates\u002F      # Optional: templates\n",[2043],{"type":40,"tag":360,"props":2044,"children":2045},{"__ignoreMap":357},[2046],{"type":45,"value":2041},{"type":40,"tag":2031,"props":2048,"children":2050},{"id":2049},"skillmd-format-1",[2051],{"type":45,"value":2023},{"type":40,"tag":353,"props":2053,"children":2057},{"className":2054,"code":2055,"language":2056,"meta":357,"style":357},"language-markdown shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","---\nname: my-skill\ndescription: Clear, specific description of what this skill does\n---\n\n# Skill Name\n\n## Overview\nBrief explanation of the skill's purpose.\n\n## When to Use\nConditions when this skill applies.\n\n## Instructions\nStep-by-step guidance for the agent.\n","markdown",[2058],{"type":40,"tag":360,"props":2059,"children":2060},{"__ignoreMap":357},[2061,2069,2086,2103,2110,2117,2131,2138,2151,2159,2166,2178,2186,2193,2205],{"type":40,"tag":364,"props":2062,"children":2063},{"class":366,"line":367},[2064],{"type":40,"tag":364,"props":2065,"children":2066},{"style":550},[2067],{"type":45,"value":2068},"---\n",{"type":40,"tag":364,"props":2070,"children":2071},{"class":366,"line":376},[2072,2077,2081],{"type":40,"tag":364,"props":2073,"children":2074},{"style":778},[2075],{"type":45,"value":2076},"name",{"type":40,"tag":364,"props":2078,"children":2079},{"style":550},[2080],{"type":45,"value":786},{"type":40,"tag":364,"props":2082,"children":2083},{"style":577},[2084],{"type":45,"value":2085}," my-skill\n",{"type":40,"tag":364,"props":2087,"children":2088},{"class":366,"line":385},[2089,2094,2098],{"type":40,"tag":364,"props":2090,"children":2091},{"style":778},[2092],{"type":45,"value":2093},"description",{"type":40,"tag":364,"props":2095,"children":2096},{"style":550},[2097],{"type":45,"value":786},{"type":40,"tag":364,"props":2099,"children":2100},{"style":577},[2101],{"type":45,"value":2102}," Clear, specific description of what this skill does\n",{"type":40,"tag":364,"props":2104,"children":2105},{"class":366,"line":395},[2106],{"type":40,"tag":364,"props":2107,"children":2108},{"style":550},[2109],{"type":45,"value":2068},{"type":40,"tag":364,"props":2111,"children":2112},{"class":366,"line":404},[2113],{"type":40,"tag":364,"props":2114,"children":2115},{"emptyLinePlaceholder":389},[2116],{"type":45,"value":392},{"type":40,"tag":364,"props":2118,"children":2119},{"class":366,"line":413},[2120,2125],{"type":40,"tag":364,"props":2121,"children":2122},{"style":550},[2123],{"type":45,"value":2124},"# ",{"type":40,"tag":364,"props":2126,"children":2128},{"style":2127},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[2129],{"type":45,"value":2130},"Skill Name\n",{"type":40,"tag":364,"props":2132,"children":2133},{"class":366,"line":422},[2134],{"type":40,"tag":364,"props":2135,"children":2136},{"emptyLinePlaceholder":389},[2137],{"type":45,"value":392},{"type":40,"tag":364,"props":2139,"children":2140},{"class":366,"line":431},[2141,2146],{"type":40,"tag":364,"props":2142,"children":2143},{"style":550},[2144],{"type":45,"value":2145},"## ",{"type":40,"tag":364,"props":2147,"children":2148},{"style":2127},[2149],{"type":45,"value":2150},"Overview\n",{"type":40,"tag":364,"props":2152,"children":2153},{"class":366,"line":439},[2154],{"type":40,"tag":364,"props":2155,"children":2156},{"style":556},[2157],{"type":45,"value":2158},"Brief explanation of the skill's purpose.\n",{"type":40,"tag":364,"props":2160,"children":2161},{"class":366,"line":448},[2162],{"type":40,"tag":364,"props":2163,"children":2164},{"emptyLinePlaceholder":389},[2165],{"type":45,"value":392},{"type":40,"tag":364,"props":2167,"children":2168},{"class":366,"line":457},[2169,2173],{"type":40,"tag":364,"props":2170,"children":2171},{"style":550},[2172],{"type":45,"value":2145},{"type":40,"tag":364,"props":2174,"children":2175},{"style":2127},[2176],{"type":45,"value":2177},"When to Use\n",{"type":40,"tag":364,"props":2179,"children":2180},{"class":366,"line":466},[2181],{"type":40,"tag":364,"props":2182,"children":2183},{"style":556},[2184],{"type":45,"value":2185},"Conditions when this skill applies.\n",{"type":40,"tag":364,"props":2187,"children":2188},{"class":366,"line":475},[2189],{"type":40,"tag":364,"props":2190,"children":2191},{"emptyLinePlaceholder":389},[2192],{"type":45,"value":392},{"type":40,"tag":364,"props":2194,"children":2195},{"class":366,"line":484},[2196,2200],{"type":40,"tag":364,"props":2197,"children":2198},{"style":550},[2199],{"type":45,"value":2145},{"type":40,"tag":364,"props":2201,"children":2202},{"style":2127},[2203],{"type":45,"value":2204},"Instructions\n",{"type":40,"tag":364,"props":2206,"children":2207},{"class":366,"line":492},[2208],{"type":40,"tag":364,"props":2209,"children":2210},{"style":556},[2211],{"type":45,"value":2212},"Step-by-step guidance for the agent.\n",{"type":40,"tag":2214,"props":2215,"children":2216},"skills-vs-memory",{},[2217],{"type":40,"tag":124,"props":2218,"children":2219},{},[2220,2235],{"type":40,"tag":128,"props":2221,"children":2222},{},[2223],{"type":40,"tag":132,"props":2224,"children":2225},{},[2226,2230],{"type":40,"tag":136,"props":2227,"children":2228},{},[2229],{"type":45,"value":110},{"type":40,"tag":136,"props":2231,"children":2232},{},[2233],{"type":45,"value":2234},"Memory (AGENTS.md)",{"type":40,"tag":147,"props":2236,"children":2237},{},[2238,2251,2264,2277],{"type":40,"tag":132,"props":2239,"children":2240},{},[2241,2246],{"type":40,"tag":154,"props":2242,"children":2243},{},[2244],{"type":45,"value":2245},"On-demand loading",{"type":40,"tag":154,"props":2247,"children":2248},{},[2249],{"type":45,"value":2250},"Always loaded at startup",{"type":40,"tag":132,"props":2252,"children":2253},{},[2254,2259],{"type":40,"tag":154,"props":2255,"children":2256},{},[2257],{"type":45,"value":2258},"Task-specific instructions",{"type":40,"tag":154,"props":2260,"children":2261},{},[2262],{"type":45,"value":2263},"General preferences",{"type":40,"tag":132,"props":2265,"children":2266},{},[2267,2272],{"type":40,"tag":154,"props":2268,"children":2269},{},[2270],{"type":45,"value":2271},"Large documentation",{"type":40,"tag":154,"props":2273,"children":2274},{},[2275],{"type":45,"value":2276},"Compact context",{"type":40,"tag":132,"props":2278,"children":2279},{},[2280,2285],{"type":40,"tag":154,"props":2281,"children":2282},{},[2283],{"type":45,"value":2284},"SKILL.md in directories",{"type":40,"tag":154,"props":2286,"children":2287},{},[2288],{"type":45,"value":2289},"Single AGENTS.md file",{"type":40,"tag":2291,"props":2292,"children":2293},"ex-skills-with-filesystem-backend",{},[2294,2400],{"type":40,"tag":347,"props":2295,"children":2296},{},[2297,2299],{"type":45,"value":2298},"\nSet up an agent with skills directory and filesystem backend for on-demand skill loading.\n",{"type":40,"tag":353,"props":2300,"children":2302},{"className":355,"code":2301,"language":347,"meta":357,"style":357},"from deepagents import create_deep_agent\nfrom deepagents.backends import FilesystemBackend\nfrom langgraph.checkpoint.memory import MemorySaver\n\nagent = create_deep_agent(\n    backend=FilesystemBackend(root_dir=\".\", virtual_mode=True),\n    skills=[\".\u002Fskills\u002F\"],\n    checkpointer=MemorySaver()\n)\n\nresult = agent.invoke({\n    \"messages\": [{\"role\": \"user\", \"content\": \"Use the python-testing skill\"}]\n}, config={\"configurable\": {\"thread_id\": \"session-1\"}})\n",[2303],{"type":40,"tag":360,"props":2304,"children":2305},{"__ignoreMap":357},[2306,2313,2320,2327,2334,2341,2348,2355,2363,2370,2377,2384,2392],{"type":40,"tag":364,"props":2307,"children":2308},{"class":366,"line":367},[2309],{"type":40,"tag":364,"props":2310,"children":2311},{},[2312],{"type":45,"value":373},{"type":40,"tag":364,"props":2314,"children":2315},{"class":366,"line":376},[2316],{"type":40,"tag":364,"props":2317,"children":2318},{},[2319],{"type":45,"value":1288},{"type":40,"tag":364,"props":2321,"children":2322},{"class":366,"line":385},[2323],{"type":40,"tag":364,"props":2324,"children":2325},{},[2326],{"type":45,"value":1296},{"type":40,"tag":364,"props":2328,"children":2329},{"class":366,"line":395},[2330],{"type":40,"tag":364,"props":2331,"children":2332},{"emptyLinePlaceholder":389},[2333],{"type":45,"value":392},{"type":40,"tag":364,"props":2335,"children":2336},{"class":366,"line":404},[2337],{"type":40,"tag":364,"props":2338,"children":2339},{},[2340],{"type":45,"value":445},{"type":40,"tag":364,"props":2342,"children":2343},{"class":366,"line":413},[2344],{"type":40,"tag":364,"props":2345,"children":2346},{},[2347],{"type":45,"value":1365},{"type":40,"tag":364,"props":2349,"children":2350},{"class":366,"line":422},[2351],{"type":40,"tag":364,"props":2352,"children":2353},{},[2354],{"type":45,"value":1381},{"type":40,"tag":364,"props":2356,"children":2357},{"class":366,"line":431},[2358],{"type":40,"tag":364,"props":2359,"children":2360},{},[2361],{"type":45,"value":2362},"    checkpointer=MemorySaver()\n",{"type":40,"tag":364,"props":2364,"children":2365},{"class":366,"line":439},[2366],{"type":40,"tag":364,"props":2367,"children":2368},{},[2369],{"type":45,"value":481},{"type":40,"tag":364,"props":2371,"children":2372},{"class":366,"line":448},[2373],{"type":40,"tag":364,"props":2374,"children":2375},{"emptyLinePlaceholder":389},[2376],{"type":45,"value":392},{"type":40,"tag":364,"props":2378,"children":2379},{"class":366,"line":457},[2380],{"type":40,"tag":364,"props":2381,"children":2382},{},[2383],{"type":45,"value":507},{"type":40,"tag":364,"props":2385,"children":2386},{"class":366,"line":466},[2387],{"type":40,"tag":364,"props":2388,"children":2389},{},[2390],{"type":45,"value":2391},"    \"messages\": [{\"role\": \"user\", \"content\": \"Use the python-testing skill\"}]\n",{"type":40,"tag":364,"props":2393,"children":2394},{"class":366,"line":475},[2395],{"type":40,"tag":364,"props":2396,"children":2397},{},[2398],{"type":45,"value":2399},"}, config={\"configurable\": {\"thread_id\": \"session-1\"}})\n",{"type":40,"tag":527,"props":2401,"children":2402},{},[2403,2404],{"type":45,"value":2298},{"type":40,"tag":353,"props":2405,"children":2407},{"className":533,"code":2406,"language":527,"meta":357,"style":357},"import { createDeepAgent, FilesystemBackend } from \"deepagents\";\nimport { MemorySaver } from \"@langchain\u002Flanggraph\";\n\nconst agent = await createDeepAgent({\n  backend: new FilesystemBackend({ rootDir: \".\", virtualMode: true }),\n  skills: [\".\u002Fskills\u002F\"],\n  checkpointer: new MemorySaver()\n});\n\nconst result = await agent.invoke({\n  messages: [{ role: \"user\", content: \"Use the python-testing skill\" }]\n}, { configurable: { thread_id: \"session-1\" } });\n",[2408],{"type":40,"tag":360,"props":2409,"children":2410},{"__ignoreMap":357},[2411,2458,2497,2504,2535,2610,2645,2668,2683,2690,2729,2801],{"type":40,"tag":364,"props":2412,"children":2413},{"class":366,"line":367},[2414,2418,2422,2426,2430,2434,2438,2442,2446,2450,2454],{"type":40,"tag":364,"props":2415,"children":2416},{"style":544},[2417],{"type":45,"value":547},{"type":40,"tag":364,"props":2419,"children":2420},{"style":550},[2421],{"type":45,"value":553},{"type":40,"tag":364,"props":2423,"children":2424},{"style":556},[2425],{"type":45,"value":559},{"type":40,"tag":364,"props":2427,"children":2428},{"style":550},[2429],{"type":45,"value":804},{"type":40,"tag":364,"props":2431,"children":2432},{"style":556},[2433],{"type":45,"value":1439},{"type":40,"tag":364,"props":2435,"children":2436},{"style":550},[2437],{"type":45,"value":564},{"type":40,"tag":364,"props":2439,"children":2440},{"style":544},[2441],{"type":45,"value":569},{"type":40,"tag":364,"props":2443,"children":2444},{"style":550},[2445],{"type":45,"value":574},{"type":40,"tag":364,"props":2447,"children":2448},{"style":577},[2449],{"type":45,"value":580},{"type":40,"tag":364,"props":2451,"children":2452},{"style":550},[2453],{"type":45,"value":585},{"type":40,"tag":364,"props":2455,"children":2456},{"style":550},[2457],{"type":45,"value":590},{"type":40,"tag":364,"props":2459,"children":2460},{"class":366,"line":376},[2461,2465,2469,2473,2477,2481,2485,2489,2493],{"type":40,"tag":364,"props":2462,"children":2463},{"style":544},[2464],{"type":45,"value":547},{"type":40,"tag":364,"props":2466,"children":2467},{"style":550},[2468],{"type":45,"value":553},{"type":40,"tag":364,"props":2470,"children":2471},{"style":556},[2472],{"type":45,"value":1479},{"type":40,"tag":364,"props":2474,"children":2475},{"style":550},[2476],{"type":45,"value":564},{"type":40,"tag":364,"props":2478,"children":2479},{"style":544},[2480],{"type":45,"value":569},{"type":40,"tag":364,"props":2482,"children":2483},{"style":550},[2484],{"type":45,"value":574},{"type":40,"tag":364,"props":2486,"children":2487},{"style":577},[2488],{"type":45,"value":1505},{"type":40,"tag":364,"props":2490,"children":2491},{"style":550},[2492],{"type":45,"value":585},{"type":40,"tag":364,"props":2494,"children":2495},{"style":550},[2496],{"type":45,"value":590},{"type":40,"tag":364,"props":2498,"children":2499},{"class":366,"line":385},[2500],{"type":40,"tag":364,"props":2501,"children":2502},{"emptyLinePlaceholder":389},[2503],{"type":45,"value":392},{"type":40,"tag":364,"props":2505,"children":2506},{"class":366,"line":395},[2507,2511,2515,2519,2523,2527,2531],{"type":40,"tag":364,"props":2508,"children":2509},{"style":685},[2510],{"type":45,"value":688},{"type":40,"tag":364,"props":2512,"children":2513},{"style":556},[2514],{"type":45,"value":935},{"type":40,"tag":364,"props":2516,"children":2517},{"style":550},[2518],{"type":45,"value":698},{"type":40,"tag":364,"props":2520,"children":2521},{"style":544},[2522],{"type":45,"value":944},{"type":40,"tag":364,"props":2524,"children":2525},{"style":701},[2526],{"type":45,"value":559},{"type":40,"tag":364,"props":2528,"children":2529},{"style":556},[2530],{"type":45,"value":858},{"type":40,"tag":364,"props":2532,"children":2533},{"style":550},[2534],{"type":45,"value":957},{"type":40,"tag":364,"props":2536,"children":2537},{"class":366,"line":404},[2538,2542,2546,2550,2554,2558,2562,2566,2570,2574,2578,2582,2586,2590,2594,2598,2602,2606],{"type":40,"tag":364,"props":2539,"children":2540},{"style":778},[2541],{"type":45,"value":1702},{"type":40,"tag":364,"props":2543,"children":2544},{"style":550},[2545],{"type":45,"value":786},{"type":40,"tag":364,"props":2547,"children":2548},{"style":550},[2549],{"type":45,"value":1711},{"type":40,"tag":364,"props":2551,"children":2552},{"style":701},[2553],{"type":45,"value":1439},{"type":40,"tag":364,"props":2555,"children":2556},{"style":556},[2557],{"type":45,"value":858},{"type":40,"tag":364,"props":2559,"children":2560},{"style":550},[2561],{"type":45,"value":863},{"type":40,"tag":364,"props":2563,"children":2564},{"style":778},[2565],{"type":45,"value":1728},{"type":40,"tag":364,"props":2567,"children":2568},{"style":550},[2569],{"type":45,"value":786},{"type":40,"tag":364,"props":2571,"children":2572},{"style":550},[2573],{"type":45,"value":574},{"type":40,"tag":364,"props":2575,"children":2576},{"style":577},[2577],{"type":45,"value":848},{"type":40,"tag":364,"props":2579,"children":2580},{"style":550},[2581],{"type":45,"value":585},{"type":40,"tag":364,"props":2583,"children":2584},{"style":550},[2585],{"type":45,"value":804},{"type":40,"tag":364,"props":2587,"children":2588},{"style":778},[2589],{"type":45,"value":1753},{"type":40,"tag":364,"props":2591,"children":2592},{"style":550},[2593],{"type":45,"value":786},{"type":40,"tag":364,"props":2595,"children":2596},{"style":1760},[2597],{"type":45,"value":1763},{"type":40,"tag":364,"props":2599,"children":2600},{"style":550},[2601],{"type":45,"value":564},{"type":40,"tag":364,"props":2603,"children":2604},{"style":556},[2605],{"type":45,"value":912},{"type":40,"tag":364,"props":2607,"children":2608},{"style":550},[2609],{"type":45,"value":767},{"type":40,"tag":364,"props":2611,"children":2612},{"class":366,"line":413},[2613,2617,2621,2625,2629,2633,2637,2641],{"type":40,"tag":364,"props":2614,"children":2615},{"style":778},[2616],{"type":45,"value":1817},{"type":40,"tag":364,"props":2618,"children":2619},{"style":550},[2620],{"type":45,"value":786},{"type":40,"tag":364,"props":2622,"children":2623},{"style":556},[2624],{"type":45,"value":1178},{"type":40,"tag":364,"props":2626,"children":2627},{"style":550},[2628],{"type":45,"value":585},{"type":40,"tag":364,"props":2630,"children":2631},{"style":577},[2632],{"type":45,"value":1834},{"type":40,"tag":364,"props":2634,"children":2635},{"style":550},[2636],{"type":45,"value":585},{"type":40,"tag":364,"props":2638,"children":2639},{"style":556},[2640],{"type":45,"value":1843},{"type":40,"tag":364,"props":2642,"children":2643},{"style":550},[2644],{"type":45,"value":767},{"type":40,"tag":364,"props":2646,"children":2647},{"class":366,"line":422},[2648,2652,2656,2660,2664],{"type":40,"tag":364,"props":2649,"children":2650},{"style":778},[2651],{"type":45,"value":1855},{"type":40,"tag":364,"props":2653,"children":2654},{"style":550},[2655],{"type":45,"value":786},{"type":40,"tag":364,"props":2657,"children":2658},{"style":550},[2659],{"type":45,"value":1711},{"type":40,"tag":364,"props":2661,"children":2662},{"style":701},[2663],{"type":45,"value":1479},{"type":40,"tag":364,"props":2665,"children":2666},{"style":556},[2667],{"type":45,"value":1901},{"type":40,"tag":364,"props":2669,"children":2670},{"class":366,"line":431},[2671,2675,2679],{"type":40,"tag":364,"props":2672,"children":2673},{"style":550},[2674],{"type":45,"value":894},{"type":40,"tag":364,"props":2676,"children":2677},{"style":556},[2678],{"type":45,"value":912},{"type":40,"tag":364,"props":2680,"children":2681},{"style":550},[2682],{"type":45,"value":590},{"type":40,"tag":364,"props":2684,"children":2685},{"class":366,"line":439},[2686],{"type":40,"tag":364,"props":2687,"children":2688},{"emptyLinePlaceholder":389},[2689],{"type":45,"value":392},{"type":40,"tag":364,"props":2691,"children":2692},{"class":366,"line":448},[2693,2697,2701,2705,2709,2713,2717,2721,2725],{"type":40,"tag":364,"props":2694,"children":2695},{"style":685},[2696],{"type":45,"value":688},{"type":40,"tag":364,"props":2698,"children":2699},{"style":556},[2700],{"type":45,"value":1131},{"type":40,"tag":364,"props":2702,"children":2703},{"style":550},[2704],{"type":45,"value":698},{"type":40,"tag":364,"props":2706,"children":2707},{"style":544},[2708],{"type":45,"value":944},{"type":40,"tag":364,"props":2710,"children":2711},{"style":556},[2712],{"type":45,"value":1144},{"type":40,"tag":364,"props":2714,"children":2715},{"style":550},[2716],{"type":45,"value":848},{"type":40,"tag":364,"props":2718,"children":2719},{"style":701},[2720],{"type":45,"value":1153},{"type":40,"tag":364,"props":2722,"children":2723},{"style":556},[2724],{"type":45,"value":858},{"type":40,"tag":364,"props":2726,"children":2727},{"style":550},[2728],{"type":45,"value":957},{"type":40,"tag":364,"props":2730,"children":2731},{"class":366,"line":457},[2732,2736,2740,2744,2748,2752,2756,2760,2764,2768,2772,2776,2780,2784,2789,2793,2797],{"type":40,"tag":364,"props":2733,"children":2734},{"style":778},[2735],{"type":45,"value":1169},{"type":40,"tag":364,"props":2737,"children":2738},{"style":550},[2739],{"type":45,"value":786},{"type":40,"tag":364,"props":2741,"children":2742},{"style":556},[2743],{"type":45,"value":1178},{"type":40,"tag":364,"props":2745,"children":2746},{"style":550},[2747],{"type":45,"value":863},{"type":40,"tag":364,"props":2749,"children":2750},{"style":778},[2751],{"type":45,"value":1187},{"type":40,"tag":364,"props":2753,"children":2754},{"style":550},[2755],{"type":45,"value":786},{"type":40,"tag":364,"props":2757,"children":2758},{"style":550},[2759],{"type":45,"value":574},{"type":40,"tag":364,"props":2761,"children":2762},{"style":577},[2763],{"type":45,"value":1200},{"type":40,"tag":364,"props":2765,"children":2766},{"style":550},[2767],{"type":45,"value":585},{"type":40,"tag":364,"props":2769,"children":2770},{"style":550},[2771],{"type":45,"value":804},{"type":40,"tag":364,"props":2773,"children":2774},{"style":778},[2775],{"type":45,"value":1213},{"type":40,"tag":364,"props":2777,"children":2778},{"style":550},[2779],{"type":45,"value":786},{"type":40,"tag":364,"props":2781,"children":2782},{"style":550},[2783],{"type":45,"value":574},{"type":40,"tag":364,"props":2785,"children":2786},{"style":577},[2787],{"type":45,"value":2788},"Use the python-testing skill",{"type":40,"tag":364,"props":2790,"children":2791},{"style":550},[2792],{"type":45,"value":585},{"type":40,"tag":364,"props":2794,"children":2795},{"style":550},[2796],{"type":45,"value":564},{"type":40,"tag":364,"props":2798,"children":2799},{"style":556},[2800],{"type":45,"value":1239},{"type":40,"tag":364,"props":2802,"children":2803},{"class":366,"line":466},[2804,2808,2812,2816,2820,2824,2828,2832,2836,2841,2845,2849,2853,2857],{"type":40,"tag":364,"props":2805,"children":2806},{"style":550},[2807],{"type":45,"value":1248},{"type":40,"tag":364,"props":2809,"children":2810},{"style":550},[2811],{"type":45,"value":553},{"type":40,"tag":364,"props":2813,"children":2814},{"style":778},[2815],{"type":45,"value":1080},{"type":40,"tag":364,"props":2817,"children":2818},{"style":550},[2819],{"type":45,"value":786},{"type":40,"tag":364,"props":2821,"children":2822},{"style":550},[2823],{"type":45,"value":553},{"type":40,"tag":364,"props":2825,"children":2826},{"style":778},[2827],{"type":45,"value":1093},{"type":40,"tag":364,"props":2829,"children":2830},{"style":550},[2831],{"type":45,"value":786},{"type":40,"tag":364,"props":2833,"children":2834},{"style":550},[2835],{"type":45,"value":574},{"type":40,"tag":364,"props":2837,"children":2838},{"style":577},[2839],{"type":45,"value":2840},"session-1",{"type":40,"tag":364,"props":2842,"children":2843},{"style":550},[2844],{"type":45,"value":585},{"type":40,"tag":364,"props":2846,"children":2847},{"style":550},[2848],{"type":45,"value":564},{"type":40,"tag":364,"props":2850,"children":2851},{"style":550},[2852],{"type":45,"value":564},{"type":40,"tag":364,"props":2854,"children":2855},{"style":556},[2856],{"type":45,"value":912},{"type":40,"tag":364,"props":2858,"children":2859},{"style":550},[2860],{"type":45,"value":590},{"type":40,"tag":2862,"props":2863,"children":2864},"ex-skills-with-store-backend",{},[2865],{"type":40,"tag":347,"props":2866,"children":2867},{},[2868,2870],{"type":45,"value":2869},"\nLoad skill content into a Store backend for environments without filesystem access.\n",{"type":40,"tag":353,"props":2871,"children":2873},{"className":355,"code":2872,"language":347,"meta":357,"style":357},"from deepagents import create_deep_agent\nfrom deepagents.backends import StoreBackend\nfrom deepagents.backends.utils import create_file_data\nfrom langgraph.store.memory import InMemoryStore\n\nstore = InMemoryStore()\n\n# Load skill content into store\nskill_content = \"\"\"---\nname: python-testing\ndescription: Best practices for Python testing with pytest\n---\n# Python Testing Skill\n...\"\"\"\n\nstore.put(\n    namespace=(\"filesystem\",),\n    key=\"\u002Fskills\u002Fpython-testing\u002FSKILL.md\",\n    value=create_file_data(skill_content)\n)\n\nagent = create_deep_agent(\n    backend=lambda rt: StoreBackend(rt),\n    store=store,\n    skills=[\"\u002Fskills\u002F\"]\n)\n",[2874],{"type":40,"tag":360,"props":2875,"children":2876},{"__ignoreMap":357},[2877,2884,2892,2900,2907,2914,2922,2929,2937,2945,2953,2961,2968,2976,2984,2991,2999,3007,3015,3023,3031,3039,3047,3056,3065,3074],{"type":40,"tag":364,"props":2878,"children":2879},{"class":366,"line":367},[2880],{"type":40,"tag":364,"props":2881,"children":2882},{},[2883],{"type":45,"value":373},{"type":40,"tag":364,"props":2885,"children":2886},{"class":366,"line":376},[2887],{"type":40,"tag":364,"props":2888,"children":2889},{},[2890],{"type":45,"value":2891},"from deepagents.backends import StoreBackend\n",{"type":40,"tag":364,"props":2893,"children":2894},{"class":366,"line":385},[2895],{"type":40,"tag":364,"props":2896,"children":2897},{},[2898],{"type":45,"value":2899},"from deepagents.backends.utils import create_file_data\n",{"type":40,"tag":364,"props":2901,"children":2902},{"class":366,"line":395},[2903],{"type":40,"tag":364,"props":2904,"children":2905},{},[2906],{"type":45,"value":1304},{"type":40,"tag":364,"props":2908,"children":2909},{"class":366,"line":404},[2910],{"type":40,"tag":364,"props":2911,"children":2912},{"emptyLinePlaceholder":389},[2913],{"type":45,"value":392},{"type":40,"tag":364,"props":2915,"children":2916},{"class":366,"line":413},[2917],{"type":40,"tag":364,"props":2918,"children":2919},{},[2920],{"type":45,"value":2921},"store = InMemoryStore()\n",{"type":40,"tag":364,"props":2923,"children":2924},{"class":366,"line":422},[2925],{"type":40,"tag":364,"props":2926,"children":2927},{"emptyLinePlaceholder":389},[2928],{"type":45,"value":392},{"type":40,"tag":364,"props":2930,"children":2931},{"class":366,"line":431},[2932],{"type":40,"tag":364,"props":2933,"children":2934},{},[2935],{"type":45,"value":2936},"# Load skill content into store\n",{"type":40,"tag":364,"props":2938,"children":2939},{"class":366,"line":439},[2940],{"type":40,"tag":364,"props":2941,"children":2942},{},[2943],{"type":45,"value":2944},"skill_content = \"\"\"---\n",{"type":40,"tag":364,"props":2946,"children":2947},{"class":366,"line":448},[2948],{"type":40,"tag":364,"props":2949,"children":2950},{},[2951],{"type":45,"value":2952},"name: python-testing\n",{"type":40,"tag":364,"props":2954,"children":2955},{"class":366,"line":457},[2956],{"type":40,"tag":364,"props":2957,"children":2958},{},[2959],{"type":45,"value":2960},"description: Best practices for Python testing with pytest\n",{"type":40,"tag":364,"props":2962,"children":2963},{"class":366,"line":466},[2964],{"type":40,"tag":364,"props":2965,"children":2966},{},[2967],{"type":45,"value":2068},{"type":40,"tag":364,"props":2969,"children":2970},{"class":366,"line":475},[2971],{"type":40,"tag":364,"props":2972,"children":2973},{},[2974],{"type":45,"value":2975},"# Python Testing Skill\n",{"type":40,"tag":364,"props":2977,"children":2978},{"class":366,"line":484},[2979],{"type":40,"tag":364,"props":2980,"children":2981},{},[2982],{"type":45,"value":2983},"...\"\"\"\n",{"type":40,"tag":364,"props":2985,"children":2986},{"class":366,"line":492},[2987],{"type":40,"tag":364,"props":2988,"children":2989},{"emptyLinePlaceholder":389},[2990],{"type":45,"value":392},{"type":40,"tag":364,"props":2992,"children":2993},{"class":366,"line":501},[2994],{"type":40,"tag":364,"props":2995,"children":2996},{},[2997],{"type":45,"value":2998},"store.put(\n",{"type":40,"tag":364,"props":3000,"children":3001},{"class":366,"line":510},[3002],{"type":40,"tag":364,"props":3003,"children":3004},{},[3005],{"type":45,"value":3006},"    namespace=(\"filesystem\",),\n",{"type":40,"tag":364,"props":3008,"children":3009},{"class":366,"line":519},[3010],{"type":40,"tag":364,"props":3011,"children":3012},{},[3013],{"type":45,"value":3014},"    key=\"\u002Fskills\u002Fpython-testing\u002FSKILL.md\",\n",{"type":40,"tag":364,"props":3016,"children":3017},{"class":366,"line":1242},[3018],{"type":40,"tag":364,"props":3019,"children":3020},{},[3021],{"type":45,"value":3022},"    value=create_file_data(skill_content)\n",{"type":40,"tag":364,"props":3024,"children":3026},{"class":366,"line":3025},20,[3027],{"type":40,"tag":364,"props":3028,"children":3029},{},[3030],{"type":45,"value":481},{"type":40,"tag":364,"props":3032,"children":3034},{"class":366,"line":3033},21,[3035],{"type":40,"tag":364,"props":3036,"children":3037},{"emptyLinePlaceholder":389},[3038],{"type":45,"value":392},{"type":40,"tag":364,"props":3040,"children":3042},{"class":366,"line":3041},22,[3043],{"type":40,"tag":364,"props":3044,"children":3045},{},[3046],{"type":45,"value":445},{"type":40,"tag":364,"props":3048,"children":3050},{"class":366,"line":3049},23,[3051],{"type":40,"tag":364,"props":3052,"children":3053},{},[3054],{"type":45,"value":3055},"    backend=lambda rt: StoreBackend(rt),\n",{"type":40,"tag":364,"props":3057,"children":3059},{"class":366,"line":3058},24,[3060],{"type":40,"tag":364,"props":3061,"children":3062},{},[3063],{"type":45,"value":3064},"    store=store,\n",{"type":40,"tag":364,"props":3066,"children":3068},{"class":366,"line":3067},25,[3069],{"type":40,"tag":364,"props":3070,"children":3071},{},[3072],{"type":45,"value":3073},"    skills=[\"\u002Fskills\u002F\"]\n",{"type":40,"tag":364,"props":3075,"children":3077},{"class":366,"line":3076},26,[3078],{"type":40,"tag":364,"props":3079,"children":3080},{},[3081],{"type":45,"value":481},{"type":40,"tag":3083,"props":3084,"children":3085},"boundaries",{},[3086,3092,3125,3131,3149,3404,3678,4184,4294,4370,4473],{"type":40,"tag":2031,"props":3087,"children":3089},{"id":3088},"what-agents-can-configure",[3090],{"type":45,"value":3091},"What Agents CAN Configure",{"type":40,"tag":48,"props":3093,"children":3094},{},[3095,3100,3105,3110,3115,3120],{"type":40,"tag":52,"props":3096,"children":3097},{},[3098],{"type":45,"value":3099},"Model selection and parameters",{"type":40,"tag":52,"props":3101,"children":3102},{},[3103],{"type":45,"value":3104},"Additional custom tools",{"type":40,"tag":52,"props":3106,"children":3107},{},[3108],{"type":45,"value":3109},"System prompt customization",{"type":40,"tag":52,"props":3111,"children":3112},{},[3113],{"type":45,"value":3114},"Backend storage strategy",{"type":40,"tag":52,"props":3116,"children":3117},{},[3118],{"type":45,"value":3119},"Which tools require approval",{"type":40,"tag":52,"props":3121,"children":3122},{},[3123],{"type":45,"value":3124},"Custom subagents with specialized tools",{"type":40,"tag":2031,"props":3126,"children":3128},{"id":3127},"what-agents-cannot-configure",[3129],{"type":45,"value":3130},"What Agents CANNOT Configure",{"type":40,"tag":48,"props":3132,"children":3133},{},[3134,3139,3144],{"type":40,"tag":52,"props":3135,"children":3136},{},[3137],{"type":45,"value":3138},"Core middleware removal (TodoList, Filesystem, SubAgent always present)",{"type":40,"tag":52,"props":3140,"children":3141},{},[3142],{"type":45,"value":3143},"The write_todos, task, or filesystem tool names",{"type":40,"tag":52,"props":3145,"children":3146},{},[3147],{"type":45,"value":3148},"The SKILL.md frontmatter format\n\n",{"type":40,"tag":3150,"props":3151,"children":3152},"fix-checkpointer-for-interrupts",{},[3153,3204],{"type":40,"tag":347,"props":3154,"children":3155},{},[3156,3158],{"type":45,"value":3157},"\nInterrupts require a checkpointer.\n",{"type":40,"tag":353,"props":3159,"children":3161},{"className":355,"code":3160,"language":347,"meta":357,"style":357},"# WRONG\nagent = create_deep_agent(interrupt_on={\"write_file\": True})\n\n# CORRECT\nagent = create_deep_agent(interrupt_on={\"write_file\": True}, checkpointer=MemorySaver())\n",[3162],{"type":40,"tag":360,"props":3163,"children":3164},{"__ignoreMap":357},[3165,3173,3181,3188,3196],{"type":40,"tag":364,"props":3166,"children":3167},{"class":366,"line":367},[3168],{"type":40,"tag":364,"props":3169,"children":3170},{},[3171],{"type":45,"value":3172},"# WRONG\n",{"type":40,"tag":364,"props":3174,"children":3175},{"class":366,"line":376},[3176],{"type":40,"tag":364,"props":3177,"children":3178},{},[3179],{"type":45,"value":3180},"agent = create_deep_agent(interrupt_on={\"write_file\": True})\n",{"type":40,"tag":364,"props":3182,"children":3183},{"class":366,"line":385},[3184],{"type":40,"tag":364,"props":3185,"children":3186},{"emptyLinePlaceholder":389},[3187],{"type":45,"value":392},{"type":40,"tag":364,"props":3189,"children":3190},{"class":366,"line":395},[3191],{"type":40,"tag":364,"props":3192,"children":3193},{},[3194],{"type":45,"value":3195},"# CORRECT\n",{"type":40,"tag":364,"props":3197,"children":3198},{"class":366,"line":404},[3199],{"type":40,"tag":364,"props":3200,"children":3201},{},[3202],{"type":45,"value":3203},"agent = create_deep_agent(interrupt_on={\"write_file\": True}, checkpointer=MemorySaver())\n",{"type":40,"tag":527,"props":3205,"children":3206},{},[3207,3208],{"type":45,"value":3157},{"type":40,"tag":353,"props":3209,"children":3211},{"className":533,"code":3210,"language":527,"meta":357,"style":357},"\u002F\u002F WRONG\nconst agent = await createDeepAgent({ interruptOn: { write_file: true } });\n\n\u002F\u002F CORRECT\nconst agent = await createDeepAgent({ interruptOn: { write_file: true }, checkpointer: new MemorySaver() });\n",[3212],{"type":40,"tag":360,"props":3213,"children":3214},{"__ignoreMap":357},[3215,3224,3296,3303,3311],{"type":40,"tag":364,"props":3216,"children":3217},{"class":366,"line":367},[3218],{"type":40,"tag":364,"props":3219,"children":3221},{"style":3220},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[3222],{"type":45,"value":3223},"\u002F\u002F WRONG\n",{"type":40,"tag":364,"props":3225,"children":3226},{"class":366,"line":376},[3227,3231,3235,3239,3243,3247,3251,3255,3260,3264,3268,3272,3276,3280,3284,3288,3292],{"type":40,"tag":364,"props":3228,"children":3229},{"style":685},[3230],{"type":45,"value":688},{"type":40,"tag":364,"props":3232,"children":3233},{"style":556},[3234],{"type":45,"value":935},{"type":40,"tag":364,"props":3236,"children":3237},{"style":550},[3238],{"type":45,"value":698},{"type":40,"tag":364,"props":3240,"children":3241},{"style":544},[3242],{"type":45,"value":944},{"type":40,"tag":364,"props":3244,"children":3245},{"style":701},[3246],{"type":45,"value":559},{"type":40,"tag":364,"props":3248,"children":3249},{"style":556},[3250],{"type":45,"value":858},{"type":40,"tag":364,"props":3252,"children":3253},{"style":550},[3254],{"type":45,"value":863},{"type":40,"tag":364,"props":3256,"children":3257},{"style":778},[3258],{"type":45,"value":3259}," interruptOn",{"type":40,"tag":364,"props":3261,"children":3262},{"style":550},[3263],{"type":45,"value":786},{"type":40,"tag":364,"props":3265,"children":3266},{"style":550},[3267],{"type":45,"value":553},{"type":40,"tag":364,"props":3269,"children":3270},{"style":778},[3271],{"type":45,"value":1796},{"type":40,"tag":364,"props":3273,"children":3274},{"style":550},[3275],{"type":45,"value":786},{"type":40,"tag":364,"props":3277,"children":3278},{"style":1760},[3279],{"type":45,"value":1763},{"type":40,"tag":364,"props":3281,"children":3282},{"style":550},[3283],{"type":45,"value":564},{"type":40,"tag":364,"props":3285,"children":3286},{"style":550},[3287],{"type":45,"value":564},{"type":40,"tag":364,"props":3289,"children":3290},{"style":556},[3291],{"type":45,"value":912},{"type":40,"tag":364,"props":3293,"children":3294},{"style":550},[3295],{"type":45,"value":590},{"type":40,"tag":364,"props":3297,"children":3298},{"class":366,"line":385},[3299],{"type":40,"tag":364,"props":3300,"children":3301},{"emptyLinePlaceholder":389},[3302],{"type":45,"value":392},{"type":40,"tag":364,"props":3304,"children":3305},{"class":366,"line":395},[3306],{"type":40,"tag":364,"props":3307,"children":3308},{"style":3220},[3309],{"type":45,"value":3310},"\u002F\u002F CORRECT\n",{"type":40,"tag":364,"props":3312,"children":3313},{"class":366,"line":404},[3314,3318,3322,3326,3330,3334,3338,3342,3346,3350,3354,3358,3362,3366,3371,3376,3380,3384,3388,3392,3396,3400],{"type":40,"tag":364,"props":3315,"children":3316},{"style":685},[3317],{"type":45,"value":688},{"type":40,"tag":364,"props":3319,"children":3320},{"style":556},[3321],{"type":45,"value":935},{"type":40,"tag":364,"props":3323,"children":3324},{"style":550},[3325],{"type":45,"value":698},{"type":40,"tag":364,"props":3327,"children":3328},{"style":544},[3329],{"type":45,"value":944},{"type":40,"tag":364,"props":3331,"children":3332},{"style":701},[3333],{"type":45,"value":559},{"type":40,"tag":364,"props":3335,"children":3336},{"style":556},[3337],{"type":45,"value":858},{"type":40,"tag":364,"props":3339,"children":3340},{"style":550},[3341],{"type":45,"value":863},{"type":40,"tag":364,"props":3343,"children":3344},{"style":778},[3345],{"type":45,"value":3259},{"type":40,"tag":364,"props":3347,"children":3348},{"style":550},[3349],{"type":45,"value":786},{"type":40,"tag":364,"props":3351,"children":3352},{"style":550},[3353],{"type":45,"value":553},{"type":40,"tag":364,"props":3355,"children":3356},{"style":778},[3357],{"type":45,"value":1796},{"type":40,"tag":364,"props":3359,"children":3360},{"style":550},[3361],{"type":45,"value":786},{"type":40,"tag":364,"props":3363,"children":3364},{"style":1760},[3365],{"type":45,"value":1763},{"type":40,"tag":364,"props":3367,"children":3368},{"style":550},[3369],{"type":45,"value":3370}," },",{"type":40,"tag":364,"props":3372,"children":3373},{"style":778},[3374],{"type":45,"value":3375}," checkpointer",{"type":40,"tag":364,"props":3377,"children":3378},{"style":550},[3379],{"type":45,"value":786},{"type":40,"tag":364,"props":3381,"children":3382},{"style":550},[3383],{"type":45,"value":1711},{"type":40,"tag":364,"props":3385,"children":3386},{"style":701},[3387],{"type":45,"value":1479},{"type":40,"tag":364,"props":3389,"children":3390},{"style":556},[3391],{"type":45,"value":889},{"type":40,"tag":364,"props":3393,"children":3394},{"style":550},[3395],{"type":45,"value":894},{"type":40,"tag":364,"props":3397,"children":3398},{"style":556},[3399],{"type":45,"value":912},{"type":40,"tag":364,"props":3401,"children":3402},{"style":550},[3403],{"type":45,"value":590},{"type":40,"tag":3405,"props":3406,"children":3407},"fix-store-for-memory",{},[3408,3457],{"type":40,"tag":347,"props":3409,"children":3410},{},[3411,3413],{"type":45,"value":3412},"\nStoreBackend requires a Store instance for persistent memory across threads.\n",{"type":40,"tag":353,"props":3414,"children":3416},{"className":355,"code":3415,"language":347,"meta":357,"style":357},"# WRONG\nagent = create_deep_agent(backend=lambda rt: StoreBackend(rt))\n\n# CORRECT\nagent = create_deep_agent(backend=lambda rt: StoreBackend(rt), store=InMemoryStore())\n",[3417],{"type":40,"tag":360,"props":3418,"children":3419},{"__ignoreMap":357},[3420,3427,3435,3442,3449],{"type":40,"tag":364,"props":3421,"children":3422},{"class":366,"line":367},[3423],{"type":40,"tag":364,"props":3424,"children":3425},{},[3426],{"type":45,"value":3172},{"type":40,"tag":364,"props":3428,"children":3429},{"class":366,"line":376},[3430],{"type":40,"tag":364,"props":3431,"children":3432},{},[3433],{"type":45,"value":3434},"agent = create_deep_agent(backend=lambda rt: StoreBackend(rt))\n",{"type":40,"tag":364,"props":3436,"children":3437},{"class":366,"line":385},[3438],{"type":40,"tag":364,"props":3439,"children":3440},{"emptyLinePlaceholder":389},[3441],{"type":45,"value":392},{"type":40,"tag":364,"props":3443,"children":3444},{"class":366,"line":395},[3445],{"type":40,"tag":364,"props":3446,"children":3447},{},[3448],{"type":45,"value":3195},{"type":40,"tag":364,"props":3450,"children":3451},{"class":366,"line":404},[3452],{"type":40,"tag":364,"props":3453,"children":3454},{},[3455],{"type":45,"value":3456},"agent = create_deep_agent(backend=lambda rt: StoreBackend(rt), store=InMemoryStore())\n",{"type":40,"tag":527,"props":3458,"children":3459},{},[3460,3461],{"type":45,"value":3412},{"type":40,"tag":353,"props":3462,"children":3464},{"className":533,"code":3463,"language":527,"meta":357,"style":357},"\u002F\u002F WRONG\nconst agent = await createDeepAgent({ backend: (config) => new StoreBackend(config) });\n\n\u002F\u002F CORRECT\nconst agent = await createDeepAgent({ backend: (config) => new StoreBackend(config), store: new InMemoryStore() });\n",[3465],{"type":40,"tag":360,"props":3466,"children":3467},{"__ignoreMap":357},[3468,3475,3559,3566,3573],{"type":40,"tag":364,"props":3469,"children":3470},{"class":366,"line":367},[3471],{"type":40,"tag":364,"props":3472,"children":3473},{"style":3220},[3474],{"type":45,"value":3223},{"type":40,"tag":364,"props":3476,"children":3477},{"class":366,"line":376},[3478,3482,3486,3490,3494,3498,3502,3506,3511,3515,3520,3525,3529,3533,3537,3542,3547,3551,3555],{"type":40,"tag":364,"props":3479,"children":3480},{"style":685},[3481],{"type":45,"value":688},{"type":40,"tag":364,"props":3483,"children":3484},{"style":556},[3485],{"type":45,"value":935},{"type":40,"tag":364,"props":3487,"children":3488},{"style":550},[3489],{"type":45,"value":698},{"type":40,"tag":364,"props":3491,"children":3492},{"style":544},[3493],{"type":45,"value":944},{"type":40,"tag":364,"props":3495,"children":3496},{"style":701},[3497],{"type":45,"value":559},{"type":40,"tag":364,"props":3499,"children":3500},{"style":556},[3501],{"type":45,"value":858},{"type":40,"tag":364,"props":3503,"children":3504},{"style":550},[3505],{"type":45,"value":863},{"type":40,"tag":364,"props":3507,"children":3508},{"style":701},[3509],{"type":45,"value":3510}," backend",{"type":40,"tag":364,"props":3512,"children":3513},{"style":550},[3514],{"type":45,"value":786},{"type":40,"tag":364,"props":3516,"children":3517},{"style":550},[3518],{"type":45,"value":3519}," (",{"type":40,"tag":364,"props":3521,"children":3522},{"style":724},[3523],{"type":45,"value":3524},"config",{"type":40,"tag":364,"props":3526,"children":3527},{"style":550},[3528],{"type":45,"value":912},{"type":40,"tag":364,"props":3530,"children":3531},{"style":685},[3532],{"type":45,"value":737},{"type":40,"tag":364,"props":3534,"children":3535},{"style":550},[3536],{"type":45,"value":1711},{"type":40,"tag":364,"props":3538,"children":3539},{"style":701},[3540],{"type":45,"value":3541}," StoreBackend",{"type":40,"tag":364,"props":3543,"children":3544},{"style":556},[3545],{"type":45,"value":3546},"(config) ",{"type":40,"tag":364,"props":3548,"children":3549},{"style":550},[3550],{"type":45,"value":894},{"type":40,"tag":364,"props":3552,"children":3553},{"style":556},[3554],{"type":45,"value":912},{"type":40,"tag":364,"props":3556,"children":3557},{"style":550},[3558],{"type":45,"value":590},{"type":40,"tag":364,"props":3560,"children":3561},{"class":366,"line":385},[3562],{"type":40,"tag":364,"props":3563,"children":3564},{"emptyLinePlaceholder":389},[3565],{"type":45,"value":392},{"type":40,"tag":364,"props":3567,"children":3568},{"class":366,"line":395},[3569],{"type":40,"tag":364,"props":3570,"children":3571},{"style":3220},[3572],{"type":45,"value":3310},{"type":40,"tag":364,"props":3574,"children":3575},{"class":366,"line":404},[3576,3580,3584,3588,3592,3596,3600,3604,3608,3612,3616,3620,3624,3628,3632,3636,3641,3645,3650,3654,3658,3662,3666,3670,3674],{"type":40,"tag":364,"props":3577,"children":3578},{"style":685},[3579],{"type":45,"value":688},{"type":40,"tag":364,"props":3581,"children":3582},{"style":556},[3583],{"type":45,"value":935},{"type":40,"tag":364,"props":3585,"children":3586},{"style":550},[3587],{"type":45,"value":698},{"type":40,"tag":364,"props":3589,"children":3590},{"style":544},[3591],{"type":45,"value":944},{"type":40,"tag":364,"props":3593,"children":3594},{"style":701},[3595],{"type":45,"value":559},{"type":40,"tag":364,"props":3597,"children":3598},{"style":556},[3599],{"type":45,"value":858},{"type":40,"tag":364,"props":3601,"children":3602},{"style":550},[3603],{"type":45,"value":863},{"type":40,"tag":364,"props":3605,"children":3606},{"style":701},[3607],{"type":45,"value":3510},{"type":40,"tag":364,"props":3609,"children":3610},{"style":550},[3611],{"type":45,"value":786},{"type":40,"tag":364,"props":3613,"children":3614},{"style":550},[3615],{"type":45,"value":3519},{"type":40,"tag":364,"props":3617,"children":3618},{"style":724},[3619],{"type":45,"value":3524},{"type":40,"tag":364,"props":3621,"children":3622},{"style":550},[3623],{"type":45,"value":912},{"type":40,"tag":364,"props":3625,"children":3626},{"style":685},[3627],{"type":45,"value":737},{"type":40,"tag":364,"props":3629,"children":3630},{"style":550},[3631],{"type":45,"value":1711},{"type":40,"tag":364,"props":3633,"children":3634},{"style":701},[3635],{"type":45,"value":3541},{"type":40,"tag":364,"props":3637,"children":3638},{"style":556},[3639],{"type":45,"value":3640},"(config)",{"type":40,"tag":364,"props":3642,"children":3643},{"style":550},[3644],{"type":45,"value":804},{"type":40,"tag":364,"props":3646,"children":3647},{"style":778},[3648],{"type":45,"value":3649}," store",{"type":40,"tag":364,"props":3651,"children":3652},{"style":550},[3653],{"type":45,"value":786},{"type":40,"tag":364,"props":3655,"children":3656},{"style":550},[3657],{"type":45,"value":1711},{"type":40,"tag":364,"props":3659,"children":3660},{"style":701},[3661],{"type":45,"value":1488},{"type":40,"tag":364,"props":3663,"children":3664},{"style":556},[3665],{"type":45,"value":889},{"type":40,"tag":364,"props":3667,"children":3668},{"style":550},[3669],{"type":45,"value":894},{"type":40,"tag":364,"props":3671,"children":3672},{"style":556},[3673],{"type":45,"value":912},{"type":40,"tag":364,"props":3675,"children":3676},{"style":550},[3677],{"type":45,"value":590},{"type":40,"tag":3679,"props":3680,"children":3681},"fix-thread-id-for-conversations",{},[3682,3754],{"type":40,"tag":347,"props":3683,"children":3684},{},[3685,3687],{"type":45,"value":3686},"\nUse consistent thread_id to maintain conversation context across invocations.\n",{"type":40,"tag":353,"props":3688,"children":3690},{"className":355,"code":3689,"language":347,"meta":357,"style":357},"# WRONG: Each invocation is isolated\nagent.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"Hi\"}]})\nagent.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"What did I say?\"}]})\n\n# CORRECT\nconfig = {\"configurable\": {\"thread_id\": \"user-123\"}}\nagent.invoke({\"messages\": [...]}, config=config)\nagent.invoke({\"messages\": [...]}, config=config)\n",[3691],{"type":40,"tag":360,"props":3692,"children":3693},{"__ignoreMap":357},[3694,3702,3710,3718,3725,3732,3739,3747],{"type":40,"tag":364,"props":3695,"children":3696},{"class":366,"line":367},[3697],{"type":40,"tag":364,"props":3698,"children":3699},{},[3700],{"type":45,"value":3701},"# WRONG: Each invocation is isolated\n",{"type":40,"tag":364,"props":3703,"children":3704},{"class":366,"line":376},[3705],{"type":40,"tag":364,"props":3706,"children":3707},{},[3708],{"type":45,"value":3709},"agent.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"Hi\"}]})\n",{"type":40,"tag":364,"props":3711,"children":3712},{"class":366,"line":385},[3713],{"type":40,"tag":364,"props":3714,"children":3715},{},[3716],{"type":45,"value":3717},"agent.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"What did I say?\"}]})\n",{"type":40,"tag":364,"props":3719,"children":3720},{"class":366,"line":395},[3721],{"type":40,"tag":364,"props":3722,"children":3723},{"emptyLinePlaceholder":389},[3724],{"type":45,"value":392},{"type":40,"tag":364,"props":3726,"children":3727},{"class":366,"line":404},[3728],{"type":40,"tag":364,"props":3729,"children":3730},{},[3731],{"type":45,"value":3195},{"type":40,"tag":364,"props":3733,"children":3734},{"class":366,"line":413},[3735],{"type":40,"tag":364,"props":3736,"children":3737},{},[3738],{"type":45,"value":498},{"type":40,"tag":364,"props":3740,"children":3741},{"class":366,"line":422},[3742],{"type":40,"tag":364,"props":3743,"children":3744},{},[3745],{"type":45,"value":3746},"agent.invoke({\"messages\": [...]}, config=config)\n",{"type":40,"tag":364,"props":3748,"children":3749},{"class":366,"line":431},[3750],{"type":40,"tag":364,"props":3751,"children":3752},{},[3753],{"type":45,"value":3746},{"type":40,"tag":527,"props":3755,"children":3756},{},[3757,3758],{"type":45,"value":3686},{"type":40,"tag":353,"props":3759,"children":3761},{"className":533,"code":3760,"language":527,"meta":357,"style":357},"\u002F\u002F WRONG: Each invocation is isolated\nawait agent.invoke({ messages: [{ role: \"user\", content: \"Hi\" }] });\nawait agent.invoke({ messages: [{ role: \"user\", content: \"What did I say?\" }] });\n\n\u002F\u002F CORRECT\nconst config = { configurable: { thread_id: \"user-123\" } };\nawait agent.invoke({ messages: [...] }, config);\nawait agent.invoke({ messages: [...] }, config);\n",[3762],{"type":40,"tag":360,"props":3763,"children":3764},{"__ignoreMap":357},[3765,3773,3884,3992,3999,4006,4065,4125],{"type":40,"tag":364,"props":3766,"children":3767},{"class":366,"line":367},[3768],{"type":40,"tag":364,"props":3769,"children":3770},{"style":3220},[3771],{"type":45,"value":3772},"\u002F\u002F WRONG: Each invocation is isolated\n",{"type":40,"tag":364,"props":3774,"children":3775},{"class":366,"line":376},[3776,3781,3785,3789,3793,3797,3801,3806,3810,3814,3818,3822,3826,3830,3834,3838,3842,3846,3850,3854,3859,3863,3867,3872,3876,3880],{"type":40,"tag":364,"props":3777,"children":3778},{"style":544},[3779],{"type":45,"value":3780},"await",{"type":40,"tag":364,"props":3782,"children":3783},{"style":556},[3784],{"type":45,"value":1144},{"type":40,"tag":364,"props":3786,"children":3787},{"style":550},[3788],{"type":45,"value":848},{"type":40,"tag":364,"props":3790,"children":3791},{"style":701},[3792],{"type":45,"value":1153},{"type":40,"tag":364,"props":3794,"children":3795},{"style":556},[3796],{"type":45,"value":858},{"type":40,"tag":364,"props":3798,"children":3799},{"style":550},[3800],{"type":45,"value":863},{"type":40,"tag":364,"props":3802,"children":3803},{"style":778},[3804],{"type":45,"value":3805}," messages",{"type":40,"tag":364,"props":3807,"children":3808},{"style":550},[3809],{"type":45,"value":786},{"type":40,"tag":364,"props":3811,"children":3812},{"style":556},[3813],{"type":45,"value":1178},{"type":40,"tag":364,"props":3815,"children":3816},{"style":550},[3817],{"type":45,"value":863},{"type":40,"tag":364,"props":3819,"children":3820},{"style":778},[3821],{"type":45,"value":1187},{"type":40,"tag":364,"props":3823,"children":3824},{"style":550},[3825],{"type":45,"value":786},{"type":40,"tag":364,"props":3827,"children":3828},{"style":550},[3829],{"type":45,"value":574},{"type":40,"tag":364,"props":3831,"children":3832},{"style":577},[3833],{"type":45,"value":1200},{"type":40,"tag":364,"props":3835,"children":3836},{"style":550},[3837],{"type":45,"value":585},{"type":40,"tag":364,"props":3839,"children":3840},{"style":550},[3841],{"type":45,"value":804},{"type":40,"tag":364,"props":3843,"children":3844},{"style":778},[3845],{"type":45,"value":1213},{"type":40,"tag":364,"props":3847,"children":3848},{"style":550},[3849],{"type":45,"value":786},{"type":40,"tag":364,"props":3851,"children":3852},{"style":550},[3853],{"type":45,"value":574},{"type":40,"tag":364,"props":3855,"children":3856},{"style":577},[3857],{"type":45,"value":3858},"Hi",{"type":40,"tag":364,"props":3860,"children":3861},{"style":550},[3862],{"type":45,"value":585},{"type":40,"tag":364,"props":3864,"children":3865},{"style":550},[3866],{"type":45,"value":564},{"type":40,"tag":364,"props":3868,"children":3869},{"style":556},[3870],{"type":45,"value":3871},"] ",{"type":40,"tag":364,"props":3873,"children":3874},{"style":550},[3875],{"type":45,"value":894},{"type":40,"tag":364,"props":3877,"children":3878},{"style":556},[3879],{"type":45,"value":912},{"type":40,"tag":364,"props":3881,"children":3882},{"style":550},[3883],{"type":45,"value":590},{"type":40,"tag":364,"props":3885,"children":3886},{"class":366,"line":385},[3887,3891,3895,3899,3903,3907,3911,3915,3919,3923,3927,3931,3935,3939,3943,3947,3951,3955,3959,3963,3968,3972,3976,3980,3984,3988],{"type":40,"tag":364,"props":3888,"children":3889},{"style":544},[3890],{"type":45,"value":3780},{"type":40,"tag":364,"props":3892,"children":3893},{"style":556},[3894],{"type":45,"value":1144},{"type":40,"tag":364,"props":3896,"children":3897},{"style":550},[3898],{"type":45,"value":848},{"type":40,"tag":364,"props":3900,"children":3901},{"style":701},[3902],{"type":45,"value":1153},{"type":40,"tag":364,"props":3904,"children":3905},{"style":556},[3906],{"type":45,"value":858},{"type":40,"tag":364,"props":3908,"children":3909},{"style":550},[3910],{"type":45,"value":863},{"type":40,"tag":364,"props":3912,"children":3913},{"style":778},[3914],{"type":45,"value":3805},{"type":40,"tag":364,"props":3916,"children":3917},{"style":550},[3918],{"type":45,"value":786},{"type":40,"tag":364,"props":3920,"children":3921},{"style":556},[3922],{"type":45,"value":1178},{"type":40,"tag":364,"props":3924,"children":3925},{"style":550},[3926],{"type":45,"value":863},{"type":40,"tag":364,"props":3928,"children":3929},{"style":778},[3930],{"type":45,"value":1187},{"type":40,"tag":364,"props":3932,"children":3933},{"style":550},[3934],{"type":45,"value":786},{"type":40,"tag":364,"props":3936,"children":3937},{"style":550},[3938],{"type":45,"value":574},{"type":40,"tag":364,"props":3940,"children":3941},{"style":577},[3942],{"type":45,"value":1200},{"type":40,"tag":364,"props":3944,"children":3945},{"style":550},[3946],{"type":45,"value":585},{"type":40,"tag":364,"props":3948,"children":3949},{"style":550},[3950],{"type":45,"value":804},{"type":40,"tag":364,"props":3952,"children":3953},{"style":778},[3954],{"type":45,"value":1213},{"type":40,"tag":364,"props":3956,"children":3957},{"style":550},[3958],{"type":45,"value":786},{"type":40,"tag":364,"props":3960,"children":3961},{"style":550},[3962],{"type":45,"value":574},{"type":40,"tag":364,"props":3964,"children":3965},{"style":577},[3966],{"type":45,"value":3967},"What did I say?",{"type":40,"tag":364,"props":3969,"children":3970},{"style":550},[3971],{"type":45,"value":585},{"type":40,"tag":364,"props":3973,"children":3974},{"style":550},[3975],{"type":45,"value":564},{"type":40,"tag":364,"props":3977,"children":3978},{"style":556},[3979],{"type":45,"value":3871},{"type":40,"tag":364,"props":3981,"children":3982},{"style":550},[3983],{"type":45,"value":894},{"type":40,"tag":364,"props":3985,"children":3986},{"style":556},[3987],{"type":45,"value":912},{"type":40,"tag":364,"props":3989,"children":3990},{"style":550},[3991],{"type":45,"value":590},{"type":40,"tag":364,"props":3993,"children":3994},{"class":366,"line":395},[3995],{"type":40,"tag":364,"props":3996,"children":3997},{"emptyLinePlaceholder":389},[3998],{"type":45,"value":392},{"type":40,"tag":364,"props":4000,"children":4001},{"class":366,"line":404},[4002],{"type":40,"tag":364,"props":4003,"children":4004},{"style":3220},[4005],{"type":45,"value":3310},{"type":40,"tag":364,"props":4007,"children":4008},{"class":366,"line":413},[4009,4013,4017,4021,4025,4029,4033,4037,4041,4045,4049,4053,4057,4061],{"type":40,"tag":364,"props":4010,"children":4011},{"style":685},[4012],{"type":45,"value":688},{"type":40,"tag":364,"props":4014,"children":4015},{"style":556},[4016],{"type":45,"value":1067},{"type":40,"tag":364,"props":4018,"children":4019},{"style":550},[4020],{"type":45,"value":698},{"type":40,"tag":364,"props":4022,"children":4023},{"style":550},[4024],{"type":45,"value":553},{"type":40,"tag":364,"props":4026,"children":4027},{"style":778},[4028],{"type":45,"value":1080},{"type":40,"tag":364,"props":4030,"children":4031},{"style":550},[4032],{"type":45,"value":786},{"type":40,"tag":364,"props":4034,"children":4035},{"style":550},[4036],{"type":45,"value":553},{"type":40,"tag":364,"props":4038,"children":4039},{"style":778},[4040],{"type":45,"value":1093},{"type":40,"tag":364,"props":4042,"children":4043},{"style":550},[4044],{"type":45,"value":786},{"type":40,"tag":364,"props":4046,"children":4047},{"style":550},[4048],{"type":45,"value":574},{"type":40,"tag":364,"props":4050,"children":4051},{"style":577},[4052],{"type":45,"value":1106},{"type":40,"tag":364,"props":4054,"children":4055},{"style":550},[4056],{"type":45,"value":585},{"type":40,"tag":364,"props":4058,"children":4059},{"style":550},[4060],{"type":45,"value":564},{"type":40,"tag":364,"props":4062,"children":4063},{"style":550},[4064],{"type":45,"value":1119},{"type":40,"tag":364,"props":4066,"children":4067},{"class":366,"line":422},[4068,4072,4076,4080,4084,4088,4092,4096,4100,4104,4109,4113,4117,4121],{"type":40,"tag":364,"props":4069,"children":4070},{"style":544},[4071],{"type":45,"value":3780},{"type":40,"tag":364,"props":4073,"children":4074},{"style":556},[4075],{"type":45,"value":1144},{"type":40,"tag":364,"props":4077,"children":4078},{"style":550},[4079],{"type":45,"value":848},{"type":40,"tag":364,"props":4081,"children":4082},{"style":701},[4083],{"type":45,"value":1153},{"type":40,"tag":364,"props":4085,"children":4086},{"style":556},[4087],{"type":45,"value":858},{"type":40,"tag":364,"props":4089,"children":4090},{"style":550},[4091],{"type":45,"value":863},{"type":40,"tag":364,"props":4093,"children":4094},{"style":778},[4095],{"type":45,"value":3805},{"type":40,"tag":364,"props":4097,"children":4098},{"style":550},[4099],{"type":45,"value":786},{"type":40,"tag":364,"props":4101,"children":4102},{"style":556},[4103],{"type":45,"value":1178},{"type":40,"tag":364,"props":4105,"children":4106},{"style":550},[4107],{"type":45,"value":4108},"...",{"type":40,"tag":364,"props":4110,"children":4111},{"style":556},[4112],{"type":45,"value":3871},{"type":40,"tag":364,"props":4114,"children":4115},{"style":550},[4116],{"type":45,"value":1248},{"type":40,"tag":364,"props":4118,"children":4119},{"style":556},[4120],{"type":45,"value":1253},{"type":40,"tag":364,"props":4122,"children":4123},{"style":550},[4124],{"type":45,"value":590},{"type":40,"tag":364,"props":4126,"children":4127},{"class":366,"line":431},[4128,4132,4136,4140,4144,4148,4152,4156,4160,4164,4168,4172,4176,4180],{"type":40,"tag":364,"props":4129,"children":4130},{"style":544},[4131],{"type":45,"value":3780},{"type":40,"tag":364,"props":4133,"children":4134},{"style":556},[4135],{"type":45,"value":1144},{"type":40,"tag":364,"props":4137,"children":4138},{"style":550},[4139],{"type":45,"value":848},{"type":40,"tag":364,"props":4141,"children":4142},{"style":701},[4143],{"type":45,"value":1153},{"type":40,"tag":364,"props":4145,"children":4146},{"style":556},[4147],{"type":45,"value":858},{"type":40,"tag":364,"props":4149,"children":4150},{"style":550},[4151],{"type":45,"value":863},{"type":40,"tag":364,"props":4153,"children":4154},{"style":778},[4155],{"type":45,"value":3805},{"type":40,"tag":364,"props":4157,"children":4158},{"style":550},[4159],{"type":45,"value":786},{"type":40,"tag":364,"props":4161,"children":4162},{"style":556},[4163],{"type":45,"value":1178},{"type":40,"tag":364,"props":4165,"children":4166},{"style":550},[4167],{"type":45,"value":4108},{"type":40,"tag":364,"props":4169,"children":4170},{"style":556},[4171],{"type":45,"value":3871},{"type":40,"tag":364,"props":4173,"children":4174},{"style":550},[4175],{"type":45,"value":1248},{"type":40,"tag":364,"props":4177,"children":4178},{"style":556},[4179],{"type":45,"value":1253},{"type":40,"tag":364,"props":4181,"children":4182},{"style":550},[4183],{"type":45,"value":590},{"type":40,"tag":4185,"props":4186,"children":4187},"fix-frontmatter-required",{},[4188],{"type":40,"tag":353,"props":4189,"children":4191},{"className":2054,"code":4190,"language":2056,"meta":357,"style":357},"# WRONG: Missing frontmatter in SKILL.md\n# My Skill\nThis is my skill...\n\n# CORRECT: Include YAML frontmatter\n---\nname: my-skill\ndescription: Python testing best practices with pytest fixtures and mocking\n---\n# My Skill\nThis is my skill...\n",[4192],{"type":40,"tag":360,"props":4193,"children":4194},{"__ignoreMap":357},[4195,4207,4219,4227,4234,4246,4253,4261,4269,4276,4287],{"type":40,"tag":364,"props":4196,"children":4197},{"class":366,"line":367},[4198,4202],{"type":40,"tag":364,"props":4199,"children":4200},{"style":550},[4201],{"type":45,"value":2124},{"type":40,"tag":364,"props":4203,"children":4204},{"style":2127},[4205],{"type":45,"value":4206},"WRONG: Missing frontmatter in SKILL.md\n",{"type":40,"tag":364,"props":4208,"children":4209},{"class":366,"line":376},[4210,4214],{"type":40,"tag":364,"props":4211,"children":4212},{"style":550},[4213],{"type":45,"value":2124},{"type":40,"tag":364,"props":4215,"children":4216},{"style":2127},[4217],{"type":45,"value":4218},"My Skill\n",{"type":40,"tag":364,"props":4220,"children":4221},{"class":366,"line":385},[4222],{"type":40,"tag":364,"props":4223,"children":4224},{"style":556},[4225],{"type":45,"value":4226},"This is my skill...\n",{"type":40,"tag":364,"props":4228,"children":4229},{"class":366,"line":395},[4230],{"type":40,"tag":364,"props":4231,"children":4232},{"emptyLinePlaceholder":389},[4233],{"type":45,"value":392},{"type":40,"tag":364,"props":4235,"children":4236},{"class":366,"line":404},[4237,4241],{"type":40,"tag":364,"props":4238,"children":4239},{"style":550},[4240],{"type":45,"value":2124},{"type":40,"tag":364,"props":4242,"children":4243},{"style":2127},[4244],{"type":45,"value":4245},"CORRECT: Include YAML frontmatter\n",{"type":40,"tag":364,"props":4247,"children":4248},{"class":366,"line":413},[4249],{"type":40,"tag":364,"props":4250,"children":4251},{"style":556},[4252],{"type":45,"value":2068},{"type":40,"tag":364,"props":4254,"children":4255},{"class":366,"line":422},[4256],{"type":40,"tag":364,"props":4257,"children":4258},{"style":556},[4259],{"type":45,"value":4260},"name: my-skill\n",{"type":40,"tag":364,"props":4262,"children":4263},{"class":366,"line":431},[4264],{"type":40,"tag":364,"props":4265,"children":4266},{"style":556},[4267],{"type":45,"value":4268},"description: Python testing best practices with pytest fixtures and mocking\n",{"type":40,"tag":364,"props":4270,"children":4271},{"class":366,"line":439},[4272],{"type":40,"tag":364,"props":4273,"children":4274},{"style":550},[4275],{"type":45,"value":2068},{"type":40,"tag":364,"props":4277,"children":4278},{"class":366,"line":448},[4279,4283],{"type":40,"tag":364,"props":4280,"children":4281},{"style":550},[4282],{"type":45,"value":2124},{"type":40,"tag":364,"props":4284,"children":4285},{"style":2127},[4286],{"type":45,"value":4218},{"type":40,"tag":364,"props":4288,"children":4289},{"class":366,"line":457},[4290],{"type":40,"tag":364,"props":4291,"children":4292},{"style":556},[4293],{"type":45,"value":4226},{"type":40,"tag":4295,"props":4296,"children":4297},"fix-backend-for-skills",{},[4298],{"type":40,"tag":347,"props":4299,"children":4300},{},[4301,4303],{"type":45,"value":4302},"\nSkills require a proper backend to load from the filesystem.\n",{"type":40,"tag":353,"props":4304,"children":4306},{"className":355,"code":4305,"language":347,"meta":357,"style":357},"# WRONG: Skills won't load without proper backend\nagent = create_deep_agent(skills=[\".\u002Fskills\u002F\"])\n\n# CORRECT: Use FilesystemBackend for local skills\nagent = create_deep_agent(\n    backend=FilesystemBackend(root_dir=\".\", virtual_mode=True),\n    skills=[\".\u002Fskills\u002F\"]\n)\n",[4307],{"type":40,"tag":360,"props":4308,"children":4309},{"__ignoreMap":357},[4310,4318,4326,4333,4341,4348,4355,4363],{"type":40,"tag":364,"props":4311,"children":4312},{"class":366,"line":367},[4313],{"type":40,"tag":364,"props":4314,"children":4315},{},[4316],{"type":45,"value":4317},"# WRONG: Skills won't load without proper backend\n",{"type":40,"tag":364,"props":4319,"children":4320},{"class":366,"line":376},[4321],{"type":40,"tag":364,"props":4322,"children":4323},{},[4324],{"type":45,"value":4325},"agent = create_deep_agent(skills=[\".\u002Fskills\u002F\"])\n",{"type":40,"tag":364,"props":4327,"children":4328},{"class":366,"line":385},[4329],{"type":40,"tag":364,"props":4330,"children":4331},{"emptyLinePlaceholder":389},[4332],{"type":45,"value":392},{"type":40,"tag":364,"props":4334,"children":4335},{"class":366,"line":395},[4336],{"type":40,"tag":364,"props":4337,"children":4338},{},[4339],{"type":45,"value":4340},"# CORRECT: Use FilesystemBackend for local skills\n",{"type":40,"tag":364,"props":4342,"children":4343},{"class":366,"line":404},[4344],{"type":40,"tag":364,"props":4345,"children":4346},{},[4347],{"type":45,"value":445},{"type":40,"tag":364,"props":4349,"children":4350},{"class":366,"line":413},[4351],{"type":40,"tag":364,"props":4352,"children":4353},{},[4354],{"type":45,"value":1365},{"type":40,"tag":364,"props":4356,"children":4357},{"class":366,"line":422},[4358],{"type":40,"tag":364,"props":4359,"children":4360},{},[4361],{"type":45,"value":4362},"    skills=[\".\u002Fskills\u002F\"]\n",{"type":40,"tag":364,"props":4364,"children":4365},{"class":366,"line":431},[4366],{"type":40,"tag":364,"props":4367,"children":4368},{},[4369],{"type":45,"value":481},{"type":40,"tag":4371,"props":4372,"children":4373},"fix-specific-skill-descriptions",{},[4374,4376],{"type":45,"value":4375},"\nUse specific descriptions to help agents decide when to use a skill.\n",{"type":40,"tag":353,"props":4377,"children":4379},{"className":2054,"code":4378,"language":2056,"meta":357,"style":357},"# WRONG: Vague description\n---\nname: helper\ndescription: Helpful skill\n---\n\n# CORRECT: Specific description\n---\nname: python-testing\ndescription: Python testing best practices with pytest fixtures, mocking, and async patterns\n---\n",[4380],{"type":40,"tag":360,"props":4381,"children":4382},{"__ignoreMap":357},[4383,4395,4402,4410,4418,4425,4432,4444,4451,4458,4466],{"type":40,"tag":364,"props":4384,"children":4385},{"class":366,"line":367},[4386,4390],{"type":40,"tag":364,"props":4387,"children":4388},{"style":550},[4389],{"type":45,"value":2124},{"type":40,"tag":364,"props":4391,"children":4392},{"style":2127},[4393],{"type":45,"value":4394},"WRONG: Vague description\n",{"type":40,"tag":364,"props":4396,"children":4397},{"class":366,"line":376},[4398],{"type":40,"tag":364,"props":4399,"children":4400},{"style":556},[4401],{"type":45,"value":2068},{"type":40,"tag":364,"props":4403,"children":4404},{"class":366,"line":385},[4405],{"type":40,"tag":364,"props":4406,"children":4407},{"style":556},[4408],{"type":45,"value":4409},"name: helper\n",{"type":40,"tag":364,"props":4411,"children":4412},{"class":366,"line":395},[4413],{"type":40,"tag":364,"props":4414,"children":4415},{"style":556},[4416],{"type":45,"value":4417},"description: Helpful skill\n",{"type":40,"tag":364,"props":4419,"children":4420},{"class":366,"line":404},[4421],{"type":40,"tag":364,"props":4422,"children":4423},{"style":550},[4424],{"type":45,"value":2068},{"type":40,"tag":364,"props":4426,"children":4427},{"class":366,"line":413},[4428],{"type":40,"tag":364,"props":4429,"children":4430},{"emptyLinePlaceholder":389},[4431],{"type":45,"value":392},{"type":40,"tag":364,"props":4433,"children":4434},{"class":366,"line":422},[4435,4439],{"type":40,"tag":364,"props":4436,"children":4437},{"style":550},[4438],{"type":45,"value":2124},{"type":40,"tag":364,"props":4440,"children":4441},{"style":2127},[4442],{"type":45,"value":4443},"CORRECT: Specific description\n",{"type":40,"tag":364,"props":4445,"children":4446},{"class":366,"line":431},[4447],{"type":40,"tag":364,"props":4448,"children":4449},{"style":556},[4450],{"type":45,"value":2068},{"type":40,"tag":364,"props":4452,"children":4453},{"class":366,"line":439},[4454],{"type":40,"tag":364,"props":4455,"children":4456},{"style":556},[4457],{"type":45,"value":2952},{"type":40,"tag":364,"props":4459,"children":4460},{"class":366,"line":448},[4461],{"type":40,"tag":364,"props":4462,"children":4463},{"style":556},[4464],{"type":45,"value":4465},"description: Python testing best practices with pytest fixtures, mocking, and async patterns\n",{"type":40,"tag":364,"props":4467,"children":4468},{"class":366,"line":457},[4469],{"type":40,"tag":364,"props":4470,"children":4471},{"style":550},[4472],{"type":45,"value":2068},{"type":40,"tag":4474,"props":4475,"children":4476},"fix-subagent-skills",{},[4477],{"type":40,"tag":347,"props":4478,"children":4479},{},[4480,4482],{"type":45,"value":4481},"\nSkills are not inherited by subagents - provide them explicitly.\n",{"type":40,"tag":353,"props":4483,"children":4485},{"className":355,"code":4484,"language":347,"meta":357,"style":357},"# WRONG: Custom subagents don't inherit skills\nagent = create_deep_agent(\n    skills=[\"\u002Fmain-skills\u002F\"],\n    subagents=[{\"name\": \"helper\", ...}]  # No skills\n)\n\n# CORRECT: Provide skills explicitly\nagent = create_deep_agent(\n    skills=[\"\u002Fmain-skills\u002F\"],\n    subagents=[{\"name\": \"helper\", \"skills\": [\"\u002Fhelper-skills\u002F\"], ...}]\n)\n",[4486],{"type":40,"tag":360,"props":4487,"children":4488},{"__ignoreMap":357},[4489,4497,4504,4512,4520,4527,4534,4542,4549,4556,4564],{"type":40,"tag":364,"props":4490,"children":4491},{"class":366,"line":367},[4492],{"type":40,"tag":364,"props":4493,"children":4494},{},[4495],{"type":45,"value":4496},"# WRONG: Custom subagents don't inherit skills\n",{"type":40,"tag":364,"props":4498,"children":4499},{"class":366,"line":376},[4500],{"type":40,"tag":364,"props":4501,"children":4502},{},[4503],{"type":45,"value":445},{"type":40,"tag":364,"props":4505,"children":4506},{"class":366,"line":385},[4507],{"type":40,"tag":364,"props":4508,"children":4509},{},[4510],{"type":45,"value":4511},"    skills=[\"\u002Fmain-skills\u002F\"],\n",{"type":40,"tag":364,"props":4513,"children":4514},{"class":366,"line":395},[4515],{"type":40,"tag":364,"props":4516,"children":4517},{},[4518],{"type":45,"value":4519},"    subagents=[{\"name\": \"helper\", ...}]  # No skills\n",{"type":40,"tag":364,"props":4521,"children":4522},{"class":366,"line":404},[4523],{"type":40,"tag":364,"props":4524,"children":4525},{},[4526],{"type":45,"value":481},{"type":40,"tag":364,"props":4528,"children":4529},{"class":366,"line":413},[4530],{"type":40,"tag":364,"props":4531,"children":4532},{"emptyLinePlaceholder":389},[4533],{"type":45,"value":392},{"type":40,"tag":364,"props":4535,"children":4536},{"class":366,"line":422},[4537],{"type":40,"tag":364,"props":4538,"children":4539},{},[4540],{"type":45,"value":4541},"# CORRECT: Provide skills explicitly\n",{"type":40,"tag":364,"props":4543,"children":4544},{"class":366,"line":431},[4545],{"type":40,"tag":364,"props":4546,"children":4547},{},[4548],{"type":45,"value":445},{"type":40,"tag":364,"props":4550,"children":4551},{"class":366,"line":439},[4552],{"type":40,"tag":364,"props":4553,"children":4554},{},[4555],{"type":45,"value":4511},{"type":40,"tag":364,"props":4557,"children":4558},{"class":366,"line":448},[4559],{"type":40,"tag":364,"props":4560,"children":4561},{},[4562],{"type":45,"value":4563},"    subagents=[{\"name\": \"helper\", \"skills\": [\"\u002Fhelper-skills\u002F\"], ...}]\n",{"type":40,"tag":364,"props":4565,"children":4566},{"class":366,"line":457},[4567],{"type":40,"tag":364,"props":4568,"children":4569},{},[4570],{"type":45,"value":481},{"type":40,"tag":4572,"props":4573,"children":4574},"style",{},[4575],{"type":45,"value":4576},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4578,"total":3041},[4579,4586,4601,4619,4630,4641,4657],{"slug":4,"name":4,"fn":5,"description":6,"org":4580,"tags":4581,"stars":24,"repoUrl":25,"updatedAt":26},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4582,4583,4584,4585],{"name":22,"slug":23,"type":16},{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":14,"slug":15,"type":16},{"slug":4587,"name":4587,"fn":4588,"description":4589,"org":4590,"tags":4591,"stars":24,"repoUrl":25,"updatedAt":4600},"deep-agents-memory","implement memory and persistence for Deep Agents","INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access. Covers StateBackend (ephemeral), StoreBackend (persistent), FilesystemMiddleware, and CompositeBackend for routing.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4592,4593,4594,4597],{"name":22,"slug":23,"type":16},{"name":9,"slug":8,"type":16},{"name":4595,"slug":4596,"type":16},"Memory","memory",{"name":4598,"slug":4599,"type":16},"Storage","storage","2026-04-06T18:26:26.065654",{"slug":4602,"name":4602,"fn":4603,"description":4604,"org":4605,"tags":4606,"stars":24,"repoUrl":25,"updatedAt":4618},"deep-agents-orchestration","orchestrate subagents and tasks in Deep Agents","INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents. Covers SubAgentMiddleware, TodoList for planning, and HITL interrupts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4607,4608,4611,4612,4615],{"name":22,"slug":23,"type":16},{"name":4609,"slug":4610,"type":16},"Approvals","approvals",{"name":9,"slug":8,"type":16},{"name":4613,"slug":4614,"type":16},"Multi-Agent","multi-agent",{"name":4616,"slug":4617,"type":16},"Workflow Automation","workflow-automation","2026-04-06T18:26:32.280463",{"slug":4620,"name":4620,"fn":4621,"description":4622,"org":4623,"tags":4624,"stars":24,"repoUrl":25,"updatedAt":4629},"deepagents-python-quickstart","scaffold local Deep Agents","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.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4625,4626,4627],{"name":22,"slug":23,"type":16},{"name":9,"slug":8,"type":16},{"name":4628,"slug":347,"type":16},"Python","2026-07-24T06:09:00.291108",{"slug":4631,"name":4631,"fn":4632,"description":4633,"org":4634,"tags":4635,"stars":24,"repoUrl":25,"updatedAt":4640},"deepagents-typescript-quickstart","build Deep Agents in TypeScript","Scaffold a minimal local Deep Agent in TypeScript 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.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4636,4637,4638],{"name":22,"slug":23,"type":16},{"name":9,"slug":8,"type":16},{"name":4639,"slug":527,"type":16},"TypeScript","2026-07-24T06:09:00.673714",{"slug":4642,"name":4642,"fn":4643,"description":4644,"org":4645,"tags":4646,"stars":24,"repoUrl":25,"updatedAt":4656},"ecosystem-primer","select frameworks for LangChain and LangGraph agents","INVOKE FIRST for any LangChain \u002F LangGraph \u002F Deep Agents agent building project before consulting other skills or writing any agent code. Required starting point for up to date info on framework selection (LangChain vs LangGraph vs Deep Agents vs hybrid composition), agent patterns, install, environment setup, and which skill to load next.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4647,4648,4651,4652,4653],{"name":22,"slug":23,"type":16},{"name":4649,"slug":4650,"type":16},"AI Infrastructure","ai-infrastructure",{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":4654,"slug":4655,"type":16},"LangGraph","langgraph","2026-07-24T05:42:48.348966",{"slug":4658,"name":4658,"fn":4659,"description":4660,"org":4661,"tags":4662,"stars":24,"repoUrl":25,"updatedAt":4674},"eval-engineering","create and audit Harbor agent evals","Iteratively inspect an agent repository and optional user-provided traces, interview the user, and create, run, and audit Harbor evals one at a time. Use for agent evals, Harbor tasks, benchmark cases, verifier design, or controlled agent environments.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4663,4664,4667,4670,4671],{"name":22,"slug":23,"type":16},{"name":4665,"slug":4666,"type":16},"Code Analysis","code-analysis",{"name":4668,"slug":4669,"type":16},"Evals","evals",{"name":9,"slug":8,"type":16},{"name":4672,"slug":4673,"type":16},"Testing","testing","2026-07-31T05:53:29.552458",{"items":4676,"total":4846},[4677,4698,4709,4726,4739,4754,4767,4780,4794,4804,4815,4833],{"slug":4678,"name":4678,"fn":4679,"description":4680,"org":4681,"tags":4682,"stars":4695,"repoUrl":4696,"updatedAt":4697},"analyze-market","perform market analysis and size estimation","Perform a market analysis for a product category or segment. Trigger on: market analysis, market size, TAM SAM SOM, market opportunity, industry analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4683,4686,4689,4692],{"name":4684,"slug":4685,"type":16},"Marketing","marketing",{"name":4687,"slug":4688,"type":16},"Research","research",{"name":4690,"slug":4691,"type":16},"Sales","sales",{"name":4693,"slug":4694,"type":16},"Strategy","strategy",26592,"https:\u002F\u002Fgithub.com\u002Flangchain-ai\u002Fdeepagents","2026-04-18T04:46:54.557115",{"slug":4699,"name":4699,"fn":4700,"description":4701,"org":4702,"tags":4703,"stars":4695,"repoUrl":4696,"updatedAt":4708},"arxiv-search","search arXiv for academic research papers","Searches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic. Use when the user asks to find research papers, search arXiv, look up preprints, find academic articles in physics, math, CS, biology, statistics, or related fields.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4704,4705],{"name":4687,"slug":4688,"type":16},{"name":4706,"slug":4707,"type":16},"Search","search","2026-05-13T06:11:01.203061",{"slug":4710,"name":4710,"fn":4711,"description":4712,"org":4713,"tags":4714,"stars":4695,"repoUrl":4696,"updatedAt":4725},"blog-post","write SEO-optimized blog posts","Write long-form blog posts with SEO optimization and clear structure.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4715,4718,4719,4722],{"name":4716,"slug":4717,"type":16},"Content Creation","content-creation",{"name":4684,"slug":4685,"type":16},{"name":4720,"slug":4721,"type":16},"SEO","seo",{"name":4723,"slug":4724,"type":16},"Writing","writing","2026-04-15T05:00:54.149813",{"slug":4727,"name":4727,"fn":4728,"description":4729,"org":4730,"tags":4731,"stars":4695,"repoUrl":4696,"updatedAt":4738},"competitor-analysis","analyze competitors and market positioning","Analyze competitors in a given market segment. Trigger on: competitive landscape, competitor analysis, market comparison, competitive positioning.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4732,4735,4736,4737],{"name":4733,"slug":4734,"type":16},"Competitive Intelligence","competitive-intelligence",{"name":4684,"slug":4685,"type":16},{"name":4687,"slug":4688,"type":16},{"name":4693,"slug":4694,"type":16},"2026-04-18T04:46:55.79306",{"slug":4740,"name":4740,"fn":4741,"description":4742,"org":4743,"tags":4744,"stars":4695,"repoUrl":4696,"updatedAt":4753},"deepagents-thread-inspector","inspect local Deep Agents conversation threads","Inspect and explain conversations in the local Deep Agents Code SQLite session store. Use as a fallback when LangSmith trace tooling is unavailable, for offline or untraced sessions, or when asked to identify or summarize a local dcode thread, inspect checkpoint metadata, list recent local threads, or parse ~\u002F.deepagents\u002F.state\u002Fsessions.db and a thread UUID or prefix.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4745,4746,4749,4750],{"name":22,"slug":23,"type":16},{"name":4747,"slug":4748,"type":16},"Debugging","debugging",{"name":9,"slug":8,"type":16},{"name":4751,"slug":4752,"type":16},"SQLite","sqlite","2026-07-24T06:08:57.102689",{"slug":4755,"name":4755,"fn":4756,"description":4757,"org":4758,"tags":4759,"stars":4695,"repoUrl":4696,"updatedAt":4766},"langgraph-docs","build stateful agents with LangGraph","Fetches and references LangGraph Python documentation to build stateful agents, create multi-agent workflows, and implement human-in-the-loop patterns. Use when the user asks about LangGraph, graph agents, state machines, agent orchestration, LangGraph API, or needs LangGraph implementation guidance.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4760,4761,4764,4765],{"name":22,"slug":23,"type":16},{"name":4762,"slug":4763,"type":16},"Documentation","documentation",{"name":4654,"slug":4655,"type":16},{"name":4613,"slug":4614,"type":16},"2026-05-13T06:11:03.650877",{"slug":4768,"name":4768,"fn":4769,"description":4770,"org":4771,"tags":4772,"stars":4695,"repoUrl":4696,"updatedAt":4779},"remember","capture knowledge into persistent memory","Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4773,4774,4775,4778],{"name":22,"slug":23,"type":16},{"name":4762,"slug":4763,"type":16},{"name":4776,"slug":4777,"type":16},"Knowledge Management","knowledge-management",{"name":4595,"slug":4596,"type":16},"2026-05-13T06:10:58.510037",{"slug":4781,"name":4781,"fn":4782,"description":4783,"org":4784,"tags":4785,"stars":4695,"repoUrl":4696,"updatedAt":4793},"skill-creator","create agent skills and tool integrations","Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user asks to: (1) create a new skill, (2) make a skill, (3) build a skill, (4) set up a skill, (5) initialize a skill, (6) scaffold a skill, (7) update or modify an existing skill, (8) validate a skill, (9) learn about skill structure, (10) understand how skills work, or (11) get guidance on skill design patterns. Trigger on phrases like \"create a skill\", \"new skill\", \"make a skill\", \"skill for X\", \"how do I create a skill\", or \"help me build a skill\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4786,4787,4790],{"name":22,"slug":23,"type":16},{"name":4788,"slug":4789,"type":16},"Engineering","engineering",{"name":4791,"slug":4792,"type":16},"Plugin Development","plugin-development","2026-05-13T06:10:59.88449",{"slug":4795,"name":4795,"fn":4796,"description":4797,"org":4798,"tags":4799,"stars":4695,"repoUrl":4696,"updatedAt":4803},"social-media","create optimized social media posts","Create social media posts optimized for engagement across platforms.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4800,4801,4802],{"name":4716,"slug":4717,"type":16},{"name":4684,"slug":4685,"type":16},{"name":4723,"slug":4724,"type":16},"2026-04-15T05:00:55.37452",{"slug":4805,"name":4805,"fn":4806,"description":4807,"org":4808,"tags":4809,"stars":4695,"repoUrl":4696,"updatedAt":4814},"web-research","conduct and synthesize web research","Searches multiple web sources, synthesizes findings, and produces cited research reports using delegated subagents. Use when the user asks to research a topic online, search the web, look something up, find current information, compare options, or produce a research report.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4810,4811,4812,4813],{"name":22,"slug":23,"type":16},{"name":4613,"slug":4614,"type":16},{"name":4687,"slug":4688,"type":16},{"name":4706,"slug":4707,"type":16},"2026-05-13T06:11:04.930044",{"slug":4816,"name":4816,"fn":4817,"description":4818,"org":4819,"tags":4820,"stars":4830,"repoUrl":4831,"updatedAt":4832},"mermaid-diagrams","embed Mermaid diagrams in documentation","Embed Mermaid diagrams in generated wiki pages. Use whenever documenting a runtime or request flow, a call sequence, a state machine or lifecycle, a data model or entity relationships, or non-trivial control flow, since these are clearer as a diagram than as prose. Also use when an update run touches a page that already contains a mermaid fence, or a page that contains a text fence a previous run degraded.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4821,4824,4825,4827],{"name":4822,"slug":4823,"type":16},"Diagrams","diagrams",{"name":4762,"slug":4763,"type":16},{"name":4826,"slug":2056,"type":16},"Markdown",{"name":4828,"slug":4829,"type":16},"Technical Writing","technical-writing",12181,"https:\u002F\u002Fgithub.com\u002Flangchain-ai\u002Fopenwiki","2026-07-24T06:09:01.089597",{"slug":4834,"name":4834,"fn":4835,"description":4836,"org":4837,"tags":4838,"stars":4830,"repoUrl":4831,"updatedAt":4845},"write-connector","implement OpenWiki source connectors","Add a new built-in OpenWiki source connector. Use when a user asks to create or implement an OpenWiki connector.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4839,4842],{"name":4840,"slug":4841,"type":16},"API Development","api-development",{"name":4843,"slug":4844,"type":16},"Integrations","integrations","2026-07-18T05:48:23.961804",41]