sessionend

sessionend is a skill for Claude Code, Codex from ZenSystemAI/Zengram. It costs 147 tokens per session (2,606 once invoked), scanned A, original, MIT.

A session-closing workflow that records useful lessons, repeatable work patterns, mistakes, and corrections in Zengram, a shared memory system.

In plain words
What is it for?
Use it to review recent work, update local memory, capture new skills, and suggest project rules.
Why use it?
It reduces the chance that important context or lessons disappear when a coding session ends.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/zensystemai/zengram/sessionend
Any agent
npx skills add ZenSystemAI/Zengram --skill sessionend
Clone the repo
git clone --depth 1 https://github.com/ZenSystemAI/Zengram

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 sessionend

README.md
[![agentmods](https://agentmods.dev/badge/skills/zensystemai/zengram/sessionend.svg)](https://agentmods.dev/skills/zensystemai/zengram/sessionend)
Your own site
<a href="https://agentmods.dev/skills/zensystemai/zengram/sessionend"><img src="https://agentmods.dev/badge/skills/zensystemai/zengram/sessionend.svg" alt="Measured on agentmods" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00147 $0.02606
Opus 5 $0.00073 $0.01303
Sonnet 5 $0.00029 $0.00521
Haiku 4.5 $0.00015 $0.00261

Measured 4d ago against content hash fc26cdb13c9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sessionend 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 4d 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.

adapters/claude-code/sessionend/SKILL.md · 272 lines

How it starts

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

Session Context

Current directory: !pwd

Git status: !git -C $(pwd) status --short 2>/dev/null || echo "Not a git repo"

Recent commits (last 8 hours): !git -C $(pwd) log --oneline --since="8 hours ago" 2>/dev/null || echo "No commits in last 8 hours"

Current branch: !git -C $(pwd) branch --show-current 2>/dev/null || echo "No git repo"

Uncommitted changes: !git -C $(pwd) diff --stat 2>/dev/null || echo "No git repo or no changes"

Session End

A closing ritual that turns each session into institutional memory via Zengram. The goal is three things: (1) make sure nothing important gets lost between sessions, (2) build an honest record of what's working and what isn't, and (3) evolve our tools — capturing repeatable workflows as skills and mistakes/corrections as CLAUDE.md rules.


Step 1 — Gather Session Artifacts

Run these to understand what actually happened:

git -C $(pwd) log --oneline --since="8 hours ago" 2>/dev/null || true
git -C $(pwd) diff HEAD~1 --stat 2>/dev/null || true
git -C $(pwd) status 2>/dev/null || true

Also review the conversation history in your context — what was asked, what tools were used, what succeeded, what had to be retried.


Step 2 — Reflect Honestly

Before storing anything, think through the session critically. Don't just summarize — evaluate.

What went well?

  • Problems solved cleanly on the first try
  • Tools used effectively
  • Good decisions made quickly
  • User got what they needed without friction

What went wrong or poorly?

  • Wrong approaches tried before finding the right one
  • Misunderstandings that needed correction
  • Repeated tool calls, retries, or backtracking
  • Things that took longer than they should have
  • User had to correct me or redirect me

How could this session have gone better?

  • What would I do differently if I started over?
  • Are there patterns worth changing (how I approach certain tasks, which tools I reach for first, how I ask clarifying questions)?
  • Any workflow or tooling improvements that would help future sessions?

Read the full file on GitHub · 272 lines

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. 4d ago First seen · 272 lines · 147 tokens per session scan A fc26cdb13c9a

Subscribe to this mod's changes

sessionend is a skill published in the GitHub repository ZenSystemAI/Zengram (60 stars, last pushed 12d ago), licensed MIT. It adds 147 tokens to every session and 2,606 once invoked, about $0.0007 per session on Opus 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-08-30.