end

A command for closing a development session after running preparation checks and creating a summary. It checks the changelog and uncommitted work, then describes a commit process.

In plain words
What is it for?
Use it at the end of development work to check the changelog, review pending changes, stage files, and prepare a commit summary.
Why use it?
It reduces the chance of ending a session with undocumented changes or unfinished repository housekeeping.

Command

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/ankushdixit/claude-plugins/end
Clone the repo
git clone --depth 1 https://github.com/ankushdixit/claude-plugins
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,171 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.00010 $0.01171
Opus 5 $0.00005 $0.00585
Sonnet 5 $0.00002 $0.00234
Haiku 4.5 $0.00001 $0.00117

Measured yesterday against content hash 6a795e071e2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

end 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 yesterday.

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.

solokit/commands/end.md · 175 lines

How it starts

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

Session End

Complete the current development session by following these steps in order.

Step 1: Pre-flight Checks

Before completing the session, ensure all work is properly prepared.

1.1 Check CHANGELOG

First, check if CHANGELOG.md was updated in this session:

git diff --name-only main...HEAD | grep -q CHANGELOG.md && echo "CHANGELOG updated" || echo "CHANGELOG needs update"

If CHANGELOG needs update:

  1. Review commits made this session with git log --oneline -10
  2. Update CHANGELOG.md under the ## [Unreleased] section with:
    • Features added under ### Added
    • Bug fixes under ### Fixed
    • Changes under ### Changed
  3. Stage the CHANGELOG: git add CHANGELOG.md

1.2 Check and Commit Uncommitted Changes

Check for uncommitted changes:

git status --porcelain

If there are uncommitted changes:

  1. Review the changes
  2. Stage all changes: git add -A
  3. Create a commit with this format:
git commit -m "$(cat <<'EOF'
<type>: <short description>

<detailed description of changes>

LEARNING: <one key insight from this work>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
EOF
)"

Where <type> is one of: feat, fix, refactor, docs, test, chore

1.3 Generate Learnings

Extract 2-5 key learnings from the session and write them to a file:

cat > .session/temp_learnings.txt << 'EOF'
<learning 1 - technical insight or pattern discovered>
<learning 2 - gotcha or edge case encountered>
<learning 3 - best practice that worked well>
EOF

What makes a good learning:

  • Technical insights discovered during implementation
  • Gotchas or edge cases encountered
  • Best practices or patterns that worked well
  • Architecture decisions and their rationale
  • Performance or security considerations

Step 2: Ask About Work Item Completion

Ask the user about the work item completion status using AskUserQuestion:

Question: Work Item Completion Status

  • Question: "Is this work item complete? [Include work item title]"
  • Header: "Completion"
  • Multi-select: false
  • Options:
    • Label: "Yes - Mark as completed", Description: "Work item is done. A PR will be created for review."
    • Label: "No - Keep as in-progress", Description: "Work is ongoing. Will auto-resume when you run /start."
    • Label: "Cancel", Description: "Don't end session. Continue working."

Read the full file on GitHub · 175 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. yesterday First seen · 175 lines · 10 tokens per session scan A 6a795e071e2c

Subscribe to this mod's changes

end is a command published in the GitHub repository ankushdixit/claude-plugins (3 stars, last pushed 7mo ago), licensed MIT. It adds 10 tokens to every session and 1,171 once invoked, about $0.0001 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-31.