hermes-session-recall

hermes-session-recall is a skill for Claude Code, Codex from AmineDjeghri/personal-os-setup. It costs 15 tokens per session (1,215 once invoked), scanned A, original, MIT.

A guide to finding and continuing earlier Hermes conversations.

In plain words
What is it for?
Use it to search past sessions, inspect the relevant messages, and recover pending work or the end of a previous conversation.
Why use it?
It provides a method for recovering where a task stopped, what was decided, or what question was still waiting for an answer.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search past sessions, inspect the relevant messages, and recover pending work or the end of a previous conversation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aminedjeghri/personal-os-setup/hermes-session-recall
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 AmineDjeghri/personal-os-setup --skill hermes-session-recall
Clone the repo
git clone --depth 1 https://github.com/AmineDjeghri/personal-os-setup

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-recall

README.md
[![agentmods](https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/hermes-session-recall/github.svg)](https://agentmods.dev/skills/aminedjeghri/personal-os-setup/hermes-session-recall)
Your own site
<a href="https://agentmods.dev/skills/aminedjeghri/personal-os-setup/hermes-session-recall"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/hermes-session-recall/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-recall

Your own site · 80×15
<a href="https://agentmods.dev/skills/aminedjeghri/personal-os-setup/hermes-session-recall"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/hermes-session-recall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,215 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 original No closer match found 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.00015 $0.01215
Opus 5.5 $0.00006 $0.00486
Sonnet 5.5 $0.00003 $0.00243
Haiku 4.5 $0.00002 $0.00121

Measured 18d ago against content hash 9ab52caad37d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hermes-session-recall 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 18d 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.

src/personal_os_setup/config/chezmoi/dot_hermes/skills/autonomous-ai-agents/hermes-session-recall/SKILL.md · 38 lines

How it starts

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

Recovering state from past conversations: where a task left off, what question was pending, what a session's final message said. Triggered by "prompt me again" after an approval timeout, "where did we leave off", or any recall request about earlier sessions.

Procedure

  1. Discovery first, narrow: session_search(query=<distinctive keywords>, sort="newest", limit=3). Adaptive detail hydrates the top hit fully with an anchored window around the match — enough to answer most recall questions in one call. sort="newest" biases toward "where did we leave off".
  2. To find how a session ENDED, phrase-match the tail: query for wording the final message would plausibly use ("waiting on you", "your call", "merge it when ready", "what remains"). The hydrated window lands ON the last message — which is the pending question/state you need.
  3. Zoom in with the scroll shape: session_search(session_id=..., around_message_id=<match_message_id>, window=N). Keep windows small; add role_filter="user,assistant" to exclude tool noise.
  4. Re-fire pending prompts: after an approval/clarify timeout, the user's "prompt me again" means re-present the SAME question — recover its text from the session tail (step 2), then re-issue it promptly. If recovery fails after one or two quick attempts, ask the user plainly what decision they're approving — never silently re-derive a different question.

When the prior conversation is NOT in this context

A follow-up that reads as a continuation ("write a doc about this", "same branch as before") often arrives in a NEW session created seconds earlier: none of the earlier conversation is in context, and the referring words ("this", "both", "the PR") are unresolvable from the message alone. Resolve the referent before acting on it.

  1. Browse live activity, never infer it: session_search() with no args lists the most recently ACTIVE sessions (started_at / last_active + preview). The session whose last_active is minutes old is the conversation being continued — confirm from its preview, then read or scroll it.
  2. Bound the browse with after="<date>") when several sessions compete. The bound applies to session START, so a long-running session that spans days falls outside a recent bound — drop the filter for those and rank by last_active instead.
  3. Read the tail, then answer: scroll the found session near its end (a real id from that session; the LAST id of one window re-scrolls forward) and reconstruct what the last exchange actually asked, then act on that — not on the literal wording of the new message.
  4. ~/.hermes/sessions/sessions.json is the gateway routing index (session key → active session id), not a session list: the key for the current thread points at the session created moments ago, while the conversation being continued sits under a different key. Use it to resolve a routing key only — never to find "the last conversation".

Read the full file on GitHub · 38 lines

Files

What ships with it

1 file 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. 18d ago Changed · -1 lines 9ab52caad37d
  2. 27d ago First seen · 39 lines · 15 tokens per session scan A f2c9822d7dce

Subscribe to this mod's changes

hermes-session-recall is a skill published in the GitHub repository AmineDjeghri/personal-os-setup (654 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 1,215 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.