stash

stash is a skill for Claude Code from hamr0/liteagents. It costs 9 tokens per session (1,142 once invoked), scanned A, original, Apache-2.0.

A session-handoff tool for saving a precise summary of work so another agent can continue after context is lost. It forbids guessing beyond the supplied brief.

In plain words
What is it for?
Use it to record session state, constraints, backlog counts, and escalation points for later recovery.
Why use it?
It prevents important decisions, identifiers, and unfinished work from being lost during a context limit or agent handoff.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Use it to record session state, constraints, backlog counts, and escalation points for later recovery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamr0/liteagents/stash
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.

Any agent
npx skills add hamr0/liteagents --skill stash
Clone the repo
git clone --depth 1 https://github.com/hamr0/liteagents

Made for: Claude Code.

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 stash

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamr0/liteagents/stash/github.svg)](https://agentmods.dev/skills/hamr0/liteagents/stash)
Your own site
<a href="https://agentmods.dev/skills/hamr0/liteagents/stash"><img src="https://agentmods.dev/badge/skills/hamr0/liteagents/stash/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 stash

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamr0/liteagents/stash"><img src="https://agentmods.dev/badge/skills/hamr0/liteagents/stash.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,142 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00009 $0.01142
Opus 5.5 $0.00004 $0.00457
Sonnet 5.5 $0.00002 $0.00228
Haiku 4.5 $0.00001 $0.00114

Measured 2mo ago against content hash d04a879ba05a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stash 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 2mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • stash — 100% identical, 0 lines differ
packages/ampcode/skills/stash/SKILL.md · 92 lines

How it starts

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

Save session context for compaction recovery or handoffs.

Guardrails

  • Write only what the brief contains. The subagent expands the brief into a file; it does not research, re-derive, or infer. Every fact, number, SHA, path, and identifier in the stash comes from the brief verbatim — never invent, never round, never fill a gap with a plausible guess. Missing detail stays missing.
  • Escalate, never assume. Anything the subagent cannot do, cannot verify, or that this spec does not cover → report it back to the orchestrator (the main session) rather than improvising. Never widen scope beyond writing the file and counting the backlog.
  • Explicitly select your tool's mid tier. State the tier on the spawn — do not omit it and rely on a default. An omitted tier inherits the parent's tier, which is not the same thing as the balanced one. Pick the judgment-capable tier that is cheaper and faster than your top reasoning tier. Not the cheapest/fastest tier: on judgment work it measurably degrades (misclassification rates several times higher). Choose by tier, not by a vendor model name copied from this file — names drift, and this command ships to several tools.
  • Background dispatch where supported. Run the write-up subagent in the background (non-blocking) so the session isn't held up waiting on formatting/file I/O. Fall back to writing inline (today's behavior) if your tool has no subagent or background-dispatch mechanism.

What it does

  1. Drafts a compact brief of current conversation context, key decisions, active work in progress, and findings/insights — done inline, since only the running session holds full conversation context

  2. Hands the brief to a subagent on the mid-tier model (see Guardrails) to expand into the full stash file at .amp/stash/<name>.md, dispatched in the background where the tool supports it. Falls back to writing inline if subagent/background dispatch isn't available

  3. Enables context restoration after compaction

  4. Consolidation nudge — whichever actor wrote the file (the subagent, or the session itself on the inline fallback) counts the unprocessed backlog after saving. $ROOT is the absolute repo root — the same one the stash file was just written under. Resolve it with git rev-parse --show-toplevel. Run these two lines verbatim. Do not substitute a cwd-relative path (the write-up subagent's cwd is not guaranteed to be the repo root) and do not discover the manifest with a * glob over the remember dir (.processed is a dotfile, and globs skip dotfiles):

    find "$ROOT/.amp/stash/" -maxdepth 1 -name '*.md' ! -name '.*' 2>/dev/null | wc -l   # total
    if [ -f "$ROOT/.amp/remember/.processed" ]; then grep -c '' "$ROOT/.amp/remember/.processed"; else echo 0; fi   # processed
    

    unprocessed = total − processed. Use grep -c '', not wc -l: a manifest whose last entry has no trailing newline undercounts by one under wc -l.

    If $ROOT cannot be resolved, report the backlog as UNKNOWN and name the path that failed — never substitute 0. Substituting 0 maximizes the apparent backlog and fires the nudge on every stash. A resolvable $ROOT with no .processed file is a genuine 0.

    If unprocessed >= 5, end with one line, carrying the raw numbers so a miscount is visible without re-deriving it:

    📝 N unprocessed stashes (T total − P consolidated) — run /remember to fold them into memory.

    No counter is stored — the count is derived each time, and running /remember updates .processed, so the backlog drops on its own. Just emit the nudge; never run /remember automatically.

When to use

  • Before long-running tasks that may trigger compaction
  • When handing off work to another agent or session
  • After completing major investigation or analysis
  • Before taking a break from complex multi-step work

Commands

# Stash with auto-generated name
/stash

# Stash with custom name
/stash "feature-auth-investigation"

# List available stashes
ls .amp/stash/

# Restore from stash
cat .amp/stash/<name>.md

Read the full file on GitHub · 92 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. 2mo ago Changed d04a879ba05a
  2. 2mo ago Changed · +18 lines 3836212f516c
  3. 2mo ago First seen · 74 lines · 9 tokens per session scan A a56ef236b8e1

Subscribe to this mod's changes

stash is a skill published in the GitHub repository hamr0/liteagents (28 stars, last pushed 3d ago), licensed Apache-2.0. It adds 9 tokens to every session and 1,142 once invoked, about $0.0000 per session on Opus 5.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-09-05.

Related

stash compared with skills from other repositories

stash next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stashhamr0/liteagentsSkill283d agoApache-2.0A9Claude Code
dreamJewgah/claude-code-skillsSkill26d agoMITA90Claude Code
project-scaffoldHadi99K/AGENT_SKILLSSkill31mo agoMITA75Claude Code, Codex
team-summaryHadi99K/AGENT_SKILLSSkill31mo agoMITA57Claude Code, Codex
mykgEthics03/kgskillSkill37mo agoMITA36Claude Code
project-skillEthics03/kgskillSkill37mo agoMITA23Claude Code
skill-memorymemodb-io/skill-memorySkill2110mo agononeA29Claude Code, Codex