[PR #4197] [CLOSED] Use Workspace System Prompt for agent invocations as well #4550

Closed
opened 2026-02-22 18:36:03 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4197
Author: @yaronyam
Created: 7/24/2025
Status: Closed

Base: masterHead: 1979-feat-use-workspace-system-prompt-for-agent-invocation


📝 Commits (7)

  • a670ab9 feat: use workspace system prompt for agent invocation as well
  • 486b75c feat: use workspace system prompt for agent invocation as well (#4160, #1979)
  • b8b5413 Merge remote-tracking branch 'origin/1979-feat-use-workspace-system-prompt-for-agent-invocation' into 1979-feat-use-workspace-system-prompt-for-agent-invocation
  • f907ec8 feat: Add Workspace Agent settings toggle - "Use workspace system prompt" - for using workspace chat configured system prompt for agent invocation as well (#4160, #1979)
  • 65abd3f feat: use workspace system prompt for agent invocation as well. update open api docs (#4160, #1979)
  • 4e4e645 feat: use workspace system prompt for agent invocation as well. cleanup (#4160, #1979)
  • 9d0614b Merge branch 'master' into 1979-feat-use-workspace-system-prompt-for-agent-invocation

📊 Changes

11 files changed (+117 additions, -32 deletions)

View changed files

📝 frontend/src/pages/WorkspaceSettings/AgentConfig/index.jsx (+16 -1)
📝 frontend/src/utils/types.js (+3 -0)
server/__tests__/utils/agents/defaults.test.js (+40 -0)
📝 server/endpoints/api/workspace/index.js (+9 -2)
📝 server/models/workspace.js (+3 -1)
server/prisma/migrations/20250723135715_init/migration.sql (+2 -0)
📝 server/prisma/schema.prisma (+1 -0)
📝 server/swagger/openapi.json (+10 -3)
📝 server/utils/agents/defaults.js (+20 -2)
📝 server/utils/agents/ephemeral.js (+7 -15)
📝 server/utils/agents/index.js (+6 -8)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #1979
resolves #4160

What is in this change?

Add Workspace Agent Settings toggle - Use Workspace System Prompt - for using workspace chat configured system prompt for agent invocation as well

Additional Information

image

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/4197 **Author:** [@yaronyam](https://github.com/yaronyam) **Created:** 7/24/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `1979-feat-use-workspace-system-prompt-for-agent-invocation` --- ### 📝 Commits (7) - [`a670ab9`](https://github.com/Mintplex-Labs/anything-llm/commit/a670ab998e2cd896462722610b3ce0f17ceb58a4) feat: use workspace system prompt for agent invocation as well - [`486b75c`](https://github.com/Mintplex-Labs/anything-llm/commit/486b75c1d91cd45034043355066f1fe60a1ef584) feat: use workspace system prompt for agent invocation as well (#4160, #1979) - [`b8b5413`](https://github.com/Mintplex-Labs/anything-llm/commit/b8b5413fa0abd1a65ff0664f7810107b3872819c) Merge remote-tracking branch 'origin/1979-feat-use-workspace-system-prompt-for-agent-invocation' into 1979-feat-use-workspace-system-prompt-for-agent-invocation - [`f907ec8`](https://github.com/Mintplex-Labs/anything-llm/commit/f907ec81296f2cde70c23423ab296e74983816ed) feat: Add Workspace Agent settings toggle - "Use workspace system prompt" - for using workspace chat configured system prompt for agent invocation as well (#4160, #1979) - [`65abd3f`](https://github.com/Mintplex-Labs/anything-llm/commit/65abd3fdc6aad19e065243fbdff50b1f38cc2ffa) feat: use workspace system prompt for agent invocation as well. update open api docs (#4160, #1979) - [`4e4e645`](https://github.com/Mintplex-Labs/anything-llm/commit/4e4e645744ea8053c6012ae00f97cd67cfeb9bed) feat: use workspace system prompt for agent invocation as well. cleanup (#4160, #1979) - [`9d0614b`](https://github.com/Mintplex-Labs/anything-llm/commit/9d0614bb0a2a061855d54951396324cc168d8707) Merge branch 'master' into 1979-feat-use-workspace-system-prompt-for-agent-invocation ### 📊 Changes **11 files changed** (+117 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/index.jsx` (+16 -1) 📝 `frontend/src/utils/types.js` (+3 -0) ➕ `server/__tests__/utils/agents/defaults.test.js` (+40 -0) 📝 `server/endpoints/api/workspace/index.js` (+9 -2) 📝 `server/models/workspace.js` (+3 -1) ➕ `server/prisma/migrations/20250723135715_init/migration.sql` (+2 -0) 📝 `server/prisma/schema.prisma` (+1 -0) 📝 `server/swagger/openapi.json` (+10 -3) 📝 `server/utils/agents/defaults.js` (+20 -2) 📝 `server/utils/agents/ephemeral.js` (+7 -15) 📝 `server/utils/agents/index.js` (+6 -8) </details> ### 📄 Description ### Pull Request Type - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues resolves #1979 resolves #4160 ### What is in this change? Add Workspace Agent Settings toggle - `Use Workspace System Prompt` - for using workspace chat configured system prompt for agent invocation as well ### Additional Information <img width="1079" height="625" alt="image" src="https://github.com/user-attachments/assets/c1749663-d31c-431c-b95c-6ce91e18d5a9" /> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <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-22 18:36:03 -05:00
yindo closed this issue 2026-02-22 18:36:03 -05:00
yindo changed title from [PR #4197] Use Workspace System Prompt for agent invocations as well to [PR #4197] [CLOSED] Use Workspace System Prompt for agent invocations as well 2026-06-05 15:19:08 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4550