Skip to content

About

Hermes skill for owner-approved session wrap receipts

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wrap-session

Skill for closing a working session with an owner-approved durable record. It is manually invoked.

Trigger

Use any clear manual request:

  • /wrap-session
  • wrap session
  • close session
  • end session
  • create a durable handoff before leaving

Use it after work that leaves code, decisions, documents, operational changes, or unfinished work for a later session. Skip it for chitchat with nothing durable.

Install

Install this skill directory under your agent's skill directory. For Hermes:

cp -R /path/to/wrap-session ~/.hermes/skills/wrap-session

Use the directory that contains SKILL.md, bin/, and tests/. No project-specific layout is required after installation.

Usage contract

/wrap-session first inspects session residue and drafts a wrap plan. It does not write persistent files or run Git actions before owner approval.

Owner approves, edits, selects, or cancels proposed:

  1. decision, deferred-work, and memory writes;
  2. Git action: leave changes, commit, or commit and push;
  3. wrap-plan edits.

all, selected numbers, free-text edits, and cancel are valid responses. cancel writes nothing.

After approved actions complete, it writes one receipt per session at:

~/.local/state/session-wrap/<session_id>.md

Receipt records completed work, decisions, written artifacts, Git state, deferred work, and one next action. Re-wrapping same session ID replaces that receipt.

Optional detector

Optional Hermes companion: from installed skill directory, check recent receipts and likely unwrapped sessions:

bin/wrap-status.sh

Initialize its rollout baseline once, explicitly:

bin/wrap-status.sh init

Status is read-only. init creates receipt directory and .enabled-at baseline marker. Environment overrides are available for WRAP_DIR, WRAP_HOURS, and HERMES_DB.

The detector counts a receipt only when all required metadata and nonempty Done, Decisions, Written, Git, Deferred, and Next sections are present. cwd must be absolute and wrapped_at must parse as an ISO timestamp. Invalid receipts remain on disk and appear under INVALID RECEIPTS; they do not suppress unwrapped-session findings. This validates the record's structure, not whether the recorded work actually happened.

Exit 1 means invalid receipts or failed database inspection; exit 2 means bad arguments. Likely unwrapped sessions alone retain exit 0. A missing Hermes DB keeps receipt-only mode; an existing DB that cannot be read is a coverage error.

Test

bash tests/run-tests.sh

Plain Bash tests; no test framework dependency.

License

MIT. See LICENSE.

About

Hermes skill for owner-approved session wrap receipts

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages