[PR #183] [MERGED] feat: set default recursionLimit to 10k #187

Closed
opened 2026-02-16 06:17:23 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/183
Author: @hntrl
Created: 2/3/2026
Status: Merged
Merged: 2/3/2026
Merged by: @hntrl

Base: mainHead: hunter/recursion_limit


📝 Commits (3)

📊 Changes

5 files changed (+105 additions, -22 deletions)

View changed files

.changeset/warm-tigers-dance.md (+5 -0)
📝 libs/deepagents/package.json (+3 -4)
📝 libs/deepagents/src/agent.ts (+1 -5)
📝 libs/deepagents/src/middleware/fs.int.test.ts (+3 -1)
📝 pnpm-lock.yaml (+93 -12)

📄 Description

Sets a high default recursion limit (10,000) for deep agents to prevent hitting LangGraph's default limit during complex agent workflows. Also cleans up dependencies by removing @langchain/anthropic from production deps (it's only needed for tests) and updates LangChain packages to latest versions.

Fixes #76

Changes

libs/deepagents/src/agent.ts

  • Added .withConfig({ recursionLimit: 10_000 }) to the agent creation
  • Removed the comment suggesting recursion limit be passed at invocation time - the high default is now built-in

libs/deepagents/package.json

  • Removed @langchain/anthropic from dependencies (it remains as a dev dependency)
  • Updated @langchain/core from ^1.1.17 to ^1.1.19
  • Updated @langchain/langgraph from ^1.1.2 to ^1.1.3
  • Updated langchain from ^1.2.15 to ^1.2.17

pnpm-lock.yaml

  • Lock file updates reflecting the dependency changes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/183 **Author:** [@hntrl](https://github.com/hntrl) **Created:** 2/3/2026 **Status:** ✅ Merged **Merged:** 2/3/2026 **Merged by:** [@hntrl](https://github.com/hntrl) **Base:** `main` ← **Head:** `hunter/recursion_limit` --- ### 📝 Commits (3) - [`41b96fb`](https://github.com/langchain-ai/deepagentsjs/commit/41b96fb29e5c9d724f769417e4c28f12d70482d1) feat: set default recursionLimit to 10k - [`4ba4040`](https://github.com/langchain-ai/deepagentsjs/commit/4ba40401c6b412fe479175bfe87027f6d00d3d57) chore: format - [`63aa360`](https://github.com/langchain-ai/deepagentsjs/commit/63aa3606bd104a44d9c65cb71100d46642e91187) chore: fixup bad test ### 📊 Changes **5 files changed** (+105 additions, -22 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/warm-tigers-dance.md` (+5 -0) 📝 `libs/deepagents/package.json` (+3 -4) 📝 `libs/deepagents/src/agent.ts` (+1 -5) 📝 `libs/deepagents/src/middleware/fs.int.test.ts` (+3 -1) 📝 `pnpm-lock.yaml` (+93 -12) </details> ### 📄 Description Sets a high default recursion limit (10,000) for deep agents to prevent hitting LangGraph's default limit during complex agent workflows. Also cleans up dependencies by removing `@langchain/anthropic` from production deps (it's only needed for tests) and updates LangChain packages to latest versions. Fixes #76 ## Changes ### `libs/deepagents/src/agent.ts` - Added `.withConfig({ recursionLimit: 10_000 })` to the agent creation - Removed the comment suggesting recursion limit be passed at invocation time - the high default is now built-in ### `libs/deepagents/package.json` - Removed `@langchain/anthropic` from dependencies (it remains as a dev dependency) - Updated `@langchain/core` from `^1.1.17` to `^1.1.19` - Updated `@langchain/langgraph` from `^1.1.2` to `^1.1.3` - Updated `langchain` from `^1.2.15` to `^1.2.17` ### `pnpm-lock.yaml` - Lock file updates reflecting the dependency changes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 06:17:23 -05:00
yindo closed this issue 2026-02-16 06:17:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#187