You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: review a folder / file set instead of only git diff #21
/opencode:review and /opencode:adversarial-review today always build context from git diff / git status / git diff --name-only in plugins/opencode/scripts/lib/prompts.mjs::buildReviewPrompt. That's right for PR-style reviews but leaves no way to run a targeted review over:
a specific subdirectory (src/auth/**)
a fixed set of files unrelated to any git diff
a large untracked drop of generated or imported code
When --path is present, buildReviewContext should assemble the context from the file contents at those paths (truncated per file if large) instead of calling getDiff/getStatus/getChangedFiles.
Implementation sketch
Extend buildReviewPrompt to accept paths: string[].
New helper collectFolderContext(cwd, paths) reads file contents with a size cap per file and a total size cap, skipping binary files, broken symlinks, and anything in .gitignore.
buildReviewContext emits a <files> section instead of <diff>/<git_status> when paths is set.
Commands review.md / adversarial-review.md thread --path through to the companion.
Activity
feat(review): add --path support for targeted folder/file reviews
feat(review): add --path support for targeted folder/file reviews
feat(review): add --path support for targeted folder/file reviews (#60)