[GH-ISSUE #73] General purpose agent does not inherit system prompt #23

Closed
opened 2026-02-16 06:16:51 -05:00 by yindo · 2 comments
Owner

Originally created by @jorenvanhee on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/73

According to the docs the general purpose agent should have the same system prompt as the main agent. However, when I provide the systemPrompt option when creating a deep agent, this custom part of the system prompt is not included in the prompt of the general purpose agent.

Reason why I want to be able to do this:

I wanted to inject the current date into the system prompt to make my web search tool more accurate. I could only do this for the main (deep) agent, not for the general purpose agent.

Originally created by @jorenvanhee on GitHub (Dec 5, 2025). Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/73 According to the docs the general purpose agent should have the same system prompt as the main agent. However, when I provide the `systemPrompt` option when creating a deep agent, this custom part of the system prompt is not included in the prompt of the general purpose agent. Reason why I want to be able to do this: I wanted to inject the current date into the system prompt to make my web search tool more accurate. I could only do this for the main (deep) agent, not for the general purpose agent.
yindo closed this issue 2026-02-16 06:16:51 -05:00
Author
Owner

@christian-bromann commented on GitHub (Jan 10, 2026):

@jorenvanhee are you referring to being able to use SystemMessage with multiple content blocks? If so I just merged a fix for this.

@christian-bromann commented on GitHub (Jan 10, 2026): @jorenvanhee are you referring to being able to use `SystemMessage` with multiple content blocks? If so I just merged a fix for this.
Author
Owner

@jorenvanhee commented on GitHub (Jan 15, 2026):

I'm not using the general-purpose sub-agent anymore so I'll close this for now, not sure if the issue is still present.

@jorenvanhee commented on GitHub (Jan 15, 2026): I'm not using the general-purpose sub-agent anymore so I'll close this for now, not sure if the issue is still present.
yindo changed title from General purpose agent does not inherit system prompt to [GH-ISSUE #73] General purpose agent does not inherit system prompt 2026-06-05 17:21:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#23