wrap-session

A session-closing checklist for coding work. It summarizes the work and checks that changes are committed, pushed, and recorded before you stop.

In plain words
What is it for?
Use it to create a handoff summary, inspect branch and sprint status, push pending commits, and identify incomplete gates or missing retrospective files.
Why use it?
It prevents unfinished local changes, unpushed commits, missing sprint records, and stale workflow claims from being lost between sessions.

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/srbryers/slope/wrap-session
Clone the repo
git clone --depth 1 https://github.com/srbryers/slope
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 408 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.00000 $0.00408
Opus 5 $0.00000 $0.00204
Sonnet 5 $0.00000 $0.00082
Haiku 4.5 $0.00000 $0.00041

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

Security

Grade A, and why

wrap-session 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 2d 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.

templates/claude-code/commands/wrap-session.md · 37 lines

What it actually says

Wrap Session — Close Out the Working Session

Run the session-close routine. A session is not a sprint: a long session can span several sprints or end mid-sprint, so this complements /post-sprint rather than replacing it. Leaked claims and unpushed work are the two failure modes this prevents.

Steps

1. Generate the standup wrap

Run slope standup — it reports sprint + scorecard state, branch + commits this session, transcript volume, blockers, and decisions. This is the body of your handoff summary.

2. Check for unpushed work

The last push is the recovery point. Run:

  • git status --short — uncommitted changes? Commit them (use a wip: prefix if incomplete).
  • git log @{upstream}..HEAD --oneline 2>/dev/null || git log origin/main..HEAD --oneline — unpushed commits? Push the branch.

Never end a session with uncommitted or unpushed work.

3. Report sprint state

  • slope sprint status — if gates are pending, say which ones in the handoff.
  • For every sprint touched this session, confirm docs/retros/sprint-N.json exists or note that the scorecard is missing.
  • slope status — check for dangling workflow executions or stale claims that would gate the next session.

4. End the session

Run slope session end — with one active session it defaults to it; this releases the session's claims. Leaked claims block later sessions.

5. Emit the handoff summary

Close with a short summary for the next session:

  • Shipped: PRs merged, sprints closed (with scores)
  • Open: current sprint state, pending gates, unmerged branches
  • Next: the single most useful thing the next session should pick up
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. 2d ago First seen · 37 lines · 0 tokens per session scan A 04206e41e0bd

Subscribe to this mod's changes

wrap-session is a command published in the GitHub repository srbryers/slope (6 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 408 tokens. 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.