hermes-session-maintenance

hermes-session-maintenance is a skill for Claude Code, Codex from AtlasOmnia/hermes-custom-pack. It costs 37 tokens per session (2,221 once invoked), scanned A, a copy of hermes-session-maintenance, MIT.

A maintenance guide for Hermes conversation sessions, including their storage, retention, export, backup, and pruning. Pruning means permanently deleting old sessions.

In plain words
What is it for?
Use it to inspect session counts and database size, export a safety snapshot, configure retention, or prune ended sessions older than a chosen age. It covers automatic pruning settings as well.
Why use it?
It helps distinguish inactive sessions that can be removed from active ones that must be kept. It also encourages checking current storage and making a backup before aggressive cleanup.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for hermes-agent. Also seen: mentions subagents; built for hermes-agent.

Good fit Use it to inspect session counts and database size, export a safety snapshot, configure retention, or prune ended sessions older than a chosen age. It covers automatic pruning settings as well.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atlasomnia/hermes-custom-pack/hermes-session-maintenance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AtlasOmnia/hermes-custom-pack --skill hermes-session-maintenance
Clone the repo
git clone --depth 1 https://github.com/AtlasOmnia/hermes-custom-pack

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hermes-session-maintenance

README.md
[![agentmods](https://agentmods.dev/badge/skills/atlasomnia/hermes-custom-pack/hermes-session-maintenance/github.svg)](https://agentmods.dev/skills/atlasomnia/hermes-custom-pack/hermes-session-maintenance)
Your own site
<a href="https://agentmods.dev/skills/atlasomnia/hermes-custom-pack/hermes-session-maintenance"><img src="https://agentmods.dev/badge/skills/atlasomnia/hermes-custom-pack/hermes-session-maintenance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hermes-session-maintenance

Your own site · 80×15
<a href="https://agentmods.dev/skills/atlasomnia/hermes-custom-pack/hermes-session-maintenance"><img src="https://agentmods.dev/badge/skills/atlasomnia/hermes-custom-pack/hermes-session-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,221 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02221
Opus 5 $0.00018 $0.01111
Sonnet 5 $0.00007 $0.00444
Haiku 4.5 $0.00004 $0.00222

Measured 9d ago against content hash 4392af9d79b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

hermes-session-maintenance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to hermes-session-maintenance — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/hermes-session-maintenance/SKILL.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hermes Session Maintenance

Use this skill when the user asks about pruning Hermes sessions, session retention, session DB size, hermes sessions prune, sessions.auto_prune, sessions.retention_days, session export/backup, or whether old conversations should be capped.

Operating principles

  • Treat this as Hermes configuration/maintenance work. If broader Hermes setup or CLI behavior is involved, also load hermes-agent for authoritative command references.
  • Do not assume retention policy from memory. Check live state before recommending destructive cleanup.
  • Pruning is deletion. Prefer exporting a safety snapshot before the first aggressive prune or before reducing retention substantially.
  • Distinguish default behavior from active behavior:
  • hermes sessions prune defaults to --older-than 90.
  • sessions.retention_days may also default to 90.
  • sessions.auto_prune: false means nothing is being deleted automatically.
  • Only ended sessions are prune candidates; active sessions are not pruned.

Standard workflow

  1. Inspect current volume:
hermes sessions stats

Use total sessions, messages, per-source counts, and DB size to shape the recommendation.

  1. Inspect prune command behavior when needed:
hermes sessions prune --help
  1. Check current config values:
hermes config show

If the summary output does not include the session settings, inspect the config file's sessions: block directly. Do not use hermes config get; this CLI supports show, edit, set, path, env-path, check, and migrate, not get.

  1. Recommend retention based on actual size and user needs.
  • 90 days is conservative/default.
  • 30 days is reasonable when the DB is multi-GB and session search is mostly used for recent operational continuity.
  • Shorter than 30 days should usually be explicit user preference or a storage emergency.
  1. Before first major prune, export a backup:
hermes sessions export ~/hermes-sessions-backup-$(date +%Y%m%d).jsonl

Read the full file on GitHub · 209 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 209 lines · 37 tokens per session scan A 4392af9d79b5

Subscribe to this mod's changes

hermes-session-maintenance is a skill published in the GitHub repository AtlasOmnia/hermes-custom-pack (56 stars, last pushed 25d ago), licensed MIT. It adds 37 tokens to every session and 2,221 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to hermes-session-maintenance, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

agent-dreaming-agnostic

Memory-agnostic background consolidation — reviews sessions, scores candidates, promotes durable insights to the active memory backend (built-in MEMORY.md or Holographic). Three-phase (Light/Deep/Condensation/REM). Run via cron or manually.

nexus9888/hermes-memory-skills · 57 tokens

agent-dreaming

DEPRECATED — use agent-dreaming-agnostic instead. Background memory consolidation for built-in MEMORY.md only.

nexus9888/hermes-memory-skills · 28 tokens

hermes-context-optimization

Use this when the user asks about Hermes prompt/context size, “hello” startup cost, compression behavior, memory/profile bloat, tool-schema overhead, skill loading, session-store/search-index storage, or multimodal/visual-context approaches such as Snapcompact.

AtlasOmnia/donna-starter · 35 tokens

hermes-mnemosyne

Mnemosyne is Hermes' primary local-first memory engine — SQLite with vector + FTS5 hybrid search, 19+ tools, auto-consolidation, and a standalone CLI. It's a pip-installed plugin (not a built-in toolset) discovered via $HERMESHOME/plugins/mnemosyne/.

AtlasOmnia/donna-starter · 30 tokens

hermes-session-maintenance

Use this skill when the user asks about pruning Hermes sessions, session retention, session DB size, hermes sessions prune, sessions.autoprune, sessions.retentiondays, session export/backup, or whether old conversations should be capped.

AtlasOmnia/donna-starter · 37 tokens

mnemosyne-maintenance

Use when: upgrading Mnemosyne, diagnosing slow/hung consolidation (mnemosynesleep), fixing missing embeddings, or troubleshooting import/version mismatches.

AtlasOmnia/donna-starter · 40 tokens