Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Session Review Loop?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/rafaelrr5-session-review-loop)
---
name: session-review-loop
description: "Review many past sessions at once, propose fixes with evidence, apply on approval."
version: 1.0.0
author: Rafael Rocha Ribeiro (github.com/Rafaelrr5)
license: MIT
platforms: [linux, macos, windows]
metadata:
agent:
tags: [memory, skills, continual-learning, session-review, transcripts, approval]
related_skills: [hermes-session-forensics, hermes-cron-jobs, delivery-verification, recall-and-claim-verification]
---
# Session review loop
An agent that learns only inside one conversation sees one data point. This loop
reads many transcripts out of band, finds what repeats, and drafts memory and skill
changes with the evidence attached. A human approves each one before anything goes
live.
## When to Use
- A scheduled review fires (every few days works; nightly is usually too little data).
- The user asks to "review the last week" or "learn from our history".
- The user answers a review: `go 1,3`, `skip 2`, `all`, `none`.
What it is not:
- **Not the in-band review.** Hermes' background review forks the agent after a turn
and writes memory and skill changes straight to the stores. It sees one
conversation and asks no one.
- **Not the skill curator.** `hermes curator` moves skills between active, stale and
archived by usage timestamps and can consolidate skill text. It does not read
transcripts. The curator manages lifecycle; this loop changes content.
- **Not a reminder service.** No item may be a follow-up on the user's projects,
leads or deadlines. The question is "what should the agent do differently so this
kind of work goes better next time?"
## Pieces
- **A digest.** `scripts/session_digest.py --days N` reads `$HERMES_HOME/state.db`
read-only and prints tool-error groups seen in 2+ sessions or 3+ times, skills loaded
and edited per session, and every human turn next to the tail of the assistant message
it answered (that pairing is where corrections show up). Scheduled-job and subagent
sessions are skipped because their "user" turns are machine prompts. Secrets are
redacted. `--selftest` checks it against a fake store. For the store's layout,
multipart rows and rewound rows, see `hermes-session-forensics`.
- **A proposals log.** One JSON line per proposal, append-only:
`{id, date, kind, target, change, evidence[], sessions[], count, why, risk, status, path}`.
`kind` is one of skill_new, skill_patch, skill_install, memory, tooling, config.
`status` is one of proposed, approved, applied, rejected, expired.
- **A run log.** One line per run, silent runs included, so a dead schedule is visible.
- **A schedule.** Run it as a scheduled job and prove it runs (`hermes-cron-jobs`).
Give that job enough tools to read sessions, read and stage skills, run scripts, and
search the web: a review that can't check anything only produces opinions.
## Review procedure
1. Read the whole digest, the current memory files, and the last ~50 proposals (so
you don't re-propose what was rejected).
2. Look for shortfalls, in this order:
- **Corrections and redo requests.** The user pushed back, re-asked, or called the
result wrong, ugly, slow or incomplete. Name what was missing: knowledge, a
tool, a check, taste.
- **Repeated tool friction.** The error groups, plus turns spent on workarounds:
a guard refusing the same command, flaky browser steps, timeouts. Count them.
- **Capability gaps.** Work that no skill covers and that was improvised from
memory. Write each as a search query.
- **Your own reasoning.** The same detour in 2+ sessions (rebuilding a command you
knew, "the skill says X but") is a process to fix even if the user never
complained.
- **Skills that were used.** For each skill loaded in the window, compare what it
said with what was actually done. Patch it when a step was wrong or outdated, a
faster path replaced it, it was loaded and then skipped (too long or vague:
tighten or split), an in-band edit added a log line instead of a rule, or two
skills now overlap. A skill loaded often and never edited is still a candidate.
- **Memory.** Move facts that are really procedures into their skill, merge
duplicates, drop stale lines, and add a line only when the history shows a
cross-session fact was re-asked or re-discovered 2+ times. Keep headroom below
the configured character limits (`MEMORY.md`, `USER.md`).
3. **Stage every fix completely; apply none.** Each proposal gets its own folder with
the finished artifact: the new skill file plus a diff against the live one, the
memory edit as explicit ops with before/after sizes, the tested script, or a
third-party skill vetted and staged but not installed. "Approve" must be a
mechanical apply, never new work. A diagnosis with "fix options" and no staged
change is not a proposal.
4. **Prove each draft:** the skill parses and fits the size limit, the diff applies to
the live file, the script runs, the failing case passes against the staged version.
For a bug in the agent itself, stage the patch with a test that fails without it;
a guessed cause is often wrong, and the failing test is what exposes that.
5. Prefer the strongest fix: install a vetted skill for a real gap, write or patch a
skill for a lesson specific to the user's work, fix the tooling for a recurring
failure (root cause, not a reminder line). Prefer cutting text to adding it, and
say what was removed.
6. Log each proposal and one run line. Proposals left unanswered for a week become
`expired`; their folders stay.
7. Reply in plain words, no file names or config keys. One numbered block per
proposal, strongest first, three lines each:
**Problem:** one sentence with a count or a quote from the history.
**Cause:** the root cause you found, and what proved it.
**Fix:** the one path you staged, what changes after it, and the proof it works.
Merge small edits to the same skill into one item. End with
`Reply: go 1,3 · skip 2 · all · none`. Nothing worth proposing means a silent run.
## Applying
- Accept `go`/`approve`, `skip`/`reject`, `all`, `none`, and free text. Free text that
edits a proposal approves the edited version. "Yes, but what will you do?" is
approval: apply first, then say what changed.
- Start by listing every proposal still `proposed` or `approved` and close those too.
- Apply from the staged folder with the agent's own tools. If the live file changed
since the draft, re-diff and say so before applying. Config changes need an
explicit yes even inside `all`, because they change runtime behaviour.
- After each change, update its line in the log and verify it: the skill reads back
with the new text, the memory search returns the fact.
- A fix to code the running agent has already loaded is not live until the process
restarts. Keep it `approved` until a real call proves the new behaviour, then mark
it `applied`.
- Report one line per item.
## Guardrails
- **Bad habits must not become policy.** One frustrated message is a mood, not a rule,
unless it states a rule. Default to evidence from 2+ sessions.
- **Never write identifiers into shared skills:** credentials, employer or client
names, private project names. Generalize the lesson or leave it out.
- **Not every `user` row is the user.** Handoff text, system notes and machine prompts
arrive with that role. Ignore them.
- **Nothing touches live skills, memory, config or code during the review.** Money and
third parties stay out entirely.
## Pitfalls
- A voice note that failed transcription is missing content, not a correction.
- The digest shows only the tail of each reply. For a borderline case, read more of
that session read-only before proposing.
- Tool-error signatures are coarse (`exit N` groups unrelated failures). Open a few
instances before calling it one problem.