chore(create-openora): let consumer sessions make any core change in an OSS worktree - #216
Merged
Merged
Conversation
…an OSS worktree The consumer template sent new core features to a separate session rooted in the OSS repo, so a paired change always needed two sessions and a handoff. Any core change may now be made in place, in the worktree the guard-core hook already allows; handoff stays for work that should run elsewhere. The Claude settings template sets CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD so --add-dir also loads the OSS repo's CLAUDE.md and rules, and drops the Write(./node_modules/**) deny rule, which Claude Code ignores (Edit covers it).
zaxovaiko
requested review from
damianrzepka,
jakubfilinger-b,
klaudia-blazyczek-blurify,
marek-chmielowski-blurify,
mp-blurify and
okapitula
as code owners
September 24, 2026 09:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The consumer template now lets a consumer session make any core change, new features included, in an OSS worktree. It also configures Claude Code so that
--add-dirloads the OSS repo'sCLAUDE.mdand rules. BF-0.Why
The
oss-boundariesrule,cross-repo.md, and thereviewandhandoffskills sent every new core feature to a separate session rooted in the OSS repo. A paired change (a core feature plus the consumer's adaptation) therefore always took two agent sessions and a handoff prompt. Theguard-corehook already limits core edits to.worktrees/, so the extra session added friction but no safety. The genericity test, the verify step, and the OSS review step before any push are unchanged.The Claude settings template also changes:
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1. Without it,--add-dirloads the OSS repo's skills and agents but not itsCLAUDE.mdor.claude/rules/.additionalDirectorieson its own grants file access only.Write(./node_modules/**)deny rule. Claude Code ignoresWrite(...)path rules and warns about them at startup;Edit(./node_modules/**)already covers every file-editing tool.Alternatives considered
handoff. Rejected: the handoff prompt carries context the consumer session already has, and it doubles the sessions for every paired feature.Risks
@openora/*bump. Their hand-kept.claude/settings.jsondoes not change until they apply theenventry themselves.