{"id":30412011,"url":"https://github.com/langchain-ai/deepagents","last_synced_at":"2026-04-10T21:23:16.467Z","repository":{"id":306863479,"uuid":"1027384981","full_name":"langchain-ai/deepagents","owner":"langchain-ai","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.","archived":false,"fork":false,"pushed_at":"2026-04-02T01:30:31.000Z","size":63527,"stargazers_count":18641,"open_issues_count":210,"forks_count":2598,"subscribers_count":107,"default_branch":"main","last_synced_at":"2026-04-02T05:03:30.333Z","etag":null,"topics":["ai","deepagents","langchain","langgraph"],"latest_commit_sha":null,"homepage":"https://docs.langchain.com/deepagents","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/langchain-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-07-27T23:07:53.000Z","updated_at":"2026-04-02T04:43:23.000Z","dependencies_parsed_at":"2026-02-12T23:00:57.558Z","dependency_job_id":null,"html_url":"https://github.com/langchain-ai/deepagents","commit_stats":null,"previous_names":["hwchase17/claude-everything","hwchase17/deepagents","langchain-ai/deepagents"],"tags_count":79,"template":false,"template_full_name":null,"purl":"pkg:github/langchain-ai/deepagents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fdeepagents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fdeepagents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fdeepagents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fdeepagents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/langchain-ai","download_url":"https://codeload.github.com/langchain-ai/deepagents/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fdeepagents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31528751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","deepagents","langchain","langgraph"],"created_at":"2025-08-22T02:01:10.735Z","updated_at":"2026-04-07T21:02:02.427Z","avatar_url":"https://github.com/langchain-ai.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://docs.langchain.com/oss/python/deepagents/overview#deep-agents-overview\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\".github/images/logo-dark.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\".github/images/logo-light.svg\"\u003e\n      \u003cimg alt=\"Deep Agents Logo\" src=\".github/images/logo-dark.svg\" width=\"50%\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch3\u003eThe batteries-included agent harness.\u003c/h3\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/l/deepagents\" alt=\"PyPI - License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypistats.org/packages/deepagents\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pepy/dt/deepagents\" alt=\"PyPI - Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/deepagents/#history\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/deepagents?label=%20\" alt=\"Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://x.com/langchain\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/url/https/twitter.com/langchain.svg?style=social\u0026label=Follow%20%40LangChain\" alt=\"Twitter / X\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\nDeep Agents is an agent harness. An opinionated, ready-to-run agent out of the box. Instead of wiring up prompts, tools, and context management yourself, you get a working agent immediately and customize what you need.\n\n**What's included:**\n\n- **Planning** — `write_todos` for task breakdown and progress tracking\n- **Filesystem** — `read_file`, `write_file`, `edit_file`, `ls`, `glob`, `grep` for reading and writing context\n- **Shell access** — `execute` for running commands (with sandboxing)\n- **Sub-agents** — `task` for delegating work with isolated context windows\n- **Smart defaults** — Prompts that teach the model how to use these tools effectively\n- **Context management** — Auto-summarization when conversations get long, large outputs saved to files\n\n\u003e [!NOTE]\n\u003e Looking for the JS/TS library? Check out [deepagents.js](https://github.com/langchain-ai/deepagentsjs).\n\n## Quickstart\n\n```bash\npip install deepagents\n# or\nuv add deepagents\n```\n\n```python\nfrom deepagents import create_deep_agent\n\nagent = create_deep_agent()\nresult = agent.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"Research LangGraph and write a summary\"}]})\n```\n\nThe agent can plan, read/write files, and manage its own context. Add tools, customize prompts, or swap models as needed.\n\n\u003e [!TIP]\n\u003e For developing, debugging, and deploying AI agents and LLM applications, see [LangSmith](https://docs.langchain.com/langsmith/home).\n\n## Customization\n\nAdd your own tools, swap models, customize prompts, configure sub-agents, and more. See the [documentation](https://docs.langchain.com/oss/python/deepagents/overview) for full details.\n\n```python\nfrom langchain.chat_models import init_chat_model\n\nagent = create_deep_agent(\n    model=init_chat_model(\"openai:gpt-4o\"),\n    tools=[my_custom_tool],\n    system_prompt=\"You are a research assistant.\",\n)\n```\n\nMCP is supported via [`langchain-mcp-adapters`](https://github.com/langchain-ai/langchain-mcp-adapters).\n\n## Deep Agents CLI\n\nA pre-built coding agent in your terminal — similar to Claude Code or Cursor — powered by any LLM. One install command and you're up and running.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"libs/cli/images/cli.png\" alt=\"Deep Agents CLI\" width=\"600\"/\u003e\n\u003c/p\u003e\n\n```bash\ncurl -LsSf https://raw.githubusercontent.com/langchain-ai/deepagents/main/libs/cli/scripts/install.sh | bash\n```\n\n**Highlights:**\n\n- **Interactive TUI** — rich terminal interface with streaming responses\n- **Web search** — ground responses in live information\n- **Headless mode** — run non-interactively for scripting and CI\n- Plus all SDK features out of the box — remote sandboxes, persistent memory, custom skills, and human-in-the-loop approval\n\nSee the [CLI documentation](https://docs.langchain.com/oss/python/deepagents/cli/overview) for the full feature set.\n\n## LangGraph Native\n\n`create_deep_agent` returns a compiled [LangGraph](https://docs.langchain.com/oss/python/langgraph/overview) graph. Use it with streaming, Studio, checkpointers, or any LangGraph feature.\n\n## FAQ\n\n### Why should I use this?\n\n- **100% open source** — MIT licensed, fully extensible\n- **Provider agnostic** — Works with any Large Language Model that supports tool calling, including both frontier and open models\n- **Built on LangGraph** — Production-ready runtime with streaming, persistence, and checkpointing\n- **Batteries included** — Planning, file access, sub-agents, and context management work out of the box\n- **Get started in seconds** — `uv add deepagents` and you have a working agent\n- **Customize in minutes** — Add tools, swap models, tune prompts when you need to\n\n---\n\n## Documentation\n\n- [docs.langchain.com](https://docs.langchain.com/oss/python/deepagents/overview) – Comprehensive documentation, including conceptual overviews and guides\n- [reference.langchain.com/python](https://reference.langchain.com/python/deepagents/) – API reference docs for Deep Agents packages\n- [Chat LangChain](https://chat.langchain.com/) – Chat with the LangChain documentation and get answers to your questions\n\n**Discussions**: Visit the [LangChain Forum](https://forum.langchain.com) to connect with the community and share all of your technical questions, ideas, and feedback.\n\n## Additional resources\n\n- **[Examples](examples/)** — Working agents and patterns\n- [Contributing Guide](https://docs.langchain.com/oss/python/contributing/overview) – Learn how to contribute to LangChain projects and find good first issues.\n- [Code of Conduct](https://github.com/langchain-ai/langchain/?tab=coc-ov-file) – Our community guidelines and standards for participation.\n\n---\n\n## Acknowledgements\n\nThis project was primarily inspired by Claude Code, and initially was largely an attempt to see what made Claude Code general purpose, and make it even more so.\n\n## Security\n\nDeep Agents follows a \"trust the LLM\" model. The agent can do anything its tools allow. Enforce boundaries at the tool/sandbox level, not by expecting the model to self-police. See the [security policy](https://github.com/langchain-ai/deepagents?tab=security-ov-file) for more information.\n","funding_links":[],"categories":["AI \u0026 LLM","Personal Assistants \u0026 Conversational Agents","Python","🤖 AI \u0026 Machine Learning","Phase 3: Build and Integrate","🟢 Official LangGraph Projects 🦜","Agentic Frameworks","🧠 AI Applications \u0026 Platforms","AI Agent Frameworks","Repos"],"sub_categories":["Agents \u0026 Orchestration","Chatbots","Developer Tools","🟩 Specialized Agent Libraries 🤖","Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Fdeepagents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flangchain-ai%2Fdeepagents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Fdeepagents/lists"}