hermes-home-cleanup
Skill0 starsChanged 58 days agoMITView on GitHub
Purge traces of an MCP server or skill from ~/.hermes.
- Reads credentials
In this repository156 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aes-agentSkill
- aes-capabilitiesSkill
- aes-contractSkill
- aes-docsSkill
- aes-lint-arwakySkill
- aes-migrationSkill
- aes-rootSkill
- aes-surfaceSkill
- aes-taxonomySkill
- aes-testing-suiteSkill
- aes-utilitySkill
- omnirouteSkill
- xai-apiSkill
- android-emulator-linux-gpsSkill
- chromium-profile-provisioningSkill
- flatpak-chromium-automationSkill
- qwen-web-arwaky-devSkill
- qwen-webSkill
- agent-tool-collectionSkill
- coding-agent-delegationSkill
- computer-useSkill
- hermes-agentSkill
- hermes-messaging-gatewaysSkill
- merge-reconcilerSkill
- codegraphSkill
- cleanup-consolidateSkill
- codacy-analysis-cliSkill
- codacy-cloud-cliSkill
- codacy-code-reviewSkill
- codebase-inspectionSkill
- coderabbit-reviewSkill
- configure-codacy-cloudSkill
- configure-codacySkill
- fix-bypassSkill
- fix-markdown-inline-htmlSkill
- harness-source-auditSkill
- no-mistakesSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- report-linter-false-positiveSkill
- setup-coverageSkill
- architecture-diagramSkill
- ascii-artSkill
- ascii-videoSkill
- baoyu-infographicSkill
- comfyuiSkill
- excalidrawSkill
- humanizerSkill
- manim-videoSkill
- no-ai-slopSkill
- p5jsSkill
- popular-web-designsSkill
- pretextSkill
- sketchSkill
- songwriting-and-ai-musicSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use when asked to "clean all X references from my hermes" / remove an MCP server or skill completely.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hermes Home Cleanup (forensic purge)
Use when asked to "clean all X references from my hermes" / remove an MCP server or skill completely. "Just list what's configured" is the same enumeration minus the deletion steps. Where Hermes keeps state is NOT inventoried here — see below.
Where Hermes keeps state (not repeated here)
The provisioning map lives in the agent-harness-connectors skill — what aa connect
writes and where (MCP server map into each harness config, OMNIROUTE_*
into <harness>/.env plus ~/.config/environment.d/, skills as one root symlink into the
pack, and the dot-prefixed state files that land beside them). Profile layout and the
skills.disabled mechanism are in hermes-profiles (hermes-profiles skill's references/skills-layout.md,
references/skill-filtering.md).
Two facts this procedure depends on, so they are stated here anyway:
- Profiles are independent config islands.
mcp_servers:exists in~/.hermes/config.yamlAND in every~/.hermes/profiles/<name>/config.yaml; a server can live in one profile only.enabled: true/falseis per entry. - Cache ≠ config.
cache/mcp_schema_cache.json(root and per profile) has server names as top-level keys with atoolslist. A server present only there and absent from config is a stale entry — report it as stale, not as live.
Purge procedure (finding ALL traces)
- Build a name-variant regex:
x[-_.]?yAND the glued formxy— the skills hub index cache (skills/.hub/index-cache/hermes-index.json) stores normalized display names ("Leanctx Integration") that a hyphen-only grep misses. Case-insensitive. - Sweep with exclusions — never raw
grep -r ~/.hermes/:grep -rIli '<regex>' ~/.hermes/ --exclude-dir=sessions --exclude-dir=logs --exclude-dir=checkpoints --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=hermes-agent --exclude='*.log'(sessions/logs are history, not config;hermes-agentis the source repo — don't edit product code to satisfy a cleanup). - Known orphan homes to check explicitly: per-profile
cache/mcp_schema_cache.json,profiles/*/skills/.usage.json,skills/.hub/index-cache/hermes-index.json,cache/tool_discovery_cache.json,cache/plugin_toolset_keys.json,cron/**, leftover blocked-script temps inprofiles/*/cache/blocked-scripts/. - Also verify the component isn't actually installed (
which <bin>,pip show, skill/plugin dirs) before and after — that proves runtime cleanliness, not just text removal. - Re-run the sweep at the end; report remaining files and ask before touching
user backups (e.g.
config.yaml.bak) — inert but they're the user's restore point, and the user prefers being asked over guessing.
Editing the JSON stores
- Load/dump with Python (
json.load→ mutate →json.dump) — never sed/regex on JSON; removing a server frommcp_schema_cache.jsonor a skill from.usage.jsonis a dict pop; inhermes-index.jsonthe entry lives in theskillslist (filter by regex overjson.dumps(entry)). - Back up large hub files before editing (copy to
<file>.baksuffix) so the ~90k-entry skills index is restorable.
Pitfalls
- Keep each terminal command small and single-purpose. A long
;-chained one-liner of greps/echoes trips the hardline blocklist for oversized inline payloads; the rejected command is written toprofiles/*/cache/blocked-scripts/blocked-*.sh— which then becomes yet another file containing the name you're purging. Do multi-file walks inexecute_codePython instead of chained shell. - Grepping a giant single-line JSON with
grep -A/-Breturns the whole file; usere.finditer(r'.{60}name.{100}', text)in Python for context windows.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

