Skip to content

docs(agents): add guidance to make working with opencode better#5215

Closed
paralin wants to merge 2 commits into
anomalyco:devfrom
paralin:improve-agents
Closed

docs(agents): add guidance to make working with opencode better#5215
paralin wants to merge 2 commits into
anomalyco:devfrom
paralin:improve-agents

Conversation

@paralin

@paralin paralin commented Dec 7, 2025

Copy link
Copy Markdown
Contributor

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.

@paralin
paralin marked this pull request as ready for review December 7, 2025 22:59
Comment thread AGENTS.md
@paralin
paralin force-pushed the improve-agents branch 3 times, most recently from 8293f2a to c941a2c Compare December 8, 2025 18:41
Comment thread AGENTS.md Outdated
@paralin
paralin force-pushed the improve-agents branch 2 times, most recently from 639a3bf to 71d6831 Compare December 8, 2025 20:29
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 with ./script/format.ts
- .gitignore: exclude bun-build files

Significantly reduces errors in the output in my experience.

Signed-off-by: Christian Stewart <christian@aperture.us>
@paralin

paralin commented Dec 12, 2025

Copy link
Copy Markdown
Contributor Author

hey @jerome-benoit I'm still having good success w/ this on my dev branch. did you want any more changes / improvements?

@jerome-benoit

jerome-benoit commented Dec 13, 2025

Copy link
Copy Markdown
Contributor

hey @jerome-benoit I'm still having good success w/ this on my dev branch. did you want any more changes / improvements?

No, thank you. You should ping someone in the opencode team to recall him/her that PR.

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants