Purpose: deepagentsjs is a “batteries-included” agent harness for JavaScript developers who want to quickly get a runnable agent and then customize it as needed. It pre-organizes prompts, tools, and context management to reduce the work of building from scratch.
Main capabilities: built-in planning tool write_todos for task decomposition and progress tracking; filesystem tools read_file, write_file, edit_file, ls, glob, grep as working memory; sub-agent tool task for delegating work in isolated context windows; built-in prompts and middleware and other intelligent defaults make the above tools work out of the box; file-based workflows help manage long-task context.
Usage: Install deepagents via npm. The package declares LangChain runtime packages as peer dependencies, with the application controlling versions and resolving them to a single shared copy; npm 7+ and pnpm 8+ install automatically, while Yarn users need to add them explicitly. The package provides environment-specific entry points: deepagents is the default Node.js/server entry point with the full API; deepagents/browser is the recommended browser entry point (without Node-only exports); deepagents/node is an optional explicit Node.js entry point (same API as the default entry). Use createDeepAgent to create an agent, and add tools, change models, or customize prompts as needed; createDeepAgent returns a compiled LangGraph graph, so LangGraph features such as streaming output, Studio, and checkpoints can be used. See the JavaScript Deep Agents documentation for complete configuration options.
Use cases: quickly building JavaScript agents with planning, file read/write, and subtask delegation capabilities; building LLM applications on LangGraph's production runtime (streaming, persistence); projects that want to be model-provider agnostic and freely swap chat models that support tool calling.
Limitations and security: The project follows a “trust the LLM” model; the agent can perform any operation allowed by its tools, and boundaries should be enforced at the tool/sandbox layer rather than relying on the model's self-restraint; see its security policy for specific security policies.The project is MIT-licensed, 100% open source, and extensible. See langchain-ai/deepagents for the Python version. Refer to LangSmith for development, debugging, and deployment.