Skip to content
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

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "deepagents — System Prompt" prompt rules to my project.
Repository: https://github.com/langchain-ai/deepagents

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Agent harness built with LangChain and LangGraph. Equipped with a planning tool, a filesystem backend, and the ability to spawn subagents - 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}

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption1K+ stars on GitHub
12.3k ★ · Popular
DocsREADME + description
Well-documented

GitHub Signals

Stars12.3k
Forks1.9k
Issues176
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more