release-now
Create a git tag + GitHub Release for open-pr — an official release if standing on main, an RC if standing on a branch with an open PR (a dev tool specific to…
Remove the git worktrees review checked PR code out into. Each one is a full checkout on disk; nothing else is touched.
> /plugin marketplace add TOMOSIA-VIETNAM/open-pr > /plugin install open-pr@open-pr
How it fires
How this command gets triggered: by you, by Claude, or both.
/cleanContext preview
What this command does when you run it.
Remove the git worktrees review checked PR code out into. Each one is a full checkout on disk; nothing else is touched.
argument-hint: "[repo name...]" description: Remove the git worktrees review checked PR code out into. Each one is a full checkout on disk; nothing else is touched.
> **CRITICAL:** `Read` `"${CLAUDE_PLUGIN_ROOT}"/core/guardrails.md` FIRST — shared rules, not repeated > here. On top of those: > - Deletes ONLY directories under `notebooks/review/*/worktrees/`. FORBIDDEN, in the same tree and > unrecoverable: `memory.md`, `memories/`, `templates/`, `ALWAYS_RULE.md`, `settings.json`, > `notebooks/review/.git`, and any path outside `notebooks/review/*/worktrees/`. > - FORBIDDEN: deleting anything before the user answers Step 3. > - Reads no PR and needs no vendor CLI. > > This CRITICAL block is the SOLE enforcement layer — no `allowed-tools` backs it (deliberate).
Same layout `/open-pr:upgrade` searches: `notebooks/review/` sits wherever `/open-pr:review` ran, from pwd or one level down. FORBIDDEN: `cd`.
find . -maxdepth 6 -type d -path '*/notebooks/review/*/worktrees/*' 2>&1 | grep -Ev '^\./.*/worktrees/[^/]+/'
None → say there is nothing to clean, STOP.
`ARGUMENTS` non-empty ⇒ keep only worktrees whose `<repo>` segment it names, case-insensitive; 0 matched ⇒ STOP, listing the `<repo>`s found. Over what remains — never over what was just dropped, since each is a full checkout and `du` walks all of it:
du -sh <each worktree>
ONE CHOICE per `core/guardrails.md`, EXACTLY 2 options. Its body lists every worktree by path with its size and the total ⇒ consent covers a list the user has read:
only disk is lost, unless `/open-pr:fix` committed there and never pushed
Subset wanted (free text, or a re-run naming those repos) ⇒ honour it, those only. `Keep them` ⇒ STOP.
Per worktree, in this order — a bare `rm -rf` leaves a stale worktree registration behind:
git -C "<worktree>" rev-parse --git-common-dir # ABSOLUTE <repo>/.git; <repo> = that minus /.git git -C "<repo>" worktree remove --force "<worktree>"
`--force`: the checkout is detached + holds untracked review scratch files.
That first command failing (repo moved/deleted) ⇒ registration already orphaned: `rm -rf "<worktree>"` instead.
Finish with `git -C "<repo>" worktree prune` per distinct repo — drops stale registrations.
Per repo: how many worktrees went and how much disk came back. Then, once: `notebooks/review/` still holds this repo's memory and settings — only the checkouts were removed.
ARGUMENTS: $ARGUMENTS
AI code review that lands on the PR, not in your terminal — GitHub, GitLab, Bitbucket. Learns each repo's conventions: 1 review, 1 fix commit, replies in thread. Claude Code · Cursor · Codex · Gemini CLI · Antigravity.
Create a git tag + GitHub Release for open-pr — an official release if standing on main, an RC if standing on a branch with an open PR (a dev tool specific to…
Report a problem with the open-pr plugin itself, or ask for a change, on its public issue tracker. Reads no PR; writes nothing in your repo.
Act on the findings a review left on a PR — takes or declines each by severity, edits code at pwd to match the project, 1 commit, replies once pushed.
Review PRs against the conventions learned from each repo — 1 post per PR, findings tagged by severity, code left untouched.
Bring every per-repo config found below pwd up to the schema this build expects. Takes no PR.