Opinionated deployment template for a Deep Agent built with createDeepAgent(...).
- A deployable Deep Agent graph at
src/agent.ts. - Explicit workflow prompt (plan, delegate, critique, finalize).
- Two predefined subagents (
researcher,critic). - Human-in-the-loop interrupts on
executeandwrite_file. - A Node.js workflow managed by
npmwith Vitest unit + integration suites.
- Install dependencies:
npm install- Configure environment:
cp .env.example .env- Run locally:
npm run devnpm test # unit tests (src/**/*.test.ts, excludes .int.test.ts)
npm run test:int # integration tests (requires ANTHROPIC_API_KEY)
npm run test:eval # evaluation tests with LangSmith reporter
npm run lint # prettier --check
npm run format # prettier --write
npm run build # langgraphjs buildIntegration tests are skipped unless ANTHROPIC_API_KEY is set.
- Push this template to a Git repository.
- In LangSmith, create a new Deployment from that repo.
- Set environment variables for your selected model provider and optional tracing key.
- Deploy using the provided
langgraph.json.
- Deep Agents (JS): https://github.com/langchain-ai/deepagentsjs
- LangGraph deployment in LangSmith: https://docs.langchain.com/oss/javascript/langchain/deploy