[GH-ISSUE #385] Disable the general-purpose subagent without overriding it #254

Closed
opened 2026-06-05 17:21:17 -04:00 by yindo · 1 comment
Owner

Originally created by @mcrlc on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/385

Is it possible to disable the general purpose subagent without overriding it?
I'm trying to disable sub-agents entirely. My current solution is to patch the library and set the following to false. https://github.com/langchain-ai/deepagentsjs/blob/48f21c3c6f3b02a69fd39655c8cb3c8a920889c3/libs/deepagents/src/agent.ts#L324

Is there a better way?

Originally created by @mcrlc on GitHub (Mar 28, 2026). Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/385 Is it possible to disable the general purpose subagent without overriding it? I'm trying to disable sub-agents entirely. My current solution is to patch the library and set the following to `false`. https://github.com/langchain-ai/deepagentsjs/blob/48f21c3c6f3b02a69fd39655c8cb3c8a920889c3/libs/deepagents/src/agent.ts#L324 Is there a better way?
yindo closed this issue 2026-06-05 17:21:17 -04:00
Author
Owner

@hntrl commented on GitHub (Jun 2, 2026):

Hey @mcrlc! Sorry for the delay in response.

We consider the general purpose agent to be a base behavior for the harness and thus shouldn't be amended. Are you running into any difficulty with subagents? Are subagents being created too eagerly? Basically if you have any data that can inform how we should think about our defaults that would be much appreciated.

You can disable subagents entirely by way of profiles, or by destructuring into your own createAgent instance

<!-- gh-comment-id:4605540424 --> @hntrl commented on GitHub (Jun 2, 2026): Hey @mcrlc! Sorry for the delay in response. We consider the general purpose agent to be a base behavior for the harness and thus shouldn't be amended. Are you running into any difficulty with subagents? Are subagents being created too eagerly? Basically if you have any data that can inform how we should think about our defaults that would be much appreciated. You can disable subagents entirely by way of [profiles](https://docs.langchain.com/oss/javascript/deepagents/profiles), or by destructuring into your own `createAgent` instance
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#254