session-reset

session-reset is a skill for Claude Code, Codex from webbertakken/agent-skills. It costs 92 tokens per session (814 once invoked), scanned A, original, MIT.

A session-preservation command for when a coding session needs to be restarted without losing its current task and progress. It records short-lived session context, handles pending changes, and prepares the user to clear and restore the session.

In plain words
What is it for?
Use it to save the current method and progress, inspect uncommitted changes, check changed files for likely secrets, commit or push when chosen, and continue after a session reset.
Why use it?
It helps avoid losing the thread when the conversation becomes too large or the session needs a fresh start. It also makes the user choose whether local changes should be committed, pushed, or left untouched.

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/webbertakken/agent-skills/session-reset
Any agent
npx skills add webbertakken/agent-skills --skill session-reset
Clone the repo
git clone --depth 1 https://github.com/webbertakken/agent-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/webbertakken/agent-skills/session-reset.svg)](https://agentmods.dev/skills/webbertakken/agent-skills/session-reset)
Your own site
<a href="https://agentmods.dev/skills/webbertakken/agent-skills/session-reset"><img src="https://agentmods.dev/badge/skills/webbertakken/agent-skills/session-reset.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 814 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.00092 $0.00814
Opus 5 $0.00046 $0.00407
Sonnet 5 $0.00018 $0.00163
Haiku 4.5 $0.00009 $0.00081

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

Security

Grade A, and why

session-reset 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 3d 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.

skills/session-reset/SKILL.md · 94 lines

How it starts

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

Session reset

Preserve session-specific state in PROMPT.md across a /clear, then restore afterwards.

PROMPT.md captures only session-specific state — current task, method, and progress. Persistent knowledge (user preferences, codebase patterns, dev quirks, workflow lessons) is handled separately by auto-memory and must NOT be included in PROMPT.md.

Workflow

1. Commit and push

Check git status for uncommitted changes. If there are any:

Security check — before staging, scan changed files for secrets. Flag and exclude any files matching common sensitive patterns (.env*, *.key, *.pem, credentials.*, *secret*, *.token). Warn the user if any are found and never stage them without explicit confirmation.

Then ask the user:

  • Commit and push — stage safe changes, commit with a concise message, and push to the current branch
  • Commit only — stage and commit without pushing
  • Skip — leave changes as-is

If the user chooses to commit, use /commit. If they also want to push, push after the commit succeeds.

If the working tree is already clean, tell the user "Working tree is clean — nothing to commit." and move on.

2. Write PROMPT.md

Generate PROMPT.md at the project root by reviewing the current session state. PROMPT.md is ephemeral and must never be committed.

# PROMPT.md

## Current task
<!-- What we're working on - the goal, feature, or fix -->

## Method
<!-- Which workflow/approach is active (e.g. OpenSpec, manual, etc.) -->
<!-- Include any active change IDs, branch names, or tracking references -->

## Progress
<!-- Where we are in the process -->
<!-- What's done, what's in flight, what's next -->
<!-- Any blocking issues or open questions -->

Guidelines:

  • Do NOT include user preferences, codebase patterns, dev quirks, or general knowledge — auto-memory handles that
  • Do include task-specific context: current branch, active OpenSpec change, what's done, what's next, blocking issues
  • Be specific and actionable — include file paths, branch names, change IDs, and concrete references
  • Keep it concise — typically 20-40 lines

Read the full file on GitHub · 94 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. 3d ago First seen · 94 lines · 92 tokens per session scan A baaf1c0a1e66

Subscribe to this mod's changes

session-reset is a skill published in the GitHub repository webbertakken/agent-skills (3 stars, last pushed 2mo ago), licensed MIT. It adds 92 tokens to every session and 814 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

commit-push-pr

Use when asked to ship/open a PR, or for PR-description-only flows like writing, rewriting, or describing a PR body.

OutlineDriven/odin-claude-plugin · 31 tokens

commit-push-current

Commit working-tree changes and push to the current branch: no branch creation, no branch switch, no PR. Use when asked to push to the branch you are already on, including the default branch.

OutlineDriven/odin-claude-plugin · 45 tokens

commit-push

Use when asked to ship/publish commits without opening a PR.

OutlineDriven/odin-claude-plugin · 17 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens

spark-engineer

Use when writing Spark jobs, debugging performance issues, or configuring cluster settings for Apache Spark applications, distributed data processing pipelines, or big data workloads. Invoke to write DataFrame transformations, optimize Spark SQL queries, implement RDD pipelines, tune shuffle operations, configure…

Jeffallan/claude-skills · 75 tokens

kotlin-specialist

Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose.…

Jeffallan/claude-skills · 86 tokens