feat(review): per-repo .gittensory.yml review.instructions for grounded reviews - #1579
Merged
Conversation
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1579 +/- ##
=======================================
Coverage 95.45% 95.45%
=======================================
Files 202 202
Lines 21781 21784 +3
Branches 7866 7868 +2
=======================================
+ Hits 20791 20794 +3
Misses 414 414
Partials 576 576
🚀 New features to boost your workflow:
|
…ed reviews Adds a repo-level `review.instructions` block to .gittensory.yml — a maintainer brief handed to the AI reviewer on EVERY review (vs the per-path review.path_instructions), so reviews follow each repo's own conventions/voice. Bounded + public-safe at parse time (parsePublicSafeText), so it stays cost-cheap — unlike ingesting a whole CLAUDE.md every review. Absent/null ⇒ byte-identical reviewer prompt. Wired the standard config-as-code path: focus-manifest type + parse + resolveReviewPromptOverrides → processors → runAiReviewForAdvisory → buildSystemPrompt.
JSONbored
force-pushed
the
feat/review-repo-instructions
branch
from
June 27, 2026 04:47
c2ca5b8 to
8b8a754
Compare
JSONbored
added a commit
that referenced
this pull request
Jun 27, 2026
…ainer-private config dir (#1580) #review-skills. Each repo's review folder in GITTENSORY_REPO_CONFIG_DIR (<repo>/review/CLAUDE.md + review/skills/*.md) is loaded and injected into the reviewer prompt, so reviews follow each repo's own conventions/voice. Private (not in the public repo), works on any host. Cost-conscious: the CLAUDE.md guide is always-on, but each skill is GLOB-GATED by its `when:` frontmatter — only skills matching the PR's changed files are injected — and the total is bounded. Folds into the same review.instructions prompt slot (#1579), so it inherits the public-safe wrapper. - private-config.ts: makeLocalReviewContextReader (reads review/CLAUDE.md + skills/*.md, first existing folder wins) + parseReviewSkill (frontmatter name/when + body). - focus-manifest-loader.ts: setLocalReviewContextReader + loadRepoReviewContext (Node fs stays out of the Workers bundle). - focus-manifest.ts: composeRepoReviewContext (guide + always/glob-matched skills, bounded; reuses matchesManifestPath). - processors.ts: folds the composed context into reviewInstructions. server.ts: registers the reader at boot.
This was referenced Jun 27, 2026
Closed
12 tasks
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.
Adds a repo-level
review.instructionsblock to.gittensory.yml— a maintainer brief handed to the AI reviewer on every review (vs the per-pathreview.path_instructions), so reviews follow each repo's own conventions. Bounded + public-safe at parse time, so it stays cost-cheap (a focused brief, not a whole CLAUDE.md re-sent every review). Absent ⇒ byte-identical prompt. Standard config-as-code wiring: focus-manifest (type/parse/resolve) → processors →buildSystemPrompt.