pop

pop is a command for Claude Code from AmirSoleimani/claude-stash. It costs 15 tokens per session (436 once invoked), scanned A, original, MIT.

A command that removes a selected note from the project's stash, records that removal in a log, and resumes work on the note.

In plain words
What is it for?
Use it to pop the first stash item or a chosen numbered item, remove it from the stash, and continue working on its text.
Why use it?
It brings a deferred task back into the current session while preserving a record of when it was retrieved.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the stash plugin — 7 commands shipped together

Good fit Use it to pop the first stash item or a chosen numbered item, remove it from the stash, and continue working on its text.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/amirsoleimani/claude-stash/pop
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.

Clone the repo
git clone --depth 1 https://github.com/AmirSoleimani/claude-stash

Made for: Claude Code.

Or install stash, the plugin that ships this one along with the rest of its 7 commands.

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 pop

README.md
[![agentmods](https://agentmods.dev/badge/commands/amirsoleimani/claude-stash/pop/github.svg)](https://agentmods.dev/commands/amirsoleimani/claude-stash/pop)
Your own site
<a href="https://agentmods.dev/commands/amirsoleimani/claude-stash/pop"><img src="https://agentmods.dev/badge/commands/amirsoleimani/claude-stash/pop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pop

Your own site · 80×15
<a href="https://agentmods.dev/commands/amirsoleimani/claude-stash/pop"><img src="https://agentmods.dev/badge/commands/amirsoleimani/claude-stash/pop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 436 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.00015 $0.00436
Opus 5 $0.00008 $0.00218
Sonnet 5 $0.00003 $0.00087
Haiku 4.5 $0.00002 $0.00044

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

Security

Grade A, and why

pop 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 9d 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.

plugins/stash/commands/pop.md · 39 lines

What it actually says

Pop an item from .claude/stash.md in the current project, log it to .claude/stash.log.md, and begin working on it in the current session (no context clearing).

Steps:

  1. Read .claude/stash.md. If it does not exist or has no - item lines, respond: Stash is empty. and stop.

  2. Parse $ARGUMENTS:

    • If empty → target the first item (position 1).
    • If a positive integer N → target the item at position N.
    • If N is out of range, respond with the current count (e.g. Only 3 items in stash.) and stop.
  3. Capture the targeted line and parse the item text (everything after [YYYY-MM-DD HH:MM] ).

  4. Remove the targeted line from .claude/stash.md. Leave header, blank lines, and other items untouched. Save.

  5. Append a log entry to .claude/stash.log.md. If the file does not exist, create it with this header:

    # Stash log
    
    

    Then append (use today's date and current time, 24h, local):

    - [YYYY-MM-DD HH:MM] POPPED  <item text>
    

    Note the two spaces between POPPED and the item text (alignment with DROPPED entries).

  6. Announce on a single line:

    Popped from stash: <item text>
    
  7. Then immediately treat the item text as if the user had just typed it as their next request, and begin work — using existing session context, files already loaded, current branch, etc. No /clear, no fresh start.

Fresh context option: If the user wants a fresh context, they should run /clear first, then /stash:pop. This command cannot clear context from inside a turn.

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. 9d ago First seen · 39 lines · 15 tokens per session scan A 3a954178a34d

Subscribe to this mod's changes

pop is a command published in the GitHub repository AmirSoleimani/claude-stash (10 stars, last pushed 3mo ago), licensed MIT. It adds 15 tokens to every session and 436 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.