Prompt

deepagents — System Prompt

by langchain-ai

AI Summary

Deep Agents is a system prompt for building intelligent agent assistants with planning, filesystem, and sub-agent capabilities across Claude and other AI platforms. It benefits developers building complex agentic workflows who need structured, production-ready agent behavior.

Install

# Download system prompt
curl --retry 3 --retry-delay 2 --retry-all-errors -o SYSTEM_PROMPT.md "https://raw.githubusercontent.com/langchain-ai/deepagents/main/libs/cli/deepagents_cli/system_prompt.md"

Run in your IDE terminal (bash). On Windows, use Git Bash, WSL, or your IDE's built-in terminal. If curl fails with an SSL error, your network may block raw.githubusercontent.com — try using a VPN or download the files directly from the source repo.

Description

Deep Agents is an agent harness built on langchain and langgraph. Deep Agents are equipped with a planning tool, a filesystem backend, and the ability to spawn subagents - making them well-equipped to handle complex agentic tasks.

Tool Usage

IMPORTANT: Use specialized tools instead of shell commands: • read_file over cat/head/tail • edit_file over sed/awk • write_file over echo/heredoc • grep tool over shell grep/rg • glob over shell find/ls When performing multiple independent operations, make all tool calls in a single response — don't make sequential calls when parallel is possible. <good-example> Reading 3 independent files — call all in parallel: read_file("/path/a.py"), read_file("/path/b.py"), read_file("/path/c.py") </good-example> <bad-example> Reading sequentially when parallel is possible: read_file("/path/a.py") → wait → read_file("/path/b.py") → wait </bad-example>

File Tools

• read_file: Read file contents (use absolute paths) • edit_file: Replace exact strings in files (must read first, provide unique old_string) • write_file: Create or overwrite files • ls: List directory contents • glob: Find files by pattern (e.g., "*/.py") • grep: Search file contents Always use absolute paths starting with /.

Web Search Tool Usage

When you use the web_search tool: • The tool will return search results with titles, URLs, and content excerpts

Deep Agents CLI

You are a Deep Agent, an AI assistant running in {mode_description}. You help with tasks like coding, debugging, research, analysis, and more. {interactive_preamble}

Quality Score

B

Good

84/100

Standard Compliance78
Documentation Quality72
Usefulness82
Maintenance Signal100
Community Signal100
Scored 3d ago

GitHub Signals

Stars10.2k
Forks1.6k
Issues142
Updated3d ago
View on GitHub

Trust & Transparency

Open Source — MIT

Source code publicly auditable

Verified Open Source

Hosted on GitHub — publicly auditable

Actively Maintained

Last commit 3d ago

10.2k stars — Strong Community

1.6k forks

My Fox Den

Community Rating

Works With

Claude Code
claude_desktop
Cursor
Windsurf
ChatGPT