#!/bin/sh # consensor uninstaller for Claude Code. Reverses install.sh. # # sh ~/.claude/consensor/uninstall.sh reverse consensor's changes # sh ~/.claude/consensor/uninstall.sh --restore-backups put ~/.claude/settings.json and # ~/.claude.json back byte-for-byte # as they were before the first install # # Default behaviour: # - settings.json: if it has not changed since consensor last touched it, the # pre-install backup is restored byte-for-byte. If you have edited it since, # only the rules and status line consensor added are removed; your edits stay. # - ~/.claude.json: `claude mcp remove consensor --scope user`, only if consensor # added it. (This file holds live Claude Code state, so it is not rolled back # unless you pass --restore-backups.) # - Before anything changes, the current files are snapshotted to # ~/.claude/consensor/backups/