session-end

session-end is a command for Claude Code from akougkas/helios-mcp. It costs 8 tokens per session (315 once invoked), scanned C, original, MIT.

A session-end checklist for cleaning a Git repository, reviewing changes, creating a commit, updating DEVLOG.md, and confirming the working tree is clean.

In plain words
What is it for?
Use it at the end of a session to remove temporary files, inspect the diff, stage and commit changes, record what was done, and prepare a handoff.
Why use it?
It helps leave work documented and committed so another coding session can continue from a known state.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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 commands/akougkas/helios-mcp/session-end
Clone the repo
git clone --depth 1 https://github.com/akougkas/helios-mcp

Made for: Claude Code.

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 session-end

README.md
[![agentmods](https://agentmods.dev/badge/commands/akougkas/helios-mcp/session-end.svg)](https://agentmods.dev/commands/akougkas/helios-mcp/session-end)
Your own site
<a href="https://agentmods.dev/commands/akougkas/helios-mcp/session-end"><img src="https://agentmods.dev/badge/commands/akougkas/helios-mcp/session-end.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 315 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.1 $0.00008 $0.00315
Opus 5 $0.00004 $0.00158
Sonnet 5 $0.00002 $0.00063
Haiku 4.5 $0.00001 $0.00032

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

Security

Grade C, and why

session-end scanned grade C with 1 finding 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 5d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

!`find . -type d -name "__pycache__" -not -path "./.git/*" -exec rm -rf {} + 2>/dev/null`
.claude/commands/session-end.md · 38 lines

What it actually says

Session End Protocol

1. Clean Temporary Files

!find . -type f \( -name "*.tmp" -o -name "*.debug" -o -name "*.log" -o -name ".DS_Store" \) -not -path "./.git/*" -delete 2>/dev/null !find . -type d -name "__pycache__" -not -path "./.git/*" -exec rm -rf {} + 2>/dev/null

2. Review Changes

Status: !git status -s Diff summary: !git diff --stat HEAD

3. Stage and Commit

!git add -A !git status -s

Create atomic commit: !`git commit -m "$ARGUMENTS

Session handoff: Repository in clean, working state"`

4. Update DEVLOG

Append to DEVLOG.md:

## $(date +%Y-%m-%d_%H:%M)
**Done:** $ARGUMENTS
**Next:** [Check git log for context]
---

5. Verify Clean State

!git status

Handoff ready: Next session starts from clean commit.

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. 5d ago First seen · 38 lines · 8 tokens per session scan C dbb97f6fdec3

Subscribe to this mod's changes

session-end is a command published in the GitHub repository akougkas/helios-mcp (2 stars, last pushed 5mo ago), licensed MIT. It adds 8 tokens to every session and 315 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.