[PR #5215] docs(agents): add guidance to make working with opencode better #11295

Open
opened 2026-02-16 18:16:06 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


After working with the codebase using opencode a bit:

  • Add guidance on regenerating SDK after schema changes
  • Document type predicate pattern for filtering discriminated unions
  • Discourage use of 'as' casts when TypeScript's type narrowing fails
  • Add guidance to run prettier after changing code
  • .gitignore: exclude bun-build files

Significantly reduces errors in the output in my experience.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5215 **State:** open **Merged:** No --- After working with the codebase using opencode a bit: - Add guidance on regenerating SDK after schema changes - Document type predicate pattern for filtering discriminated unions - Discourage use of 'as' casts when TypeScript's type narrowing fails - Add guidance to run prettier after changing code - .gitignore: exclude bun-build files Significantly reduces errors in the output in my experience.
yindo added the pull-request label 2026-02-16 18:16:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11295