[PR #1944] feat(prompt): add extend: true to the config to append/replace agent's system prompt #10128

Closed
opened 2026-02-16 18:14:44 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/1944

State: closed
Merged: No


Summary

Introduce a new optional config parameter to agents: promptMode

The promptMode param has 2 possible values: append and replace

  • append: Appends the agent's system prompt to opencode's default prompt (example: keep beastmode prompt for gpt 4.1 while adding something to the system prompt of your custom agent)
  • replace: Using replace or not specifying promptMode is the same thing - it will replace opencode's default system prompt with yours

Maybe this should a boolean instead?

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/1944 **State:** closed **Merged:** No --- ## Summary Introduce a new `optional` config parameter to agents: `promptMode` The `promptMode` param has 2 possible values: `append` and `replace` - `append`: Appends the agent's system prompt to opencode's default prompt (example: keep beastmode prompt for gpt 4.1 while adding something to the system prompt of your custom agent) - `replace`: Using `replace` or not specifying promptMode is the same thing - it will replace opencode's default system prompt with yours Maybe this should a boolean instead?
yindo added the pull-request label 2026-02-16 18:14:44 -05:00
yindo closed this issue 2026-02-16 18:14:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10128