Almanac Clean Slate
Reset this machine to a first-time Almanac user state, then report exactly what changed.
Goal: remove every installed or cached codealmanac/Almanac CLI artifact from this laptop without touching unrelated user files, unrelated npm packages, or foreign editor hooks.
Work from safest to most direct:
-
Record the starting state:
command -v almanac alm codealmanac || truenpm list -g codealmanac --depth=0 || truefind ~/.npm/_npx -path '*/node_modules/codealmanac/package.json' -print 2>/dev/null || true- Check for
~/.almanac,~/.claude/almanac.md,~/.claude/almanac-reference.md, legacy~/.claude/codealmanac*.md,~/.claude/hooks/almanac-capture.sh,~/.codex/hooks.json, and~/.cursor/hooks.json.
-
If any Almanac CLI command exists, run the product uninstaller first:
- Prefer
almanac uninstall --yes. - If
almanacis missing butcodealmanacexists, runcodealmanac uninstall --yes. - If both fail, continue with manual cleanup.
- Prefer
-
Remove npm/global installs and caches:
- Run
npm uninstall -g codealmanac || true. - Remove
codealmanacpackage directories under all local nvm global roots if they still exist. - Remove global bin shims named
almanac,alm, andcodealmanaconly when they point at acodealmanacinstall. - Remove each
~/.npm/_npx/<hash>directory whosenode_modules/codealmanac/package.jsonexists.
- Run
-
Remove Almanac home/config artifacts:
- Remove
~/.almanac. - Remove
~/.claude/almanac.md,~/.claude/almanac-reference.md,~/.claude/codealmanac.md, and~/.claude/codealmanac-reference.md. - Remove
~/.claude/hooks/almanac-capture.shif it exists.
- Remove
-
Clean editor hook settings safely:
- In
~/.claude/settings.json, remove only hook commands whose command path ends withalmanac-capture.sh; preserve every foreign hook. - In
~/.codex/hooks.json, remove only hook commands whose command path ends withalmanac-capture.sh; preserve every foreign hook. - In
~/.cursor/hooks.json, remove only hook commands whose command path ends withalmanac-capture.sh; preserve every foreign hook. - If a hook container becomes empty after removing Almanac's command, remove that empty container/key.
- In
-
Clean Claude imports safely:
- In
~/.claude/CLAUDE.md, remove lines that are exactly@~/.claude/almanac.mdor@~/.claude/codealmanac.md, plus those same lines followed by spaces/tabs and annotations. - Preserve lines that merely mention those paths inside other prose.
- If
CLAUDE.mdbecomes empty after removing Almanac imports, remove it.
- In
-
Verify the clean slate:
hash -r || truecommand -v almanac alm codealmanac || truenpm list -g codealmanac --depth=0 || truefind ~/.npm/_npx -path '*/node_modules/codealmanac/package.json' -print 2>/dev/null || true- Check that
~/.almanac, guide files, andalmanac-capture.share gone. - Check that no hook command ending in
almanac-capture.shremains in Claude, Codex, or Cursor hook settings.
Output:
- Show the exact commands/actions you ran in order.
- Mark each as
removed,already absent, orskippedwith the reason. - End with the remaining
command -vand npm/global/npx verification output.