Deep agents come with a built-in system prompt inspired by Claude Code’s system prompt. The default system prompt contains detailed instructions for using the built-in planning tool, file system tools, and subagents.Each deep agent tailored to a use case should include a custom system prompt specific to that use case.
Copy
from deepagents import create_deep_agentresearch_instructions = """\You are an expert researcher. Your job is to conduct \thorough research, and then write a polished report. \"""agent = create_deep_agent( system_prompt=research_instructions,)
You can use skills to provide your deep agent with new capabilities and expertise.
While tools tend to cover lower level functionality like native file system actions or planning, skills can contain detailed instructions on how to complete tasks, reference info, and other assets, such as templates.
These files are only loaded by the agent when the agent has determined that the skill is useful for the current prompt.
This progressive disclosure reduces the amount of tokens and context the agent has to consider upon startup.For example skills, see Deep Agent example skills.To add skills to your deep agent, pass them as an argument to create_deep_agent:
Use AGENTS.md files to provide extra context to your deep agent.You can pass one or more file paths to the memory parameter when creating your deep agent:
Copy
from urllib.request import urlopenfrom deepagents import create_deep_agentfrom deepagents.backends.utils import create_file_datafrom langgraph.checkpoint.memory import MemorySaverwith urlopen("https://raw.githubusercontent.com/langchain-ai/deepagents/refs/heads/master/examples/text-to-sql-agent/AGENTS.md") as response: agents_md = response.read().decode("utf-8")checkpointer = MemorySaver()agent = create_deep_agent( memory=[ "/AGENTS.md" ], checkpointer=checkpointer,)result = agent.invoke( { "messages": [ { "role": "user", "content": "Please tell me what's in your memory files.", } ], # Seed the default StateBackend's in-state filesystem (virtual paths must start with "/"). "files": {"/AGENTS.md": create_file_data(agents_md)}, }, config={"configurable": {"thread_id": "123456"}},)