Skip to content
Back to skills

Uninstall

CSecurity

Completely remove anti-hall (plugin, hooks, engine, background jobs, Codex port) with a choice about user data. Use for "uninstall anti-hall", "remove the plugin", "remove all anti-hall hooks".

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 29, 2026
ai-agentsgoshellbashsqlnodegit

Works with

  • claude code
  • cli

Security analysis

C73/100
  • highPerforms destructive filesystem operations
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned November 29, 2026

npx -y skills add talas9/anti-hall --skill uninstall --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uninstall?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Uninstall
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/talas9-uninstall/badge)](https://www.skillsdirectory.com/skills/talas9-uninstall)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: uninstall
description: Completely remove anti-hall (plugin, hooks, engine, background jobs, Codex port) with a choice about user data. Use for "uninstall anti-hall", "remove the plugin", "remove all anti-hall hooks".
---

# Uninstall

## When to use

The user asks to uninstall anti-hall, remove the plugin, or remove all anti-hall hooks.
Run the steps in order. Discover first, change nothing until step 2. Never delete
user data before the step 4 answer. Steps that stop the engine or its service unit are
main-session verbs (`units`, `ctl`, `stop` are refused to subagents): run them from the
main session or hand the exact command to the user.

## 1. Discover (read-only)

```bash
claude plugin list                                   # anti-hall@<marketplace>, its scope
claude plugin marketplace list                       # the marketplace that ships it
grep -n -i -E 'anti-hall|ah-hook|ah-engine' ~/.claude/settings.json ./.claude/settings.json ./.claude/settings.local.json 2>/dev/null
ls ~/.anti-hall/ah-engine/bin/ 2>/dev/null           # ah-engine, ah-hook
pgrep -fl 'ah-engine' | head                         # the running daemon
~/.anti-hall/ah-engine/bin/ah-engine units status    # the engine service unit and any retired Node units
ls ~/Library/LaunchAgents 2>/dev/null | grep -i -E 'anti-hall|ah-'      # macOS
ls ~/.config/systemd/user 2>/dev/null | grep -i -E 'anti-hall|ah-'      # Linux
```

Codex (skip if `~/.codex` is absent):

```bash
codex plugin list
grep -n -i -E 'anti-hall|ah-hook' ~/.codex/hooks.json ./.codex/hooks.json 2>/dev/null
grep -o '^\[hooks.state."[^"]*' ~/.codex/config.toml | sed -E 's/:[^:]*:[0-9]+:[0-9]+$//' | sort -u   # every project-level .codex/hooks.json Codex tracks (file list, de-duplicated)
ls ~/.codex/agents | grep -E '^ah-'                  # ah-reviewer, ah-critic, ah-auditor, ah-worker, ah-mechanic
grep -n -E '^\[agents\.ah-' ~/.codex/config.toml
```

Report what exists before changing anything. Leftover `hooks`, `enabledPlugins` or `statusLine`
entries that point at anti-hall or `ah-hook` count as installed even when the plugin is gone.

## 2. Remove the plugin and hooks FIRST

Order matters: the hook client restarts the daemon on demand (`ah-ipc` client), so a stopped engine
comes back on the next hook call while any anti-hall hook is still registered. Unregister every hook
(Claude plugin, settings entries, Codex hooks) before stopping anything.

Claude:

```bash
claude plugin uninstall anti-hall@<marketplace> [--scope user|project|local] --keep-data
claude plugin marketplace remove <marketplace>
```

Use the marketplace name `claude plugin list` printed. Always pass `--keep-data` (verify with `claude plugin uninstall --help`): it preserves
`~/.claude/plugins/data/<id>/` so no data goes before the step 4 choice; that directory is handled in step 4 per the answer. Then delete any settings
entry step 1 found (`enabledPlugins`, hooks, `statusLine` pointing at anti-hall) by editing the
file, after copying it to `<file>.bak-<date>`.

Codex:

```bash
codex plugin remove anti-hall@<marketplace>
codex plugin marketplace remove <marketplace>
```

`ah-engine install-codex` wrote only these: anti-hall's own hook groups in `.codex/hooks.json`
(project, or `~/.codex/hooks.json` with `--global`), the `hooks` feature in `config.toml`, and the AH agent files plus their `[agents.AH-*]` region. Reverse them by
hand, backing each file up first (`<file>.bak-<date>`):

0. List every project-level `.codex/hooks.json` Codex knows: the `[hooks.state."<path>:..."]` keys in `~/.codex/config.toml` (`grep -o '^\[hooks.state."[^"]*' ~/.codex/config.toml | sed -E 's/:[^:]*:[0-9]+:[0-9]+$//' | sort -u`, one line per file), not only the current folder.
1. In each of those `hooks.json` files (and `~/.codex/hooks.json`), delete the groups whose command contains `ah-hook` or `anti-hall`; leave every other group.
2. Leave `[features] hooks = true` if any other hook remains; remove it only when nothing else uses hooks.
3. Agents: `ah-engine install-codex --global --uninstall` removes the shipped agent files (`ah-reviewer.toml`, `ah-critic.toml`, ...) it copied into `~/.codex/agents/` (only those starting with `# anti-hall agent:`) and the marked `# >>> anti-hall agents ... >>>` region of `[agents.AH-*]` blocks in `config.toml`, leaving the rest of the file untouched; run it without `--global` in a project that has its own `.codex/`. Do this before removing the engine. By hand: delete those files and that region.
4. Stale `[hooks.state."<path>/.codex/hooks.json:..."]` blocks in `config.toml` are inert; remove the ones for files you removed.


## 3. Stop the engine (main session)

Run after step 2. The service unit restarts a stopped daemon, so remove the unit first, then stop.

```bash
~/.anti-hall/ah-engine/bin/ah-engine units uninstall   # unloads the engine unit (launchd or systemd user)
~/.anti-hall/ah-engine/bin/ah-engine stop              # stops the daemon
~/.anti-hall/ah-engine/bin/ah-engine uninstall-statusline [--user|--project] [--purge-base]
```

`units uninstall` moves the unit file into the engine state directory instead of deleting it.
After step 4 removes `~/.anti-hall`, delete any leftover `~/Library/LaunchAgents/com.anti-hall.*.plist`
or systemd `anti-hall*` unit files that `units status` listed. `uninstall-statusline` restores the saved
`statusLine` (else the settings backup, else removes the key); `--project` targets
`./.claude/settings.local.json`; `--purge-base` also removes the shared base configuration.

## 4. User data: ASK first (never skip)

Show the size of what would go, then ask with `AskUserQuestion` (on Codex or any host without it, a numbered menu):

```bash
du -sh ~/.anti-hall ./.anti-hall 2>/dev/null
```

| Option | Action |
|---|---|
| (a) Keep logs, handovers, ledgers | Copy the keep-list into `~/anti-hall-backup-<date>/`, verify the copy, then remove the rest |
| (b) Keep everything | Only unhook (steps 2-3); leave every data directory in place |
| (c) Delete everything | Remove `~/.anti-hall` and each project `.anti-hall/` |

**Stop the engine again right before ANY copy or delete, in the SAME shell command as that copy or delete.** The uninstalling session's own still-loaded hooks can restart the daemon on demand, so a separate tool call's hook can restart it between a check and the copy. One command leaves no gap for a hook to run in. Shape: `~/.anti-hall/ah-engine/bin/ah-engine stop; while pgrep -f "ah-engine serve" >/dev/null; do pkill -f "ah-engine serve"; sleep 1; done; <copy or delete commands>`. Do not copy or delete while the daemon runs.

Before any delete, check for unpushed work in each clone under `~/.anti-hall/work`: `git -C <clone> log --branches --not --remotes --oneline` (works with no upstream; any output, or a branch with no remote, counts as unpushed) and `git -C <clone> status --short`; warn the user about every clone with unpushed commits or changes.

Keep-list for (a), copied with `cp -R` (engine stopped, see above) (verify the copy, e.g. `diff -r`, before removing anything):

- `~/.anti-hall/logs/`, `~/.anti-hall/history/`, `~/.anti-hall/progress/`, `~/.anti-hall/auto-handover/`, `~/.anti-hall/defects/`
- `~/.anti-hall/ah-engine/*.log` and `~/.anti-hall/ah-engine/*.ndjson` (engine logs and action ledgers)
- `~/.anti-hall/ah-engine/*.db*` (engine SQLite data, e.g. `archive.db`, `hot.db`): with the engine stopped, copy each DB WITH its `-wal` and `-shm` files (the `*.db*` glob), or better `sqlite3 <db> ".backup <dest>"`. Rows committed but still in the WAL are lost if only the bare `.db` is copied and the originals are deleted.
- `~/.anti-hall/wip-snapshots/` and `~/.anti-hall/uncommitted/` (saved uncommitted work)
- any `~/.anti-hall/work/<clone>` the unpushed check flagged
- per project: `.anti-hall/handovers/`, `.anti-hall/history/`, `.anti-hall/progress/`, `.anti-hall/plans/`

Deleting is irreversible and the engine data directory can be large. Do not delete without an explicit
(a) or (c); with no answer, do (b). Never run `rm -rf` on a path that was not shown in the `du` listing.
Project `.anti-hall/` directories are found by looking in the repos the user names; do not sweep the disk.

## 5. Verify

```bash
claude plugin list | grep -i anti-hall               # expect no output
pgrep -fl ah-engine                                  # expect no output; run after Claude Code/Codex restarted. If it shows ah-engine after a restart, stop it (`ah-engine stop`, then `kill <pid>`)
ls ~/Library/LaunchAgents ~/.config/systemd/user 2>/dev/null | grep -i anti-hall   # expect no output
grep -n -i -E 'anti-hall|ah-hook' ~/.claude/settings.json ./.claude/settings*.json ~/.codex/hooks.json ./.codex/hooks.json 2>/dev/null   # expect none
```

Restart Claude Code and Codex (new session) before the `pgrep` check. Report which checks passed. A running session keeps its already-loaded hooks until it restarts: tell the
user to restart Claude Code and Codex.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.