Skip to content

feat: add uninstall script#53

Merged
satyaborg merged 1 commit into
mainfrom
feat/uninstall-script
Jun 9, 2026
Merged

feat: add uninstall script#53
satyaborg merged 1 commit into
mainfrom
feat/uninstall-script

Conversation

@satyaborg

Copy link
Copy Markdown
Owner

Problem

install.sh and the remote installer drop a devloop symlink, a staged ~/.local/share/devloop runtime, and copied skills into ~/.agents/skills + ~/.claude/skills, but there was no inverse. Uninstalling meant reverse-engineering the install by hand.

Approach

Add scripts/uninstall.sh that mirrors both installers' paths and reuses the existing skill helpers:

  • Removes the ~/.local/bin/devloop symlink (guarded by -L, never follows to the source checkout).
  • Removes the ~/.local/share/devloop staged runtime (--install-dir override).
  • Removes devloop-managed skills via new devloop_uninstall_skills/_from_dir in skill_helpers.sh: checksum-guarded for copied skills (skips hand-modified ones unless DEVLOOP_FORCE=1), removes link-mode skills directly.
  • --dry-run preview, idempotent re-runs, leaves the source checkout, gum, fzf, and gh alone.

Docs updated (README, AGENTS.md).

Test evidence

bash scripts/devloop_test.sh → green, including the 100% function-coverage gate. New coverage:

  • In-process helper test (clean removal, modified-skill guard, DEVLOOP_FORCE override).
  • End-to-end test against the remote installer footprint (dry-run preview, full removal, idempotent second run).

Reverse install.sh and the remote installer: remove the devloop symlink,
the staged ~/.local/share/devloop runtime, and devloop-managed skills from
~/.agents/skills and ~/.claude/skills. Checksum-guards copied skills (skips
hand-modified ones unless DEVLOOP_FORCE=1), removes link-mode skills directly,
and is idempotent. Supports --dry-run, --bin-dir, --install-dir.

Adds devloop_uninstall_skills/_from_dir to skill_helpers.sh with in-process
helper tests plus an end-to-end test against the remote installer footprint.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
devloop 45bc034 Commit Preview URL

Branch Preview URL
Jun 09 2026, 06:26 AM

@satyaborg satyaborg merged commit 2be670e into main Jun 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant