reset-session

reset-session is a command for coding agents from nguyenthienthanh/aura-frog. It costs 0 tokens per session (1,072 once invoked), scanned A, original, MIT.

A command for summarizing a completed feature’s working information into permanent project memory and optionally starting a fresh session.

In plain words
What is it for?
Distilling completed features or larger initiatives, previewing what would be saved, and resetting the session when an epic is done.
Why use it?
It preserves useful decisions and history while clearing active-session context after finished work.

Command

Part of the aura-frog plugin — 17 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers shipped together

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/nguyenthienthanh/aura-frog/reset-session
Clone the repo
git clone --depth 1 https://github.com/nguyenthienthanh/aura-frog

Or install aura-frog, the plugin that ships this one along with the rest of its 17 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/nguyenthienthanh/aura-frog/reset-session.svg)](https://agentmods.dev/commands/nguyenthienthanh/aura-frog/reset-session)
Your own site
<a href="https://agentmods.dev/commands/nguyenthienthanh/aura-frog/reset-session"><img src="https://agentmods.dev/badge/commands/nguyenthienthanh/aura-frog/reset-session.svg" alt="Measured on agentmods" height="20"></a>
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 1,072 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.01072
Opus 5 $0.00000 $0.00536
Sonnet 5 $0.00000 $0.00214
Haiku 4.5 $0.00000 $0.00107

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

Security

Grade A, and why

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

aura-frog/commands/reset-session.md · 70 lines

How it starts

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

/aura-frog:reset-session

Distill the active Epic (T2 Feature) into permanent_memory and offer to start a fresh session. Preserves history.jsonl, plan tree, conflict cache.


Usage

/aura-frog:reset-session                       # default: distill active Feature, prompt to reset
/aura-frog:reset-session --feature FEAT-007    # explicit feature ID (overrides active)
/aura-frog:reset-session --initiative INIT-001 # rare — distill at T1 level (quarterly use)
/aura-frog:reset-session --dry-run             # show what would be distilled without writing
/aura-frog:reset-session --no-prompt           # skip the reset confirmation (distill only)

Protocol (imperative)

  1. Resolve target. If --feature given, use it. Else read .claude/plans/active.json and pick active.feature. Refuse if neither (no active feature → nothing to distill).
  2. Validate target status. Refuse if status is not done or archived. Reset only triggers on completed Epics (per spec §19.1).
  3. Refuse if epic-summarizer already ran. Check history.jsonl for event: epic_summarized matching this feature_id with revision >= current.revision. If found, surface "already distilled" and skip to step 6 (reset prompt).
  4. Invoke epic-summarizer agent via Agent dispatch. Pass: feature_id, prior permanent_memory.md state, trace files for the feature's tasks.
  5. Wait for distillation completion. epic-summarizer writes the new section to .claude/memory/permanent_memory.md and appends event: epic_summarized to history.jsonl.
  6. Show distilled section to the user (preview only — file is already written).
  7. Prompt: reset session? unless --no-prompt. Show what's preserved vs. what's reset:
    • Preserved: history.jsonl, permanent_memory.md, plan tree, conflict cache, manual_overrides.md
    • Reset (cleared): active conversation context, in-flight task buffers, scratch files
  8. On user y / yes / reset:
    • Append event: session_reset to history.jsonl
    • Update .claude/plans/active.json — clear active.task (and active.story if its parent feature was the one distilled), preserve active.feature set to next pending Feature if any
    • Emit a control event hint to the runtime (e.g., suggest /clear or new session start)
  9. On user n / no / silence:
    • Distillation stays (it's already written); only the reset is skipped
    • Append event: session_reset_declined to history.jsonl

Read the full file on GitHub · 70 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 · 70 lines · 0 tokens per session scan A 2f8e4c8ac864

Subscribe to this mod's changes

reset-session is a command published in the GitHub repository nguyenthienthanh/aura-frog (24 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,072 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-30.