ashlr-resume

ashlr-resume is a command for Claude Code from ashlrai/ashlr-plugin. It costs 27 tokens per session (624 once invoked), scanned A, original, MIT.

A command for summarizing the most recent coding session, including active files, tool use, and suggested next steps.

In plain words
What is it for?
Use it to continue a session, optionally narrowed to a branch, and see the working directory, files touched, commands used, and prior activity.
Why use it?
It helps you recover context after stopping work without rereading the session log or guessing where you left off.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ashlr plugin — 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server shipped together

Good fit Use it to continue a session, optionally narrowed to a branch, and…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ashlrai/ashlr-plugin
Claude Code
/plugin install ashlr

Made for: Claude Code.

Or install ashlr, the plugin that ships this one along with the rest of its 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server.

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 ashlr-resume

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-resume.svg)](https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-resume)
Your own site
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-resume"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-resume.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 624 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00027 $0.00624
Opus 5 $0.00014 $0.00312
Sonnet 5 $0.00005 $0.00125
Haiku 4.5 $0.00003 $0.00062

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

Security

Grade A, and why

ashlr-resume 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 6d 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.

commands/ashlr-resume.md · 73 lines

How it starts

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

Show a compact summary of the most recent ashlr session so you can pick up exactly where you left off.

Usage

/ashlr-resume
/ashlr-resume <branch-name>
  • No argument — summarizes the single most recent session regardless of branch.
  • With a branch name — finds the most recent session whose timestamp overlaps commits on that branch (cross-references via git log), then labels the output with that branch.

What it shows

Last session (yesterday, 2h ago — saved 4.3M tokens ≈$12.90):
  Branch:   feature/auth-flow
  Work dir: myapp  (12 reads, 4 edits)
            __tests__  (5 reads, 3 edits)
  Patterns: ashlr__grep ×7, Grep ×2
  Bash:     Bash ×18, ashlr__bash ×3
  Calls:    42 tool invocations

Resume? Suggested next steps based on the trail:
  - Re-open myapp (last edits in this session)
  - Re-run: Bash (used ×18 last session)
  - Continue on branch: feature/auth-flow

Behavior

  • Reads ~/.ashlr/session-log.jsonl (active file) plus up to two rotated backups (.jsonl.1, .jsonl.2). Read-only — never modifies the log.
  • If the log is missing or empty, prints "No prior sessions found — you're starting fresh."
  • Token savings figures come from session_end events written at session close. If no session_end is present, tokens-saved shows as 0.

Limitations

The session log records tool names and working directories, not individual file paths or the content of grep patterns / bash commands. As a result:

  • "Work dir" shows the repository directory rather than specific file paths.
  • "Patterns" shows which grep tools were invoked (and how many times), not the actual search strings.
  • "Bash" shows call counts for bash-family tools, not the specific commands run.

Individual argument capture is not part of the session-log schema (v1) by design — arguments may contain secrets. A future schema version may add opt-in argument hinting.

Implementation

bun run ${CLAUDE_PLUGIN_ROOT}/scripts/session-resume.ts [<branch>]

Read the full file on GitHub · 73 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. 6d ago First seen · 73 lines · 27 tokens per session scan A 56160c03de34

Subscribe to this mod's changes

ashlr-resume is a command published in the GitHub repository ashlrai/ashlr-plugin (3 stars, last pushed 6d ago), licensed MIT. It adds 27 tokens to every session and 624 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.