소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 8월 4일 09:57
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill hermes-home-cleanup명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | hermes-home-cleanup |
| description | Use when cleaning ~/.hermes or ~/.hermes-cortex. Verify. |
| version | 1.0.0 |
| category | devops |
| author | Esther |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["cleanup","maintenance","hermes","stale-files","disk-space"],"related_skills":["hermes-backup","hermes-cortex-maintenance","repo-organization","survey-before-action"]}} |
Use when asked to "clean up" ~/.hermes or ~/.hermes-cortex, reclaim disk,
or audit what's safe to delete on a Hermes Agent server.
~/.hermes/ is Hermes Agent territory. Most of it is live agent
machinery. Before labeling anything stale, verify against the agent source
(~/.hermes/hermes-agent/), not just cortex scripts. Two false "stale"
claims cost real time: state-snapshots/ and ~/.hermes/hooks/ are both
agent-owned. Grep the agent repo before you rm.
# 1. Is it referenced by the agent source?
grep -rn '<name>' ~/.hermes/hermes-agent/ 2>/dev/null | grep -v node_modules | grep -v venv | grep -v '\.git/'
# 2. Is it referenced by cortex scripts (repo + deployed)?
grep -rn '<name>' ~/hermes-cortex/ ~/.hermes-cortex/scripts/ ~/.hermes/plugins/ 2>/dev/null | grep -v '\.git/'
# 3. Is it a live cron's state file? (renamed crons keep old state filenames!)
python3 -c "import json;d=json.load(open('$HOME/.hermes/cron/jobs.json'));jobs=d.get('jobs',d) if isinstance(d,dict) else d;print([j.get('name') for j in jobs if isinstance(j,dict)])"
# 4. Is it a symlink target or consumed by install scripts?
grep -rn '<name>' ~/.hermes-cortex/scripts/install*.sh ~/hermes-cortex/ops/scripts/install*.sh 2>/dev/null
Zero references in ALL FOUR = candidate. One reference = LIVE. Never guess.
| Path | Why live |
|---|---|
~/.hermes/hermes-agent/ | The running agent source + venv + node_modules (CLI at ~/.local/bin/hermes runs from here) |
~/.hermes/state.db (+ -wal/-shm) | Live session DB, written every turn. Never delete; checkpoint before copy (PRAGMA wal_checkpoint(TRUNCATE)) |
~/.hermes/state-snapshots/ | Agent's own pre-update backup. hermes update creates *-pre-update/; restore with hermes backup restore --state pre-update or /snapshot restore. Config: updates.pre_update_backup (quick/full/off), backup_keep |
~/.hermes/hooks/ | Agent event-hook directory (gateway/hooks.py scans for HOOK.yaml + handler.py dirs; web UI /api/ops/hooks). The DIRECTORY must stay. Plain files inside are ignored by the agent but may be pre-migration copies — verify, don't assume |
~/.hermes/cron/ (jobs.json, executions.db, ticker_*) | Live scheduler state |
~/.hermes/gateway.*, ~/.hermes/processes.json, session.id, auth.json, .env | Live runtime / secrets |
~/.hermes/state/bus-audit-watchdog.json + .state | LIVE — the renamed orch-bus-audit-watchdog cron uses these EXACT filenames. A renamed cron keeps its old state files |
~/.hermes/state/worker-pending/, worker-completed/ | Live agent-worker.py machinery (is_completed() reads .done files; deleting can re-trigger old steps) |
~/.hermes-cortex/a2a/ | DEPRECATED dir, zero consumers — A2A service merged into cortex-bus (src/a2a/ → ops/services/a2a/ → cortex-bus). Bus server serves a HARDCODED card at ; deployed card is (register_orch in cortex-update.sh). there was last written 2026-07-27 by a one-off run — no cron, script, or nginx route reads it. Safe to delete both files (keep the empty dir or remove it; nothing recreates it) |
Log policy (Luke, 2026-08-03): keep logs unless actually out of disk space. Rotated log archives are NOT routine cleanup targets — only remove them when
df -hshows real pressure (e.g. < 10% free). Same for any log under~/.hermes/logs/or~/.hermes-cortex/logs/.
| Path | Evidence | Saves |
|---|---|---|
~/.hermes-cortex/state/loop-governance.db (0 bytes) | All scripts reference data/loop-governance.db, none reference state/ copy. Do NOT touch data/loop-governance.db — that is the live governance DB. | 0 bytes (dead file) |
~/.hermes/hermes-agent/__pycache__/, ~/.hermes-cortex/{scripts,offline}/__pycache__/ | Regenerable bytecode (Python rebuilds on import) | ~2.5 MB, 800+ dirs |
~/.hermes-cortex/a2a/task-state.db | Zero references in agent source or cortex scripts (agent-card.json in same dir IS live) | 20 KB |
~/.hermes/state/post-commit-notify + .log | Pre-migration leftovers: old hook wrote to ~/.hermes/state/, current script writes to .hermes-cortex/state/ | 3.5 KB |
~/.hermes/cron/output/<hash>/ subdirs older than 30 days | Scheduler run artifacts; doctor does NOT read cron/output. Keep loose named deliverables (e.g. sustainability-briefing-*.md/.docx) | several MB, 1000s of files |
| Path | Why |
|---|---|
~/.hermes/hooks/post-commit + pre-commit | Pre-migration copies of cortex git hooks (migration-2026-07-08 moved hooks to ~/.hermes-cortex/hooks/). Agent ignores them (not hook dirs); git uses hooksPath → ~/.hermes-cortex/hooks. But the DIRECTORY is agent infrastructure and files may be referenced manually — confirm with owner |
~/.hermes/state/worker-completed/*.done | Live machinery reads them; old entries look stale but deleting can re-trigger steps in agent-worker.py |
~/.hermes/config.yaml.bak.* | Config backup — "never destroy what you cannot restore." 76 KB, trivial; keep unless disk-critical |
post-commit-notify.sh wiring | Deployed (registered in cortex-update.sh) but NOT the active post-commit hook (that's post-commit-audit via symlink). State files are stale, but the script may be intended to be wired — flag, don't delete |
~/.hermes-cortex/state/.hermes-session-*.id | Auto-managed: purge-stale-governance-locks.py Phase 2 removes markers older than 24 h. Run that script, don't hand-delete |
~/.hermes/models_dev_cache.json | Regenerable cache BUT hermes-backup skill copies it — part of backup surface. Tiny (3 MB); optional |
du -sh ~/.hermes/* ~/.hermes-cortex/* | sort -rh; identify top consumersrm -rf a LIVE pathdu -sh before/after; hermes doctor / cortex-doctor.py --quiet still cleanbus-audit-watchdog → orch-bus-audit-watchdog but the script still writes ~/.hermes/state/bus-audit-watchdog.*. Grep the SCRIPT, not the cron name.state-snapshots/ is not orphaned — it's the agent's pre-update rollback. No cortex script references it; the AGENT does.~/.hermes/hooks/ ≠ git hooks — it's the agent's event-hook dir. Git hooks live under ~/.hermes-cortex/hooks/ (core.hooksPath).state.db needs WAL checkpoint first if copied; never deleted.begin_change before continuing.hermes-backup — full backup procedure (use BEFORE aggressive cleanup)hermes-cortex-maintenance — update workflowrepo-organization — canonical directory structure/.well-known/agent-card.jsonbus/agent-card.jsonagent-card.jsongenerate-agent-card.py --output~/.hermes-cortex/state/_cron_find.py | LIVE — install-crons.sh + install-orch-crons.sh call it |
~/.hermes-cortex/data/loop-governance.db, session-embeddings.db | Live governance/scoring DBs |
~/.hermes/bin/uv, uvx, tirith | Python toolchain + security scanner (tirith referenced in config.yaml security.tirith_*) |
~/.hermes/node/, ~/.hermes/lsp/ | Runtimes for desktop/LSP features |
~/.hermes/agent-profiles/ | SOUL.md templates — soul-merge.py + pre-commit-score read them |
~/.hermes/AGENTS.md.local, any local-* | Preserved by rule (cortex-update never deletes) |
~/.hermes-cortex/state/deploy-backups/, scripts-unique-backup-* | Recent deploy rollback safety nets |