Contradictory examples in agent generation prompt #9185

Closed
opened 2026-02-16 18:11:50 -05:00 by yindo · 2 comments
Owner

Originally created by @darren-dooley on GitHub (Feb 12, 2026).

Originally assigned to: @thdxr on GitHub.

The examples in section 6 of packages/opencode/src/agent/generate.txt are contradictory and confusing:

  • The first example describes a code-review agent context but the commentary says "since the user is greeting, use the greeting-responder agent" - mixing up two unrelated agent types
  • The second example has a typo ("jok" instead of "joke") and duplicates intent between commentary and assistant lines
  • The overly prescriptive example format adds noise rather than helping the model generate useful whenToUse examples

Suggestion: replace the broken examples with a concise instruction that trusts the model to generate appropriate examples on its own.

Originally created by @darren-dooley on GitHub (Feb 12, 2026). Originally assigned to: @thdxr on GitHub. The examples in section 6 of [packages/opencode/src/agent/generate.txt](https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/agent/generate.txt#L39-L47) are contradictory and confusing: - The first example describes a code-review agent context but the commentary says "since the user is greeting, use the greeting-responder agent" - mixing up two unrelated agent types - The second example has a typo ("jok" instead of "joke") and duplicates intent between commentary and assistant lines - The overly prescriptive example format adds noise rather than helping the model generate useful `whenToUse` examples Suggestion: replace the broken examples with a concise instruction that trusts the model to generate appropriate examples on its own.
yindo added the docsneeds:compliance labels 2026-02-16 18:11:50 -05:00
yindo closed this issue 2026-02-16 18:11:50 -05:00
Author
Owner

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

This issue doesn't fully meet our contributing guidelines.

What needs to be fixed:

  • This issue must use one of our issue templates (Bug Report, Feature Request, or Question). While the content is substantive and helpful, it needs to be formatted according to the appropriate template for proper tracking and processing.

Please edit this issue to use the proper template within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions[bot] commented on GitHub (Feb 12, 2026): <!-- issue-compliance --> This issue doesn't fully meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md). **What needs to be fixed:** - This issue must use one of our issue templates (Bug Report, Feature Request, or Question). While the content is substantive and helpful, it needs to be formatted according to the appropriate template for proper tracking and processing. Please edit this issue to use the proper template within **2 hours**, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know.
Author
Owner

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

This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new issue that follows our issue templates.

@github-actions[bot] commented on GitHub (Feb 12, 2026): This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window. Feel free to open a new issue that follows our issue templates.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9185