stash

Instructions for using Stash, a shared workspace containing files, agent transcripts, connected services, and reusable agent knowledge.

In plain words
What is it for?
Use it to inspect connected data, search transcripts and files, read pages or history, and upload local files to Stash.
Why use it?
It gives the agent a consistent way to search, read, browse, and upload information in Stash instead of handling each source separately.

Cursor rule

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 rules/fergana-labs/stash/stash
Clone the repo
git clone --depth 1 https://github.com/Fergana-Labs/stash
Per session 375 This file is loaded in full into every session.
When invoked 375 The same file — it is already loaded in full.
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.00375 $0.00375
Opus 5 $0.00187 $0.00187
Sonnet 5 $0.00075 $0.00075
Haiku 4.5 $0.00038 $0.00038

Measured 3d ago against content hash 174b60ea21c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

plugins/cursor-plugin/stash.mdc · 27 lines

What it actually says

Stash

You have the stash CLI on your PATH. Run stash --help to see commands. Use it to read transcripts, pages, and history from your Stash.

stash ls shows everything Stash can reach as one filesystem — your files, session transcripts, and every connected integration (GitHub, Slack, Gong, Gmail, Drive, Notion, …). When asked what you have access to, run it and show the tree; drill in with stash ls <source>/<path>.

Use stash vfs when you want to browse Stash like a filesystem without mounting anything into the OS. It accepts bash-shaped commands over the virtual Stash tree:

  • stash vfs ls /me
  • stash vfs "find /me -maxdepth 3 -type f"
  • stash vfs "rg \"query\" /me"
  • stash vfs "cat '/me/README.md'"

Your activity in this repo is streamed to your Stash, so your other agents and you can see what you're working on.

When the user asks you to upload local files to Stash, use stash upload <path> --json and give the user the returned url. If you use stash upload <path> --json for a raw file upload, give the user the returned app_url.

Common reads (all support --json):

  • stash search "<query>" — full-text search across transcripts
  • stash vfs "cat '/me/sessions/_index.jsonl'" — recent events
  • stash sessions agents — who's been active
  • stash vfs "find /me -name '*.md'" — your pages
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 · 27 lines · 375 tokens per session scan A 174b60ea21c7

Subscribe to this mod's changes

stash is a cursor rule published in the GitHub repository Fergana-Labs/stash (327 stars, last pushed 4d ago), licensed MIT. It adds 375 tokens to every session, about $0.0019 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-30.