Let cratis init skip a context reference that would be overwritten - #82
Merged
Conversation
Some repositories generate their instruction files from a shared corpus and propagate them across repositories, so appending @CHRONICLE.md to one is undone by the next sync. That is worse than never adding it: the reference disappears at an unpredictable later moment, and whoever notices sees a project that was configured and silently is not. --no-context writes the skill and prompt and leaves the instruction file alone. The skip is reported rather than silent, and names what to do instead, because a project with the catalog on disk and nothing pointing at it looks configured and loads nothing. The four flags now travel as a record. They all read as bare booleans at the call site, where transposing two produces a configuration that looks right and is not.
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.
Added
cratis init --no-contextwrites the skill and prompt files but leaves the tool's instruction file alone, for repositories that generateAGENTS.md,CLAUDE.mdor.github/copilot-instructions.mdfrom a shared corpus and propagate them. Appending to such a file is undone by the next sync — the reference disappears at an unpredictable later moment, which is harder to notice than never adding it. The skip is reported and names what to add instead, so the catalog does not end up on disk with nothing pointing at it. (cratis init writes the context reference into files that are generated, where it will be overwritten #81)