Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By pedropaulovcv2.3.2MITIn 1 marketplace
Skill (/reset) that tears down harness agent state, protects normal worktrees, resets the current worktree to origin/main, and in --force mode removes linked worktrees before reclaiming main in the primary worktree.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Provides the explicit /reset skill ($reset in Codex). This is a breaking rename from
the former /m and $m entry points; no compatibility alias remains. Harness-specific
agent-state teardown lives in sibling instruction files, and the shared reset.py
implementation owns the complete repository flow and dependency installation.
Arguments:
--confirm removes the reviewed untracked files after the user approves the safety
report.--force discards tracked, untracked, ignored, and repository-wide stashed changes
without confirmation, deletes stale local branches, removes every linked worktree when
run from the primary worktree, and warns before removing linked worktrees with
uncommitted changes or detached links whose commits may become unreachable. It resets
main there to origin/main. It refuses linked-worktree invocations because rerunning
from the primary would delete every linked worktree, refuses bare repositories without a
primary worktree, and refuses removal while a Git operation is active in a linked
worktree. A standalone AUTO_MERGE marker is cleared as stale; other operation markers,
active Git locks, and unmerged or unreadable index state still block removal.
In force mode it recursively synchronizes submodules with forced checkout and reports
failure instead of success when the root worktree or any submodule remains dirty or out
of sync.--all also rebases each linked worktree onto origin/main and installs its dependencies in normal mode.The script inspects local Git status, branches, stashes, and worktree metadata. In normal mode it preserves tracked changes and stashes, asks for approval before deleting listed untracked files, fetches/prunes the configured remote, and checks out main at origin/main. --all additionally rebases every linked worktree onto origin/main; --force is destructive and verifies the primary worktree and submodules after cleanup.
When the checkout contains the relevant files, it runs npm install, go mod download, or uv sync --locked. Git, submodule, and package-manager commands may fetch from the remotes and registries configured by that checkout; this plugin does not hard-code those destinations. The skill also stops its own watch-pr monitors and calls the hosted watch-pr service's unwatch_pr tool for their PRs. Watches are scoped by MCP credential and PR, not by client session: another session using the same credential to watch that PR loses its watch too.
Shared reset safety, arguments, and script-invocation rules live in SKILL.md; sibling
files describe harness-specific teardown and user-interaction APIs. Claude Code reads
claude.md. If the current system context mentions omp://, Oh My Pi is running and reads
omp.md instead. Codex and OpenCode read their respective files and skip Claude-only
state tools while handling background terminals through their own harness mechanisms.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub pedropaulovc/agent-plugins --plugin worktree-resetPlugins from other owners that cover similar ground