Skip to content

feat(cli): build opencode rules in flat builds - #1377

Merged
blafourcade merged 5 commits into
nextfrom
feat/issue-789-opencode-flat-rules-commands
Nov 25, 2026
Merged

blafourcade merged 5 commits into
nextfrom
feat/issue-789-opencode-flat-rules-commands

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

Summary

OpenCode flat builds now emit plugin rules, placed the way an install places them. A rule goes to a top-level file with its path scope stated in the body, and the build keeps the instructions entries a person already lists.

  • Probe on OpenCode 1.19.3: OpenCode injects a rule file verbatim, paths: frontmatter included, and it loads a rule nested two folders deep through the instructions glob. That is why the scope is stated in the body.
  • The generated support table and its golden mark OpenCode flat rules as supported.
  • Commands in flat builds are not part of this PR.

Refs #789

🤖 Generated with Claude Code

blafourcade and others added 5 commits November 25, 2026 21:46
OpenCode injects a rule file as written, frontmatter included, so the
scope of a path-scoped rule was raw YAML on an always-on rule. Place
rules at the top level and state the scope, as Kilo does, and drop the
empty-list guard the bundled instructions list makes unnecessary.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@blafourcade
blafourcade marked this pull request as ready for review November 25, 2026 22:21
@blafourcade
blafourcade requested a review from a team as a code owner November 25, 2026 22:21
@blafourcade
blafourcade merged commit 60934f0 into next Nov 25, 2026
4 checks passed
@blafourcade
blafourcade deleted the feat/issue-789-opencode-flat-rules-commands branch November 25, 2026 22:21
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.

1 participant