Repository navigation
feat(greptile): add minimal review context and release rules - #95
Merged
Merged
Conversation
Greptile already reads the root and package AGENTS.md files, and reads the whole codebase. This adds only what it can't get from those: - files.json points reviews at the docs that record verified OpenCode host behavior, each scoped to the packages it describes, plus release-channels.json and auto-advisor's AGENTS.md (added after Greptile's AGENTS.md import, so it isn't loaded otherwise). - config.json adds two rules for release mistakes that span several files: versions outside their release class or a release that skips the plan, and workflows that let PR code publish or expose tokens.
capyBearista
force-pushed
the
feat/greptile-scoped-review-config
branch
from
November 1, 2026 22:15
35e36d5 to
39e20bf
Compare
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
Adds a small root
.greptile/config that gives Greptile only what it can't already get.Greptile already reads the whole codebase, and it imported the root and package
AGENTS.mdfiles as path-scoped context (dashboard import on 2026-09-25). So this PR doesn't repeat any of that. It adds:.greptile/files.json: six context files, each read only when a review touches the packages it describes:packages/opencode-auto-advisor/AGENTS.md. It was added after Greptile'sAGENTS.mdimport, so Greptile doesn't load it otherwise.docs/auto-advisor/findings.mdanddocs/output-styles/v2-port-findings.md: verified OpenCode host behavior, which the code can't show.docs/opencode-v2-plugin-runtime.mdfor the V2 packages, anddocs/v1-plugins.mdfor the V1 package and package manifests.tools/release-channels.jsonfor package manifests, changesets and the release guard..greptile/config.json: twohighrules for release mistakes that span several files:release-policy-coherence: a version outside its release class, a package missing fromrelease-channels.jsonor the workspace, or a release that skips Changesets orbun run release:check.publish-trust-boundary: a workflow change that lets PR code publish, exposes npm tokens, or publishes without the release guard.Both rules have IDs, so a nested
.greptile/can turn them off later.Linked Issue
No issue. This replaces the earlier 28-file version of this PR, which had per-package
rules.md, 29 rules and 39 file references. That version was cut because:AGENTS.mdfiles Greptile already reads.files.jsonentries pointed at neighbouring source files, which Greptile's codebase graph already links.The plan is to add a rule only when Greptile misses something real.
Plugin(s) Affected
Type of Change
OpenCode Validation
Quality Checklist
bun run typecheck && bun run lint && bun run test(ranbun run lintand Biome on.greptile/; no code changed)bun run build(no package changes).opencodeconfig was part of testing, I verified it points at the package root or published plugin name rather than a staledist/*artifact (n/a)minor, andmajoronly moves a package to a new OpenCode major (see CONTRIBUTING) (nothing ships)Additional Context
.greptile/file reference. Everyfiles.jsonpath exists, and every scope glob matches at least one file in the repo..greptile/directory". This assumes that means the repo root for a root.greptile/, as in the docs' own examples.strictness,autoReview,commentTypesand so on), so the dashboard settings still apply.