Foundational instance of OpenCode #8993

Open
opened 2026-02-16 18:11:20 -05:00 by yindo · 3 comments
Owner

Originally created by @brendensoares on GitHub (Feb 10, 2026).

Originally assigned to: @thdxr on GitHub.

Question

I would like to have full control over the context sent to my local models by OpenCode (OC). Currently, OC has base prompts that are built-in and non-configurable nor are they optional.

I would like to provide all prompts for my own plan and build agent, for example. I would also like have more control over other hooks that append to the context/prompt.

Is there a way to do this without a custom build?

I like the UI/UX that UC offers, but I'd like more control.

Thanks.

Originally created by @brendensoares on GitHub (Feb 10, 2026). Originally assigned to: @thdxr on GitHub. ### Question I would like to have full control over the context sent to my local models by OpenCode (OC). Currently, OC has base prompts that are built-in and non-configurable nor are they optional. I would like to provide all prompts for my own plan and build agent, for example. I would also like have more control over other hooks that append to the context/prompt. Is there a way to do this without a custom build? I like the UI/UX that UC offers, but I'd like more control. Thanks.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 10, 2026):

This question might be related to existing discussions about prompt customization and control. Please check these related issues:

  • #7351: Feature request to add systemPrompt option to SDK
  • #3195: Dynamic system prompts for custom agents
  • #5005: Bug about unexpected system prompt parts despite disabling agents

These discussions cover similar concerns about controlling and customizing prompts in OpenCode.

@github-actions[bot] commented on GitHub (Feb 10, 2026): This question might be related to existing discussions about prompt customization and control. Please check these related issues: - #7351: Feature request to add `systemPrompt` option to SDK - #3195: Dynamic system prompts for custom agents - #5005: Bug about unexpected system prompt parts despite disabling agents These discussions cover similar concerns about controlling and customizing prompts in OpenCode.
Author
Owner

@brendensoares commented on GitHub (Feb 12, 2026):

The above similar issues are indeed similar, but not the same. The closest is how there is still some system prompt being injected even when not using a built-in agent. In that same vein, I'd like to be able to have a completely blank and configurable context.

@brendensoares commented on GitHub (Feb 12, 2026): The above similar issues are indeed similar, but not the same. The closest is how there is still some system prompt being injected even when not using a built-in agent. In that same vein, I'd like to be able to have a completely blank and configurable context.
Author
Owner

@brendensoares commented on GitHub (Feb 12, 2026):

I tried to override the built-in Plan agent by adding a ~/config/opencode/agent/plan.md but it did not work, though it did add a new agent, even though it has the same name "Plan".

@brendensoares commented on GitHub (Feb 12, 2026): I tried to override the built-in Plan agent by adding a `~/config/opencode/agent/plan.md` but it did not work, though it did add a new agent, even though it has the same name "Plan".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8993